syzbot


BUG: scheduling while atomic in rcu_is_watching

Status: closed as invalid on 2024/09/13 10:29
Subsystems: kernel
[Documentation on labels]
First crash: 159d, last: 159d

Sample crash report:
BUG: scheduling while atomic: (null)/0/0x00000000
Kernel panic - not syncing: stack-protector: Kernel stack is corrupted in: vprintk_store+0x1159/0x1160
Oops: general protection fault, probably for non-canonical address 0xdffffbff8c6062eb: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 0 UID: 0 PID: 5547 Comm: syz.2.61 Tainted: G    B              6.11.0-rc4-next-20240821-syzkaller #0
Tainted: [B]=BAD_PAGE
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:vsnprintf+0x1d0e/0x1da0 lib/vsprintf.c:2905
Code: 42 0f b6 04 28 84 c0 0f 85 8f 00 00 00 41 c6 06 00 eb 0a e8 44 09 dd f5 48 8b 5c 24 28 2b 5c 24 58 48 c7 44 24 60 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 65 48 8b 04 25 28 00 00 00 48 3b 84 24
RSP: 0018:ffffc90004c47100 EFLAGS: 00010006
RAX: 0000000000000000 RBX: 0000000000000011 RCX: 0000000000040000
RDX: ffffc9000983a000 RSI: 00000000000094bd RDI: 00000000000094be
RBP: ffffc90004c471f0 R08: ffffffff8174e80c R09: ffffffff8174e0e1
R10: 0000000000000003 R11: ffff888024ad5a00 R12: ffffffff8c6062eb
R13: dffffc0000000000 R14: ffffc90004c47443 R15: ffffc90004c47483
FS:  00007efe6d8f06c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b32e1dff8 CR3: 000000007ad54000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 snprintf+0xda/0x120 lib/vsprintf.c:2959
 rcu_is_watching_curr_cpu include/linux/context_tracking.h:126 [inline]
 rcu_is_watching+0x15/0xb0 kernel/rcu/tree.c:737
 trace_lock_release include/trace/events/lock.h:69 [inline]
 lock_release+0xbf/0xa30 kernel/locking/lockdep.c:5773
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:vsnprintf+0x1d0e/0x1da0 lib/vsprintf.c:2905
Code: 42 0f b6 04 28 84 c0 0f 85 8f 00 00 00 41 c6 06 00 eb 0a e8 44 09 dd f5 48 8b 5c 24 28 2b 5c 24 58 48 c7 44 24 60 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 65 48 8b 04 25 28 00 00 00 48 3b 84 24
RSP: 0018:ffffc90004c47100 EFLAGS: 00010006
RAX: 0000000000000000 RBX: 0000000000000011 RCX: 0000000000040000
RDX: ffffc9000983a000 RSI: 00000000000094bd RDI: 00000000000094be
RBP: ffffc90004c471f0 R08: ffffffff8174e80c R09: ffffffff8174e0e1
R10: 0000000000000003 R11: ffff888024ad5a00 R12: ffffffff8c6062eb
R13: dffffc0000000000 R14: ffffc90004c47443 R15: ffffc90004c47483
FS:  00007efe6d8f06c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b32e1dff8 CR3: 000000007ad54000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	42 0f b6 04 28       	movzbl (%rax,%r13,1),%eax
   5:	84 c0                	test   %al,%al
   7:	0f 85 8f 00 00 00    	jne    0x9c
   d:	41 c6 06 00          	movb   $0x0,(%r14)
  11:	eb 0a                	jmp    0x1d
  13:	e8 44 09 dd f5       	call   0xf5dd095c
  18:	48 8b 5c 24 28       	mov    0x28(%rsp),%rbx
  1d:	2b 5c 24 58          	sub    0x58(%rsp),%ebx
  21:	48 c7 44 24 60 0e 36 	movq   $0x45e0360e,0x60(%rsp)
  28:	e0 45
* 2a:	4b c7 44 25 00 00 00 	movq   $0x0,0x0(%r13,%r12,1) <-- trapping instruction
  31:	00 00
  33:	65 48 8b 04 25 28 00 	mov    %gs:0x28,%rax
  3a:	00 00
  3c:	48                   	rex.W
  3d:	3b                   	.byte 0x3b
  3e:	84                   	.byte 0x84
  3f:	24                   	.byte 0x24

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/21 14:30 linux-next eb8c5ca373cb db5852f9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root BUG: scheduling while atomic in rcu_is_watching
* Struck through repros no longer work on HEAD.