BUG: sleeping function called from invalid context at arch/x86/mm/fault.c:1351 in_atomic(): 0, irqs_disabled(): 1, non_block: 0, pid: 20300, name: syz-executor.3 3 locks held by syz-executor.3/20300: #0: ffff8881161c4f48 (&hdev->req_lock){+.+.}-{3:3}, at: hci_req_sync+0x35/0x70 net/bluetooth/hci_request.c:278 #1: ffffffff845da780 (rcu_read_lock){....}-{1:2}, at: __queue_work+0x54/0x670 kernel/workqueue.c:1418 #2: ffff88810cdf83d8 (&mm->mmap_lock#2){++++}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:136 [inline] #2: ffff88810cdf83d8 (&mm->mmap_lock#2){++++}-{3:3}, at: do_user_addr_fault arch/x86/mm/fault.c:1334 [inline] #2: ffff88810cdf83d8 (&mm->mmap_lock#2){++++}-{3:3}, at: handle_page_fault arch/x86/mm/fault.c:1450 [inline] #2: ffff88810cdf83d8 (&mm->mmap_lock#2){++++}-{3:3}, at: exc_page_fault+0x15b/0x790 arch/x86/mm/fault.c:1506 irq event stamp: 258 hardirqs last enabled at (257): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] hardirqs last enabled at (257): [] _raw_spin_unlock_irqrestore+0x54/0x70 kernel/locking/spinlock.c:191 hardirqs last disabled at (258): [] queue_work_on+0x82/0xb0 kernel/workqueue.c:1521 softirqs last enabled at (224): [] hci_sock_ioctl+0x51/0x3e0 net/bluetooth/hci_sock.c:1010 softirqs last disabled at (222): [] spin_lock_bh include/linux/spinlock.h:359 [inline] softirqs last disabled at (222): [] release_sock+0x14/0xa0 net/core/sock.c:3064 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 PID: 20300 Comm: syz-executor.3 Not tainted 5.11.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0xa3/0xc8 lib/dump_stack.c:120 ___might_sleep.cold.121+0xfb/0x10f kernel/sched/core.c:7966 do_user_addr_fault arch/x86/mm/fault.c:1351 [inline] handle_page_fault arch/x86/mm/fault.c:1450 [inline] exc_page_fault+0x17b/0x790 arch/x86/mm/fault.c:1506 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:580 RIP: 0010:__queue_work+0xdc/0x670 kernel/workqueue.c:1440 Code: 88 03 00 00 44 89 ef e8 22 42 f1 ff 4c 89 e7 89 c6 e8 58 d3 ff ff 48 89 df 49 89 c7 e8 dd 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 83 10 f4 01 41 8b 47 18 85 RSP: 0018:ffffc90001313c08 EFLAGS: 00010086 RAX: ffff888100bc1c00 RBX: ffff8881161c4a88 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000005 RDI: ffffffff844f0680 RBP: ffffc90001313c40 R08: ffff888100400050 R09: ffff888100400000 R10: 0000000000000000 R11: ffffffff844f06c8 R12: ffff888114a37c00 R13: 0000000000000000 R14: 0000000000000040 R15: 0000000000000000 queue_work_on+0x99/0xb0 kernel/workqueue.c:1524 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_dev_cmd+0x1d4/0x2c0 net/bluetooth/hci_core.c:2049 hci_sock_ioctl+0x1f6/0x3e0 net/bluetooth/hci_sock.c:1052 sock_do_ioctl+0x38/0x130 net/socket.c:1037 sock_ioctl+0x260/0x350 net/socket.c:1177 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:0x45d4d9 Code: 5d b4 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 2b b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fb319848c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000001e000 RCX: 000000000045d4d9 RDX: 0000000020000040 RSI: 00000000400448dd RDI: 0000000000000004 RBP: 000000000118d020 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118cfec R13: 00007ffce58f1baf R14: 00007fb3198499c0 R15: 000000000118cfec BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 116785067 P4D 116785067 PUD 1159cd067 PMD 0 Oops: 0000 [#1] PREEMPT SMP CPU: 0 PID: 20300 Comm: syz-executor.3 Tainted: G W 5.11.0-rc5-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:1440 Code: 88 03 00 00 44 89 ef e8 22 42 f1 ff 4c 89 e7 89 c6 e8 58 d3 ff ff 48 89 df 49 89 c7 e8 dd 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 83 10 f4 01 41 8b 47 18 85 RSP: 0018:ffffc90001313c08 EFLAGS: 00010086 RAX: ffff888100bc1c00 RBX: ffff8881161c4a88 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000005 RDI: ffffffff844f0680 RBP: ffffc90001313c40 R08: ffff888100400050 R09: ffff888100400000 R10: 0000000000000000 R11: ffffffff844f06c8 R12: ffff888114a37c00 R13: 0000000000000000 R14: 0000000000000040 R15: 0000000000000000 FS: 00007fb319849700(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000115390003 CR4: 00000000001706f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: queue_work_on+0x99/0xb0 kernel/workqueue.c:1524 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_dev_cmd+0x1d4/0x2c0 net/bluetooth/hci_core.c:2049 hci_sock_ioctl+0x1f6/0x3e0 net/bluetooth/hci_sock.c:1052 sock_do_ioctl+0x38/0x130 net/socket.c:1037 sock_ioctl+0x260/0x350 net/socket.c:1177 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:0x45d4d9 Code: 5d b4 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 2b b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fb319848c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000001e000 RCX: 000000000045d4d9 RDX: 0000000020000040 RSI: 00000000400448dd RDI: 0000000000000004 RBP: 000000000118d020 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118cfec R13: 00007ffce58f1baf R14: 00007fb3198499c0 R15: 000000000118cfec Modules linked in: CR2: 0000000000000000 ---[ end trace d709e345b1c2e1cb ]--- RIP: 0010:__queue_work+0xdc/0x670 kernel/workqueue.c:1440 Code: 88 03 00 00 44 89 ef e8 22 42 f1 ff 4c 89 e7 89 c6 e8 58 d3 ff ff 48 89 df 49 89 c7 e8 dd 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 83 10 f4 01 41 8b 47 18 85 RSP: 0018:ffffc90001313c08 EFLAGS: 00010086 RAX: ffff888100bc1c00 RBX: ffff8881161c4a88 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000005 RDI: ffffffff844f0680 RBP: ffffc90001313c40 R08: ffff888100400050 R09: ffff888100400000 R10: 0000000000000000 R11: ffffffff844f06c8 R12: ffff888114a37c00 R13: 0000000000000000 R14: 0000000000000040 R15: 0000000000000000 FS: 00007fb319849700(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000115390003 CR4: 00000000001706f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400