Oops: general protection fault, probably for non-canonical address 0xdffffc0000000096: 0000 [#1] SMP KASAN PTI KASAN: null-ptr-deref in range [0x00000000000004b0-0x00000000000004b7] CPU: 0 UID: 0 PID: 5987 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 RIP: 0010:aa_sock security/apparmor/include/net.h:57 [inline] RIP: 0010:apparmor_socket_sock_rcv_skb+0x3a/0x350 security/apparmor/lsm.c:1513 Code: ec 10 49 89 f7 48 89 fb 49 bd 00 00 00 00 00 fc ff df e8 99 57 6f fd 48 89 5c 24 08 48 81 c3 b0 04 00 00 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 17 54 d6 fd 44 8b 25 20 70 74 09 RSP: 0018:ffffc90004237530 EFLAGS: 00010206 RAX: 0000000000000096 RBX: 00000000000004b0 RCX: ffff88816872d7c0 RDX: 0000000000000000 RSI: ffff888110f4e600 RDI: 0000000000000000 RBP: ffffc900042376d0 R08: ffffffff82447acc R09: ffffffff8e341b20 R10: dffffc0000000000 R11: ffffed102388124c R12: ffff888110f4e67e R13: dffffc0000000000 R14: 0000000000000000 R15: ffff888110f4e600 FS: 00007f36295926c0(0000) GS:ffff88818e40e000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3629591ff8 CR3: 0000000113938000 CR4: 00000000000006f0 Call Trace: security_sock_rcv_skb+0x8f/0x270 security/security.c:4333 sk_filter_trim_cap+0x19b/0xd90 net/core/filter.c:156 sk_filter include/linux/filter.h:1102 [inline] unix_dgram_sendmsg+0x7bc/0x17b0 net/unix/af_unix.c:2173 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg+0x21c/0x270 net/socket.c:742 ____sys_sendmsg+0x500/0x810 net/socket.c:2592 ___sys_sendmsg+0x2a5/0x360 net/socket.c:2646 __sys_sendmmsg+0x27c/0x4e0 net/socket.c:2735 __do_sys_sendmmsg net/socket.c:2762 [inline] __se_sys_sendmmsg net/socket.c:2759 [inline] __x64_sys_sendmmsg+0xa0/0xc0 net/socket.c:2759 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xe2/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f362879acb9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3629592028 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00007f3628a06090 RCX: 00007f362879acb9 RDX: 0000000000000002 RSI: 0000200000000ec0 RDI: 0000000000000006 RBP: 00007f3628808bf7 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f3628a06128 R14: 00007f3628a06090 R15: 00007ffcf5635f88 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:aa_sock security/apparmor/include/net.h:57 [inline] RIP: 0010:apparmor_socket_sock_rcv_skb+0x3a/0x350 security/apparmor/lsm.c:1513 Code: ec 10 49 89 f7 48 89 fb 49 bd 00 00 00 00 00 fc ff df e8 99 57 6f fd 48 89 5c 24 08 48 81 c3 b0 04 00 00 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 17 54 d6 fd 44 8b 25 20 70 74 09 RSP: 0018:ffffc90004237530 EFLAGS: 00010206 RAX: 0000000000000096 RBX: 00000000000004b0 RCX: ffff88816872d7c0 RDX: 0000000000000000 RSI: ffff888110f4e600 RDI: 0000000000000000 RBP: ffffc900042376d0 R08: ffffffff82447acc R09: ffffffff8e341b20 R10: dffffc0000000000 R11: ffffed102388124c R12: ffff888110f4e67e R13: dffffc0000000000 R14: 0000000000000000 R15: ffff888110f4e600 FS: 00007f36295926c0(0000) GS:ffff88818e40e000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3629591ff8 CR3: 0000000113938000 CR4: 00000000000006f0 ---------------- Code disassembly (best guess), 2 bytes skipped: 0: 49 89 f7 mov %rsi,%r15 3: 48 89 fb mov %rdi,%rbx 6: 49 bd 00 00 00 00 00 movabs $0xdffffc0000000000,%r13 d: fc ff df 10: e8 99 57 6f fd call 0xfd6f57ae 15: 48 89 5c 24 08 mov %rbx,0x8(%rsp) 1a: 48 81 c3 b0 04 00 00 add $0x4b0,%rbx 21: 48 89 d8 mov %rbx,%rax 24: 48 c1 e8 03 shr $0x3,%rax * 28: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) <-- trapping instruction 2d: 74 08 je 0x37 2f: 48 89 df mov %rbx,%rdi 32: e8 17 54 d6 fd call 0xfdd6544e 37: 44 8b 25 20 70 74 09 mov 0x9747020(%rip),%r12d # 0x974705e