syzbot


general protection fault in uprobe_clear_state

Status: auto-closed as invalid on 2021/11/11 00:25
Reported-by: syzbot+2d8aa30c98bfbc4ca233@syzkaller.appspotmail.com
First crash: 988d, last: 988d

Sample crash report:
loop5: p4 size 2097152 extends beyond EOD, truncated
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: 0 PID: 1783 Comm: syz-executor.2 Not tainted 4.19.197-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:uprobe_clear_state+0x5a/0x2d0 kernel/events/uprobes.c:1255
Code: 48 8b ab 78 05 00 00 48 85 ed 0f 84 2c 01 00 00 e8 9b dd e7 ff 48 8d 7d 78 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 2c 02 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b
RSP: 0018:ffff88806eec7aa8 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: ffff88800016f240 RCX: ffffffff8136e32d
RDX: 000484848000000f RSI: ffffffff817aa255 RDI: 0024242400000078
RBP: 0024242400000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff88800016f720
R13: 0000000000000001 R14: ffff88806ce68bc0 R15: ffff88800016f240
FS:  00007fed23b91700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f01d80356b8 CR3: 0000000073a65000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 __mmput kernel/fork.c:1011 [inline]
 mmput+0xb9/0x4a0 kernel/fork.c:1036
 exit_mm kernel/exit.c:549 [inline]
 do_exit+0xaec/0x2be0 kernel/exit.c:857
 do_group_exit+0x125/0x310 kernel/exit.c:967
 get_signal+0x3f2/0x1f70 kernel/signal.c:2589
 do_signal+0x8f/0x1670 arch/x86/kernel/signal.c:799
 exit_to_usermode_loop+0x204/0x2a0 arch/x86/entry/common.c:163
 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:271 [inline]
 do_syscall_64+0x538/0x620 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4665d9
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:00007fed23b91188 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: 0000000000000800 RBX: 000000000056bf80 RCX: 00000000004665d9
RDX: 0000000020000040 RSI: 0000000000000004 RDI: 0000000000000005
RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000008001 R11: 0000000000000246 R12: 000000000056bf80
R13: 00007fffcaa0c6bf R14: 00007fed23b91300 R15: 0000000000022000
Modules linked in:
---[ end trace 8838ea8198f67683 ]---
RIP: 0010:uprobe_clear_state+0x5a/0x2d0 kernel/events/uprobes.c:1255
Code: 48 8b ab 78 05 00 00 48 85 ed 0f 84 2c 01 00 00 e8 9b dd e7 ff 48 8d 7d 78 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 2c 02 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b
RSP: 0018:ffff88806eec7aa8 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: ffff88800016f240 RCX: ffffffff8136e32d
RDX: 000484848000000f RSI: ffffffff817aa255 RDI: 0024242400000078
RBP: 0024242400000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff88800016f720
R13: 0000000000000001 R14: ffff88806ce68bc0 R15: ffff88800016f240
FS:  00007fed23b91700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f01d800a028 CR3: 000000007b206000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/07/14 00:25 linux-4.19.y fcfbdfe9626e 484502bd .config console log report info ci2-linux-4-19 general protection fault in uprobe_clear_state
* Struck through repros no longer work on HEAD.