diff options
author | Namjae Jeon <linkinjeon@kernel.org> | 2025-03-24 18:00:24 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2025-03-28 03:12:00 +0300 |
commit | ddb7ea36ba7129c2ed107e2186591128618864e1 (patch) | |
tree | d046824c360248ae39aaf159c5581a7dbb1fe7a3 /lib/test_fortify/write_overflow-strncpy.c | |
parent | c1883049aa9b2b7dffd3a68c5fc67fa92c174bd9 (diff) | |
download | linux-ddb7ea36ba7129c2ed107e2186591128618864e1.tar.xz |
ksmbd: fix r_count dec/increment mismatch
r_count is only increased when there is an oplock break wait,
so r_count inc/decrement are not paired. This can cause r_count
to become negative, which can lead to a problem where the ksmbd
thread does not terminate.
Fixes: 3aa660c05924 ("ksmbd: prevent connection release during oplock break notification")
Reported-by: Norbert Szetei <norbert@doyensec.com>
Tested-by: Norbert Szetei <norbert@doyensec.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy.c')
0 files changed, 0 insertions, 0 deletions