diff options
| author | Guilherme Giacomo Simoes <trintaeoitogc@gmail.com> | 2026-11-12 07:59:39 -0300 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-11-18 09:05:21 -0700 |
| commit | 553d28925fdea4044bad4ae1e2bf9484ad21f758 (patch) | |
| tree | 8276fae30f0ecbd200753654adbd0fa2e9a9ba21 /kernel/debug/debug_core.h | |
| parent | 657d7c48b84f2ef0bf885b47cf2318823bc72970 (diff) | |
nbd: Reclassify sockets in the reconnect path
Commit d532cddb6c60 ("nbd: Reclassify sockets to avoid lockdep circular
dependency") introduced nbd_reclassify_socket() to prevent lockdep false
positives when NBD sockets are used in memory reclaim paths. While
nbd_add_socket() reclassifies newly added sockets,
nbd_genl_reconnect_sock_cb() omitted this call when replacing dead
sockets during reconnection. Consequently, reconnected sockets retain
the generic socket lockdep class and trigger false-positive lockdep
reports.
Fix this by reclassifying the replacement socket in
nbd_genl_reconnect_sock_cb().
Fixes: d532cddb6c60 ("nbd: Reclassify sockets to avoid lockdep circular dependency")
Reported-by: syzbot+d7d72f3d467710442af0@syzkaller.appspotmail.com
Closes: https://syzkaller.appspot.com/bug?extid=d7d72f3d467710442af0
Signed-off-by: Guilherme Giacomo Simoes <trintaeoitogc@gmail.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/20261112105939.260856-1-trintaeoitogc@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'kernel/debug/debug_core.h')
0 files changed, 0 insertions, 0 deletions
