syzbot


general protection fault in rcu_sync_func

Status: auto-closed as invalid on 2022/01/28 23:25
Reported-by: syzbot+0fafe8e9c222d65319dd@syzkaller.appspotmail.com
First crash: 1178d, last: 1149d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in rcu_sync_func bluetooth 1 1938d 1934d 0/28 auto-closed as invalid on 2019/11/01 16:33
upstream general protection fault in rcu_sync_func (2) bluetooth 1 975d 971d 0/28 auto-closed as invalid on 2022/06/22 01:15
upstream general protection fault in rcu_sync_func (3) bluetooth 2 804d 818d 0/28 auto-obsoleted due to no activity on 2022/11/09 20:30
android-54 general protection fault in rcu_sync_func (2) 23 420d 717d 0/2 auto-obsoleted due to no activity on 2024/01/09 18:18

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 2467 Comm: syz-executor.0 Not tainted 5.4.125-syzkaller-00030-g1e429b8f9eb9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__wake_up_common kernel/sched/wait.c:81 [inline]
RIP: 0010:__wake_up_locked+0x67/0x120 kernel/sched/wait.c:151
Code: 00 00 fc ff df 4c 8b 73 08 66 2e 0f 1f 84 00 00 00 00 00 4d 39 f5 0f 84 b4 00 00 00 4c 89 f5 49 8d 5e e8 4c 89 f0 48 c1 e8 03 <80> 3c 10 00 74 12 48 89 ef e8 7b d2 48 00 48 ba 00 00 00 00 00 fc
RSP: 0018:ffff8881f0dbf760 EFLAGS: 00010046
RAX: 0000000000000000 RBX: ffffffffffffffe8 RCX: 0000000000000001
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff8881e5d9a098
RBP: 0000000000000000 R08: dffffc0000000000 R09: 0000000000000003
R10: ffffed103e1b7ee1 R11: 0000000000000004 R12: 0000000000000001
R13: ffff8881e5d9a0a0 R14: 0000000000000000 R15: ffff8881e5d9a098
FS:  00007fd745123700(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31624000 CR3: 00000001e5385000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 rcu_sync_func+0xaa/0x210 kernel/rcu/sync.c:87
 rcu_sync_enter+0x1ea/0x330 kernel/rcu/sync.c:150
 percpu_down_write+0x72/0x340 kernel/locking/percpu-rwsem.c:146
 hci_uart_tty_close+0x11e/0x220 drivers/bluetooth/hci_ldisc.c:536
 tty_ldisc_close drivers/tty/tty_ldisc.c:494 [inline]
 tty_ldisc_kill drivers/tty/tty_ldisc.c:642 [inline]
 tty_ldisc_release+0x272/0x600 drivers/tty/tty_ldisc.c:814
 tty_release_struct+0x27/0xd0 drivers/tty/tty_io.c:1612
 tty_release+0xdd7/0x10a0 drivers/tty/tty_io.c:1785
 __fput+0x27d/0x6c0 fs/file_table.c:281
 task_work_run+0x186/0x1b0 kernel/task_work.c:113
 get_signal+0x1f34/0x1fc0 kernel/signal.c:2539
 do_signal+0x8d/0x610 arch/x86/kernel/signal.c:793
 exit_to_usermode_loop arch/x86/entry/common.c:159 [inline]
 prepare_exit_to_usermode+0x207/0x310 arch/x86/entry/common.c:194
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7fd74740e8d9
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:00007fd745123188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: 0000000000000000 RBX: 00007fd7475131a0 RCX: 00007fd74740e8d9
RDX: 0000000000000000 RSI: 00000000400455c8 RDI: 0000000000000003
RBP: 00007fd747468cb4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fffa5ec34ef R14: 00007fd745123300 R15: 0000000000022000
Modules linked in:
---[ end trace 41b3b1aea6f56a6b ]---
RIP: 0010:__wake_up_common kernel/sched/wait.c:81 [inline]
RIP: 0010:__wake_up_locked+0x67/0x120 kernel/sched/wait.c:151
Code: 00 00 fc ff df 4c 8b 73 08 66 2e 0f 1f 84 00 00 00 00 00 4d 39 f5 0f 84 b4 00 00 00 4c 89 f5 49 8d 5e e8 4c 89 f0 48 c1 e8 03 <80> 3c 10 00 74 12 48 89 ef e8 7b d2 48 00 48 ba 00 00 00 00 00 fc
RSP: 0018:ffff8881f0dbf760 EFLAGS: 00010046
RAX: 0000000000000000 RBX: ffffffffffffffe8 RCX: 0000000000000001
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff8881e5d9a098
RBP: 0000000000000000 R08: dffffc0000000000 R09: 0000000000000003
R10: ffffed103e1b7ee1 R11: 0000000000000004 R12: 0000000000000001
R13: ffff8881e5d9a0a0 R14: 0000000000000000 R15: ffff8881e5d9a098
FS:  00007fd745123700(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31624000 CR3: 00000001e5385000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 4 bytes skipped:
   0:	df 4c 8b 73          	fisttps 0x73(%rbx,%rcx,4)
   4:	08 66 2e             	or     %ah,0x2e(%rsi)
   7:	0f 1f 84 00 00 00 00 	nopl   0x0(%rax,%rax,1)
   e:	00
   f:	4d 39 f5             	cmp    %r14,%r13
  12:	0f 84 b4 00 00 00    	je     0xcc
  18:	4c 89 f5             	mov    %r14,%rbp
  1b:	49 8d 5e e8          	lea    -0x18(%r14),%rbx
  1f:	4c 89 f0             	mov    %r14,%rax
  22:	48 c1 e8 03          	shr    $0x3,%rax
* 26:	80 3c 10 00          	cmpb   $0x0,(%rax,%rdx,1) <-- trapping instruction
  2a:	74 12                	je     0x3e
  2c:	48 89 ef             	mov    %rbp,%rdi
  2f:	e8 7b d2 48 00       	callq  0x48d2af
  34:	48                   	rex.W
  35:	ba 00 00 00 00       	mov    $0x0,%edx
  3a:	00 fc                	add    %bh,%ah

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/09/30 23:24 android12-5.4 1e429b8f9eb9 0f01403d .config console log report info ci2-android-5-4-kasan general protection fault in rcu_sync_func
2021/09/02 06:53 android12-5.4 ae94e015273b 7eb7e152 .config console log report info ci2-android-5-4-kasan general protection fault in rcu_sync_func
* Struck through repros no longer work on HEAD.