================================================================== BUG: KASAN: null-ptr-deref in test_and_set_bit include/asm-generic/bitops-instrumented.h:143 [inline] BUG: KASAN: null-ptr-deref in queue_work_on+0xa6/0x210 kernel/workqueue.c:1517 Write of size 8 at addr 0000000000000050 by task syz-executor.1/9784 CPU: 0 PID: 9784 Comm: syz-executor.1 Not tainted 5.3.0-rc4+ #113 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+0x172/0x1f0 lib/dump_stack.c:113 __kasan_report.cold+0x5/0x36 mm/kasan/report.c:486 kasan_report+0x12/0x17 mm/kasan/common.c:612 check_memory_region_inline mm/kasan/generic.c:185 [inline] check_memory_region+0x134/0x1a0 mm/kasan/generic.c:192 __kasan_check_write+0x14/0x20 mm/kasan/common.c:98 test_and_set_bit include/asm-generic/bitops-instrumented.h:143 [inline] queue_work_on+0xa6/0x210 kernel/workqueue.c:1517 queue_work include/linux/workqueue.h:490 [inline] schedule_work include/linux/workqueue.h:548 [inline] slcan_write_wakeup+0x66/0x90 drivers/net/can/slcan.c:348 tty_wakeup+0xe9/0x120 drivers/tty/tty_io.c:535 pty_unthrottle+0x37/0x60 drivers/tty/pty.c:95 tty_unthrottle+0xab/0x110 drivers/tty/tty_ioctl.c:139 __tty_perform_flush+0x1b3/0x200 drivers/tty/tty_ioctl.c:861 n_tty_ioctl_helper+0x1cc/0x3b0 drivers/tty/tty_ioctl.c:937 n_tty_ioctl+0x59/0x370 drivers/tty/n_tty.c:2466 tty_ioctl+0xaf9/0x14f0 drivers/tty/tty_io.c:2666 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:509 [inline] do_vfs_ioctl+0xdb6/0x13e0 fs/ioctl.c:696 ksys_ioctl+0xab/0xd0 fs/ioctl.c:713 __do_sys_ioctl fs/ioctl.c:720 [inline] __se_sys_ioctl fs/ioctl.c:718 [inline] __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:718 do_syscall_64+0xfd/0x6a0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x459829 Code: fd b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fe9bb7a1c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000459829 RDX: 0000000000000000 RSI: 000000000000540b RDI: 0000000000000003 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fe9bb7a26d4 R13: 00000000004c3e0b R14: 00000000004d7dd0 R15: 00000000ffffffff ==================================================================