SELinux: unrecognized netlink message: protocol=0 nlmsg_type=27 sclass=netlink_route_socket ================================================================== BUG: KASAN: slab-out-of-bounds in pfkey_msg2xfrm_state net/key/af_key.c:1227 [inline] BUG: KASAN: slab-out-of-bounds in pfkey_add+0x145d/0x3220 net/key/af_key.c:1506 Read of size 5859 at addr ffff8800b9842a40 by task syz-executor0/32662 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=27 sclass=netlink_route_socket TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. CPU: 1 PID: 32662 Comm: syz-executor0 Not tainted 4.4.132-gecf86dd #44 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 0000000000000000 dd3d2b8f4571fd7b ffff8801b113f6c0 ffffffff81e0df8d ffffea0002e61080 ffff8800b9842a40 0000000000000000 ffff8800b9842c00 ffff8800b9842a00 ffff8801b113f6f8 ffffffff8151526c ffff8800b9842a40 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x124 lib/dump_stack.c:51 [] print_address_description+0x6c/0x216 mm/kasan/report.c:252 [] kasan_report_error mm/kasan/report.c:351 [inline] [] kasan_report.cold.7+0x175/0x2f7 mm/kasan/report.c:408 [] check_memory_region_inline mm/kasan/kasan.c:325 [inline] [] check_memory_region+0x14f/0x1b0 mm/kasan/kasan.c:332 [] memcpy+0x23/0x50 mm/kasan/kasan.c:367 [] pfkey_msg2xfrm_state net/key/af_key.c:1227 [inline] [] pfkey_add+0x145d/0x3220 net/key/af_key.c:1506 [] pfkey_process+0x671/0x740 net/key/af_key.c:2834 [] pfkey_sendmsg+0x346/0xae0 net/key/af_key.c:3678 [] sock_sendmsg_nosec net/socket.c:625 [inline] [] sock_sendmsg+0xcc/0x110 net/socket.c:635 [] ___sys_sendmsg+0x745/0x880 net/socket.c:1962 [] __sys_sendmsg+0xd6/0x190 net/socket.c:1996 [] C_SYSC_sendmsg net/compat.c:720 [inline] [] compat_SyS_sendmsg+0x2a/0x40 net/compat.c:718 [] do_syscall_32_irqs_on arch/x86/entry/common.c:392 [inline] [] do_fast_syscall_32+0x326/0x8b0 arch/x86/entry/common.c:459 [] sysenter_flags_fixed+0xd/0x17 Allocated by task 32662: [] save_stack_trace+0x26/0x50 arch/x86/kernel/stacktrace.c:63 [] save_stack+0x43/0xd0 mm/kasan/kasan.c:512 [] set_track mm/kasan/kasan.c:524 [inline] [] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:616 [] kasan_krealloc+0x64/0x80 mm/kasan/kasan.c:654 [] ksize+0x8a/0xf0 mm/slub.c:3727 [] __alloc_skb+0x133/0x600 net/core/skbuff.c:237 [] alloc_skb include/linux/skbuff.h:815 [inline] [] pfkey_sendmsg+0xfe/0xae0 net/key/af_key.c:3665 [] sock_sendmsg_nosec net/socket.c:625 [inline] [] sock_sendmsg+0xcc/0x110 net/socket.c:635 [] ___sys_sendmsg+0x745/0x880 net/socket.c:1962 [] __sys_sendmsg+0xd6/0x190 net/socket.c:1996 [] C_SYSC_sendmsg net/compat.c:720 [inline] [] compat_SyS_sendmsg+0x2a/0x40 net/compat.c:718 [] do_syscall_32_irqs_on arch/x86/entry/common.c:392 [inline] [] do_fast_syscall_32+0x326/0x8b0 arch/x86/entry/common.c:459 [] sysenter_flags_fixed+0xd/0x17 Freed by task 29003: [] save_stack_trace+0x26/0x50 arch/x86/kernel/stacktrace.c:63 [] save_stack+0x43/0xd0 mm/kasan/kasan.c:512 [] set_track mm/kasan/kasan.c:524 [inline] [] kasan_slab_free+0x72/0xc0 mm/kasan/kasan.c:589 [] slab_free_hook mm/slub.c:1383 [inline] [] slab_free_freelist_hook mm/slub.c:1405 [inline] [] slab_free mm/slub.c:2859 [inline] [] kfree+0xf4/0x310 mm/slub.c:3749 [] free_pipe_info+0x218/0x2c0 fs/pipe.c:655 [] put_pipe_info+0xb8/0xe0 fs/pipe.c:548 [] pipe_release+0x1af/0x250 fs/pipe.c:569 [] __fput+0x235/0x6f0 fs/file_table.c:208 [] ____fput+0x15/0x20 fs/file_table.c:244 [] task_work_run+0x10f/0x190 kernel/task_work.c:115 [] tracehook_notify_resume include/linux/tracehook.h:191 [inline] [] exit_to_usermode_loop+0x13d/0x160 arch/x86/entry/common.c:252 [] prepare_exit_to_usermode arch/x86/entry/common.c:283 [inline] [] syscall_return_slowpath+0x1b5/0x1f0 arch/x86/entry/common.c:348 [] int_ret_from_sys_call+0x25/0xa3 The buggy address belongs to the object at ffff8800b9842a00 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 64 bytes inside of 512-byte region [ffff8800b9842a00, ffff8800b9842c00) The buggy address belongs to the page: kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory accessgeneral protection fault: 0000 [#1] PREEMPT SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 0 PID: 32660 Comm: syz-executor7 Not tainted 4.4.132-gecf86dd #44 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8800b45e0000 task.stack: ffff8800a0c08000 RIP: 0010:[] [] try_to_wake_up+0x20b/0xf00 kernel/sched/core.c:2045 RSP: 0018:ffff8800a0c0fda0 EFLAGS: 00010006 RAX: dffffc0000000000 RBX: 000000000001f4c0 RCX: 0000000000000000 RDX: 00000000aa185318 RSI: 0000000000000000 RDI: 0000000550c298c0 RBP: ffff8800a0c0fe10 R08: ffffffff8533d5f0 R09: 0000000000000001 R10: 0000000000000001 R11: ffff8800b45e0000 R12: ffff8801d354a028 R13: ffff8801d3549800 R14: 00000000b9842a00 R15: ffff8801d3549808 FS: 0000000000000000(0000) GS:ffff8801db200000(0063) knlGS:0000000008790900 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000ffff8800 CR3: 00000000b0894000 CR4: 00000000001606f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: ffff8800b45e08e0 9f8a5a9e50a5384f ffff8800b45e0000 00000000b9842a00 0000000000000000 0000000000000001 0000000000000001 0000000000000096 000000000001f4c0 ffff8801d3549800 0000000000000080 dffffc0000000000 Call Trace: [] wake_up_state+0x10/0x20 kernel/sched/core.c:2148 [] signal_wake_up_state+0x44/0x70 kernel/signal.c:659 [] signal_wake_up include/linux/sched.h:3323 [inline] [] zap_other_threads+0x123/0x170 kernel/signal.c:1213 [] do_group_exit+0x26c/0x330 kernel/exit.c:884 [] SYSC_exit_group kernel/exit.c:900 [inline] [] SyS_exit_group+0x1d/0x20 kernel/exit.c:898 [] do_syscall_32_irqs_on arch/x86/entry/common.c:392 [inline] [] do_fast_syscall_32+0x326/0x8b0 arch/x86/entry/common.c:459 [] sysenter_flags_fixed+0xd/0x17 Code: 04 02 84 c0 74 08 3c 03 0f 8e da 0a 00 00 48 b8 00 00 00 00 00 fc ff df 45 8b 76 10 4a 8d 3c f5 c0 48 a1 84 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 bd 0a 00 00 4a 03 1c f5 c0 48 a1 84 48 89 df RIP [] try_to_wake_up+0x20b/0xf00 kernel/sched/core.c:2045 RSP ---[ end trace 96a64610f67a5c42 ]---