syzbot


BUG: soft lockup in process_srcu

Status: auto-closed as invalid on 2022/08/20 17:51
Reported-by: syzbot+af8842a8428d79d47066@syzkaller.appspotmail.com
First crash: 945d, last: 945d

Sample crash report:
watchdog: BUG: soft lockup - CPU#0 stuck for 3513329329s! [kworker/0:4:349]
Modules linked in:
CPU: 0 PID: 349 Comm: kworker/0:4 Not tainted 5.4.180-syzkaller-00005-gcefc335374d2 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: rcu_gp process_srcu
RIP: 0010:preempt_count_add+0x0/0x180 kernel/sched/core.c:3998
Code: e8 c5 d9 49 00 e9 36 ff ff ff 89 e9 80 e1 07 80 c1 03 38 c1 0f 8c 40 ff ff ff 48 89 ef e8 a8 d9 49 00 e9 33 ff ff ff 0f 1f 00 <41> 57 41 56 53 89 fb 48 c7 c0 40 f9 98 86 48 c1 e8 03 49 bf 00 00
RSP: 0018:ffff8881bbcffbb8 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: 0000000080000000 RBX: 000000040c308ae0 RCX: 0000000000000001
RDX: 0000000000000004 RSI: 0000000000000001 RDI: 0000000000000001
RBP: 00000000000029c2 R08: ffffffff821c4664 R09: ffffed103779ff84
R10: ffffed103779ff84 R11: 1ffff1103779ff83 R12: 0000000000000121
R13: 1ffffffff0bcd721 R14: 0000000000002afa R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2bca116718 CR3: 00000001e10a4000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 delay_tsc+0x71/0xe0 arch/x86/lib/delay.c:68
 try_check_zero+0x2e2/0x350 kernel/rcu/srcutree.c:708
 srcu_advance_state kernel/rcu/srcutree.c:1146 [inline]
 process_srcu+0x1b5/0xd40 kernel/rcu/srcutree.c:1241
 process_one_work+0x6ca/0xc40 kernel/workqueue.c:2287
 worker_thread+0xae0/0x1440 kernel/workqueue.c:2433
 kthread+0x2d8/0x360 kernel/kthread.c:288
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 1665 Comm: syz-executor.5 Not tainted 5.4.180-syzkaller-00005-gcefc335374d2 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__read_once_size include/linux/compiler.h:268 [inline]
RIP: 0010:csd_lock_wait kernel/smp.c:109 [inline]
RIP: 0010:smp_call_function_single+0x1f2/0x410 kernel/smp.c:311
Code: 44 8b 64 24 38 44 89 e6 83 e6 01 31 ff e8 86 23 0a 00 41 83 e4 01 75 10 e8 cb 1f 0a 00 e9 b8 00 00 00 66 0f 1f 44 00 00 f3 90 <42> 0f b6 04 3b 84 c0 75 15 f7 44 24 38 01 00 00 00 0f 84 94 00 00
RSP: 0018:ffff8881e2bd7be0 EFLAGS: 00000246
RAX: ffffffff81561f3e RBX: 1ffff1103c57af83 RCX: 0000000000040000
RDX: ffffc90002355000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: ffff8881e2bd7c88 R08: ffffffff81561f0a R09: ffffed103edcb1a1
R10: ffffed103edcb1a1 R11: 1ffff1103edcb1a0 R12: 0000000000000001
R13: ffff8881e2bd7c18 R14: 0000000000000000 R15: dffffc0000000000
FS:  00007fd6c3069700(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020aef000 CR3: 00000001c10b0000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 wrmsr_safe_on_cpu+0xab/0x170 arch/x86/lib/msr-smp.c:204
 msr_write+0x174/0x210 arch/x86/kernel/msr.c:95
 do_loop_readv_writev fs/read_write.c:713 [inline]
 do_iter_write+0x3dc/0x570 fs/read_write.c:972
 vfs_writev fs/read_write.c:1015 [inline]
 do_pwritev+0x252/0x440 fs/read_write.c:1112
 do_syscall_64+0xcb/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7fd6c3ef30e9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fd6c3069168 EFLAGS: 00000246 ORIG_RAX: 0000000000000128
RAX: ffffffffffffffda RBX: 00007fd6c4005f60 RCX: 00007fd6c3ef30e9
RDX: 0000000000000002 RSI: 0000000020000100 RDI: 0000000000000004
RBP: 00007fd6c3f4d08d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000010 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffcdcaab02f R14: 00007fd6c3069300 R15: 0000000000022000
----------------
Code disassembly (best guess):
   0:	e8 c5 d9 49 00       	callq  0x49d9ca
   5:	e9 36 ff ff ff       	jmpq   0xffffff40
   a:	89 e9                	mov    %ebp,%ecx
   c:	80 e1 07             	and    $0x7,%cl
   f:	80 c1 03             	add    $0x3,%cl
  12:	38 c1                	cmp    %al,%cl
  14:	0f 8c 40 ff ff ff    	jl     0xffffff5a
  1a:	48 89 ef             	mov    %rbp,%rdi
  1d:	e8 a8 d9 49 00       	callq  0x49d9ca
  22:	e9 33 ff ff ff       	jmpq   0xffffff5a
  27:	0f 1f 00             	nopl   (%rax)
* 2a:	41 57                	push   %r15 <-- trapping instruction
  2c:	41 56                	push   %r14
  2e:	53                   	push   %rbx
  2f:	89 fb                	mov    %edi,%ebx
  31:	48 c7 c0 40 f9 98 86 	mov    $0xffffffff8698f940,%rax
  38:	48 c1 e8 03          	shr    $0x3,%rax
  3c:	49                   	rex.WB
  3d:	bf                   	.byte 0xbf

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/04/22 17:50 android12-5.4 cefc335374d2 131df97d .config console log report info ci2-android-5-4-kasan BUG: soft lockup in process_srcu
* Struck through repros no longer work on HEAD.