syzbot


general protection fault in put_files_struct

Status: auto-closed as invalid on 2021/07/22 09:06
Reported-by: syzbot+c620468b67d2f79638fb@syzkaller.appspotmail.com
First crash: 1119d, last: 1119d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 KASAN: use-after-free Write in put_files_struct 1 827d 827d 0/1 auto-closed as invalid on 2022/05/10 01:51

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: 5923 Comm: syz-executor.4 Not tainted 4.19.182-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:close_files fs/file.c:383 [inline]
RIP: 0010:put_files_struct fs/file.c:416 [inline]
RIP: 0010:put_files_struct+0x114/0x350 fs/file.c:413
Code: 80 38 00 0f 85 e9 01 00 00 8d 43 01 48 b9 00 00 00 00 00 fc ff df 89 44 24 14 49 8b 44 24 18 48 8d 1c d8 48 89 d8 48 c1 e8 03 <80> 3c 08 00 0f 85 da 01 00 00 48 8b 1b 31 ff 48 89 de e8 e5 96 b8
RSP: 0018:ffff88804d0bfd20 EFLAGS: 00010202
RAX: 0000e0e0e0e0e0e0 RBX: 0007070707070700 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: ffffffff81a9c4e5 RDI: 0000000000000005
RBP: ffff88808fb1aa30 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff88800011b300
R13: 0000000000000000 R14: ffff8880500827c0 R15: 0000000000000001
FS:  00007f9a51350700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000499ab0 CR3: 000000001aaf3000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
------------[ cut here ]------------
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
kernel BUG at arch/x86/mm/physaddr.c:27!
Call Trace:
 exit_files+0x7e/0xa0 fs/file.c:445
 do_exit+0xbb9/0x2be0 kernel/exit.c:865
 do_group_exit+0x125/0x310 kernel/exit.c:967
 __do_sys_exit_group kernel/exit.c:978 [inline]
 __se_sys_exit_group kernel/exit.c:976 [inline]
 __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:976
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x466459
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:00007f9a5134fbc8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000466459
RDX: 0000000000466459 RSI: 0000000000000000 RDI: 000000000000000b
RBP: 000000000000000b R08: 0000000000000000 R09: 000000000056bf60
R10: ffffffffffffffff R11: 0000000000000246 R12: 000000000056bf60
R13: 00007ffd65392dcf R14: 00007f9a51350300 R15: 0000000000022000
Modules linked in:
invalid opcode: 0000 [#2] PREEMPT SMP KASAN
CPU: 0 PID: 5917 Comm: systemd-udevd Tainted: G      D           4.19.182-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__phys_addr+0xa7/0x110 arch/x86/mm/physaddr.c:27
Code: 4e fb 09 4c 89 e3 31 ff 48 d3 eb 48 89 de e8 80 fd 36 00 48 85 db 75 0d e8 e6 fb 36 00 4c 89 e0 5b 5d 41 5c c3 e8 d9 fb 36 00 <0f> 0b e8 d2 fb 36 00 48 c7 c0 10 30 e7 89 48 ba 00 00 00 00 00 fc
RSP: 0018:ffff88800ebbfa90 EFLAGS: 00010293
RAX: ffff8880b39140c0 RBX: 0000000707000000 RCX: ffffffff812b5e48
RDX: 0000000000000000 RSI: ffffffff812b5ea7 RDI: 0000000000000006
RBP: 0000000787000000 R08: 0000000000000000 R09: 0000000787000000
R10: 0000000000000006 R11: 000000000000000a R12: 0000778707000000
R13: ffff88800ebbfae8 R14: 0000000000000000 R15: 0000000000000286
FS:  00007ff08bfbb8c0(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fdd280104e0 CR3: 000000003120b000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 virt_to_head_page include/linux/mm.h:665 [inline]
 qlink_to_cache mm/kasan/quarantine.c:127 [inline]
 qlist_free_all+0xbb/0x140 mm/kasan/quarantine.c:163
 quarantine_reduce+0x1a9/0x230 mm/kasan/quarantine.c:259
 kasan_kmalloc+0xa2/0x160 mm/kasan/kasan.c:538
 slab_post_alloc_hook mm/slab.h:445 [inline]
 slab_alloc mm/slab.c:3397 [inline]
 kmem_cache_alloc+0x110/0x370 mm/slab.c:3557
 getname_flags+0xce/0x590 fs/namei.c:140
 user_path_at_empty+0x2a/0x50 fs/namei.c:2609
 do_readlinkat+0xcd/0x2f0 fs/stat.c:394
 __do_sys_readlinkat fs/stat.c:421 [inline]
 __se_sys_readlinkat fs/stat.c:418 [inline]
 __x64_sys_readlinkat+0x93/0xf0 fs/stat.c:418
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7ff08ae2f0ba
Code: 48 8b 0d e1 bd 2b 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 0b 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d ae bd 2b 00 f7 d8 64 89 01 48
RSP: 002b:00007ffd7cae77c8 EFLAGS: 00000202 ORIG_RAX: 000000000000010b
RAX: ffffffffffffffda RBX: 000056440817d480 RCX: 00007ff08ae2f0ba
RDX: 000056440817d480 RSI: 000056440817be80 RDI: 00000000ffffff9c
RBP: 0000000000000064 R08: 0000564407307670 R09: 0000000000000070
R10: 0000000000000063 R11: 0000000000000202 R12: 000056440817be80
R13: 00000000ffffff9c R14: 00007ffd7cae7820 R15: 0000000000000063
Modules linked in:
---[ end trace 2ae8feb9262c9780 ]---
RIP: 0010:close_files fs/file.c:383 [inline]
RIP: 0010:put_files_struct fs/file.c:416 [inline]
RIP: 0010:put_files_struct+0x114/0x350 fs/file.c:413
Code: 80 38 00 0f 85 e9 01 00 00 8d 43 01 48 b9 00 00 00 00 00 fc ff df 89 44 24 14 49 8b 44 24 18 48 8d 1c d8 48 89 d8 48 c1 e8 03 <80> 3c 08 00 0f 85 da 01 00 00 48 8b 1b 31 ff 48 89 de e8 e5 96 b8
RSP: 0018:ffff88804d0bfd20 EFLAGS: 00010202
RAX: 0000e0e0e0e0e0e0 RBX: 0007070707070700 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: ffffffff81a9c4e5 RDI: 0000000000000005
RBP: ffff88808fb1aa30 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff88800011b300
R13: 0000000000000000 R14: ffff8880500827c0 R15: 0000000000000001
FS:  00007ff08bfbb8c0(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fdd2800d840 CR3: 000000003120b000 CR4: 00000000001426f0
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/03/24 09:05 linux-4.19.y 125222814e7b e613994b .config console log report info ci2-linux-4-19 general protection fault in put_files_struct
* Struck through repros no longer work on HEAD.