syzbot


BUG: unable to handle kernel paging request in try_to_wake_up (2)

Status: moderation: reported on 2024/11/17 02:46
Subsystems: block
[Documentation on labels]
Reported-by: syzbot+8dccc6978dfa3eb5f3e8@syzkaller.appspotmail.com
First crash: 4d22h, last: 4d22h
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in try_to_wake_up (2) io-uring C done done 3588 122d 1360d 0/28 closed as invalid on 2024/07/25 16:29
upstream WARNING: locking bug in try_to_wake_up kernel C error 157 5d17h 186d 28/28 fixed on 2024/11/12 23:31
upstream BUG: unable to handle kernel paging request in try_to_wake_up kernel 1 2545d 2541d 0/28 closed as dup on 2017/12/19 12:14
linux-5.15 KASAN: use-after-free Read in try_to_wake_up C done 71 59d 515d 3/3 fixed on 2024/10/21 12:01
linux-4.14 KASAN: use-after-free Read in try_to_wake_up nilfs2 C 8 628d 749d 0/1 upstream: reported C repro on 2022/10/30 09:08
linux-4.14 general protection fault in try_to_wake_up C done 707 1311d 1341d 1/1 fixed on 2021/05/17 08:49
upstream KASAN: use-after-free Read in try_to_wake_up fs C unreliable 82 1361d 1361d 0/28 closed as invalid on 2021/02/25 16:53
linux-6.1 KASAN: use-after-free Read in try_to_wake_up origin:upstream missing-backport C done 44 163d 595d 3/3 fixed on 2024/07/22 09:08
linux-4.19 general protection fault in try_to_wake_up syz done 229 1253d 1341d 1/1 fixed on 2021/07/14 00:01
linux-6.1 KASAN: use-after-free Read in try_to_wake_up (2) 2 73d 104d 0/3 upstream: reported on 2024/08/05 02:45

Sample crash report:
BUG: unable to handle page fault for address: fffffbfff46e2b8d
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
PGD 23ffe4067 P4D 23ffe4067 PUD 23ffe3067 PMD 0 
Oops: Oops: 0000 [#1] PREEMPT SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 40 Comm: kworker/0:1H Not tainted 6.12.0-rc7-syzkaller-00012-g3022e9d00ebe #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024
Workqueue: kblockd blk_mq_requeue_work
RIP: 0010:bytes_is_nonzero mm/kasan/generic.c:87 [inline]
RIP: 0010:memory_is_nonzero mm/kasan/generic.c:104 [inline]
RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:129 [inline]
RIP: 0010:memory_is_poisoned mm/kasan/generic.c:161 [inline]
RIP: 0010:check_region_inline mm/kasan/generic.c:180 [inline]
RIP: 0010:kasan_check_range+0x82/0x290 mm/kasan/generic.c:189
Code: 01 00 00 00 00 fc ff df 4f 8d 3c 31 4c 89 fd 4c 29 dd 48 83 fd 10 7f 29 48 85 ed 0f 84 3e 01 00 00 4c 89 cd 48 f7 d5 48 01 dd <41> 80 3b 00 0f 85 c9 01 00 00 49 ff c3 48 ff c5 75 ee e9 1e 01 00
RSP: 0018:ffffc90000b07320 EFLAGS: 00010086
RAX: 0000000001e89001 RBX: 1ffffffff46e2b8d RCX: ffffffff81705a7b
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffffa3715c68
RBP: ffffffffffffffff R08: ffffffffa3715c6f R09: 1ffffffff46e2b8d
R10: dffffc0000000000 R11: fffffbfff46e2b8d R12: ffff888020ef0000
R13: ffff888020ef0ad8 R14: dffffc0000000001 R15: fffffbfff46e2b8e
FS:  0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffbfff46e2b8d CR3: 000000004f6fe000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 instrument_atomic_read include/linux/instrumented.h:68 [inline]
 _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
 __lock_acquire+0xc8b/0x2050 kernel/locking/lockdep.c:5172
 lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5825
 _raw_spin_lock_nested+0x31/0x40 kernel/locking/spinlock.c:378
 raw_spin_rq_lock_nested+0xb0/0x140 kernel/sched/core.c:606
 raw_spin_rq_lock kernel/sched/sched.h:1506 [inline]
 rq_lock kernel/sched/sched.h:1805 [inline]
 ttwu_queue kernel/sched/core.c:3951 [inline]
 try_to_wake_up+0x81e/0x14b0 kernel/sched/core.c:4281
 swake_up_locked kernel/sched/swait.c:29 [inline]
 swake_up_one+0x70/0x160 kernel/sched/swait.c:52
 rcu_report_unblock_qs_rnp kernel/rcu/tree.c:2376 [inline]
 rcu_preempt_deferred_qs_irqrestore+0x9f8/0xc70 kernel/rcu/tree_plugin.h:568
 rcu_read_unlock_special+0x497/0x570 kernel/rcu/tree_plugin.h:692
 __rcu_read_unlock+0xa1/0x110 kernel/rcu/tree_plugin.h:437
 blk_mq_run_hw_queues+0x2b6/0x360 block/blk-mq.c:2292
 blk_mq_requeue_work+0x8b1/0x900 block/blk-mq.c:1477
 process_one_work kernel/workqueue.c:3229 [inline]
 process_scheduled_works+0xa65/0x1850 kernel/workqueue.c:3310
 worker_thread+0x870/0xd30 kernel/workqueue.c:3391
 kthread+0x2f2/0x390 kernel/kthread.c:389
 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
Modules linked in:
CR2: fffffbfff46e2b8d
---[ end trace 0000000000000000 ]---
RIP: 0010:bytes_is_nonzero mm/kasan/generic.c:87 [inline]
RIP: 0010:memory_is_nonzero mm/kasan/generic.c:104 [inline]
RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:129 [inline]
RIP: 0010:memory_is_poisoned mm/kasan/generic.c:161 [inline]
RIP: 0010:check_region_inline mm/kasan/generic.c:180 [inline]
RIP: 0010:kasan_check_range+0x82/0x290 mm/kasan/generic.c:189
Code: 01 00 00 00 00 fc ff df 4f 8d 3c 31 4c 89 fd 4c 29 dd 48 83 fd 10 7f 29 48 85 ed 0f 84 3e 01 00 00 4c 89 cd 48 f7 d5 48 01 dd <41> 80 3b 00 0f 85 c9 01 00 00 49 ff c3 48 ff c5 75 ee e9 1e 01 00
RSP: 0018:ffffc90000b07320 EFLAGS: 00010086
RAX: 0000000001e89001 RBX: 1ffffffff46e2b8d RCX: ffffffff81705a7b
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffffa3715c68
RBP: ffffffffffffffff R08: ffffffffa3715c6f R09: 1ffffffff46e2b8d
R10: dffffc0000000000 R11: fffffbfff46e2b8d R12: ffff888020ef0000
R13: ffff888020ef0ad8 R14: dffffc0000000001 R15: fffffbfff46e2b8e
FS:  0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffbfff46e2b8d CR3: 000000004f6fe000 CR4: 0000000000350ef0
----------------
Code disassembly (best guess), 7 bytes skipped:
   0:	df 4f 8d             	fisttps -0x73(%rdi)
   3:	3c 31                	cmp    $0x31,%al
   5:	4c 89 fd             	mov    %r15,%rbp
   8:	4c 29 dd             	sub    %r11,%rbp
   b:	48 83 fd 10          	cmp    $0x10,%rbp
   f:	7f 29                	jg     0x3a
  11:	48 85 ed             	test   %rbp,%rbp
  14:	0f 84 3e 01 00 00    	je     0x158
  1a:	4c 89 cd             	mov    %r9,%rbp
  1d:	48 f7 d5             	not    %rbp
  20:	48 01 dd             	add    %rbx,%rbp
* 23:	41 80 3b 00          	cmpb   $0x0,(%r11) <-- trapping instruction
  27:	0f 85 c9 01 00 00    	jne    0x1f6
  2d:	49 ff c3             	inc    %r11
  30:	48 ff c5             	inc    %rbp
  33:	75 ee                	jne    0x23
  35:	e9                   	.byte 0xe9
  36:	1e                   	(bad)
  37:	01 00                	add    %eax,(%rax)

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/13 02:45 upstream 3022e9d00ebe 62026c85 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root BUG: unable to handle kernel paging request in try_to_wake_up
* Struck through repros no longer work on HEAD.