syzbot


general protection fault in kernfs_find_ns

Status: auto-closed as invalid on 2021/09/18 09:16
Reported-by: syzbot+dfe2cfd9588c8465c51c@syzkaller.appspotmail.com
First crash: 1280d, last: 1280d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in kernfs_find_ns kernfs 2 1088d 1083d 0/28 auto-closed as invalid on 2022/03/29 00:22
android-5-10 general protection fault in kernfs_find_ns C error 13 47d 439d 0/2 upstream: reported C repro on 2023/09/09 18:30
android-54 general protection fault in kernfs_find_ns (2) C 21 220d 1124d 0/2 upstream: reported C repro on 2021/10/24 20:02

Sample crash report:
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80
R13: 00007ffeadde39ef R14: 00007f22dd03e300 R15: 0000000000022000
---[ end trace 53f3cdce47d144c0 ]---
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: 1234 Comm: syz-executor.3 Tainted: G        W         5.4.120-syzkaller-00694-g7a5b4ac26db4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:strlen+0x27/0x60 lib/string.c:551
Code: 0f 1f 00 41 57 41 56 53 49 89 fe 49 bf 00 00 00 00 00 fc ff df 48 89 f8 66 66 2e 0f 1f 84 00 00 00 00 00 48 89 c3 48 c1 e8 03 <42> 0f b6 04 38 84 c0 75 0b 48 8d 43 01 80 3b 00 75 e7 eb 13 89 d9
RSP: 0018:ffff8881ef5ffa18 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000200001
RDX: 0000000000200000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff81b9d03b R09: 000000000000ffff
R10: ffffc90003da6000 R11: 0000000000000000 R12: ffff8881f1ada840
R13: 0000000000000000 R14: 0000000000000000 R15: dffffc0000000000
FS:  00007f22dd03e700(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fde722dc710 CR3: 00000001e4826000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 kernfs_name_hash fs/kernfs/dir.c:302 [inline]
 kernfs_find_ns+0x83/0x430 fs/kernfs/dir.c:847
 kernfs_remove_by_name_ns+0x32/0x90 fs/kernfs/dir.c:1510
 del_gendisk+0x996/0xbf0 block/genhd.c:833
 loop_remove drivers/block/loop.c:2186 [inline]
 loop_control_ioctl+0x6a3/0x7c0 drivers/block/loop.c:2285
 do_vfs_ioctl+0x76a/0x1720 fs/ioctl.c:47
 ksys_ioctl fs/ioctl.c:742 [inline]
 __do_sys_ioctl fs/ioctl.c:749 [inline]
 __se_sys_ioctl fs/ioctl.c:747 [inline]
 __x64_sys_ioctl+0xd4/0x110 fs/ioctl.c:747
 do_syscall_64+0xcb/0x1e0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
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:00007f22dd03e188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9
RDX: 0000000000000000 RSI: 0000000000004c81 RDI: 0000000000000004
RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80
R13: 00007ffeadde39ef R14: 00007f22dd03e300 R15: 0000000000022000
Modules linked in:
---[ end trace 53f3cdce47d144c1 ]---
RIP: 0010:strlen+0x27/0x60 lib/string.c:551
Code: 0f 1f 00 41 57 41 56 53 49 89 fe 49 bf 00 00 00 00 00 fc ff df 48 89 f8 66 66 2e 0f 1f 84 00 00 00 00 00 48 89 c3 48 c1 e8 03 <42> 0f b6 04 38 84 c0 75 0b 48 8d 43 01 80 3b 00 75 e7 eb 13 89 d9
RSP: 0018:ffff8881ef5ffa18 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000200001
RDX: 0000000000200000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff81b9d03b R09: 000000000000ffff
R10: ffffc90003da6000 R11: 0000000000000000 R12: ffff8881f1ada840
R13: 0000000000000000 R14: 0000000000000000 R15: dffffc0000000000
FS:  00007f22dd03e700(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fde722dc710 CR3: 00000001e4826000 CR4: 00000000001406e0
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/05/21 09:15 android12-5.4 7a5b4ac26db4 3c7fef33 .config console log report info ci2-android-5-4-kasan general protection fault in kernfs_find_ns
* Struck through repros no longer work on HEAD.