syzbot


INFO: rcu detected stall in __do_sys_newfstat

Status: auto-closed as invalid on 2020/09/28 20:27
Subsystems: tomoyo
[Documentation on labels]
First crash: 1367d, last: 1367d

Sample crash report:
 #3: ffffffff8a17dbf8 (kbd_event_lock){..-.}-{2:2}, at: spin_lock include/linux/spinlock.h:353 [inline]
 #3: ffffffff8a17dbf8 (kbd_event_lock){..-.}-{2:2}, at: kbd_event+0x87/0x1830 drivers/tty/vt/keyboard.c:1496
 #4: ffffffff89bc1140 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:5779
5 locks held by systemd-udevd/29880:
=============================================
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...!: (2 ticks this GP) idle=332/1/0x4000000000000000 softirq=142927/142927 fqs=0 
	(detected by 0, t=11822 jiffies, g=254477, q=116)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 29880 Comm: systemd-udevd Not tainted 5.8.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:orc_find arch/x86/kernel/unwind_orc.c:162 [inline]
RIP: 0010:unwind_next_frame+0x238/0x1f90 arch/x86/kernel/unwind_orc.c:446
Code: ff 39 d6 0f 83 54 12 00 00 48 ba 00 00 00 00 00 fc ff df 41 89 f0 4a 8d 3c 85 6c 77 9a 8b 49 89 f9 49 c1 e9 03 45 0f b6 0c 11 <48> 89 fa 83 e2 07 83 c2 03 44 38 ca 7c 32 45 84 c9 74 2d 4c 89 44
RSP: 0018:ffffc90000da8838 EFLAGS: 00000807
RAX: 0000000000000000 RBX: 1ffff920001b510f RCX: ffffffff87e460af
RDX: dffffc0000000000 RSI: 000000000006e460 RDI: ffffffff8bb608ec
RBP: 0000000000000001 R08: 000000000006e460 R09: 0000000000000000
R10: 000000000007201e R11: 0000000000000001 R12: ffffc90000da8958
R13: ffffc90000da8945 R14: ffffc90000da8960 R15: ffffc90000da8910
FS:  00007f58b9c698c0(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055aeb7ef7008 CR3: 000000005b966000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 arch_stack_walk+0x81/0xf0 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0x8c/0xc0 kernel/stacktrace.c:123
 save_stack+0x1b/0x40 mm/kasan/common.c:48
 set_track mm/kasan/common.c:56 [inline]
 kasan_set_free_info mm/kasan/common.c:316 [inline]
 __kasan_slab_free+0xf5/0x140 mm/kasan/common.c:455
 __cache_free mm/slab.c:3426 [inline]
 kmem_cache_free+0x7f/0x310 mm/slab.c:3694
 inet_bind_bucket_destroy net/ipv4/inet_hashtables.c:88 [inline]
 inet_bind_bucket_destroy+0xdf/0x120 net/ipv4/inet_hashtables.c:84
 inet_twsk_bind_unhash+0x121/0x1b0 net/ipv4/inet_timewait_sock.c:39
 inet_twsk_kill+0x21d/0x470 net/ipv4/inet_timewait_sock.c:59
 call_timer_fn+0x1ac/0x760 kernel/time/timer.c:1404
 expire_timers kernel/time/timer.c:1449 [inline]
 __run_timers.part.0+0x54c/0xa20 kernel/time/timer.c:1773
 __run_timers kernel/time/timer.c:1745 [inline]
 run_timer_softirq+0xae/0x1a0 kernel/time/timer.c:1786
 __do_softirq+0x34c/0xa60 kernel/softirq.c:292
 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:711
 </IRQ>
 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline]
 run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline]
 do_softirq_own_stack+0x111/0x170 arch/x86/kernel/irq_64.c:77
 invoke_softirq kernel/softirq.c:387 [inline]
 __irq_exit_rcu kernel/softirq.c:417 [inline]
 irq_exit_rcu+0x229/0x270 kernel/softirq.c:429
 sysvec_apic_timer_interrupt+0x54/0x120 arch/x86/kernel/apic/apic.c:1091
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:596
RIP: 0010:tomoyo_domain_quota_is_ok+0x307/0x550 security/tomoyo/util.c:1071
Code: 41 5d 41 5e 41 5f c3 41 bc 01 00 00 00 31 db e8 9f 55 11 fe 89 d9 44 89 e0 31 ff d3 f8 83 e0 01 41 89 c7 89 c6 e8 09 52 11 fe <45> 85 ff 74 09 e8 7f 55 11 fe 41 83 c5 01 e8 76 55 11 fe 8d 73 01
RSP: 0018:ffffc90007def8f8 EFLAGS: 00000293
RAX: 0000000000000000 RBX: 000000000000000d RCX: ffffffff83626197
RDX: 0000000000000000 RSI: ffff8880886923c0 RDI: 0000000000000005
RBP: ffff8880a6926c80 R08: 0000000000000001 R09: ffffffff8cab9727
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000020
R13: 00000000000003be R14: dffffc0000000000 R15: 0000000000000000
 tomoyo_supervisor+0x2d4/0xeb0 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+0x25c/0x360 security/tomoyo/file.c:573
 tomoyo_path_perm+0x2e7/0x3f0 security/tomoyo/file.c:838
 security_inode_getattr+0xcf/0x140 security/security.c:1278
 vfs_getattr fs/stat.c:121 [inline]
 vfs_statx_fd+0x70/0xf0 fs/stat.c:151
 vfs_fstat include/linux/fs.h:3312 [inline]
 __do_sys_newfstat+0x88/0x100 fs/stat.c:398
 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:359
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f58b8adc2e2
Code: Bad RIP value.
RSP: 002b:00007ffdad4f8c08 EFLAGS: 00000246 ORIG_RAX: 0000000000000005
RAX: ffffffffffffffda RBX: 00007ffdad4f8f20 RCX: 00007f58b8adc2e2
RDX: 00007ffdad4f8c20 RSI: 00007ffdad4f8c20 RDI: 0000000000000007
RBP: 00007ffdad4f8ea0 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000080000 R11: 0000000000000246 R12: 000055aeb7ed74e0
R13: 00007ffdad4f8da8 R14: 00000000ffffffff R15: 00007ffdad4f8da0
rcu: rcu_preempt kthread starved for 11822 jiffies! g254477 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=0
rcu: 	Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior.
rcu: RCU grace-period kthread stack dump:
rcu_preempt     R  running task    29120    10      2 0x00004000
Call Trace:
 context_switch kernel/sched/core.c:3453 [inline]
 __schedule+0x8e1/0x1eb0 kernel/sched/core.c:4178
 schedule+0xd0/0x2a0 kernel/sched/core.c:4253
 schedule_timeout+0x148/0x250 kernel/time/timer.c:1897
 rcu_gp_fqs_loop kernel/rcu/tree.c:1874 [inline]
 rcu_gp_kthread+0xae5/0x1b50 kernel/rcu/tree.c:2044
 kthread+0x3b5/0x4a0 kernel/kthread.c:291
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:293

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/06/30 20:18 upstream 9ebcfadb0610 917afeaa .config console log report ci-upstream-kasan-gce-386
* Struck through repros no longer work on HEAD.