audit: type=1400 audit(1566095023.081:36): avc: denied { map } for pid=6840 comm="syz-executor607" path="/root/syz-executor607972183" dev="sda1" ino=16482 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1 IPVS: ftp: loaded support on port[0] = 21 BUG: sleeping function called from invalid context at arch/x86/mm/fault.c:1363 in_atomic(): 0, irqs_disabled(): 1, pid: 6852, name: syz-executor607 4 locks held by syz-executor607/6852: #0: (&tty->ldisc_sem){++++}, at: [] ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:376 #1: (&tty->termios_rwsem){++++}, at: [] tty_unthrottle+0x20/0xf0 drivers/tty/tty_ioctl.c:135 #2: (&tty->ldisc_sem){++++}, at: [] tty_ldisc_ref+0x20/0x80 drivers/tty/tty_ldisc.c:305 #3: (&mm->mmap_sem){++++}, at: [] __do_page_fault+0x2ca/0xb80 arch/x86/mm/fault.c:1349 irq event stamp: 10 hardirqs last enabled at (9): [] do_syscall_64+0x53/0x640 arch/x86/entry/common.c:280 hardirqs last disabled at (10): [] queue_work_on+0x95/0x1d0 kernel/workqueue.c:1485 softirqs last enabled at (0): [] copy_process.part.0+0x12d5/0x6a00 kernel/fork.c:1723 softirqs last disabled at (0): [< (null)>] (null) CPU: 1 PID: 6852 Comm: syz-executor607 Not tainted 4.14.139 #35 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x138/0x19c lib/dump_stack.c:53 ___might_sleep.cold+0x1bd/0x1f6 kernel/sched/core.c:6039 __might_sleep+0x93/0xb0 kernel/sched/core.c:5992 __do_page_fault+0x2ed/0xb80 arch/x86/mm/fault.c:1363 do_page_fault+0x71/0x511 arch/x86/mm/fault.c:1495 page_fault+0x25/0x50 arch/x86/entry/entry_64.S:1122 RIP: 0010:test_and_set_bit arch/x86/include/asm/bitops.h:220 [inline] RIP: 0010:queue_work_on+0x95/0x1d0 kernel/workqueue.c:1487 RSP: 0018:ffff88809790fad0 EFLAGS: 00010046 RAX: 0000000000000007 RBX: 0000000000000297 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8880a5bd0a44 RBP: ffff88809790faf8 R08: 0000000000000001 R09: ffff8880a5bd0af0 R10: ffff8880a5bd0ad0 R11: ffff8880a5bd0200 R12: 0000000000000050 R13: 0000000000000040 R14: ffff8880aa8147c0 R15: 0000000000000000 queue_work include/linux/workqueue.h:491 [inline] schedule_work include/linux/workqueue.h:549 [inline] slcan_write_wakeup+0x66/0x90 drivers/net/can/slcan.c:348 tty_wakeup+0xc9/0x100 drivers/tty/tty_io.c:533 pty_unthrottle+0x37/0x50 drivers/tty/pty.c:94 tty_unthrottle+0x88/0xf0 drivers/tty/tty_ioctl.c:138 __tty_perform_flush+0x1a4/0x1f0 drivers/tty/tty_ioctl.c:860 n_tty_ioctl_helper+0x17d/0x360 drivers/tty/tty_ioctl.c:936 n_tty_ioctl+0x4a/0x2e0 drivers/tty/n_tty.c:2466 tty_ioctl+0x8f7/0x1320 drivers/tty/tty_io.c:2670 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x7ae/0x1060 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:692 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x446f29 RSP: 002b:00007f7073684c48 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00000000006ddc58 RCX: 0000000000446f29 RDX: 0000000000000000 RSI: 000000000000540b RDI: 0000000000000003 RBP: 00000000006ddc50 R08: 00007f7073685700 R09: 0000000000000000 R10: 00007f7073685700 R11: 0000000000000246 R12: 00000000006ddc5c R13: 00007ffc69903e2f R14: 00007f70736859c0 R15: 000000000000002d BUG: unable to handle kernel NULL pointer dereference at 0000000000000050 IP: test_and_set_bit arch/x86/include/asm/bitops.h:220 [inline] IP: queue_work_on+0x95/0x1d0 kernel/workqueue.c:1487 PGD 9f69b067 P4D 9f69b067 PUD 91e03067 PMD 0 Oops: 0002 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 1 PID: 6852 Comm: syz-executor607 Tainted: G W 4.14.139 #35 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8880a5bd0200 task.stack: ffff888097908000 RIP: 0010:test_and_set_bit arch/x86/include/asm/bitops.h:220 [inline] RIP: 0010:queue_work_on+0x95/0x1d0 kernel/workqueue.c:1487 RSP: 0018:ffff88809790fad0 EFLAGS: 00010046 RAX: 0000000000000007 RBX: 0000000000000297 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8880a5bd0a44 RBP: ffff88809790faf8 R08: 0000000000000001 R09: ffff8880a5bd0af0 R10: ffff8880a5bd0ad0 R11: ffff8880a5bd0200 R12: 0000000000000050 R13: 0000000000000040 R14: ffff8880aa8147c0 R15: 0000000000000000 FS: 00007f7073685700(0000) GS:ffff8880aef00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000050 CR3: 000000008032f000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: queue_work include/linux/workqueue.h:491 [inline] schedule_work include/linux/workqueue.h:549 [inline] slcan_write_wakeup+0x66/0x90 drivers/net/can/slcan.c:348 tty_wakeup+0xc9/0x100 drivers/tty/tty_io.c:533 pty_unthrottle+0x37/0x50 drivers/tty/pty.c:94 tty_unthrottle+0x88/0xf0 drivers/tty/tty_ioctl.c:138 __tty_perform_flush+0x1a4/0x1f0 drivers/tty/tty_ioctl.c:860 n_tty_ioctl_helper+0x17d/0x360 drivers/tty/tty_ioctl.c:936 n_tty_ioctl+0x4a/0x2e0 drivers/tty/n_tty.c:2466 tty_ioctl+0x8f7/0x1320 drivers/tty/tty_io.c:2670 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x7ae/0x1060 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:692 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x446f29 RSP: 002b:00007f7073684c48 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00000000006ddc58 RCX: 0000000000446f29 RDX: 0000000000000000 RSI: 000000000000540b RDI: 0000000000000003 RBP: 00000000006ddc50 R08: 00007f7073685700 R09: 0000000000000000 R10: 00007f7073685700 R11: 0000000000000246 R12: 00000000006ddc5c R13: 00007ffc69903e2f R14: 00007f70736859c0 R15: 000000000000002d Code: e8 03 80 3c 10 00 0f 85 24 01 00 00 48 83 3d f2 81 34 06 00 0f 84 f0 00 00 00 e8 87 0c 20 00 fa 66 0f 1f 44 00 00 e8 3b 95 0a 00 41 0f ba 2c 24 00 41 bf 00 00 00 00 0f 83 a7 00 00 00 e8 63 RIP: test_and_set_bit arch/x86/include/asm/bitops.h:220 [inline] RSP: ffff88809790fad0 RIP: queue_work_on+0x95/0x1d0 kernel/workqueue.c:1487 RSP: ffff88809790fad0 CR2: 0000000000000050 ---[ end trace f25f839faa3817ad ]---