syzbot


WARNING in trc_read_check_handler

Status: fixed on 2022/03/08 16:11
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+fe9d8c955bd1d0f02dc1@syzkaller.appspotmail.com
Fix commit: 96017bf90397 rcu-tasks: Simplify trc_read_check_handler() atomic operations
First crash: 1159d, last: 1067d
Cause bisection: introduced by (bisect log) [no-op commit]:
commit b9fc8b4a591811546fec2dbef7e9f809362100c9
Author: Grant Seltzer <grantseltzer@gmail.com>
Date: Mon Feb 22 19:58:46 2021 +0000

  bpf: Add kernel/modules BTF presence checks to bpftool feature command

Crash: WARNING in kvm_wait (log)
Repro: C syz .config
  
Fix bisection: fixed by (bisect log) :
commit 96017bf9039763a2e02dcc6adaa18592cd73a39d
Author: Paul E. McKenney <paulmck@kernel.org>
Date: Wed Jul 28 17:53:41 2021 +0000

  rcu-tasks: Simplify trc_read_check_handler() atomic operations

  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] WARNING in trc_read_check_handler 4 (6) 2021/12/04 15:07

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 14 at kernel/rcu/tasks.h:901 trc_read_check_handler+0x248/0x2e0 kernel/rcu/tasks.h:920
Modules linked in:
CPU: 0 PID: 14 Comm: rcu_preempt Not tainted 5.15.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:trc_read_check_handler+0x248/0x2e0 kernel/rcu/tasks.h:901
Code: 48 c1 ea 03 0f b6 04 02 4c 89 e2 83 e2 07 38 d0 7f 0c 84 c0 74 08 4c 89 e7 e8 84 86 5c 00 c6 83 21 04 00 00 01 e9 5a fe ff ff <0f> 0b 31 c9 ba 01 00 00 00 be 03 00 00 00 48 c7 c7 40 f6 97 8b e8
RSP: 0018:ffffc90000007f78 EFLAGS: 00010047
RAX: 0000000000000001 RBX: ffff888011f61c80 RCX: ffffffff8160ff50
RDX: fffffbfff204bb84 RSI: 0000000000000004 RDI: ffffffff9025dc20
RBP: ffff888011f61c80 R08: 0000000000000001 R09: 0000000000000003
R10: fffffbfff204bb84 R11: 0000000000000000 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8880b9d32ac8
FS:  0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1ba142e1d0 CR3: 000000000b68e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 flush_smp_call_function_queue+0x34b/0x640 kernel/smp.c:663
 __sysvec_call_function_single+0x95/0x3d0 arch/x86/kernel/smp.c:248
 sysvec_call_function_single+0x8e/0xc0 arch/x86/kernel/smp.c:243
 </IRQ>
 asm_sysvec_call_function_single+0x12/0x20 arch/x86/include/asm/idtentry.h:646
RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline]
RIP: 0010:_raw_spin_unlock_irq+0x25/0x40 kernel/locking/spinlock.c:202
Code: 0f 1f 44 00 00 55 48 8b 74 24 08 48 89 fd 48 83 c7 18 e8 1e 53 22 f8 48 89 ef e8 66 c9 22 f8 e8 e1 2a 43 f8 fb bf 01 00 00 00 <e8> 26 8a 16 f8 65 8b 05 ef e7 c8 76 85 c0 74 02 5d c3 e8 0b 3d c7
RSP: 0018:ffffc90000d37de0 EFLAGS: 00000202
RAX: 00000000000a4473 RBX: ffffffff8b989008 RCX: 1ffffffff1adcc49
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffffffff8b988f40 R08: 0000000000000001 R09: 0000000000000001
R10: ffffffff817c3318 R11: ffffffff8b989018 R12: ffff8880b9c328c0
R13: 0000000000000000 R14: ffffffff8b988f40 R15: dffffc0000000000
 rcu_gp_init+0x859/0x12a0 kernel/rcu/tree.c:1866
 rcu_gp_kthread+0xab/0x320 kernel/rcu/tree.c:2120
 kthread+0x3e5/0x4d0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
----------------
Code disassembly (best guess):
   0:	0f 1f 44 00 00       	nopl   0x0(%rax,%rax,1)
   5:	55                   	push   %rbp
   6:	48 8b 74 24 08       	mov    0x8(%rsp),%rsi
   b:	48 89 fd             	mov    %rdi,%rbp
   e:	48 83 c7 18          	add    $0x18,%rdi
  12:	e8 1e 53 22 f8       	callq  0xf8225335
  17:	48 89 ef             	mov    %rbp,%rdi
  1a:	e8 66 c9 22 f8       	callq  0xf822c985
  1f:	e8 e1 2a 43 f8       	callq  0xf8432b05
  24:	fb                   	sti
  25:	bf 01 00 00 00       	mov    $0x1,%edi
* 2a:	e8 26 8a 16 f8       	callq  0xf8168a55 <-- trapping instruction
  2f:	65 8b 05 ef e7 c8 76 	mov    %gs:0x76c8e7ef(%rip),%eax        # 0x76c8e825
  36:	85 c0                	test   %eax,%eax
  38:	74 02                	je     0x3c
  3a:	5d                   	pop    %rbp
  3b:	c3                   	retq
  3c:	e8                   	.byte 0xe8
  3d:	0b                   	.byte 0xb
  3e:	3d                   	.byte 0x3d
  3f:	c7                   	.byte 0xc7

Crashes (40):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/10/10 20:04 bpf-next 5319255b8df9 838e7e2c .config console log report syz C ci-upstream-bpf-next-kasan-gce WARNING in trc_read_check_handler
2021/08/01 10:31 linux-next 8d4b477da1a8 6c236867 .config console log report syz C ci-upstream-linux-next-kasan-gce-root WARNING in trc_read_check_handler
2021/10/27 18:11 upstream d25f27432f80 373bf66b .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in trc_read_check_handler
2021/10/07 18:24 upstream 4a16df549d23 efe0f24d .config console log report info ci-upstream-kasan-gce-root WARNING in trc_read_check_handler
2021/10/06 19:09 upstream 60a9483534ed 62ee0987 .config console log report info ci-upstream-kasan-gce-root WARNING in trc_read_check_handler
2021/09/23 13:44 upstream 58e2cf5d7946 8cac236e .config console log report info ci-upstream-kasan-gce-smack-root WARNING in trc_read_check_handler
2021/09/09 18:04 upstream a3fa7a101dcf e2776ee4 .config console log report info ci-upstream-kasan-gce-root WARNING in trc_read_check_handler
2021/09/09 08:42 upstream 730bf31b8fc8 e2776ee4 .config console log report info ci-upstream-kasan-gce-root WARNING in trc_read_check_handler
2021/10/02 22:53 bpf b0e875bac0fa db0f5787 .config console log report info ci-upstream-bpf-kasan-gce WARNING in trc_read_check_handler
2021/09/24 20:34 net-old 4526fe74c3c5 8cac236e .config console log report info ci-upstream-net-this-kasan-gce WARNING in trc_read_check_handler
2021/09/23 14:04 net-old 3106a0847525 8cac236e .config console log report info ci-upstream-net-this-kasan-gce WARNING in trc_read_check_handler
2021/09/23 06:03 net-old 977d293e23b4 8cac236e .config console log report info ci-upstream-net-this-kasan-gce WARNING in trc_read_check_handler
2021/09/22 02:22 net-old b3f98404bd62 169724fe .config console log report info ci-upstream-net-this-kasan-gce WARNING in trc_read_check_handler
2021/09/21 15:59 bpf bc23f7244817 169724fe .config console log report info ci-upstream-bpf-kasan-gce WARNING in trc_read_check_handler
2021/09/18 12:11 bpf bc23f7244817 70b76c1d .config console log report info ci-upstream-bpf-kasan-gce WARNING in trc_read_check_handler
2021/11/01 14:06 net-next-old c07c6e8eb4b3 098b5d53 .config console log report info ci-upstream-net-kasan-gce WARNING in trc_read_check_handler
2021/10/30 09:07 bpf-next f48ad69097fe 098b5d53 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in trc_read_check_handler
2021/10/27 10:39 bpf-next 20d1b54a52bd d50eb50a .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in trc_read_check_handler
2021/10/19 09:49 bpf-next 223f903e9c83 24dc29db .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in trc_read_check_handler
2021/10/16 05:30 bpf-next 431bfb9ee3e2 0c5d9412 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in trc_read_check_handler
2021/10/16 01:02 net-next-old 40088915f547 0c5d9412 .config console log report info ci-upstream-net-kasan-gce WARNING in trc_read_check_handler
2021/10/11 12:09 bpf-next 5319255b8df9 838e7e2c .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in trc_read_check_handler
2021/10/11 02:14 net-next-old 0182d0788cd6 838e7e2c .config console log report info ci-upstream-net-kasan-gce WARNING in trc_read_check_handler
2021/10/11 01:27 bpf-next 5319255b8df9 838e7e2c .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in trc_read_check_handler
2021/10/11 00:09 net-next-old 0182d0788cd6 838e7e2c .config console log report info ci-upstream-net-kasan-gce WARNING in trc_read_check_handler
2021/10/10 16:07 bpf-next 5319255b8df9 838e7e2c .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in trc_read_check_handler
2021/10/02 08:21 bpf-next d636c8da2d60 db0f5787 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in trc_read_check_handler
2021/10/01 06:18 bpf-next e68ac0082787 1d849ab4 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in trc_read_check_handler
2021/09/23 15:05 bpf-next c86216bc96aa 8cac236e .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in trc_read_check_handler
2021/09/18 21:49 net-next-old 983e59a27b92 70b76c1d .config console log report info ci-upstream-net-kasan-gce WARNING in trc_read_check_handler
2021/09/18 08:52 net-next-old 0efcc3f20145 70b76c1d .config console log report info ci-upstream-net-kasan-gce WARNING in trc_read_check_handler
2021/09/16 09:16 bpf-next 336562752acc 07e953c1 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in trc_read_check_handler
2021/09/15 02:25 bpf-next 67dfac47dac6 07e953c1 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in trc_read_check_handler
2021/09/13 11:24 net-next-old 626bf91a292e 3ce60af8 .config console log report info ci-upstream-net-kasan-gce WARNING in trc_read_check_handler
2021/09/12 21:30 bpf-next 3384c7c7641b 5ae8508a .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in trc_read_check_handler
2021/09/11 15:07 bpf-next 3384c7c7641b 5ae8508a .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in trc_read_check_handler
2021/09/10 00:31 net-next-old 626bf91a292e e2776ee4 .config console log report info ci-upstream-net-kasan-gce WARNING in trc_read_check_handler
2021/09/07 22:42 bpf-next 27151f177827 064c9eb7 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in trc_read_check_handler
2021/09/07 22:34 bpf-next 27151f177827 064c9eb7 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in trc_read_check_handler
2021/08/01 09:04 linux-next 8d4b477da1a8 6c236867 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in trc_read_check_handler
* Struck through repros no longer work on HEAD.