BUG: sleeping function called from invalid context at arch/x86/mm/fault.c:1253 in_atomic(): 0, irqs_disabled(): 1, non_block: 0, pid: 10842, name: syz-executor.0 4 locks held by syz-executor.0/10842: #0: ffff8880b6159120 (sk_lock-AF_BLUETOOTH-BTPROTO_SCO){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1577 [inline] #0: ffff8880b6159120 (sk_lock-AF_BLUETOOTH-BTPROTO_SCO){+.+.}-{0:0}, at: sco_sock_connect+0x5e/0x310 net/bluetooth/sco.c:571 #1: ffff888110af2078 (&hdev->lock){+.+.}-{3:3}, at: sco_connect net/bluetooth/sco.c:227 [inline] #1: ffff888110af2078 (&hdev->lock){+.+.}-{3:3}, at: sco_sock_connect+0x9f/0x310 net/bluetooth/sco.c:576 #2: ffffffff842e0540 (rcu_read_lock){....}-{1:2}, at: __queue_work+0x5d/0x6a0 kernel/workqueue.c:1412 #3: ffff8881238beda8 (&mm->mmap_lock#2){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:56 [inline] #3: ffff8881238beda8 (&mm->mmap_lock#2){++++}-{3:3}, at: do_user_addr_fault arch/x86/mm/fault.c:1236 [inline] #3: ffff8881238beda8 (&mm->mmap_lock#2){++++}-{3:3}, at: handle_page_fault arch/x86/mm/fault.c:1365 [inline] #3: ffff8881238beda8 (&mm->mmap_lock#2){++++}-{3:3}, at: exc_page_fault+0x158/0x780 arch/x86/mm/fault.c:1418 irq event stamp: 168 hardirqs last enabled at (167): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] hardirqs last enabled at (167): [] _raw_spin_unlock_irqrestore+0x59/0x80 kernel/locking/spinlock.c:191 hardirqs last disabled at (168): [] queue_work_on+0x43/0xd0 kernel/workqueue.c:1515 softirqs last enabled at (130): [] lock_sock_nested+0x36/0x90 net/core/sock.c:3050 softirqs last disabled at (128): [] spin_lock_bh include/linux/spinlock.h:358 [inline] softirqs last disabled at (128): [] lock_sock_nested+0x2c/0x90 net/core/sock.c:3049 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 1 PID: 10842 Comm: syz-executor.0 Not tainted 5.8.0-rc7-syzkaller #0 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+0xb3/0xec lib/dump_stack.c:118 ___might_sleep.cold.109+0xfb/0x10f kernel/sched/core.c:6941 do_user_addr_fault arch/x86/mm/fault.c:1253 [inline] handle_page_fault arch/x86/mm/fault.c:1365 [inline] exc_page_fault+0x173/0x780 arch/x86/mm/fault.c:1418 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:542 RIP: 0010:__queue_work+0xe2/0x6a0 kernel/workqueue.c:1434 Code: 03 00 00 44 89 ff e8 8d 2a f1 ff 4c 89 ef 89 c6 e8 a3 d1 ff ff 48 8b 7d d0 48 89 c3 e8 07 dc ff ff 48 85 c0 0f 84 30 01 00 00 <48> 39 03 0f 85 af 02 00 00 48 89 c7 e8 bd 3a e3 01 8b 43 18 85 c0 RSP: 0018:ffffc90001ddfcf0 EFLAGS: 00010086 RAX: ffff88812acc1c00 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000005 RDI: ffffffff842d6f60 RBP: ffffc90001ddfd28 R08: ffff88812b800050 R09: ffff88812b800000 R10: 0000000000000000 R11: ffffffff842d6fa8 R12: 000000000000001e R13: ffff88810f7fec00 R14: 0000000000000040 R15: 0000000000000001 queue_work_on+0xb1/0xd0 kernel/workqueue.c:1518 queue_work include/linux/workqueue.h:507 [inline] hci_send_cmd+0x3c/0x60 net/bluetooth/hci_core.c:3841 hci_acl_create_connection+0xcf/0x120 net/bluetooth/hci_conn.c:236 hci_connect_acl+0x138/0x240 net/bluetooth/hci_conn.c:1261 hci_connect_sco+0x2c/0x350 net/bluetooth/hci_conn.c:1273 sco_connect net/bluetooth/sco.c:240 [inline] sco_sock_connect+0xf3/0x310 net/bluetooth/sco.c:576 __sys_connect+0x95/0xc0 net/socket.c:1871 __do_sys_connect net/socket.c:1882 [inline] __se_sys_connect net/socket.c:1879 [inline] __x64_sys_connect+0x11/0x20 net/socket.c:1879 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:384 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45ce79 Code: 2d b6 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 fb b5 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f17e0352c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 0000000000002180 RCX: 000000000045ce79 RDX: 0000000000000008 RSI: 0000000020000140 RDI: 0000000000000006 RBP: 000000000118c000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bfcc R13: 00007fff9ad753bf R14: 00007f17e03539c0 R15: 000000000118bfcc BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD b6c4b067 P4D b6c4b067 PUD b6d41067 PMD 0 Oops: 0000 [#1] PREEMPT SMP CPU: 1 PID: 10842 Comm: syz-executor.0 Tainted: G W 5.8.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__queue_work+0xe2/0x6a0 kernel/workqueue.c:1434 Code: 03 00 00 44 89 ff e8 8d 2a f1 ff 4c 89 ef 89 c6 e8 a3 d1 ff ff 48 8b 7d d0 48 89 c3 e8 07 dc ff ff 48 85 c0 0f 84 30 01 00 00 <48> 39 03 0f 85 af 02 00 00 48 89 c7 e8 bd 3a e3 01 8b 43 18 85 c0 RSP: 0018:ffffc90001ddfcf0 EFLAGS: 00010086 RAX: ffff88812acc1c00 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000005 RDI: ffffffff842d6f60 RBP: ffffc90001ddfd28 R08: ffff88812b800050 R09: ffff88812b800000 R10: 0000000000000000 R11: ffffffff842d6fa8 R12: 000000000000001e R13: ffff88810f7fec00 R14: 0000000000000040 R15: 0000000000000001 FS: 00007f17e0353700(0000) GS:ffff88812c100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 00000000b6098000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: queue_work_on+0xb1/0xd0 kernel/workqueue.c:1518 queue_work include/linux/workqueue.h:507 [inline] hci_send_cmd+0x3c/0x60 net/bluetooth/hci_core.c:3841 hci_acl_create_connection+0xcf/0x120 net/bluetooth/hci_conn.c:236 hci_connect_acl+0x138/0x240 net/bluetooth/hci_conn.c:1261 hci_connect_sco+0x2c/0x350 net/bluetooth/hci_conn.c:1273 sco_connect net/bluetooth/sco.c:240 [inline] sco_sock_connect+0xf3/0x310 net/bluetooth/sco.c:576 __sys_connect+0x95/0xc0 net/socket.c:1871 __do_sys_connect net/socket.c:1882 [inline] __se_sys_connect net/socket.c:1879 [inline] __x64_sys_connect+0x11/0x20 net/socket.c:1879 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:384 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45ce79 Code: 2d b6 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 fb b5 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f17e0352c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002a RAX: ffffffffffffffda RBX: 0000000000002180 RCX: 000000000045ce79 RDX: 0000000000000008 RSI: 0000000020000140 RDI: 0000000000000006 RBP: 000000000118c000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bfcc R13: 00007fff9ad753bf R14: 00007f17e03539c0 R15: 000000000118bfcc Modules linked in: CR2: 0000000000000000 ---[ end trace 9c82d64669309ec6 ]--- RIP: 0010:__queue_work+0xe2/0x6a0 kernel/workqueue.c:1434 Code: 03 00 00 44 89 ff e8 8d 2a f1 ff 4c 89 ef 89 c6 e8 a3 d1 ff ff 48 8b 7d d0 48 89 c3 e8 07 dc ff ff 48 85 c0 0f 84 30 01 00 00 <48> 39 03 0f 85 af 02 00 00 48 89 c7 e8 bd 3a e3 01 8b 43 18 85 c0 RSP: 0018:ffffc90001ddfcf0 EFLAGS: 00010086 RAX: ffff88812acc1c00 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000005 RDI: ffffffff842d6f60 RBP: ffffc90001ddfd28 R08: ffff88812b800050 R09: ffff88812b800000 R10: 0000000000000000 R11: ffffffff842d6fa8 R12: 000000000000001e R13: ffff88810f7fec00 R14: 0000000000000040 R15: 0000000000000001 FS: 00007f17e0353700(0000) GS:ffff88812c100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 00000000b6098000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400