syzbot


BUG: soft lockup in preempt_count_sub

Status: auto-closed as invalid on 2022/02/22 15:22
Reported-by: syzbot+8205ff6f83a86677e671@syzkaller.appspotmail.com
First crash: 1155d, last: 1135d

Sample crash report:
REISERFS warning (device loop3): sh-2021 reiserfs_fill_super: can not find reiserfs on loop3
netlink: 24 bytes leftover after parsing attributes in process `syz-executor.5'.
IPv6: ADDRCONF(NETDEV_UP): vlan1154: link is not ready
watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [syz-executor.0:809]
Modules linked in:
irq event stamp: 3575429
hardirqs last  enabled at (3575428): [<ffffffff81003ce4>] trace_hardirqs_on_thunk+0x1a/0x1c
hardirqs last disabled at (3575429): [<ffffffff81003d00>] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last  enabled at (104178): [<ffffffff88400678>] __do_softirq+0x678/0x980 kernel/softirq.c:318
softirqs last disabled at (104473): [<ffffffff813927d5>] invoke_softirq kernel/softirq.c:372 [inline]
softirqs last disabled at (104473): [<ffffffff813927d5>] irq_exit+0x215/0x260 kernel/softirq.c:412
CPU: 0 PID: 809 Comm: syz-executor.0 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:preempt_count_sub+0x63/0x150 kernel/sched/core.c:3274
Code: 75 18 65 8b 05 3e 72 c0 7e 25 ff ff ff 7f 39 c3 7f 1a 81 fb fe 00 00 00 76 6a 65 8b 05 26 72 c0 7e f7 db 65 01 1d 1d 72 c0 7e <5b> c3 e8 b6 e4 31 02 85 c0 74 f5 48 c7 c0 40 f7 36 8d 48 ba 00 00
RSP: 0018:ffff8880ba007cd0 EFLAGS: 00000213 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000102 RBX: 00000000ffffffff RCX: 0000000000000000
RDX: 0000000000000004 RSI: ffffffff83771e31 RDI: 0000000000000001
RBP: dffffc0000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffffffff89f88280
R13: ffffffff89f88280 R14: 0000000000000000 R15: 0000000000000000
FS:  00007fb8a3cd9700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31724000 CR3: 0000000014e9e000 CR4: 00000000003426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 rcu_lockdep_current_cpu_online kernel/rcu/tree.c:1081 [inline]
 rcu_lockdep_current_cpu_online+0x12f/0x1b0 kernel/rcu/tree.c:1068
 rcu_read_lock_sched_held+0xd3/0x1d0 kernel/rcu/update.c:115
ieee802154 phy0 wpan0: encryption failed: -22
 trace_timer_expire_entry include/trace/events/timer.h:90 [inline]
 call_timer_fn+0x65d/0x700 kernel/time/timer.c:1337
ieee802154 phy1 wpan1: encryption failed: -22
 expire_timers+0x243/0x4e0 kernel/time/timer.c:1375
 __run_timers kernel/time/timer.c:1696 [inline]
 run_timer_softirq+0x21c/0x670 kernel/time/timer.c:1709
 __do_softirq+0x265/0x980 kernel/softirq.c:292
 invoke_softirq kernel/softirq.c:372 [inline]
 irq_exit+0x215/0x260 kernel/softirq.c:412
 exiting_irq arch/x86/include/asm/apic.h:536 [inline]
 smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1098
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
 </IRQ>
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline]
RIP: 0010:lock_acquire+0x1ec/0x3c0 kernel/locking/lockdep.c:3911
Code: 08 00 00 00 00 00 00 48 c1 e8 03 80 3c 10 00 0f 85 b7 01 00 00 48 83 3d 09 2e a6 08 00 0f 84 2a 01 00 00 48 8b 7c 24 08 57 9d <0f> 1f 44 00 00 48 83 c4 18 5b 5d 41 5c 41 5d 41 5e 41 5f c3 65 8b
RSP: 0018:ffff8880241779b8 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13
RAX: 1ffffffff13e3051 RBX: ffff888035b9e2c0 RCX: ffffffff814b2033
RDX: dffffc0000000000 RSI: 0000000000000004 RDI: 0000000000000286
RBP: ffff888238a78388 R08: 0000000000000000 R09: fffffbfff1a3fea0
R10: 0000000000000003 R11: 0000000000074071 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000001
 kernfs_drain fs/kernfs/dir.c:468 [inline]
 __kernfs_remove+0x85a/0xa80 fs/kernfs/dir.c:1316
 kernfs_remove+0x1f/0x30 fs/kernfs/dir.c:1351
 sysfs_remove_dir+0xc1/0x100 fs/sysfs/dir.c:101
 kobject_del lib/kobject.c:592 [inline]
 kobject_del+0x43/0xf0 lib/kobject.c:584
 blk_unregister_queue+0x138/0x210 block/blk-sysfs.c:1007
 del_gendisk+0x447/0xa80 block/genhd.c:789
 loop_remove drivers/block/loop.c:2066 [inline]
 loop_control_ioctl drivers/block/loop.c:2165 [inline]
 loop_control_ioctl+0x3b1/0x480 drivers/block/loop.c:2131
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:501 [inline]
 do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688
 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705
 __do_sys_ioctl fs/ioctl.c:712 [inline]
 __se_sys_ioctl fs/ioctl.c:710 [inline]
 __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fb8a6763a39
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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fb8a3cd9188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fb8a6866f60 RCX: 00007fb8a6763a39
RDX: 000000000000000b RSI: 0000000000004c81 RDI: 0000000000000005
RBP: 00007fb8a67bde8f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffed8c371df R14: 00007fb8a3cd9300 R15: 0000000000022000
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1 skipped: idling at native_safe_halt+0xe/0x10 arch/x86/include/asm/irqflags.h:60
----------------
Code disassembly (best guess):
   0:	75 18                	jne    0x1a
   2:	65 8b 05 3e 72 c0 7e 	mov    %gs:0x7ec0723e(%rip),%eax        # 0x7ec07247
   9:	25 ff ff ff 7f       	and    $0x7fffffff,%eax
   e:	39 c3                	cmp    %eax,%ebx
  10:	7f 1a                	jg     0x2c
  12:	81 fb fe 00 00 00    	cmp    $0xfe,%ebx
  18:	76 6a                	jbe    0x84
  1a:	65 8b 05 26 72 c0 7e 	mov    %gs:0x7ec07226(%rip),%eax        # 0x7ec07247
  21:	f7 db                	neg    %ebx
  23:	65 01 1d 1d 72 c0 7e 	add    %ebx,%gs:0x7ec0721d(%rip)        # 0x7ec07247
* 2a:	5b                   	pop    %rbx <-- trapping instruction
  2b:	c3                   	retq
  2c:	e8 b6 e4 31 02       	callq  0x231e4e7
  31:	85 c0                	test   %eax,%eax
  33:	74 f5                	je     0x2a
  35:	48 c7 c0 40 f7 36 8d 	mov    $0xffffffff8d36f740,%rax
  3c:	48                   	rex.W
  3d:	ba                   	.byte 0xba

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/10/25 15:22 linux-4.19.y 3f8a27f9e27b 4f0000ee .config console log report info ci2-linux-4-19 BUG: soft lockup in preempt_count_sub
2021/10/05 22:33 linux-4.19.y c2276d585654 8a6b1a8d .config console log report info ci2-linux-4-19 BUG: soft lockup in preempt_count_sub
* Struck through repros no longer work on HEAD.