syzbot
general protection fault in loop_clr_fd (2)
Status:
upstream: reported C repro on 2020/10/24 14:56
Reported-by: syzbot+2be7d1f1055673413f63@syzkaller.appspotmail.com
First crash: 2110d, last: 1254d
▶
▼
Fix bisection attempts (16)
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
Modules linked in:
CPU: 0 PID: 9378 Comm: systemd-udevd Not tainted 4.14.232-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff88809fb16140 task.stack: ffff88809efb8000
RIP: 0010:kobject_uevent_env+0xb2/0xf40 lib/kobject_uevent.c:355
RSP: 0018:ffff88809efbfc00 EFLAGS: 00010206
RAX: 0000000000000018 RBX: 0000000000000002 RCX: 1ffff11013f62d48
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 00000000000000c0
RBP: ffff888098b91490 R08: ffffffff8b99acd0 R09: 0000000000000003
R10: 0000000000000000 R11: ffff88809fb16140 R12: 00000000000000a0
R13: dffffc0000000000 R14: ffff888098b91388 R15: 00000000000000a0
FS: 00007fa88f9718c0(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f101a14e000 CR3: 000000009f03a000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
loop_clr_fd+0x59f/0xc20 drivers/block/loop.c:1069
__lo_release drivers/block/loop.c:1660 [inline]
lo_release+0xff/0x190 drivers/block/loop.c:1678
__blkdev_put+0x5aa/0x800 fs/block_dev.c:1803
blkdev_close+0x86/0xb0 fs/block_dev.c:1875
__fput+0x25f/0x7a0 fs/file_table.c:210
task_work_run+0x11f/0x190 kernel/task_work.c:113
tracehook_notify_resume include/linux/tracehook.h:191 [inline]
exit_to_usermode_loop+0x1ad/0x200 arch/x86/entry/common.c:164
prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline]
syscall_return_slowpath arch/x86/entry/common.c:270 [inline]
do_syscall_64+0x4a3/0x640 arch/x86/entry/common.c:297
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7fa88eab7270
RSP: 002b:00007ffc7be7fad8 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000007 RCX: 00007fa88eab7270
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000007
RBP: 00007fa88f971710 R08: 000055cc669fb3a0 R09: 000055cc669fb100
R10: 00007fa88f9718c0 R11: 0000000000000246 R12: 0000000000000000
R13: 000055cc66a056e0 R14: 0000000000000003 R15: 000000000000000e
Code: 03 42 80 3c 28 00 0f 85 e4 0b 00 00 4d 8b 64 24 18 4d 85 e4 0f 84 01 0c 00 00 e8 ba 6e 58 fa 49 8d 7c 24 20 48 89 f8 48 c1 e8 03 <42> 80 3c 28 00 0f 85 db 0b 00 00 49 8b 6c 24 20 48 85 ed 74 b0
RIP: kobject_uevent_env+0xb2/0xf40 lib/kobject_uevent.c:355 RSP: ffff88809efbfc00
---[ end trace 0a2cd2211c4fdcbf ]---
* Struck through repros no longer work on HEAD.