binder: 8600:8603 BC_INCREFS_DONE node 123 has no pending increfs request binder: 8600:8603 DecRefs 0 refcount change on invalid ref 0 ret -22 ================================================================== 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 977 at addr ffff8800bade2cc0 by task syz-executor7/8645 CPU: 0 PID: 8645 Comm: syz-executor7 Not tainted 4.4.135-ge75204c #55 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 0000000000000000 086b477c3385bcc7 ffff88009990f740 ffffffff81e0ed0d ffffea0002eb7880 ffff8800bade2cc0 0000000000000000 ffff8800bade2e80 ffff8800bade2c80 ffff88009990f778 ffffffff81515946 ffff8800bade2cc0 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 [] SYSC_sendmsg net/socket.c:2007 [inline] [] SyS_sendmsg+0x2d/0x50 net/socket.c:2003 [] entry_SYSCALL_64_fastpath+0x22/0x9e Allocated by task 8645: [] 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 [] SYSC_sendmsg net/socket.c:2007 [inline] [] SyS_sendmsg+0x2d/0x50 net/socket.c:2003 [] entry_SYSCALL_64_fastpath+0x22/0x9e Freed by task 7191: [] 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 [] skb_free_head net/core/skbuff.c:571 [inline] [] skb_release_data+0x304/0x3b0 net/core/skbuff.c:602 [] skb_release_all+0x4a/0x60 net/core/skbuff.c:661 [] __kfree_skb+0x15/0x20 net/core/skbuff.c:675 [] kfree_skb+0xf7/0x3e0 net/core/skbuff.c:696 [] icmpv6_rcv+0x642/0x1650 net/ipv6/icmp.c:811 [] ip6_input_finish+0x32e/0x1550 net/ipv6/ip6_input.c:248 [] NF_HOOK_THRESH include/linux/netfilter.h:226 [inline] [] NF_HOOK include/linux/netfilter.h:249 [inline] [] ip6_input+0xf6/0x200 net/ipv6/ip6_input.c:280 [] dst_input include/net/dst.h:504 [inline] [] ip6_rcv_finish+0x13d/0x640 net/ipv6/ip6_input.c:62 [] NF_HOOK_THRESH include/linux/netfilter.h:226 [inline] [] NF_HOOK include/linux/netfilter.h:249 [inline] [] ipv6_rcv+0x10cb/0x1cd0 net/ipv6/ip6_input.c:186 [] __netif_receive_skb_core+0x12d6/0x2940 net/core/dev.c:4019 [] __netif_receive_skb+0x5b/0x1b0 net/core/dev.c:4054 [] process_backlog+0x216/0x6a0 net/core/dev.c:4647 [] napi_poll net/core/dev.c:4885 [inline] [] net_rx_action+0x3a2/0xdb0 net/core/dev.c:4950 [] __do_softirq+0x22c/0xa1a kernel/softirq.c:273 The buggy address belongs to the object at ffff8800bade2c80 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 64 bytes inside of 512-byte region [ffff8800bade2c80, ffff8800bade2e80) 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: 1 PID: 3917 Comm: syz-executor1 Not tainted 4.4.135-ge75204c #55 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8801c95cb000 task.stack: ffff8800a0a18000 RIP: 0010:[] [] __debug_check_no_obj_freed lib/debugobjects.c:689 [inline] RIP: 0010:[] [] debug_check_no_obj_freed+0x1a6/0x940 lib/debugobjects.c:726 RSP: 0018:ffff8800a0a1f620 EFLAGS: 00010803 RAX: 0000000000000292 RBX: cc400154000021c5 RCX: ffffffff81e71d3e RDX: 1988002a80000438 RSI: 000000000002c896 RDI: ffff8800bade2e98 RBP: ffff8800a0a1f708 R08: ffff8800a0a1f6a0 R09: dead000000000200 R10: 0000000000000001 R11: ffff8801c95cb000 R12: cc400154000021c5 R13: dffffc0000000000 R14: ffffffff85a37968 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000940ffc CR3: 00000000a3b4b000 CR4: 00000000001606f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: dffffc0000000000 ffff8800a0a1f6a0 ffffffff85a37960 ffff8800a1706000 ffff8800a1706000 000000000002c896 0000000000000292 00000000000a5180 1ffff10014143ed0 ffff8800a1705000 fffffbfff0b46f2c ffff8800a1705000 Call Trace: [] free_pages_prepare+0x51e/0xad0 mm/page_alloc.c:1049 [] free_hot_cold_page+0x3f/0x3a0 mm/page_alloc.c:2112 [] free_hot_cold_page_list+0x98/0x3c0 mm/page_alloc.c:2160 [] release_pages+0x1f7/0x4f0 mm/swap.c:970 [] free_pages_and_swap_cache+0x106/0x140 mm/swap_state.c:266 [] tlb_flush_mmu_free+0xb4/0x150 mm/memory.c:255 [] tlb_flush_mmu mm/memory.c:264 [inline] [] tlb_finish_mmu+0x29/0xd0 mm/memory.c:275 [] exit_mmap+0x1e9/0x3a0 mm/mmap.c:2929 [] __mmput kernel/fork.c:715 [inline] [] mmput+0xf8/0x2d0 kernel/fork.c:735 [] exit_mm kernel/exit.c:444 [inline] [] do_exit+0x8d8/0x26b0 kernel/exit.c:746 [] do_group_exit+0x111/0x330 kernel/exit.c:889 [] get_signal+0x4ec/0x14b0 kernel/signal.c:2321 [] do_signal+0x8b/0x1d30 arch/x86/kernel/signal.c:712 [] exit_to_usermode_loop+0x11a/0x160 arch/x86/entry/common.c:248 [] prepare_exit_to_usermode+0xe3/0x100 arch/x86/entry/common.c:283 [] retint_user+0x8/0x3c Code: 48 c7 c6 e0 27 99 85 4c 8b 24 3e 4d 85 e4 0f 84 f8 03 00 00 49 b9 00 02 00 00 00 00 ad de 31 f6 4c 8d 45 98 4c 89 e2 48 c1 ea 03 <42> 80 3c 2a 00 0f 85 e5 03 00 00 49 8d 7c 24 18 83 c6 01 49 8b RIP [] __debug_check_no_obj_freed lib/debugobjects.c:689 [inline] RIP [] debug_check_no_obj_freed+0x1a6/0x940 lib/debugobjects.c:726 RSP ---[ end trace 4e89e9717510933f ]---