diff options
| author | Namjae Jeon <[email protected]> | 2025-02-12 00:37:57 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2025-03-03 04:50:54 +0000 |
| commit | aa2a739a75ab6f24ef72fb3fdb9192c081eacf06 (patch) | |
| tree | 7762449cd1dcce60eb17435b672d7f5fa42e43fe /tools/perf/scripts/python/gecko.py | |
| parent | ksmbd: fix incorrect validation for num_aces field of smb_acl (diff) | |
| download | kernel-aa2a739a75ab6f24ef72fb3fdb9192c081eacf06.tar.gz kernel-aa2a739a75ab6f24ef72fb3fdb9192c081eacf06.zip | |
cifs: fix incorrect validation for num_aces field of smb_acl
parse_dcal() validate num_aces to allocate ace array.
f (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 response buffer
size. Use this to check invalid num_aces.
Signed-off-by: Namjae Jeon <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions
