diff options
author | 2025-02-26 17:33:22 +0800 | |
---|---|---|
committer | 2025-02-26 19:31:05 -0500 | |
commit | 677bdb7346b6fd806ea45b11cbfe36de0b0cd644 (patch) | |
tree | 7d3444ff37a1d2ba06d4b7da078f1fc0de9d86c2 /net/lapb/lapb_timer.c | |
parent | bcachefs: Check for -BCH_ERR_open_buckets_empty in journal resize (diff) | |
download | wireguard-linux-677bdb7346b6fd806ea45b11cbfe36de0b0cd644.tar.xz wireguard-linux-677bdb7346b6fd806ea45b11cbfe36de0b0cd644.zip |
bcachefs: Fix deadlock
This fixes two deadlocks:
1.pcpu_alloc_mutex involved one as pointed by syzbot[1]
2.recursion deadlock.
The root cause is that we hold the bc lock during alloc_percpu, fix it
by following the pattern used by __btree_node_mem_alloc().
[1] https://lore.kernel.org/all/66f97d9a.050a0220.6bad9.001d.GAE@google.com/T/
Reported-by: syzbot+fe63f377148a6371a9db@syzkaller.appspotmail.com
Tested-by: syzbot+fe63f377148a6371a9db@syzkaller.appspotmail.com
Signed-off-by: Alan Huang <mmpgouride@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions