Oops: general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017] CPU: 1 PID: 5286 Comm: kworker/u33:2 Not tainted 6.10.0-rc6-syzkaller-g73e931504f8e #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Workqueue: hci0 hci_rx_work RIP: 0010:selinux_socket_sock_rcv_skb+0xec/0x720 security/selinux/hooks.c:5100 Code: 03 0f b6 04 02 84 c0 74 08 3c 01 0f 8e a7 05 00 00 49 8d 7e 10 0f b7 6b 10 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 74 05 00 00 41 8b 46 10 4c 8d RSP: 0018:ffffc900038ff730 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff88801219a000 RCX: ffffffff88d0b4a2 RDX: 0000000000000002 RSI: ffffffff843ae38f RDI: 0000000000000010 RBP: 000000000000001f R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000003 R12: ffff88803d2cf900 R13: 1ffff9200071fee9 R14: 0000000000000000 R15: ffff88803d2cf900 FS: 0000000000000000(0000) GS:ffff88806b100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f756a6d962d CR3: 000000002c582000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: security_sock_rcv_skb+0x6d/0xc0 security/security.c:4603 sk_filter_trim_cap+0xd2/0xac0 net/core/filter.c:150 sk_filter include/linux/filter.h:945 [inline] l2cap_sock_recv_cb+0xdb/0x3d0 net/bluetooth/l2cap_sock.c:1502 l2cap_conless_channel net/bluetooth/l2cap_core.c:6774 [inline] l2cap_recv_frame+0x1c4c/0x8e50 net/bluetooth/l2cap_core.c:6827 l2cap_recv_acldata+0x9ac/0xb60 net/bluetooth/l2cap_core.c:7510 hci_acldata_packet net/bluetooth/hci_core.c:3842 [inline] hci_rx_work+0xaa7/0x1610 net/bluetooth/hci_core.c:4079 process_one_work+0x9c5/0x1b40 kernel/workqueue.c:3248 process_scheduled_works kernel/workqueue.c:3329 [inline] worker_thread+0x6c8/0xf30 kernel/workqueue.c:3409 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:selinux_socket_sock_rcv_skb+0xec/0x720 security/selinux/hooks.c:5100 Code: 03 0f b6 04 02 84 c0 74 08 3c 01 0f 8e a7 05 00 00 49 8d 7e 10 0f b7 6b 10 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 74 05 00 00 41 8b 46 10 4c 8d RSP: 0018:ffffc900038ff730 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff88801219a000 RCX: ffffffff88d0b4a2 RDX: 0000000000000002 RSI: ffffffff843ae38f RDI: 0000000000000010 RBP: 000000000000001f R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000003 R12: ffff88803d2cf900 R13: 1ffff9200071fee9 R14: 0000000000000000 R15: ffff88803d2cf900 FS: 0000000000000000(0000) GS:ffff88806b100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f756a6d962d CR3: 000000002c582000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 03 0f add (%rdi),%ecx 2: b6 04 mov $0x4,%dh 4: 02 84 c0 74 08 3c 01 add 0x13c0874(%rax,%rax,8),%al b: 0f 8e a7 05 00 00 jle 0x5b8 11: 49 8d 7e 10 lea 0x10(%r14),%rdi 15: 0f b7 6b 10 movzwl 0x10(%rbx),%ebp 19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 20: fc ff df 23: 48 89 fa mov %rdi,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax <-- trapping instruction 2e: 84 c0 test %al,%al 30: 74 08 je 0x3a 32: 3c 03 cmp $0x3,%al 34: 0f 8e 74 05 00 00 jle 0x5ae 3a: 41 8b 46 10 mov 0x10(%r14),%eax 3e: 4c rex.WR 3f: 8d .byte 0x8d