syzbot


INFO: rcu detected stall in tipc_sendstream

Status: auto-closed as invalid on 2021/12/27 04:48
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 401d, last: 401d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in tipc_sendstream (2) 2 221d 221d 0/24 auto-closed as invalid on 2022/06/25 08:10

Sample crash report:
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	0-....: (10499 ticks this GP) idle=7e3/1/0x4000000000000000 softirq=52844/52844 fqs=5109 
	(t=10500 jiffies g=96633 q=1293)
NMI backtrace for cpu 0
CPU: 0 PID: 21565 Comm: syz-executor.1 Not tainted 5.15.0-rc7-next-20211027-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:105
 nmi_trigger_cpumask_backtrace+0x1ae/0x220 lib/nmi_backtrace.c:62
 trigger_single_cpu_backtrace include/linux/nmi.h:164 [inline]
 rcu_dump_cpu_stacks+0x25e/0x3f0 kernel/rcu/tree_stall.h:343
 print_cpu_stall kernel/rcu/tree_stall.h:604 [inline]
 check_cpu_stall kernel/rcu/tree_stall.h:688 [inline]
 rcu_pending kernel/rcu/tree.c:3922 [inline]
 rcu_sched_clock_irq.cold+0x9d/0x746 kernel/rcu/tree.c:2620
 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:bytes_is_nonzero mm/kasan/generic.c:85 [inline]
RIP: 0010:memory_is_nonzero mm/kasan/generic.c:102 [inline]
RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:128 [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+0xde/0x180 mm/kasan/generic.c:189
Code: 74 f2 48 89 c2 b8 01 00 00 00 48 85 d2 75 56 5b 5d 41 5c c3 48 85 d2 74 5e 48 01 ea eb 09 48 83 c0 01 48 39 d0 74 50 80 38 00 <74> f2 eb d4 41 bc 08 00 00 00 48 89 ea 45 29 dc 4d 8d 1c 2c eb 0c
RSP: 0018:ffffc90004faeef8 EFLAGS: 00000246
RAX: ffffed100fc71ec6 RBX: ffffed100fc71ec7 RCX: ffffffff81964548
RDX: ffffed100fc71ec7 RSI: 0000000000000008 RDI: ffff88807e38f630
RBP: ffffed100fc71ec6 R08: 0000000000000000 R09: ffff88807e38f637
R10: ffffed100fc71ec6 R11: 0000000000000001 R12: ffffc90004faf060
R13: dffffc0000000000 R14: ffff88807e38f580 R15: 0000000000000010
 instrument_atomic_read include/linux/instrumented.h:71 [inline]
 atomic_long_read include/linux/atomic/atomic-instrumented.h:1183 [inline]
 perf_event_count kernel/events/core.c:4414 [inline]
 perf_output_read_group kernel/events/core.c:6924 [inline]
 perf_output_read+0xc28/0x1310 kernel/events/core.c:6961
 perf_output_sample+0xd12/0x1d80 kernel/events/core.c:7008
 __perf_event_output kernel/events/core.c:7493 [inline]
 perf_event_output_forward+0x119/0x280 kernel/events/core.c:7507
 __perf_event_overflow+0x13c/0x3d0 kernel/events/core.c:9207
 perf_swevent_overflow kernel/events/core.c:9283 [inline]
 perf_swevent_event+0x347/0x550 kernel/events/core.c:9311
 do_perf_sw_event kernel/events/core.c:9424 [inline]
 ___perf_sw_event+0x31a/0x570 kernel/events/core.c:9455
 __perf_sw_event+0x54/0x130 kernel/events/core.c:9467
 perf_sw_event include/linux/perf_event.h:1174 [inline]
 mm_account_fault mm/memory.c:4747 [inline]
 handle_mm_fault+0x5ef/0x790 mm/memory.c:4798
 do_user_addr_fault+0x489/0x11c0 arch/x86/mm/fault.c:1397
 handle_page_fault arch/x86/mm/fault.c:1485 [inline]
 exc_page_fault+0x9e/0x180 arch/x86/mm/fault.c:1541
 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:568
RIP: 0010:copy_user_enhanced_fast_string+0xe/0x30 arch/x86/lib/copy_user_64.S:206
Code: 89 d1 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 31 c0 0f 01 ca c3 0f 1f 80 00 00 00 00 0f 01 cb 83 fa 40 0f 82 70 ff ff ff 89 d1 <f3> a4 31 c0 0f 01 ca c3 66 2e 0f 1f 84 00 00 00 00 00 89 d1 f3 a4
RSP: 0018:ffffc90004faf7b0 EFLAGS: 00050206
RAX: 0000000000000001 RBX: 00000000000101d0 RCX: 000000000000ebb0
RDX: 00000000000101d0 RSI: 0000000020ebc000 RDI: ffff8880302c1708
RBP: ffff8880302c00e8 R08: 0000000000000001 R09: ffff8880302d02b7
R10: ffffed100605a056 R11: 0000000000000000 R12: 0000000020eba9e0
R13: 0000000020ecabb0 R14: 0000000000000000 R15: ffffc90004fafd40
 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline]
 raw_copy_from_user arch/x86/include/asm/uaccess_64.h:52 [inline]
 copyin.part.0+0xe4/0x110 lib/iov_iter.c:168
 copyin lib/iov_iter.c:767 [inline]
 _copy_from_iter+0x2a3/0x1320 lib/iov_iter.c:767
 copy_from_iter include/linux/uio.h:164 [inline]
 copy_from_iter_full include/linux/uio.h:170 [inline]
 tipc_msg_build+0x2f6/0x10b0 net/tipc/msg.c:404
 __tipc_sendstream+0x6d0/0x11a0 net/tipc/socket.c:1616
 tipc_sendstream+0x4c/0x70 net/tipc/socket.c:1547
 sock_sendmsg_nosec net/socket.c:704 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:724
 sock_write_iter+0x289/0x3c0 net/socket.c:1057
 call_write_iter include/linux/fs.h:2161 [inline]
 new_sync_write+0x429/0x660 fs/read_write.c:503
 vfs_write+0x7cd/0xae0 fs/read_write.c:590
 ksys_write+0x1ee/0x250 fs/read_write.c:643
 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:0x7fac31cdda39
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:00007fac2f253188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fac31df0f60 RCX: 00007fac31cdda39
RDX: 00000000fffffd6d RSI: 00000000200001c0 RDI: 0000000000000006
RBP: 00007fac31d37e8f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffce411d7cf R14: 00007fac2f253300 R15: 0000000000022000
 </TASK>
----------------
Code disassembly (best guess):
   0:	74 f2                	je     0xfffffff4
   2:	48 89 c2             	mov    %rax,%rdx
   5:	b8 01 00 00 00       	mov    $0x1,%eax
   a:	48 85 d2             	test   %rdx,%rdx
   d:	75 56                	jne    0x65
   f:	5b                   	pop    %rbx
  10:	5d                   	pop    %rbp
  11:	41 5c                	pop    %r12
  13:	c3                   	retq
  14:	48 85 d2             	test   %rdx,%rdx
  17:	74 5e                	je     0x77
  19:	48 01 ea             	add    %rbp,%rdx
  1c:	eb 09                	jmp    0x27
  1e:	48 83 c0 01          	add    $0x1,%rax
  22:	48 39 d0             	cmp    %rdx,%rax
  25:	74 50                	je     0x77
  27:	80 38 00             	cmpb   $0x0,(%rax)
* 2a:	74 f2                	je     0x1e <-- trapping instruction
  2c:	eb d4                	jmp    0x2
  2e:	41 bc 08 00 00 00    	mov    $0x8,%r12d
  34:	48 89 ea             	mov    %rbp,%rdx
  37:	45 29 dc             	sub    %r11d,%r12d
  3a:	4d 8d 1c 2c          	lea    (%r12,%rbp,1),%r11
  3e:	eb 0c                	jmp    0x4c

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-linux-next-kasan-gce-root 2021/10/28 04:43 linux-next ae5179317e79 be531bb4 .config log report info INFO: rcu detected stall in tipc_sendstream
* Struck through repros no longer work on HEAD.