syzbot


general protection fault in finish_writeback_work

Status: fixed on 2019/10/27 22:28
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+828abc56e48ada4b0195@syzkaller.appspotmail.com
Fix commit: 8e00c4e9dd85 writeback: fix use-after-free in finish_writeback_work()
First crash: 1731d, last: 1704d
Duplicate bugs (1)
duplicates (1):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
BUG: unable to handle kernel paging request in finish_writeback_work fs 3 1722d 1728d 0/27 closed as dup on 2019/09/25 10:08
Discussions (1)
Title Replies (including bot) Last reply
general protection fault in finish_writeback_work 0 (1) 2019/09/23 18:26

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 32041 Comm: kworker/u4:6 Not tainted 5.4.0-rc1+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: writeback wb_workfn (flush-8:0)
RIP: 0010:__lock_acquire+0x1254/0x4a00 kernel/locking/lockdep.c:3828
Code: 00 0f 85 96 24 00 00 48 81 c4 f0 00 00 00 5b 41 5c 41 5d 41 5e 41 5f 5d c3 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 0b 28 00 00 49 81 3e e0 85 06 8a 0f 84 5f ee ff
RSP: 0000:ffff88808f32f930 EFLAGS: 00010007
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000003 RSI: 0000000000000000 RDI: 0000000000000001
RBP: ffff88808f32fa48 R08: 0000000000000001 R09: 0000000000000001
R10: fffffbfff138cdd0 R11: ffff888061c4c280 R12: 000000000000001d
R13: 0000000000000000 R14: 000000000000001d R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b30020000 CR3: 0000000098a37000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 lock_acquire+0x190/0x410 kernel/locking/lockdep.c:4487
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0x95/0xcd kernel/locking/spinlock.c:159
 __wake_up_common_lock+0xc8/0x150 kernel/sched/wait.c:122
 __wake_up+0xe/0x10 kernel/sched/wait.c:142
 finish_writeback_work.isra.0+0xf6/0x120 fs/fs-writeback.c:168
 wb_do_writeback fs/fs-writeback.c:2030 [inline]
 wb_workfn+0x34f/0x1220 fs/fs-writeback.c:2070
 process_one_work+0x9af/0x1740 kernel/workqueue.c:2269
 worker_thread+0x98/0xe40 kernel/workqueue.c:2415
 kthread+0x361/0x430 kernel/kthread.c:255
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352
Modules linked in:
---[ end trace f80a925279b46a6d ]---
RIP: 0010:__lock_acquire+0x1254/0x4a00 kernel/locking/lockdep.c:3828
Code: 00 0f 85 96 24 00 00 48 81 c4 f0 00 00 00 5b 41 5c 41 5d 41 5e 41 5f 5d c3 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 0b 28 00 00 49 81 3e e0 85 06 8a 0f 84 5f ee ff
RSP: 0000:ffff88808f32f930 EFLAGS: 00010007
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000003 RSI: 0000000000000000 RDI: 0000000000000001
RBP: ffff88808f32fa48 R08: 0000000000000001 R09: 0000000000000001
R10: fffffbfff138cdd0 R11: ffff888061c4c280 R12: 000000000000001d
R13: 0000000000000000 R14: 000000000000001d R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b30020000 CR3: 0000000098a37000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/10/19 01:56 bpf 11875ba7f251 8c88c9c1 .config console log report ci-upstream-bpf-kasan-gce
2019/10/01 13:03 net-old 68ce6688a5ba c7a4fb99 .config console log report ci-upstream-net-this-kasan-gce
2019/09/25 08:20 net-old 5aafeb74b5bb e38a6630 .config console log report ci-upstream-net-this-kasan-gce
2019/09/22 13:24 net-old 24ccb0ab95bf d96e88f3 .config console log report ci-upstream-net-this-kasan-gce
2019/10/04 20:32 bpf-next 4bbbf164f1a5 f3f7d9c8 .config console log report ci-upstream-bpf-next-kasan-gce
2019/09/30 04:10 bpf-next b41dae061bbd c1ad5441 .config console log report ci-upstream-bpf-next-kasan-gce
2019/09/29 17:01 bpf-next b41dae061bbd c1ad5441 .config console log report ci-upstream-bpf-next-kasan-gce
2019/09/22 08:05 net-next-old b41dae061bbd d96e88f3 .config console log report ci-upstream-net-kasan-gce
2019/09/22 03:51 net-next-old b41dae061bbd d96e88f3 .config console log report ci-upstream-net-kasan-gce
2019/09/22 03:39 linux-next b5b3bd898ba9 d96e88f3 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.