syzbot


INFO: rcu detected stall in sys_bpf (5)

Status: closed as invalid on 2022/02/08 10:34
Subsystems: bpf
[Documentation on labels]
Reported-by: syzbot+7caa651776c38f7fed6c@syzkaller.appspotmail.com
First crash: 1065d, last: 816d
Cause bisection: introduced by (bisect log) [no-op commit]:
commit e63cf610ead18d5f8df0739a36cba57ccba43f6b
Author: Will Deacon <will@kernel.org>
Date: Wed Sep 29 12:54:04 2021 +0000

  arm64: mm: Drop pointless call to set_max_mapnr()

Crash: no output from test machine (log)
Repro: C syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] INFO: rcu detected stall in sys_bpf (5) 0 (2) 2021/12/07 13:58
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 INFO: rcu detected stall in sys_bpf (2) 1 8d09h 8d09h 0/3 upstream: reported on 2024/04/09 19:57
upstream INFO: rcu detected stall in sys_bpf (3) bpf 4 1561d 1561d 0/26 closed as invalid on 2020/01/09 08:13
linux-5.15 INFO: rcu detected stall in sys_bpf 2 132d 175d 0/3 auto-obsoleted due to no activity on 2024/03/16 17:33
upstream INFO: rcu detected stall in sys_bpf bpf net 3 1728d 1848d 0/26 auto-closed as invalid on 2019/11/23 00:18
upstream INFO: rcu detected stall in sys_bpf (2) bpf 12 1596d 1598d 0/26 closed as invalid on 2019/12/04 14:14
upstream INFO: rcu detected stall in sys_bpf (8) bpf 1 151d 151d 0/26 auto-obsoleted due to no activity on 2024/02/17 03:10
linux-4.19 INFO: rcu detected stall in sys_bpf 3 1545d 1675d 0/1 auto-closed as invalid on 2020/05/23 14:47
upstream INFO: rcu detected stall in sys_bpf (6) net 7 627d 778d 0/26 auto-obsoleted due to no activity on 2022/10/28 06:32
upstream INFO: rcu detected stall in sys_bpf (4) bpf net 3 1514d 1553d 0/26 auto-closed as invalid on 2020/05/24 13:03
android-5-15 BUG: soft lockup in sys_bpf origin:lts C 19 3h30m 19d 0/2 upstream: reported C repro on 2024/03/29 12:25

Sample crash report:
hrtimer: interrupt took 34034 ns
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	0-....: (11003 ticks this GP) idle=21b/1/0x4000000000000000 softirq=8763/8765 fqs=5250 
	(t=10502 jiffies g=11285 q=14)
NMI backtrace for cpu 0
CPU: 0 PID: 6526 Comm: syz-executor734 Not tainted 5.15.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: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:627 [inline]
 check_cpu_stall kernel/rcu/tree_stall.h:711 [inline]
 rcu_pending kernel/rcu/tree.c:3878 [inline]
 rcu_sched_clock_irq.cold+0x9d/0x746 kernel/rcu/tree.c:2597
 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:1421
 __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:htab_unlock_bucket kernel/bpf/hashtab.c:192 [inline]
RIP: 0010:htab_lru_map_update_elem+0x463/0x8c0 kernel/bpf/hashtab.c:1178
Code: 04 00 00 49 89 6d 08 e8 6b 8b ea ff 48 8b 74 24 28 48 b8 22 01 00 00 00 00 ad de 48 8b 7c 24 10 49 89 44 24 08 e8 2d f3 b0 07 <48> c7 c7 20 d4 93 89 e8 e1 23 ae 07 48 8b 54 24 18 48 b8 00 00 00
RSP: 0018:ffffc90000cd7a88 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffff88807efdc800 RCX: 0000000000000000
RDX: 0000000000000001 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffff8880218f2c00 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff817e0a58 R11: 0000000000000000 R12: ffff8880218f2c40
R13: 000000000000000b R14: 0000000000000005 R15: 0000000000000001
 bpf_map_update_value.isra.0+0x2e8/0x910 kernel/bpf/syscall.c:207
 generic_map_update_batch+0x3f2/0x5b0 kernel/bpf/syscall.c:1396
 bpf_map_do_batch+0x3d5/0x510 kernel/bpf/syscall.c:4207
 __sys_bpf+0x2761/0x5f10 kernel/bpf/syscall.c:4682
 __do_sys_bpf kernel/bpf/syscall.c:4722 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:4720 [inline]
 __x64_sys_bpf+0x75/0xb0 kernel/bpf/syscall.c:4720
 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:0x7fa79bb49f29
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 14 00 00 90 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffdbbb21d88 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fa79bb49f29
RDX: 0000000000000038 RSI: 0000000020000480 RDI: 000000000000001a
RBP: 0000000000000000 R08: 00007ffdbbb21f28 R09: 00007ffdbbb21f28
R10: 00007ffdbbb21f28 R11: 0000000000000246 R12: 00007fa79bb0d7b0
R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000
 </TASK>
----------------
Code disassembly (best guess):
   0:	04 00                	add    $0x0,%al
   2:	00 49 89             	add    %cl,-0x77(%rcx)
   5:	6d                   	insl   (%dx),%es:(%rdi)
   6:	08 e8                	or     %ch,%al
   8:	6b 8b ea ff 48 8b 74 	imul   $0x74,-0x74b70016(%rbx),%ecx
   f:	24 28                	and    $0x28,%al
  11:	48 b8 22 01 00 00 00 	movabs $0xdead000000000122,%rax
  18:	00 ad de
  1b:	48 8b 7c 24 10       	mov    0x10(%rsp),%rdi
  20:	49 89 44 24 08       	mov    %rax,0x8(%r12)
  25:	e8 2d f3 b0 07       	callq  0x7b0f357
* 2a:	48 c7 c7 20 d4 93 89 	mov    $0xffffffff8993d420,%rdi <-- trapping instruction
  31:	e8 e1 23 ae 07       	callq  0x7ae2417
  36:	48 8b 54 24 18       	mov    0x18(%rsp),%rdx
  3b:	48                   	rex.W
  3c:	b8                   	.byte 0xb8
  3d:	00 00                	add    %al,(%rax)

Crashes (56):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/12/07 13:57 bpf-next d5284dedccdb 0230ba3e .config console log report syz C ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/12/07 17:46 bpf 2fa7d94afc1a 0230ba3e .config console log report syz C ci-upstream-bpf-kasan-gce BUG: soft lockup in sys_bpf
2022/01/22 17:17 upstream 0809edbae347 214351e1 .config console log report info ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_bpf
2021/12/21 00:46 upstream 86085fe79e3c 62bd192b .config console log report info ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in sys_bpf
2021/10/30 19:25 upstream 119c85055d86 098b5d53 .config console log report info ci-upstream-kasan-gce-selinux-root INFO: rcu detected stall in sys_bpf
2021/08/03 22:52 upstream d5ad8ec3cfb5 6c236867 .config console log report info ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_bpf
2021/07/21 15:45 upstream 8cae8cd89f05 1b201b48 .config console log report info ci-upstream-kasan-gce-root INFO: rcu detected stall in sys_bpf
2022/01/01 11:36 net-old d6d86830705f e1768e9c .config console log report info ci-upstream-net-this-kasan-gce INFO: rcu detected stall in sys_bpf
2021/11/15 08:28 bpf 14554595dadd 83f5c9b5 .config console log report info ci-upstream-bpf-kasan-gce INFO: rcu detected stall in sys_bpf
2021/11/12 16:00 bpf 5833291ab6de 75b04091 .config console log report info ci-upstream-bpf-kasan-gce INFO: rcu detected stall in sys_bpf
2021/11/04 06:36 bpf c08455dec5ac 4c1be0be .config console log report info ci-upstream-bpf-kasan-gce INFO: rcu detected stall in sys_bpf
2021/08/31 11:51 bpf 57f780f1c433 8f58a0ef .config console log report info ci-upstream-bpf-kasan-gce INFO: rcu detected stall in sys_bpf
2021/07/23 17:18 bpf d6371c76e20d bc5f1d88 .config console log report info ci-upstream-bpf-kasan-gce INFO: rcu detected stall in sys_bpf
2021/07/15 13:21 bpf 5acc7d3e8d34 b9a2f64e .config console log report info ci-upstream-bpf-kasan-gce INFO: rcu detected stall in sys_bpf
2021/07/13 22:48 bpf 5e21bb4e8125 fa0594c3 .config console log report info ci-upstream-bpf-kasan-gce INFO: rcu detected stall in sys_bpf
2021/07/09 05:40 bpf aa80a10c008c 1b20171a .config console log report info ci-upstream-bpf-kasan-gce INFO: rcu detected stall in sys_bpf
2021/12/10 00:38 bpf-next 73b6eae583f4 b54aa474 .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/12/08 06:33 bpf-next fda684fb5ec9 0230ba3e .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/12/07 02:50 bpf-next d5284dedccdb 0230ba3e .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/11/30 18:35 bpf-next c291d0a4d169 80270552 .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/11/25 15:53 bpf-next fa721d4f0b91 545ab074 .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/11/22 23:38 bpf-next 8cccee9e91e1 545ab074 .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/11/17 03:32 bpf-next d41bc48bfab2 cafff8b6 .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/11/14 05:02 bpf-next 325d956d6717 83f5c9b5 .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/11/11 21:44 bpf-next 5577f24cb04a 75b04091 .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/11/11 04:46 bpf-next 5577f24cb04a 75b04091 .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/11/10 11:26 bpf-next 5577f24cb04a 55fa030c .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/11/10 08:03 bpf-next 5577f24cb04a 55fa030c .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/11/10 05:02 bpf-next 5577f24cb04a 55fa030c .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/11/07 05:00 bpf-next b8b5cb55f5d3 4c1be0be .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/11/06 00:12 bpf-next be2f2d1680df 4c1be0be .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/11/05 20:28 bpf-next be2f2d1680df 4c1be0be .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/11/03 05:07 bpf-next cc0356d6a02e 17f3edd2 .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/09/30 07:56 bpf-next 161ecd537948 be530f6c .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/09/08 23:41 bpf-next 006a5099fc18 e2776ee4 .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/09/08 16:57 bpf-next 006a5099fc18 e2776ee4 .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/09/07 00:18 bpf-next 27151f177827 6ca60148 .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/09/05 00:49 bpf-next a16ef91aa61a d236a457 .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/09/01 12:25 bpf-next a16ef91aa61a 7eb7e152 .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/08/25 17:55 bpf-next 3bbc8ee7c363 b599f2fc .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/08/24 10:02 bpf-next a6258837c8a8 b599f2fc .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/08/18 02:40 bpf-next 3c3bd542ffbb a2fe1cb5 .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/07/26 23:51 bpf-next 793eccae89bb fd511809 .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/07/20 09:18 bpf-next 08f71a1e39a1 bc48c9ab .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/07/17 12:06 bpf-next 78e4a955928e f115ae98 .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/07/09 01:02 bpf-next eff94154cc1a 1b20171a .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/06/20 04:50 bpf-next f42cfb469f9b aba2b2fb .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/06/15 02:51 bpf-next ca16b429f39b 1ba81399 .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/06/09 19:12 bpf-next 380afe720896 84fe5d96 .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/06/08 03:16 bpf-next cf68fa431d5d e59537be .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/06/04 12:43 bpf-next 56b8b7f9533b 0740de69 .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/06/02 22:41 bpf-next 05924717ac70 0740de69 .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/06/01 05:01 bpf-next e8e0f0f48478 032639db .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/05/24 11:04 bpf-next a49e72b3bda7 3c7fef33 .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/05/19 04:56 bpf-next 1a532eb28df3 a343ba6b .config console log report info ci-upstream-bpf-next-kasan-gce INFO: rcu detected stall in sys_bpf
2021/10/20 00:44 linux-next 60e8840126bd 466b7db1 .config console log report info ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in sys_bpf
* Struck through repros no longer work on HEAD.