syzbot


INFO: rcu detected stall in sys_getsockopt (7)

Status: closed as invalid on 2022/02/08 10:10
Subsystems: netfilter
[Documentation on labels]
First crash: 1117d, last: 1068d
Similar bugs (16)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_getsockopt (2) kernel 1 1793d 1793d 0/28 closed as invalid on 2020/01/08 05:23
linux-4.19 INFO: rcu detected stall in sys_getsockopt 1 806d 806d 0/1 auto-obsoleted due to no activity on 2023/01/19 05:52
upstream INFO: rcu detected stall in sys_getsockopt (11) netfilter 4 340d 352d 0/28 auto-obsoleted due to no activity on 2024/03/30 17:47
linux-5.15 INFO: rcu detected stall in sys_getsockopt 1 359d 359d 0/3 auto-obsoleted due to no activity on 2024/03/21 16:23
linux-5.15 INFO: rcu detected stall in sys_getsockopt (2) 2 10d 45d 0/3 upstream: reported on 2024/10/21 14:07
upstream INFO: rcu detected stall in sys_getsockopt (3) kernel 1 1793d 1793d 0/28 closed as invalid on 2020/01/08 05:33
upstream INFO: rcu detected stall in sys_getsockopt (4) kernel 3 1793d 1793d 0/28 closed as invalid on 2020/01/09 08:13
upstream INFO: rcu detected stall in sys_getsockopt (6) kvm 3 1211d 1279d 0/28 auto-closed as invalid on 2021/11/10 12:58
upstream INFO: rcu detected stall in sys_getsockopt (5) sctp 2 1611d 1654d 0/28 auto-closed as invalid on 2020/10/06 19:28
linux-6.1 INFO: rcu detected stall in sys_getsockopt 4 276d 434d 0/3 auto-obsoleted due to no activity on 2024/06/12 17:46
upstream INFO: rcu detected stall in sys_getsockopt (10) mm 9 471d 553d 0/28 auto-obsoleted due to no activity on 2023/11/20 15:28
upstream INFO: rcu detected stall in sys_getsockopt (9) kernel 6 674d 830d 0/28 auto-obsoleted due to no activity on 2023/05/01 05:21
upstream INFO: rcu detected stall in sys_getsockopt (8) net 2 958d 974d 0/28 auto-closed as invalid on 2022/07/21 00:25
upstream INFO: rcu detected stall in sys_getsockopt kernel 2 1828d 1828d 0/28 closed as invalid on 2019/12/04 14:04
android-54 BUG: soft lockup in sys_getsockopt 1 233d 233d 0/2 auto-obsoleted due to no activity on 2024/07/15 21:19
android-5-15 BUG: soft lockup in sys_getsockopt 6 128d 226d 0/2 auto-obsoleted due to no activity on 2024/10/28 21:41

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-...0: (3 ticks this GP) idle=167/1/0x4000000000000000 softirq=164759/164759 fqs=3141 
	(detected by 1, t=10502 jiffies, g=169933, q=1683)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 3647 Comm: syz-executor.2 Not tainted 5.16.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:rcu_read_lock include/linux/rcupdate.h:689 [inline]
RIP: 0010:advance_sched+0x4b5/0x9a0 net/sched/sch_taprio.c:767
Code: 31 d2 31 f6 b9 02 00 00 00 68 a7 06 5f 87 48 c7 c7 a0 3d b8 8b e8 0b ab fd f9 e8 76 f3 03 fa 31 ff 89 c3 89 c6 e8 2b 8f 18 fa <84> db 58 0f 84 79 01 00 00 e8 3d 8b 18 fa 48 8b 7c 24 10 e8 63 fe
RSP: 0018:ffffc90000007dc8 EFLAGS: 00000046
RAX: 0000000000000000 RBX: 0000000000000001 RCX: ffff888023441d00
RDX: 0000000000000000 RSI: ffff888023441d00 RDI: 0000000000000003
RBP: 0000000000001dc1 R08: 0000000000000000 R09: 0000000000000001
R10: ffffffff875f06e5 R11: 0000000000000000 R12: ffff88801d642d80
R13: 16c66bcd43e295ce R14: ffff88801d642da0 R15: 16c66bcd43e295ce
FS:  0000555555f95400(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fedef3c4dd8 CR3: 0000000075fd7000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x609/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:lock_acquire+0x1ef/0x510 kernel/locking/lockdep.c:5605
Code: c6 a5 7e 83 f8 01 0f 85 b4 02 00 00 9c 58 f6 c4 02 0f 85 9f 02 00 00 48 83 7c 24 08 00 74 01 fb 48 b8 00 00 00 00 00 fc ff df <48> 01 c3 48 c7 03 00 00 00 00 48 c7 43 08 00 00 00 00 48 8b 84 24
RSP: 0018:ffffc9000299fa90 EFLAGS: 00000206
RAX: dffffc0000000000 RBX: 1ffff92000533f54 RCX: 00000000000085be
RDX: 1ffff110046884eb RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000001 R08: 0000000000000000 R09: ffffffff8ff76a37
R10: fffffbfff1feed46 R11: 0000000000000001 R12: 0000000000000001
R13: 0000000000000000 R14: ffff88807840b928 R15: 0000000000000000
 __might_fault mm/memory.c:5253 [inline]
 __might_fault+0x104/0x170 mm/memory.c:5238
 _copy_to_user+0x27/0x150 lib/usercopy.c:28
 copy_to_user include/linux/uaccess.h:200 [inline]
 copy_entries_to_user net/ipv4/netfilter/ip_tables.c:837 [inline]
 get_entries net/ipv4/netfilter/ip_tables.c:1024 [inline]
 do_ipt_get_ctl+0x6a6/0x9d0 net/ipv4/netfilter/ip_tables.c:1663
 nf_getsockopt+0x72/0xd0 net/netfilter/nf_sockopt.c:116
 ip_getsockopt net/ipv4/ip_sockglue.c:1786 [inline]
 ip_getsockopt+0x164/0x1c0 net/ipv4/ip_sockglue.c:1765
 tcp_getsockopt+0x86/0xd0 net/ipv4/tcp.c:4251
 __sys_getsockopt+0x21f/0x5f0 net/socket.c:2220
 __do_sys_getsockopt net/socket.c:2235 [inline]
 __se_sys_getsockopt net/socket.c:2232 [inline]
 __x64_sys_getsockopt+0xba/0x150 net/socket.c:2232
 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:0x7fedef2e34ba
Code: 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 37 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:00007fedef928688 EFLAGS: 00000212 ORIG_RAX: 0000000000000037
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fedef2e34ba
RDX: 0000000000000041 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 00007fedef9286b0 R08: 00007fedef9286ac R09: fefefefefeff646b
R10: 00007fedef928710 R11: 0000000000000212 R12: 00007fedef928710
R13: 0000000000000003 R14: 00007fedef9286ac R15: 00007fedef3c5aa0
 </TASK>
----------------
Code disassembly (best guess):
   0:	31 d2                	xor    %edx,%edx
   2:	31 f6                	xor    %esi,%esi
   4:	b9 02 00 00 00       	mov    $0x2,%ecx
   9:	68 a7 06 5f 87       	pushq  $0xffffffff875f06a7
   e:	48 c7 c7 a0 3d b8 8b 	mov    $0xffffffff8bb83da0,%rdi
  15:	e8 0b ab fd f9       	callq  0xf9fdab25
  1a:	e8 76 f3 03 fa       	callq  0xfa03f395
  1f:	31 ff                	xor    %edi,%edi
  21:	89 c3                	mov    %eax,%ebx
  23:	89 c6                	mov    %eax,%esi
  25:	e8 2b 8f 18 fa       	callq  0xfa188f55
* 2a:	84 db                	test   %bl,%bl <-- trapping instruction
  2c:	58                   	pop    %rax
  2d:	0f 84 79 01 00 00    	je     0x1ac
  33:	e8 3d 8b 18 fa       	callq  0xfa188b75
  38:	48 8b 7c 24 10       	mov    0x10(%rsp),%rdi
  3d:	e8                   	.byte 0xe8
  3e:	63 fe                	movsxd %esi,%edi

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/01/02 10:01 upstream 278218f6778b e1768e9c .config console log report info ci-upstream-kasan-gce INFO: rcu detected stall in sys_getsockopt
2021/11/14 01:25 upstream a9b9669d9822 83f5c9b5 .config console log report info ci-upstream-kasan-gce-386 INFO: rcu detected stall in sys_getsockopt
* Struck through repros no longer work on HEAD.