syzbot


general protection fault in wb_timer_fn

Status: fixed on 2021/11/10 00:50
Subsystems: block
[Documentation on labels]
Reported-by: syzbot+aa0801b6b32dca9dda82@syzkaller.appspotmail.com
Fix commit: d152c682f03c block: add an explicit ->disk backpointer to the request_queue
First crash: 982d, last: 968d
Cause bisection: introduced by (bisect log) :
commit 9483409ab5067941860754e78a4a44a60311d276
Author: Namhyung Kim <namhyung@kernel.org>
Date: Mon Mar 15 03:34:36 2021 +0000

  perf core: Allocate perf_buffer in the target node memory

Crash: WARNING in kvm_wait (log)
Repro: C syz .config
  
Discussions (4)
Title Replies (including bot) Last reply
BUG: soft lockup in __kmalloc_node() with KFENCE enabled 15 (15) 2021/10/20 06:11
Re: [syzbot] general protection fault in wb_timer_fn 9 (9) 2021/08/25 05:59
[PATCH 9/9] block: add an explicit ->disk backpointer to the request_queue 2 (2) 2021/08/19 14:39
[syzbot] general protection fault in wb_timer_fn 0 (1) 2021/08/14 11:57

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc00000000aa: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000550-0x0000000000000557]
CPU: 0 PID: 6563 Comm: systemd-udevd Not tainted 5.14.0-rc5-next-20210810-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:latency_exceeded block/blk-wbt.c:237 [inline]
RIP: 0010:wb_timer_fn+0x149/0x1740 block/blk-wbt.c:360
Code: 03 80 3c 02 00 0f 85 68 13 00 00 48 8b 9b c8 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d bb 50 05 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 35 13 00 00 48 8b 9b 50 05 00 00 48 b8 00 00 00
RSP: 0018:ffffc90000007cd8 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000100
RDX: 00000000000000aa RSI: ffffffff83d107dd RDI: 0000000000000550
RBP: ffff88801ab3cc00 R08: 0000000000000003 R09: ffff88801ab3cd83
R10: ffffffff83d107d2 R11: 0000000000027e24 R12: 0000000000000003
R13: 0000000000000000 R14: ffff888146318000 R15: ffff88801ab3ccd0
FS:  00007fc1898e38c0(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055aed4a39410 CR3: 0000000025577000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 call_timer_fn+0x1a5/0x6b0 kernel/time/timer.c:1421
 expire_timers kernel/time/timer.c:1466 [inline]
 __run_timers.part.0+0x675/0xa20 kernel/time/timer.c:1734
 __run_timers kernel/time/timer.c:1715 [inline]
 run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1747
 __do_softirq+0x29b/0x9c2 kernel/softirq.c:558
 invoke_softirq kernel/softirq.c:432 [inline]
 __irq_exit_rcu+0x16e/0x1c0 kernel/softirq.c:636
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:648
 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1100
 </IRQ>
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:tomoyo_domain_quota_is_ok+0x105/0x550 security/tomoyo/util.c:1054
Code: 68 10 48 3b 2c 24 0f 84 f4 00 00 00 49 be 00 00 00 00 00 fc ff df eb 5f e8 f8 8b d7 fd 48 89 e8 48 89 ee 48 c1 e8 03 83 e6 07 <42> 0f b6 0c 30 48 8d 45 07 48 89 c2 48 c1 ea 03 42 0f b6 14 32 40
RSP: 0018:ffffc900011df908 EFLAGS: 00000246
RAX: 1ffff1100f264000 RBX: 0000000000000010 RCX: 0000000000000000
RDX: ffff888019120000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: ffff888079320000 R08: 0000000000000000 R09: 0000000000000010
R10: ffffffff839e1c9a R11: 0000000000000010 R12: 0000000000000002
R13: 00000000000000e1 R14: dffffc0000000000 R15: 0000000000000000
 tomoyo_supervisor+0x2f2/0xf00 security/tomoyo/common.c:2089
 tomoyo_audit_path_log security/tomoyo/file.c:168 [inline]
 tomoyo_path_permission security/tomoyo/file.c:587 [inline]
 tomoyo_path_permission+0x270/0x3a0 security/tomoyo/file.c:573
 tomoyo_path_perm+0x2f0/0x400 security/tomoyo/file.c:838
 security_inode_getattr+0xcf/0x140 security/security.c:1332
 vfs_getattr fs/stat.c:157 [inline]
 vfs_fstat+0x43/0xb0 fs/stat.c:182
 __do_sys_newfstat+0x81/0x100 fs/stat.c:422
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fc1887552e2
Code: 48 8b 05 b9 db 2b 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 83 ff 01 77 33 48 63 fe b8 05 00 00 00 48 89 d6 0f 05 <48> 3d 00 f0 ff ff 77 06 f3 c3 0f 1f 40 00 48 8b 15 81 db 2b 00 f7
RSP: 002b:00007ffed32f4de8 EFLAGS: 00000246 ORIG_RAX: 0000000000000005
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fc1887552e2
RDX: 00007ffed32f4e00 RSI: 00007ffed32f4e00 RDI: 0000000000000007
RBP: 00007ffed32f4f80 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000080000 R11: 0000000000000246 R12: 000055aed49f40e0
R13: 000055aed4a06f10 R14: 00007ffed32f4ee0 R15: 00007ffed32f4f40
Modules linked in:
---[ end trace 85971c24ea99db54 ]---
RIP: 0010:latency_exceeded block/blk-wbt.c:237 [inline]
RIP: 0010:wb_timer_fn+0x149/0x1740 block/blk-wbt.c:360
Code: 03 80 3c 02 00 0f 85 68 13 00 00 48 8b 9b c8 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d bb 50 05 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 35 13 00 00 48 8b 9b 50 05 00 00 48 b8 00 00 00
RSP: 0018:ffffc90000007cd8 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000100
RDX: 00000000000000aa RSI: ffffffff83d107dd RDI: 0000000000000550
RBP: ffff88801ab3cc00 R08: 0000000000000003 R09: ffff88801ab3cd83
R10: ffffffff83d107d2 R11: 0000000000027e24 R12: 0000000000000003
R13: 0000000000000000 R14: ffff888146318000 R15: ffff88801ab3ccd0
FS:  00007fc1898e38c0(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055aed4a39410 CR3: 0000000025577000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (60):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/08/11 10:57 linux-next 92d00774360d 6972b106 .config console log report syz C ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/24 08:21 linux-next 46debfec12b4 b599f2fc .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/23 03:17 linux-next 86ed57fd8c93 b599f2fc .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/23 00:32 linux-next 86ed57fd8c93 b599f2fc .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/22 21:58 linux-next 86ed57fd8c93 b599f2fc .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/22 12:16 linux-next 86ed57fd8c93 b599f2fc .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/22 03:44 linux-next 86ed57fd8c93 b599f2fc .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/21 20:21 linux-next 86ed57fd8c93 b599f2fc .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/21 09:29 linux-next 86ed57fd8c93 b599f2fc .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/21 05:54 linux-next 86ed57fd8c93 b599f2fc .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/20 11:16 linux-next 86ed57fd8c93 b599f2fc .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/19 19:33 linux-next 33e65b1f975c b599f2fc .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/19 16:16 linux-next 33e65b1f975c a2fe1cb5 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/19 12:45 linux-next 33e65b1f975c a2fe1cb5 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/19 11:40 linux-next 33e65b1f975c a2fe1cb5 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/19 10:36 linux-next 33e65b1f975c a2fe1cb5 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/19 02:27 linux-next f26c3abc432a a2fe1cb5 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/18 23:06 linux-next f26c3abc432a a2fe1cb5 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/18 20:01 linux-next f26c3abc432a a2fe1cb5 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/18 15:31 linux-next f26c3abc432a a2fe1cb5 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/18 11:00 linux-next 9803fb968c8c a2fe1cb5 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/18 03:05 linux-next 9803fb968c8c a2fe1cb5 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/17 20:34 linux-next 9803fb968c8c a2fe1cb5 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/17 19:47 linux-next 9803fb968c8c a2fe1cb5 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/17 05:46 linux-next b9011c7e671d 33c26cb7 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/17 02:55 linux-next b9011c7e671d 33c26cb7 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/16 17:17 linux-next b9011c7e671d 33c26cb7 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/16 15:55 linux-next b9011c7e671d 33c26cb7 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/16 15:03 linux-next b9011c7e671d 33c26cb7 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/15 07:54 linux-next 4b358aabb93a 2489ab88 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/15 07:38 linux-next 4b358aabb93a 2489ab88 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/14 05:26 linux-next 4b358aabb93a 2489ab88 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/14 05:22 linux-next 4b358aabb93a 2489ab88 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/13 12:20 linux-next 4b358aabb93a 3fd2ea69 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/13 12:16 linux-next 4b358aabb93a 3fd2ea69 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/13 08:20 linux-next 9b992972fb9c 3fd2ea69 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/13 08:20 linux-next 9b992972fb9c 3fd2ea69 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/13 01:42 linux-next 9b992972fb9c 3fd2ea69 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/12 23:55 linux-next 9b992972fb9c 3fd2ea69 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/12 14:24 linux-next 9b992972fb9c 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/12 13:47 linux-next 9b992972fb9c 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/12 13:28 linux-next 9b992972fb9c 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/11 17:33 linux-next 8ca403f3e7a2 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/11 16:46 linux-next 8ca403f3e7a2 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/11 15:34 linux-next 92d00774360d 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/11 14:47 linux-next 92d00774360d 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/11 14:01 linux-next 92d00774360d 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/11 09:43 linux-next 92d00774360d 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/11 06:32 linux-next 92d00774360d 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/10 16:26 linux-next 92d00774360d 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/10 16:10 linux-next 92d00774360d 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/10 15:24 linux-next 92d00774360d 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/10 15:21 linux-next 92d00774360d 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/10 14:33 linux-next 92d00774360d 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/10 13:46 linux-next 92d00774360d 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/10 12:58 linux-next 92d00774360d 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
2021/08/10 11:53 linux-next 92d00774360d 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root general protection fault in wb_timer_fn
* Struck through repros no longer work on HEAD.