general protection fault in rcu_sync_func

8 views
Skip to first unread message

syzbot

unread,
Sep 2, 2021, 2:54:20 AM9/2/21
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: ae94e015273b ANDROID: gki_defconfig: set DEFAULT_MMAP_MIN_..
git tree: android12-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=1585f513300000
kernel config: https://syzkaller.appspot.com/x/.config?x=12fdca0186751701
dashboard link: https://syzkaller.appspot.com/bug?extid=0fafe8e9c222d65319dd
compiler: Debian clang version 11.0.1-2, GNU ld (GNU Binutils for Debian) 2.35.1

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+0fafe8...@syzkaller.appspotmail.com

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: 864 Comm: syz-executor.4 Not tainted 5.4.125-syzkaller-00016-gae94e015273b #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 3b d2 48 00 48 ba 00 00 00 00 00 fc
RSP: 0018:ffff8881e043f760 EFLAGS: 00010046
RAX: 0000000000000000 RBX: ffffffffffffffe8 RCX: 0000000000000001
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff8881df076c98
RBP: 0000000000000000 R08: dffffc0000000000 R09: 0000000000000003
R10: ffffed103c087ee1 R11: 0000000000000004 R12: 0000000000000001
R13: ffff8881df076ca0 R14: 0000000000000000 R15: ffff8881df076c98
FS: 00007fe7d7a87700(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe7d7a44d80 CR3: 00000001ed8ec000 CR4: 00000000001406e0
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:0x4665f9
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:00007fe7d7a87188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: 0000000000000000 RBX: 000000000056c038 RCX: 00000000004665f9
RDX: 0000000000000000 RSI: 00000000400455c8 RDI: 0000000000000004
RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c038
R13: 00007ffd6f256caf R14: 00007fe7d7a87300 R15: 0000000000022000
Modules linked in:
---[ end trace 4ecd73444ee8e493 ]---
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 3b d2 48 00 48 ba 00 00 00 00 00 fc
RSP: 0018:ffff8881e043f760 EFLAGS: 00010046
RAX: 0000000000000000 RBX: ffffffffffffffe8 RCX: 0000000000000001
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff8881df076c98
RBP: 0000000000000000 R08: dffffc0000000000 R09: 0000000000000003
R10: ffffed103c087ee1 R11: 0000000000000004 R12: 0000000000000001
R13: ffff8881df076ca0 R14: 0000000000000000 R15: ffff8881df076c98
FS: 00007fe7d7a87700(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe7d7a44d80 CR3: 00000001ed8ec000 CR4: 00000000001406e0
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 3b d2 48 00 callq 0x48d26f
34: 48 rex.W
35: ba 00 00 00 00 mov $0x0,%edx
3a: 00 fc add %bh,%ah


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Jan 28, 2022, 6:25:14 PM1/28/22
to syzkaller-a...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages