diff options
author | Namjae Jeon <linkinjeon@kernel.org> | 2025-02-12 03:32:11 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2025-03-03 07:50:54 +0300 |
commit | 1b8b67f3c5e5169535e26efedd3e422172e2db64 (patch) | |
tree | a0d75d0e83ec1edd0c9dc7d857c8fa93260889c4 /tools/perf/scripts/python/stackcollapse.py | |
parent | 62e7dd0a39c2d0d7ff03274c36df971f1b3d2d0d (diff) | |
download | linux-1b8b67f3c5e5169535e26efedd3e422172e2db64.tar.xz |
ksmbd: fix incorrect validation for num_aces field of smb_acl
parse_dcal() validate num_aces to allocate posix_ace_state_array.
if (num_aces > ULONG_MAX / sizeof(struct smb_ace *))
It is an incorrect validation that we can create an array of size ULONG_MAX.
smb_acl has ->size field to calculate actual number of aces in request buffer
size. Use this to check invalid num_aces.
Reported-by: Igor Leite Ladessa <igor-ladessa@hotmail.com>
Tested-by: Igor Leite Ladessa <igor-ladessa@hotmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions