Skip to content

nbd: Reclassify sockets to avoid lockdep circular dependency#959

Open
blktests-ci[bot] wants to merge 1 commit into
linus-master_basefrom
series/1110973=>linus-master
Open

nbd: Reclassify sockets to avoid lockdep circular dependency#959
blktests-ci[bot] wants to merge 1 commit into
linus-master_basefrom
series/1110973=>linus-master

Conversation

@blktests-ci

@blktests-ci blktests-ci Bot commented Jun 13, 2026

Copy link
Copy Markdown

Pull request for series with
subject: nbd: Reclassify sockets to avoid lockdep circular dependency
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1110973

syzbot reported a possible circular locking dependency in udp_sendmsg()
where fs_reclaim can be triggered while holding sk_lock, and fs_reclaim
can eventually depend on another sk_lock (e.g., if NBD is used for swap
or writeback and NBD uses TLS/TCP which acquires sk_lock).

Since the UDP socket and the NBD TCP/TLS socket are different, this is a
false positive. Fix this by reclassifying NBD sockets to a separate lock
class when they are added to the NBD device.

This is similar to what nvme-tcp and other network block devices do.

Fixes: ffa1e7a ("block: Make request_queue lockdep splats show up earlier")
Reported-by: syzbot+607cdcf978b3e79da878@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/netdev/6a2cdafe.428ffe26.258b27.0161.GAE@google.com/T/#u
Signed-off-by: Eric Dumazet <edumazet@google.com>
@blktests-ci

blktests-ci Bot commented Jun 13, 2026

Copy link
Copy Markdown
Author

Upstream branch: 062871f
series: https://patchwork.kernel.org/project/linux-block/list/?series=1110973
version: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant