syzbot


INFO: rcu detected stall in security_file_ioctl (5)

Status: closed as invalid on 2022/02/08 10:00
Subsystems: tomoyo
[Documentation on labels]
First crash: 1148d, last: 909d
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in security_file_ioctl kernel 7 1687d 1688d 0/27 closed as invalid on 2019/12/04 14:04
upstream INFO: rcu detected stall in security_file_ioctl (2) kernel 6 1652d 1652d 0/27 closed as invalid on 2020/01/08 05:23
upstream INFO: rcu detected stall in security_file_ioctl (7) mm 1 241d 241d 0/27 auto-obsoleted due to no activity on 2024/02/17 10:34
upstream INFO: rcu detected stall in security_file_ioctl (4) tomoyo 1 1463d 1463d 0/27 auto-closed as invalid on 2020/10/13 12:41
linux-5.15 INFO: rcu detected stall in security_file_ioctl 1 22d 22d 0/3 upstream: reported on 2024/06/25 09:44
upstream INFO: rcu detected stall in security_file_ioctl (8) tomoyo C error 8 15d 55d 0/27 upstream: reported C repro on 2024/05/23 11:49
upstream INFO: rcu detected stall in security_file_ioctl (6) kernel 1 813d 813d 0/27 auto-closed as invalid on 2022/06/24 22:52
linux-6.1 INFO: rcu detected stall in security_file_ioctl origin:upstream C 1 11d 147d 0/3 upstream: reported C repro on 2024/02/20 18:28
upstream INFO: rcu detected stall in security_file_ioctl (3) kernel 4 1652d 1652d 0/27 closed as invalid on 2020/01/09 08:13

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-...!: (1 GPs behind) idle=1db/1/0x4000000000000000 softirq=189961/189963 fqs=2 
	(detected by 1, t=10502 jiffies, g=272061, q=279)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 18919 Comm: syz-executor.3 Not tainted 5.16.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:kasan_mem_to_shadow include/linux/kasan.h:56 [inline]
RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:129 [inline]
RIP: 0010:memory_is_poisoned mm/kasan/generic.c:159 [inline]
RIP: 0010:check_region_inline mm/kasan/generic.c:180 [inline]
RIP: 0010:kasan_check_range+0x41/0x180 mm/kasan/generic.c:189
Code: 0f 82 18 01 00 00 48 b8 ff ff ff ff ff 7f ff ff 48 39 c7 0f 86 05 01 00 00 49 83 e9 01 48 89 fd 48 b8 00 00 00 00 00 fc ff df <4d> 89 ca 48 c1 ed 03 49 c1 ea 03 48 01 c5 49 01 c2 48 89 e8 49 8d
RSP: 0018:ffffc90000007c30 EFLAGS: 00000082
RAX: dffffc0000000000 RBX: 1ffff92000000f8c RCX: ffffffff815d4338
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8d946750
RBP: ffffffff8d946750 R08: 0000000000000000 R09: ffffffff8d946757
R10: ffffffff8167bac5 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: ffffffff907c0a70 R15: 0000000000000000
FS:  00007f9b0584e700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9b073f0000 CR3: 00000000153d7000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <IRQ>
 instrument_atomic_read include/linux/instrumented.h:71 [inline]
 test_bit include/asm-generic/bitops/instrumented-non-atomic.h:134 [inline]
 cpumask_test_cpu include/linux/cpumask.h:344 [inline]
 cpu_online include/linux/cpumask.h:895 [inline]
 trace_lock_acquire include/trace/events/lock.h:13 [inline]
 lock_acquire+0xb8/0x510 kernel/locking/lockdep.c:5610
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0x39/0x50 kernel/locking/spinlock.c:162
 debug_object_deactivate lib/debugobjects.c:735 [inline]
 debug_object_deactivate+0x101/0x300 lib/debugobjects.c:723
 debug_hrtimer_deactivate kernel/time/hrtimer.c:425 [inline]
 debug_deactivate kernel/time/hrtimer.c:481 [inline]
 __run_hrtimer kernel/time/hrtimer.c:1653 [inline]
 __hrtimer_run_queues+0x3f8/0xe50 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x31c/0x790 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1086 [inline]
 __sysvec_apic_timer_interrupt+0x146/0x530 arch/x86/kernel/apic/apic.c:1103
 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1097
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:tomoyo_check_acl+0xb0/0x450 security/tomoyo/domain.c:173
Code: 03 00 00 49 8b 5d 00 49 39 dd 0f 84 fa 01 00 00 e8 e5 86 d4 fd 48 8d 7b 18 48 89 f8 48 89 fa 48 c1 e8 03 83 e2 07 0f b6 04 28 <38> d0 7f 08 84 c0 0f 85 f7 02 00 00 44 0f b6 73 18 31 ff 44 89 f6
RSP: 0018:ffffc9000418fbf0 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffff88801c44e780 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff83a3c9fb RDI: ffff88801c44e798
RBP: dffffc0000000000 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff83a3caa8 R11: 0000000000000000 R12: ffffc9000418fcb8
R13: ffff88801e0bb510 R14: 0000000000000002 R15: 0000000000000000
 tomoyo_path_number_perm+0x32a/0x590 security/tomoyo/file.c:733
 security_file_ioctl+0x50/0xb0 security/security.c:1533
 __do_sys_ioctl fs/ioctl.c:868 [inline]
 __se_sys_ioctl fs/ioctl.c:860 [inline]
 __x64_sys_ioctl+0xb3/0x200 fs/ioctl.c:860
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f9b06ed8da7
Code: 3c 1c 48 f7 d8 49 39 c4 72 b8 e8 04 54 02 00 85 c0 78 bd 48 83 c4 08 4c 89 e0 5b 41 5c c3 0f 1f 44 00 00 b8 10 00 00 00 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:00007f9b0584e1e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f9b06ed8da7
RDX: 0000000000000000 RSI: 0000000000006364 RDI: 00000000000000d8
RBP: 0000000000000000 R08: 00007f9b0584e700 R09: 00007f9b0584e700
R10: 00007f9b0584e9d0 R11: 0000000000000246 R12: 00007fffd30ba4be
R13: 00007fffd30ba4bf R14: 00007f9b0584e300 R15: 0000000000022000
 </TASK>
rcu: rcu_preempt kthread starved for 10498 jiffies! g272061 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=1
rcu: 	Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior.
rcu: RCU grace-period kthread stack dump:
task:rcu_preempt     state:R  running task     stack:28736 pid:   14 ppid:     2 flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:4986 [inline]
 __schedule+0xab2/0x4f00 kernel/sched/core.c:6296
 schedule+0xd2/0x260 kernel/sched/core.c:6369
 schedule_timeout+0x14a/0x2a0 kernel/time/timer.c:1881
 rcu_gp_fqs_loop+0x186/0x810 kernel/rcu/tree.c:1963
 rcu_gp_kthread+0x1de/0x320 kernel/rcu/tree.c:2136
 kthread+0x2e9/0x3a0 kernel/kthread.c:359
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
NMI backtrace for cpu 1
CPU: 1 PID: 18918 Comm: syz-executor.4 Not tainted 5.16.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x1b3/0x230 lib/nmi_backtrace.c:62
 trigger_single_cpu_backtrace include/linux/nmi.h:164 [inline]
 rcu_check_gp_kthread_starvation.cold+0x1fb/0x200 kernel/rcu/tree_stall.h:458
 print_other_cpu_stall kernel/rcu/tree_stall.h:563 [inline]
 check_cpu_stall kernel/rcu/tree_stall.h:706 [inline]
 rcu_pending kernel/rcu/tree.c:3919 [inline]
 rcu_sched_clock_irq+0x1f7c/0x2150 kernel/rcu/tree.c:2617
 update_process_times+0x16d/0x200 kernel/time/timer.c:1785
 tick_sched_handle+0x9b/0x180 kernel/time/tick-sched.c:226
 tick_sched_timer+0x1b0/0x2d0 kernel/time/tick-sched.c:1428
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x1c0/0xe50 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x31c/0x790 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1086 [inline]
 __sysvec_apic_timer_interrupt+0x146/0x530 arch/x86/kernel/apic/apic.c:1103
 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1097
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:csd_lock_wait kernel/smp.c:440 [inline]
RIP: 0010:smp_call_function_single+0x1b0/0x4b0 kernel/smp.c:758
Code: 10 8b 7c 24 1c 48 8d 74 24 40 48 89 44 24 50 48 8b 44 24 08 48 89 44 24 58 e8 bc fa ff ff 41 89 c5 eb 07 e8 e2 86 0b 00 f3 90 <44> 8b 64 24 48 31 ff 41 83 e4 01 44 89 e6 e8 ed 88 0b 00 45 85 e4
RSP: 0018:ffffc90004167220 EFLAGS: 00000246
RAX: 0000000000040000 RBX: 1ffff9200082ce48 RCX: ffffc9000abd1000
RDX: 0000000000040000 RSI: ffffffff816cc9fe RDI: 0000000000000003
RBP: ffffc900041672e8 R08: 0000000000000000 R09: ffffffff8ffc8a47
R10: ffffffff816cca13 R11: 0000000000000000 R12: 0000000000000001
R13: 0000000000000000 R14: 0000000000000001 R15: ffff8880b9c3aac0
 rcu_barrier+0x2a6/0x430 kernel/rcu/tree.c:4065
 nft_rhash_destroy+0x25/0x40 net/netfilter/nft_set_hash.c:411
 nf_tables_newset+0x2773/0x3360 net/netfilter/nf_tables_api.c:4484
 nfnetlink_rcv_batch+0x1716/0x25f0 net/netfilter/nfnetlink.c:513
 nfnetlink_rcv_skb_batch net/netfilter/nfnetlink.c:634 [inline]
 nfnetlink_rcv+0x3af/0x420 net/netfilter/nfnetlink.c:652
 netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline]
 netlink_unicast+0x539/0x7e0 net/netlink/af_netlink.c:1343
 netlink_sendmsg+0x904/0xe00 net/netlink/af_netlink.c:1919
 sock_sendmsg_nosec net/socket.c:705 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:725
 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2413
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2467
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2496
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f53dc12ffe9
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:00007f53daaa5168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f53dc242f60 RCX: 00007f53dc12ffe9
RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000000000004
RBP: 00007f53dc18a08d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffec5bfbaff R14: 00007f53daaa5300 R15: 0000000000022000
 </TASK>
----------------
Code disassembly (best guess):
   0:	0f 82 18 01 00 00    	jb     0x11e
   6:	48 b8 ff ff ff ff ff 	movabs $0xffff7fffffffffff,%rax
   d:	7f ff ff
  10:	48 39 c7             	cmp    %rax,%rdi
  13:	0f 86 05 01 00 00    	jbe    0x11e
  19:	49 83 e9 01          	sub    $0x1,%r9
  1d:	48 89 fd             	mov    %rdi,%rbp
  20:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  27:	fc ff df
* 2a:	4d 89 ca             	mov    %r9,%r10 <-- trapping instruction
  2d:	48 c1 ed 03          	shr    $0x3,%rbp
  31:	49 c1 ea 03          	shr    $0x3,%r10
  35:	48 01 c5             	add    %rax,%rbp
  38:	49 01 c2             	add    %rax,%r10
  3b:	48 89 e8             	mov    %rbp,%rax
  3e:	49                   	rex.WB
  3f:	8d                   	.byte 0x8d

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/01/20 00:07 upstream 1d1df41c5a33 5da9499f .config console log report info ci-upstream-kasan-gce-root INFO: rcu detected stall in security_file_ioctl
2021/11/04 17:53 upstream 7ddb58cb0eca 4c1be0be .config console log report info ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in security_file_ioctl
2021/08/16 03:48 upstream 7c60610d4767 2489ab88 .config console log report info ci-upstream-kasan-gce-root INFO: rcu detected stall in security_file_ioctl
2021/11/24 13:39 bpf c0d95d3380ee 545ab074 .config console log report info ci-upstream-bpf-kasan-gce INFO: rcu detected stall in security_file_ioctl
2021/07/10 21:46 bpf 5d52c906f059 8f5a7b8c .config console log report info ci-upstream-bpf-kasan-gce INFO: rcu detected stall in security_file_ioctl
2021/12/05 10:57 bpf-next 866de4074443 a617004c .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in security_file_ioctl
2021/08/12 06:48 bpf-next 25dc3895baaa 6972b106 .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in security_file_ioctl
2021/05/26 01:16 bpf-next a720a2a0ad6c 93d3a9f6 .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in security_file_ioctl
2021/08/02 16:13 linux-next 8d4b477da1a8 6c236867 .config console log report info ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in security_file_ioctl
* Struck through repros no longer work on HEAD.