syzbot


general protection fault in filp_close

Status: premoderation: reported on 2026/04/15 19:08
Reported-by: syzbot+7c0a0bd28cda0b30357f@syzkaller.appspotmail.com
First crash: 5d13h, last: 5d13h
Similar bugs (5)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-10 general protection fault in filp_close 2 1 1123d 1123d 0/2 auto-obsoleted due to no activity on 2023/06/22 23:34
upstream general protection fault in filp_close fs 2 2 2035d 2050d 0/29 auto-closed as invalid on 2020/12/22 12:29
upstream KASAN: use-after-free Read in filp_close io-uring fs 19 C done 17 1193d 1422d 22/29 fixed on 2023/02/24 13:50
android-54 KASAN: use-after-free Read in filp_close 19 C 3 1721d 1925d 0/2 auto-obsoleted due to no activity on 2023/04/21 02:05
upstream KASAN: null-ptr-deref Read in filp_close (2) fs 19 C 3 1743d 1852d 20/29 fixed on 2021/11/10 13:22

Sample crash report:
general protection fault, probably for non-canonical address 0xe00080100c00000f: 0000 [#1] PREEMPT SMP KASAN
KASAN: maybe wild-memory-access in range [0x0004208060000078-0x000420806000007f]
CPU: 0 PID: 14065 Comm: syz.3.4224 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/18/2026
RIP: 0010:filp_close+0x8a/0x150 fs/open.c:1345
Code: 00 00 4c 8d 7b 28 4c 89 f8 48 c1 e8 03 42 80 3c 28 00 74 08 4c 89 ff e8 b4 3e f9 ff 4d 8b 3f 49 83 c7 78 4c 89 f8 48 c1 e8 03 <42> 80 3c 28 00 74 08 4c 89 ff e8 97 3e f9 ff 4d 8b 3f 4d 85 ff 74
RSP: 0018:ffffc90000e6fdc8 EFLAGS: 00010206
RAX: 000084100c00000f RBX: ffff88811a8d93c1 RCX: ffff88814b8f8000
RDX: 0000000000000000 RSI: 3000000000000000 RDI: 0000000000000000
RBP: ffffc90000e6fdf0 R08: ffff88811a8d9400 R09: 1ffff1102351b280
R10: dffffc0000000000 R11: ffffed102351b281 R12: 3000000000000000
R13: dffffc0000000000 R14: ffff88811adc56c0 R15: 0004208060000078
FS:  000055558ef6b500(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2d80dff8 CR3: 00000001242ce000 CR4: 00000000003506b0
Call Trace:
 <TASK>
 __range_close fs/file.c:691 [inline]
 __close_range+0x24a/0x420 fs/file.c:746
 __do_sys_close_range fs/open.c:1391 [inline]
 __se_sys_close_range fs/open.c:1388 [inline]
 __x64_sys_close_range+0x7a/0x90 fs/open.c:1388
 x64_sys_call+0x48f/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:437
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f813a165819
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe6e00a7c8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: ffffffffffffffda RBX: 00007ffe6e00a8b0 RCX: 00007f813a165819
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 00000000000ba846 R08: 0000000000000001 R09: 0000000000000000
R10: 0000001b2c620000 R11: 0000000000000246 R12: 00007ffe6e00a8f0
R13: 00007f813a3defac R14: 00000000000bbbd8 R15: 00007f813a3defa0
 </TASK>
Modules linked in:
---[ end trace 8bb18c043994f3ff ]---
RIP: 0010:filp_close+0x8a/0x150 fs/open.c:1345
Code: 00 00 4c 8d 7b 28 4c 89 f8 48 c1 e8 03 42 80 3c 28 00 74 08 4c 89 ff e8 b4 3e f9 ff 4d 8b 3f 49 83 c7 78 4c 89 f8 48 c1 e8 03 <42> 80 3c 28 00 74 08 4c 89 ff e8 97 3e f9 ff 4d 8b 3f 4d 85 ff 74
RSP: 0018:ffffc90000e6fdc8 EFLAGS: 00010206
RAX: 000084100c00000f RBX: ffff88811a8d93c1 RCX: ffff88814b8f8000
RDX: 0000000000000000 RSI: 3000000000000000 RDI: 0000000000000000
RBP: ffffc90000e6fdf0 R08: ffff88811a8d9400 R09: 1ffff1102351b280
R10: dffffc0000000000 R11: ffffed102351b281 R12: 3000000000000000
R13: dffffc0000000000 R14: ffff88811adc56c0 R15: 0004208060000078
FS:  000055558ef6b500(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b32023ffc CR3: 00000001242ce000 CR4: 00000000003506a0
----------------
Code disassembly (best guess):
   0:	00 00                	add    %al,(%rax)
   2:	4c 8d 7b 28          	lea    0x28(%rbx),%r15
   6:	4c 89 f8             	mov    %r15,%rax
   9:	48 c1 e8 03          	shr    $0x3,%rax
   d:	42 80 3c 28 00       	cmpb   $0x0,(%rax,%r13,1)
  12:	74 08                	je     0x1c
  14:	4c 89 ff             	mov    %r15,%rdi
  17:	e8 b4 3e f9 ff       	call   0xfff93ed0
  1c:	4d 8b 3f             	mov    (%r15),%r15
  1f:	49 83 c7 78          	add    $0x78,%r15
  23:	4c 89 f8             	mov    %r15,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 28 00       	cmpb   $0x0,(%rax,%r13,1) <-- trapping instruction
  2f:	74 08                	je     0x39
  31:	4c 89 ff             	mov    %r15,%rdi
  34:	e8 97 3e f9 ff       	call   0xfff93ed0
  39:	4d 8b 3f             	mov    (%r15),%r15
  3c:	4d 85 ff             	test   %r15,%r15
  3f:	74                   	.byte 0x74

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/04/15 19:08 android13-5.15-lts 7fad219d720d c441f497 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 general protection fault in filp_close
* Struck through repros no longer work on HEAD.