BUG: sleeping function called from invalid context at arch/x86/mm/fault.c:1330 in_atomic(): 0, irqs_disabled(): 1, non_block: 0, pid: 21888, name: syz-executor.0 3 locks held by syz-executor.0/21888: #0: ffff88811d4def40 (&hdev->req_lock){+.+.}-{3:3}, at: hci_req_sync+0x35/0x70 net/bluetooth/hci_request.c:278 #1: ffffffff843d8940 (rcu_read_lock){....}-{1:2}, at: __queue_work+0x54/0x670 kernel/workqueue.c:1415 #2: ffff888109e26e28 (&mm->mmap_lock#2){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:56 [inline] #2: ffff888109e26e28 (&mm->mmap_lock#2){++++}-{3:3}, at: do_user_addr_fault arch/x86/mm/fault.c:1313 [inline] #2: ffff888109e26e28 (&mm->mmap_lock#2){++++}-{3:3}, at: handle_page_fault arch/x86/mm/fault.c:1429 [inline] #2: ffff888109e26e28 (&mm->mmap_lock#2){++++}-{3:3}, at: exc_page_fault+0x156/0x700 arch/x86/mm/fault.c:1485 irq event stamp: 448 hardirqs last enabled at (447): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] hardirqs last enabled at (447): [] _raw_spin_unlock_irqrestore+0x54/0x70 kernel/locking/spinlock.c:191 hardirqs last disabled at (448): [] queue_work_on+0x82/0xb0 kernel/workqueue.c:1518 softirqs last enabled at (436): [] hci_sock_ioctl+0x51/0x3e0 net/bluetooth/hci_sock.c:1010 softirqs last disabled at (434): [] spin_lock_bh include/linux/spinlock.h:359 [inline] softirqs last disabled at (434): [] release_sock+0x14/0xa0 net/core/sock.c:3051 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 1 PID: 21888 Comm: syz-executor.0 Not tainted 5.10.0-rc3-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+0xa3/0xc8 lib/dump_stack.c:118 ___might_sleep.cold.112+0xfb/0x10f kernel/sched/core.c:7298 do_user_addr_fault arch/x86/mm/fault.c:1330 [inline] handle_page_fault arch/x86/mm/fault.c:1429 [inline] exc_page_fault+0x171/0x700 arch/x86/mm/fault.c:1485 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:583 RIP: 0010:__queue_work+0xdc/0x670 kernel/workqueue.c:1437 Code: 88 03 00 00 44 89 ef e8 42 46 f1 ff 4c 89 e7 89 c6 e8 98 d3 ff ff 48 89 df 49 89 c7 e8 fd dd ff ff 48 85 c0 0f 84 2f 01 00 00 <49> 39 07 0f 85 75 02 00 00 48 89 c7 e8 63 81 ee 01 41 8b 47 18 85 RSP: 0018:ffffc90001043be8 EFLAGS: 00010086 RAX: ffff8881012d9800 RBX: ffff88811d4dea80 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000005 RDI: ffffffff842eee20 RBP: ffffc90001043c20 R08: ffff888100400050 R09: ffff888100400000 R10: 0000000000000000 R11: ffffffff842eee68 R12: ffff88811d496400 R13: 0000000000000001 R14: 0000000000000040 R15: 0000000000000000 queue_work_on+0x99/0xb0 kernel/workqueue.c:1521 queue_work include/linux/workqueue.h:507 [inline] req_run+0xa9/0xf0 net/bluetooth/hci_request.c:87 hci_req_run_skb net/bluetooth/hci_request.c:99 [inline] __hci_req_sync+0xd9/0x280 net/bluetooth/hci_request.c:212 hci_req_sync+0x49/0x70 net/bluetooth/hci_request.c:279 hci_inquiry+0x10d/0x310 net/bluetooth/hci_core.c:1350 hci_sock_ioctl+0xda/0x3e0 net/bluetooth/hci_sock.c:1055 sock_do_ioctl+0x38/0x130 net/socket.c:1047 sock_ioctl+0x2f2/0x3e0 net/socket.c:1198 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl fs/ioctl.c:739 [inline] __x64_sys_ioctl+0x7c/0xb0 fs/ioctl.c:739 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45cce9 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:00007fe7962c8c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000000e600 RCX: 000000000045cce9 RDX: 0000000020000000 RSI: 00000000800448f0 RDI: 0000000000000005 RBP: 000000000078bf40 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000078bf0c R13: 00007ffe1b1c11ef R14: 00007fe7962c99c0 R15: 000000000078bf0c BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 11b7f6067 P4D 11b7f6067 PUD 11b727067 PMD 0 Oops: 0000 [#1] PREEMPT SMP CPU: 1 PID: 21888 Comm: syz-executor.0 Tainted: G W 5.10.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__queue_work+0xdc/0x670 kernel/workqueue.c:1437 Code: 88 03 00 00 44 89 ef e8 42 46 f1 ff 4c 89 e7 89 c6 e8 98 d3 ff ff 48 89 df 49 89 c7 e8 fd dd ff ff 48 85 c0 0f 84 2f 01 00 00 <49> 39 07 0f 85 75 02 00 00 48 89 c7 e8 63 81 ee 01 41 8b 47 18 85 RSP: 0018:ffffc90001043be8 EFLAGS: 00010086 RAX: ffff8881012d9800 RBX: ffff88811d4dea80 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000005 RDI: ffffffff842eee20 RBP: ffffc90001043c20 R08: ffff888100400050 R09: ffff888100400000 R10: 0000000000000000 R11: ffffffff842eee68 R12: ffff88811d496400 R13: 0000000000000001 R14: 0000000000000040 R15: 0000000000000000 FS: 00007fe7962c9700(0000) GS:ffff88813bd00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000011b58c000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: queue_work_on+0x99/0xb0 kernel/workqueue.c:1521 queue_work include/linux/workqueue.h:507 [inline] req_run+0xa9/0xf0 net/bluetooth/hci_request.c:87 hci_req_run_skb net/bluetooth/hci_request.c:99 [inline] __hci_req_sync+0xd9/0x280 net/bluetooth/hci_request.c:212 hci_req_sync+0x49/0x70 net/bluetooth/hci_request.c:279 hci_inquiry+0x10d/0x310 net/bluetooth/hci_core.c:1350 hci_sock_ioctl+0xda/0x3e0 net/bluetooth/hci_sock.c:1055 sock_do_ioctl+0x38/0x130 net/socket.c:1047 sock_ioctl+0x2f2/0x3e0 net/socket.c:1198 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl fs/ioctl.c:739 [inline] __x64_sys_ioctl+0x7c/0xb0 fs/ioctl.c:739 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45cce9 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:00007fe7962c8c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000000e600 RCX: 000000000045cce9 RDX: 0000000020000000 RSI: 00000000800448f0 RDI: 0000000000000005 RBP: 000000000078bf40 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000078bf0c R13: 00007ffe1b1c11ef R14: 00007fe7962c99c0 R15: 000000000078bf0c Modules linked in: CR2: 0000000000000000 ---[ end trace bc15e06219d850a3 ]--- RIP: 0010:__queue_work+0xdc/0x670 kernel/workqueue.c:1437 Code: 88 03 00 00 44 89 ef e8 42 46 f1 ff 4c 89 e7 89 c6 e8 98 d3 ff ff 48 89 df 49 89 c7 e8 fd dd ff ff 48 85 c0 0f 84 2f 01 00 00 <49> 39 07 0f 85 75 02 00 00 48 89 c7 e8 63 81 ee 01 41 8b 47 18 85 RSP: 0018:ffffc90001043be8 EFLAGS: 00010086 RAX: ffff8881012d9800 RBX: ffff88811d4dea80 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000005 RDI: ffffffff842eee20 RBP: ffffc90001043c20 R08: ffff888100400050 R09: ffff888100400000 R10: 0000000000000000 R11: ffffffff842eee68 R12: ffff88811d496400 R13: 0000000000000001 R14: 0000000000000040 R15: 0000000000000000 FS: 00007fe7962c9700(0000) GS:ffff88813bd00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000011b58c000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400