diff options
| author | Namjae Jeon <[email protected]> | 2024-04-12 00:45:00 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2024-04-20 01:48:47 +0000 |
| commit | 17cf0c2794bdb6f39671265aa18aea5c22ee8c4a (patch) | |
| tree | 4753df1ab69cee91533f4d250cfc2fd7bb1ac96f /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | |
| parent | ksmbd: fix slab-out-of-bounds in smb2_allocate_rsp_buf (diff) | |
| download | kernel-17cf0c2794bdb6f39671265aa18aea5c22ee8c4a.tar.gz kernel-17cf0c2794bdb6f39671265aa18aea5c22ee8c4a.zip | |
ksmbd: validate request buffer size in smb2_allocate_rsp_buf()
The response buffer should be allocated in smb2_allocate_rsp_buf
before validating request. But the fields in payload as well as smb2 header
is used in smb2_allocate_rsp_buf(). This patch add simple buffer size
validation to avoid potencial out-of-bounds in request buffer.
Cc: [email protected]
Signed-off-by: Namjae Jeon <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions
