[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CADCV8spNQNG4JZVydph==UJFcpKuTHYYCaS99Qo6eC60GBxMCA@mail.gmail.com>
Date: Tue, 14 Jan 2025 19:32:01 +0800
From: Liebes Wang <wanghaichi0403@...il.com>
To: kent.overstreet@...ux.dev, linux-bcachefs@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: syzkaller@...glegroups.com
Subject: WARNING in bch2_trans_srcu_unlock
Dear Linux maintainers and reviewers:
We are reporting a Linux kernel bug titled **WARNING in
bch2_trans_srcu_unlock**, discovered using a modified version of Syzkaller.
Linux version: 2144da25584eb10b84252230319b5783f6a83041
The bisection log shows the first introduced commit
is f5095b9f85a1674a92d00e7ab466499a8ba49ce1:
bcachefs: dev_usage updated by new accounting.
The test case, kernel config and full bisection log are attached.
The report is (The full report is attached):
btree trans held srcu lock (delaying memory reclaim) for 35 seconds
WARNING: CPU: 1 PID: 4728 at fs/bcachefs/btree_iter.c:3028
check_srcu_held_too_long fs/bcachefs/btree_iter.c:3028 [inline]
WARNING: CPU: 1 PID: 4728 at fs/bcachefs/btree_iter.c:3028
check_srcu_held_too_long fs/bcachefs/btree_iter.c:3026 [inline]
WARNING: CPU: 1 PID: 4728 at fs/bcachefs/btree_iter.c:3028
bch2_trans_srcu_unlock fs/bcachefs/btree_iter.c:3044 [inline]
WARNING: CPU: 1 PID: 4728 at fs/bcachefs/btree_iter.c:3028
bch2_trans_srcu_unlock+0x43b/0x520 fs/bcachefs/btree_iter.c:3033
Modules linked in:
CPU: 1 UID: 0 PID: 4728 Comm: syz.0.109 Not tainted 6.12.0-rc6 #1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS
1.13.0-1ubuntu1.1 04/01/2014
RIP: 0010:check_srcu_held_too_long fs/bcachefs/btree_iter.c:3028 [inline]
RIP: 0010:check_srcu_held_too_long fs/bcachefs/btree_iter.c:3026 [inline]
RIP: 0010:bch2_trans_srcu_unlock fs/bcachefs/btree_iter.c:3044 [inline]
RIP: 0010:bch2_trans_srcu_unlock+0x43b/0x520 fs/bcachefs/btree_iter.c:3033
Code: c7 c7 80 13 57 86 48 b9 cf f7 53 e3 a5 9b c4 20 4c 29 e2 48 c1 ea 03
48 89 d0 48 f7 e1 48 c1 ea 04 48 89 d6 e8 86 e2 f8 fd 90 <0f> 0b 90 90 e9
ac fe ff ff e8 47 06 32 fe 90 0f 0b 90 e9 f5 fe ff
RSP: 0018:ff110001338af350 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffffffffffff9d89 RCX: ffa00000018a5000
RDX: 0000000000040000 RSI: ffffffff8118e02f RDI: 0000000000000001
RBP: 1ffffffff0e81e40 R08: 0000000000000001 R09: ffe21c0099525141
R10: 0000000000000000 R11: 0000000000000000 R12: 00000000fffc7e7b
R13: dffffc0000000000 R14: ff1100012fc60000 R15: 0000000000000000
FS: 00007f847259f700(0000) GS:ff110004ca900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff7684e96f4 CR3: 0000000131498006 CR4: 0000000000771ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
PKRU: 80000000
Call Trace:
<TASK>
bch2_trans_begin+0x1847/0x1da0 fs/bcachefs/btree_iter.c:3121
bch2_remap_range+0xb01/0x3460 fs/bcachefs/reflink.c:470
bch2_remap_file_range+0x8af/0x1010 fs/bcachefs/fs-io.c:880
vfs_copy_file_range+0xcc4/0x1530 fs/read_write.c:1615
__do_sys_copy_file_range+0x199/0x410 fs/read_write.c:1705
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xc1/0x1d0 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Content of type "text/html" skipped
Download attachment "bisect.log" of type "application/octet-stream" (15998 bytes)
Download attachment "kconfig" of type "application/octet-stream" (149021 bytes)
Download attachment "report4" of type "application/octet-stream" (5769 bytes)
Download attachment "repro.c" of type "application/octet-stream" (341618 bytes)
Powered by blists - more mailing lists