syzbot


BUG: unable to handle kernel paging request in finish_writeback_work

Status: closed as dup on 2019/09/25 10:08
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+430eca490e0ed6f90995@syzkaller.appspotmail.com
First crash: 1922d, last: 1913d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
general protection fault in finish_writeback_work fs 10 1896d 1921d

Sample crash report:
BUG: unable to handle page fault for address: fffffbfff32020d1
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 21ffee067 P4D 21ffee067 PUD 21ffed067 PMD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 18076 Comm: kworker/u4:3 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:bytes_is_nonzero mm/kasan/generic.c:92 [inline]
RIP: 0010:memory_is_nonzero mm/kasan/generic.c:109 [inline]
RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:135 [inline]
RIP: 0010:memory_is_poisoned mm/kasan/generic.c:166 [inline]
RIP: 0010:check_memory_region_inline mm/kasan/generic.c:182 [inline]
RIP: 0010:check_memory_region+0x123/0x1a0 mm/kasan/generic.c:192
Code: 49 89 d9 49 29 c1 e9 68 ff ff ff 5b b8 01 00 00 00 41 5c 41 5d 5d c3 4d 85 c9 74 ef 4d 01 e1 eb 09 48 83 c0 01 4c 39 c8 74 e1 <80> 38 00 74 f2 eb 8c 4d 39 c2 74 4d e8 8c e4 ff ff 31 c0 5b 41 5c
RSP: 0018:ffff88809402f8f8 EFLAGS: 00010086
RAX: fffffbfff32020d1 RBX: fffffbfff32020d2 RCX: ffffffff8158f124
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff99010688
RBP: ffff88809402f910 R08: 1ffffffff32020d1 R09: fffffbfff32020d2
R10: fffffbfff32020d1 R11: ffffffff9901068f R12: fffffbfff32020d1
R13: 00000000744fe944 R14: 0000000000000000 R15: 00000000000c0944
FS:  0000000000000000(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffbfff32020d1 CR3: 000000008acb0000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __kasan_check_read+0x11/0x20 mm/kasan/common.c:92
 test_bit include/asm-generic/bitops-instrumented.h:237 [inline]
 __lock_acquire+0x1564/0x4a00 kernel/locking/lockdep.c:3925
 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:
CR2: fffffbfff32020d1
---[ end trace e281e8182d1c9a4d ]---
RIP: 0010:bytes_is_nonzero mm/kasan/generic.c:92 [inline]
RIP: 0010:memory_is_nonzero mm/kasan/generic.c:109 [inline]
RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:135 [inline]
RIP: 0010:memory_is_poisoned mm/kasan/generic.c:166 [inline]
RIP: 0010:check_memory_region_inline mm/kasan/generic.c:182 [inline]
RIP: 0010:check_memory_region+0x123/0x1a0 mm/kasan/generic.c:192
Code: 49 89 d9 49 29 c1 e9 68 ff ff ff 5b b8 01 00 00 00 41 5c 41 5d 5d c3 4d 85 c9 74 ef 4d 01 e1 eb 09 48 83 c0 01 4c 39 c8 74 e1 <80> 38 00 74 f2 eb 8c 4d 39 c2 74 4d e8 8c e4 ff ff 31 c0 5b 41 5c
RSP: 0018:ffff88809402f8f8 EFLAGS: 00010086
RAX: fffffbfff32020d1 RBX: fffffbfff32020d2 RCX: ffffffff8158f124
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff99010688
RBP: ffff88809402f910 R08: 1ffffffff32020d1 R09: fffffbfff32020d2
R10: fffffbfff32020d1 R11: ffffffff9901068f R12: fffffbfff32020d1
R13: 00000000744fe944 R14: 0000000000000000 R15: 00000000000c0944
FS:  0000000000000000(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffbfff32020d1 CR3: 000000008acb0000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/10/01 07:39 upstream 54ecb8f7028c c7a4fb99 .config console log report ci-upstream-kasan-gce-selinux-root
2019/09/30 02:36 bpf-next b41dae061bbd c1ad5441 .config console log report ci-upstream-bpf-next-kasan-gce
2019/09/22 06:45 bpf-next b41dae061bbd d96e88f3 .config console log report ci-upstream-bpf-next-kasan-gce
* Struck through repros no longer work on HEAD.