diff options
| author | Alan Huang <[email protected]> | 2025-02-26 09:33:22 +0000 |
|---|---|---|
| committer | Kent Overstreet <[email protected]> | 2025-02-27 00:31:05 +0000 |
| commit | 677bdb7346b6fd806ea45b11cbfe36de0b0cd644 (patch) | |
| tree | 7d3444ff37a1d2ba06d4b7da078f1fc0de9d86c2 /net/unix/af_unix.c | |
| parent | bcachefs: Check for -BCH_ERR_open_buckets_empty in journal resize (diff) | |
| download | kernel-677bdb7346b6fd806ea45b11cbfe36de0b0cd644.tar.gz kernel-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/[email protected]/T/
Reported-by: [email protected]
Tested-by: [email protected]
Signed-off-by: Alan Huang <[email protected]>
Signed-off-by: Kent Overstreet <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
