syzbot


general protection fault in rcu_sync_func (3)

Status: auto-obsoleted due to no activity on 2022/11/09 20:30
Reported-by: syzbot+f3192116e62c0f3d1073@syzkaller.appspotmail.com
First crash: 106d, last: 88d
similar bugs (4):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in rcu_sync_func 1 1223d 1218d 0/24 auto-closed as invalid on 2019/11/01 16:33
upstream general protection fault in rcu_sync_func (2) 1 259d 255d 0/24 auto-closed as invalid on 2022/06/22 01:15
android-54 general protection fault in rcu_sync_func (2) 1 1d17h 1d17h 0/2 upstream: reported on 2022/12/06 23:14
android-54 general protection fault in rcu_sync_func 2 433d 462d 0/2 auto-closed as invalid on 2022/01/28 23:25

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 1 PID: 18547 Comm: syz-executor.0 Not tainted 6.0.0-rc3-next-20220901-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
RIP: 0010:__wake_up_common+0xdf/0x650 kernel/sched/wait.c:100
Code: 05 00 00 4c 8b 43 40 49 83 e8 18 49 8d 78 18 48 3b 3c 24 0f 84 6a 02 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 f9 48 c1 e9 03 <80> 3c 01 00 0f 85 40 05 00 00 49 8b 40 18 89 54 24 10 31 db 48 bd
RSP: 0018:ffffc9001384f738 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: ffff8880762d78c8 RCX: 0000000000000000
RDX: 0000000000000001 RSI: 1ffffffff1bbe401 RDI: 0000000000000000
RBP: ffff8880762d7918 R08: ffffffffffffffe8 R09: 0000000000000000
R10: fffff52002709ee1 R11: 0000000000000001 R12: ffff8880762d78c0
R13: 0000000000000297 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f661eb2a718 CR3: 000000002faee000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 rcu_sync_func+0x119/0x180 kernel/rcu/sync.c:87
 rcu_sync_enter+0x150/0x2e0 kernel/rcu/sync.c:150
 percpu_down_write+0x62/0x440 kernel/locking/percpu-rwsem.c:225
 hci_uart_tty_close+0x13d/0x290 drivers/bluetooth/hci_ldisc.c:539
 tty_ldisc_close+0x110/0x190 drivers/tty/tty_ldisc.c:456
 tty_ldisc_kill+0x94/0x150 drivers/tty/tty_ldisc.c:608
 tty_ldisc_release+0xe1/0x2a0 drivers/tty/tty_ldisc.c:776
 tty_release_struct+0x20/0xe0 drivers/tty/tty_io.c:1694
 tty_release+0xc70/0x1200 drivers/tty/tty_io.c:1865
 __fput+0x27c/0xa90 fs/file_table.c:320
 task_work_run+0x16b/0x270 kernel/task_work.c:179
 exit_task_work include/linux/task_work.h:38 [inline]
 do_exit+0xc3f/0x2b60 kernel/exit.c:818
 do_group_exit+0xd0/0x2a0 kernel/exit.c:948
 get_signal+0x238c/0x2610 kernel/signal.c:2858
 arch_do_signal_or_restart+0x82/0x2300 arch/x86/kernel/signal.c:869
 exit_to_user_mode_loop kernel/entry/common.c:166 [inline]
 exit_to_user_mode_prepare+0x15f/0x250 kernel/entry/common.c:201
 __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline]
 syscall_exit_to_user_mode+0x19/0x50 kernel/entry/common.c:294
 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f12aec893c9
Code: Unable to access opcode bytes at RIP 0x7f12aec8939f.
RSP: 002b:00007f12afd24168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: 0000000000000000 RBX: 00007f12aed9c120 RCX: 00007f12aec893c9
RDX: 0000000000000004 RSI: 00000000400455c8 RDI: 0000000000000004
RBP: 00007f12aece433f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff5557383f R14: 00007f12afd24300 R15: 0000000000022000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__wake_up_common+0xdf/0x650 kernel/sched/wait.c:100
Code: 05 00 00 4c 8b 43 40 49 83 e8 18 49 8d 78 18 48 3b 3c 24 0f 84 6a 02 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 f9 48 c1 e9 03 <80> 3c 01 00 0f 85 40 05 00 00 49 8b 40 18 89 54 24 10 31 db 48 bd
RSP: 0018:ffffc9001384f738 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: ffff8880762d78c8 RCX: 0000000000000000
RDX: 0000000000000001 RSI: 1ffffffff1bbe401 RDI: 0000000000000000
RBP: ffff8880762d7918 R08: ffffffffffffffe8 R09: 0000000000000000
R10: fffff52002709ee1 R11: 0000000000000001 R12: ffff8880762d78c0
R13: 0000000000000297 R14: 0000000000000000 R15: 0000000000000000
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f661eb2a718 CR3: 000000002faee000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	05 00 00 4c 8b       	add    $0x8b4c0000,%eax
   5:	43                   	rex.XB
   6:	40                   	rex
   7:	49 83 e8 18          	sub    $0x18,%r8
   b:	49 8d 78 18          	lea    0x18(%r8),%rdi
   f:	48 3b 3c 24          	cmp    (%rsp),%rdi
  13:	0f 84 6a 02 00 00    	je     0x283
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df
  23:	48 89 f9             	mov    %rdi,%rcx
  26:	48 c1 e9 03          	shr    $0x3,%rcx
* 2a:	80 3c 01 00          	cmpb   $0x0,(%rcx,%rax,1) <-- trapping instruction
  2e:	0f 85 40 05 00 00    	jne    0x574
  34:	49 8b 40 18          	mov    0x18(%r8),%rax
  38:	89 54 24 10          	mov    %edx,0x10(%rsp)
  3c:	31 db                	xor    %ebx,%ebx
  3e:	48                   	rex.W
  3f:	bd                   	.byte 0xbd

Crashes (2):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-linux-next-kasan-gce-root 2022/09/10 20:29 linux-next e47eb90a0a9a 356d8217 .config log report info general protection fault in rcu_sync_func
ci-upstream-linux-next-kasan-gce-root 2022/08/23 23:05 linux-next 05477f3653b8 cea8b0f7 .config log report info general protection fault in rcu_sync_func
* Struck through repros no longer work on HEAD.