vhci_hcd: connection closed ================================================================== BUG: KASAN: null-ptr-deref in atomic_inc include/asm-generic/atomic-instrumented.h:109 [inline] BUG: KASAN: null-ptr-deref in kthread_stop+0x72/0x6b0 kernel/kthread.c:558 Write of size 4 at addr 000000000000001c by task kworker/u4:8/10368 CPU: 1 PID: 10368 Comm: kworker/u4:8 Not tainted 4.19.162-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: usbip_event event_handler Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2fe lib/dump_stack.c:118 kasan_report_error.cold+0x15b/0x1c7 mm/kasan/report.c:352 kasan_report+0x8f/0x96 mm/kasan/report.c:412 atomic_inc include/asm-generic/atomic-instrumented.h:109 [inline] kthread_stop+0x72/0x6b0 kernel/kthread.c:558 vhci_shutdown_connection+0x14e/0x280 drivers/usb/usbip/vhci_hcd.c:1021 event_handler+0x1f0/0x4f0 drivers/usb/usbip/usbip_event.c:78 process_one_work+0x864/0x1570 kernel/workqueue.c:2155 FAULT_INJECTION: forcing a failure. name failslab, interval 1, probability 0, space 0, times 0 worker_thread+0x64c/0x1130 kernel/workqueue.c:2298 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 hfs: unable to parse mount options ================================================================== CPU: 0 PID: 31730 Comm: syz-executor.2 Tainted: G B 4.19.162-syzkaller #0 kvm: vcpu 0: requested 128 ns lapic timer period limited to 200000 ns Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2fe lib/dump_stack.c:118 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0xa/0x14 lib/fault-inject.c:149 __should_failslab+0x115/0x180 mm/failslab.c:32 should_failslab+0x5/0xf mm/slab_common.c:1588 slab_pre_alloc_hook mm/slab.h:424 [inline] slab_alloc mm/slab.c:3383 [inline] kmem_cache_alloc_trace+0x284/0x380 mm/slab.c:3623 kmalloc include/linux/slab.h:515 [inline] __kthread_create_on_node+0xd2/0x410 kernel/kthread.c:304 kthread_create_on_node+0xbb/0xf0 kernel/kthread.c:392 loop_prepare_queue drivers/block/loop.c:929 [inline] loop_set_fd drivers/block/loop.c:979 [inline] lo_ioctl+0xae5/0x20e0 drivers/block/loop.c:1576 __blkdev_driver_ioctl block/ioctl.c:303 [inline] blkdev_ioctl+0x5cb/0x1a7e block/ioctl.c:601 block_ioctl+0xe9/0x130 fs/block_dev.c:1906 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45dfc7 Code: 48 83 c4 08 48 89 d8 5b 5d c3 66 0f 1f 84 00 00 00 00 00 48 89 e8 48 f7 d8 48 39 c3 0f 92 c0 eb 92 66 90 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 6d b5 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f1b7d187a18 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 000000000045dfc7 RDX: 0000000000000004 RSI: 0000000000004c00 RDI: 0000000000000005 RBP: 0000000000000000 R08: 00007f1b7d187ac8 R09: 0000000000000000 R10: 00007f1b7d187acc R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000004 R14: 0000000000000004 R15: 0000000020000810