================================================================== BUG: KASAN: use-after-free in __skb_unlink include/linux/skbuff.h:1753 [inline] at addr ffff880195ed2788 BUG: KASAN: use-after-free in __skb_dequeue include/linux/skbuff.h:1770 [inline] at addr ffff880195ed2788 BUG: KASAN: use-after-free in skb_dequeue+0x162/0x180 net/core/skbuff.c:2381 at addr ffff880195ed2788 Write of size 8 by task syz-executor6/28571 CPU: 1 PID: 28571 Comm: syz-executor6 Not tainted 4.9.40-ged32335 #11 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801ab5b76c0 ffffffff81d8d829 ffff8801da33c500 ffff880195ed2780 ffff880195ed2860 ffffed0032bda4f1 ffff880195ed2788 ffff8801ab5b76e8 ffffffff81537a3c ffffed0032bda4f1 ffff8801da33c500 0000000000000001 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] kasan_report mm/kasan/report.c:335 [inline] [] __asan_report_store8_noabort+0x2c/0x30 mm/kasan/report.c:335 [] __skb_unlink include/linux/skbuff.h:1753 [inline] [] __skb_dequeue include/linux/skbuff.h:1770 [inline] [] skb_dequeue+0x162/0x180 net/core/skbuff.c:2381 [] skb_queue_purge+0x26/0x40 net/core/skbuff.c:2418 [] pfkey_sock_destruct+0x157/0x370 net/key/af_key.c:103 [] __sk_destruct+0x53/0x570 net/core/sock.c:1428 [] sk_destruct+0x47/0x80 net/core/sock.c:1463 [] __sk_free+0x57/0x230 net/core/sock.c:1471 [] sk_free+0x23/0x30 net/core/sock.c:1482 [] sock_put include/net/sock.h:1592 [inline] [] pfkey_release+0x25e/0x2f0 net/key/af_key.c:189 [] sock_release+0x8d/0x1e0 net/socket.c:599 [] sock_close+0x16/0x20 net/socket.c:1046 [] __fput+0x28c/0x6e0 fs/file_table.c:208 [] ____fput+0x15/0x20 fs/file_table.c:244 [] task_work_run+0x115/0x190 kernel/task_work.c:116 [] exit_task_work include/linux/task_work.h:21 [inline] [] do_exit+0x826/0x2a40 kernel/exit.c:833 [] do_group_exit+0x108/0x320 kernel/exit.c:937 [] get_signal+0x55c/0x1600 kernel/signal.c:2315 [] do_signal+0x87/0x1960 arch/x86/kernel/signal.c:807 [] exit_to_usermode_loop+0xe5/0x130 arch/x86/entry/common.c:156 [] prepare_exit_to_usermode arch/x86/entry/common.c:190 [inline] [] syscall_return_slowpath+0x1a0/0x1e0 arch/x86/entry/common.c:259 [] entry_SYSCALL_64_fastpath+0xc4/0xc6 Object at ffff880195ed2780, in cache skbuff_head_cache size: 224 Allocated: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:598 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] kmem_cache_alloc+0xba/0x290 mm/slub.c:2728 kmem_cache_alloc_node include/linux/slab.h:364 [inline] __alloc_skb+0xe6/0x600 net/core/skbuff.c:219 alloc_skb include/linux/skbuff.h:919 [inline] pfkey_xfrm_policy2msg_prep+0x29/0x50 net/key/af_key.c:2010 dump_sp+0xa8/0x450 net/key/af_key.c:2655 xfrm_policy_walk+0x1b1/0x4d0 net/xfrm/xfrm_policy.c:1047 pfkey_dump_sp+0x42/0x50 net/key/af_key.c:2682 pfkey_do_dump+0x40/0x2b0 net/key/af_key.c:288 pfkey_spddump+0x187/0x1e0 net/key/af_key.c:2705 pfkey_process+0x619/0x730 net/key/af_key.c:2795 pfkey_sendmsg+0x3af/0x750 net/key/af_key.c:3636 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Freed: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_slab_free+0x73/0xc0 mm/kasan/kasan.c:571 slab_free_hook mm/slub.c:1355 [inline] slab_free_freelist_hook mm/slub.c:1377 [inline] slab_free mm/slub.c:2958 [inline] kmem_cache_free+0xb2/0x2e0 mm/slub.c:2980 kfree_skbmem+0xd7/0xf0 net/core/skbuff.c:623 __kfree_skb+0x1d/0x20 net/core/skbuff.c:685 kfree_skb+0xcc/0x330 net/core/skbuff.c:705 pfkey_broadcast+0x3de/0x610 net/key/af_key.c:279 pfkey_do_dump+0x20e/0x2b0 net/key/af_key.c:299 pfkey_spddump+0x187/0x1e0 net/key/af_key.c:2705 pfkey_process+0x619/0x730 net/key/af_key.c:2795 pfkey_sendmsg+0x3af/0x750 net/key/af_key.c:3636 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Memory state around the buggy address: ffff880195ed2680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff880195ed2700: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc >ffff880195ed2780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff880195ed2800: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff880195ed2880: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ================================================================== ================================================================== BUG: KASAN: use-after-free in __skb_unlink include/linux/skbuff.h:1750 [inline] at addr ffff880195ed2780 BUG: KASAN: use-after-free in __skb_dequeue include/linux/skbuff.h:1770 [inline] at addr ffff880195ed2780 BUG: KASAN: use-after-free in skb_dequeue+0x176/0x180 net/core/skbuff.c:2381 at addr ffff880195ed2780 Read of size 8 by task syz-executor6/28571 CPU: 1 PID: 28571 Comm: syz-executor6 Tainted: G B 4.9.40-ged32335 #11 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801ab5b76c0 ffffffff81d8d829 ffff8801da33c500 ffff880195ed2780 ffff880195ed2860 ffffed0032bda4f0 ffff880195ed2780 ffff8801ab5b76e8 ffffffff81537a3c ffffed0032bda4f0 ffff8801da33c500 0000000000000000 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] kasan_report mm/kasan/report.c:330 [inline] [] __asan_report_load8_noabort+0x29/0x30 mm/kasan/report.c:330 [] __skb_unlink include/linux/skbuff.h:1750 [inline] [] __skb_dequeue include/linux/skbuff.h:1770 [inline] [] skb_dequeue+0x176/0x180 net/core/skbuff.c:2381 [] skb_queue_purge+0x26/0x40 net/core/skbuff.c:2418 [] pfkey_sock_destruct+0x157/0x370 net/key/af_key.c:103 [] __sk_destruct+0x53/0x570 net/core/sock.c:1428 [] sk_destruct+0x47/0x80 net/core/sock.c:1463 [] __sk_free+0x57/0x230 net/core/sock.c:1471 [] sk_free+0x23/0x30 net/core/sock.c:1482 [] sock_put include/net/sock.h:1592 [inline] [] pfkey_release+0x25e/0x2f0 net/key/af_key.c:189 [] sock_release+0x8d/0x1e0 net/socket.c:599 [] sock_close+0x16/0x20 net/socket.c:1046 [] __fput+0x28c/0x6e0 fs/file_table.c:208 [] ____fput+0x15/0x20 fs/file_table.c:244 [] task_work_run+0x115/0x190 kernel/task_work.c:116 [] exit_task_work include/linux/task_work.h:21 [inline] [] do_exit+0x826/0x2a40 kernel/exit.c:833 [] do_group_exit+0x108/0x320 kernel/exit.c:937 [] get_signal+0x55c/0x1600 kernel/signal.c:2315 [] do_signal+0x87/0x1960 arch/x86/kernel/signal.c:807 [] exit_to_usermode_loop+0xe5/0x130 arch/x86/entry/common.c:156 [] prepare_exit_to_usermode arch/x86/entry/common.c:190 [inline] [] syscall_return_slowpath+0x1a0/0x1e0 arch/x86/entry/common.c:259 [] entry_SYSCALL_64_fastpath+0xc4/0xc6 Object at ffff880195ed2780, in cache skbuff_head_cache size: 224 Allocated: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:598 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] kmem_cache_alloc+0xba/0x290 mm/slub.c:2728 kmem_cache_alloc_node include/linux/slab.h:364 [inline] __alloc_skb+0xe6/0x600 net/core/skbuff.c:219 alloc_skb include/linux/skbuff.h:919 [inline] pfkey_xfrm_policy2msg_prep+0x29/0x50 net/key/af_key.c:2010 dump_sp+0xa8/0x450 net/key/af_key.c:2655 xfrm_policy_walk+0x1b1/0x4d0 net/xfrm/xfrm_policy.c:1047 pfkey_dump_sp+0x42/0x50 net/key/af_key.c:2682 pfkey_do_dump+0x40/0x2b0 net/key/af_key.c:288 pfkey_spddump+0x187/0x1e0 net/key/af_key.c:2705 pfkey_process+0x619/0x730 net/key/af_key.c:2795 pfkey_sendmsg+0x3af/0x750 net/key/af_key.c:3636 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Freed: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_slab_free+0x73/0xc0 mm/kasan/kasan.c:571 slab_free_hook mm/slub.c:1355 [inline] slab_free_freelist_hook mm/slub.c:1377 [inline] slab_free mm/slub.c:2958 [inline] kmem_cache_free+0xb2/0x2e0 mm/slub.c:2980 kfree_skbmem+0xd7/0xf0 net/core/skbuff.c:623 __kfree_skb+0x1d/0x20 net/core/skbuff.c:685 kfree_skb+0xcc/0x330 net/core/skbuff.c:705 pfkey_broadcast+0x3de/0x610 net/key/af_key.c:279 pfkey_do_dump+0x20e/0x2b0 net/key/af_key.c:299 pfkey_spddump+0x187/0x1e0 net/key/af_key.c:2705 pfkey_process+0x619/0x730 net/key/af_key.c:2795 pfkey_sendmsg+0x3af/0x750 net/key/af_key.c:3636 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Memory state around the buggy address: ffff880195ed2680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff880195ed2700: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc >ffff880195ed2780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff880195ed2800: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff880195ed2880: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: use-after-free in __skb_unlink include/linux/skbuff.h:1751 [inline] at addr ffff880195ed2788 BUG: KASAN: use-after-free in __skb_dequeue include/linux/skbuff.h:1770 [inline] at addr ffff880195ed2788 BUG: KASAN: use-after-free in skb_dequeue+0x169/0x180 net/core/skbuff.c:2381 at addr ffff880195ed2788 Read of size 8 by task syz-executor6/28571 CPU: 1 PID: 28571 Comm: syz-executor6 Tainted: G B 4.9.40-ged32335 #11 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801ab5b76c0 ffffffff81d8d829 ffff8801da33c500 ffff880195ed2780 ffff880195ed2860 ffffed0032bda4f1 ffff880195ed2788 ffff8801ab5b76e8 ffffffff81537a3c ffffed0032bda4f1 ffff8801da33c500 0000000000000000 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] kasan_report mm/kasan/report.c:330 [inline] [] __asan_report_load8_noabort+0x29/0x30 mm/kasan/report.c:330 [] __skb_unlink include/linux/skbuff.h:1751 [inline] [] __skb_dequeue include/linux/skbuff.h:1770 [inline] [] skb_dequeue+0x169/0x180 net/core/skbuff.c:2381 [] skb_queue_purge+0x26/0x40 net/core/skbuff.c:2418 [] pfkey_sock_destruct+0x157/0x370 net/key/af_key.c:103 [] __sk_destruct+0x53/0x570 net/core/sock.c:1428 [] sk_destruct+0x47/0x80 net/core/sock.c:1463 [] __sk_free+0x57/0x230 net/core/sock.c:1471 [] sk_free+0x23/0x30 net/core/sock.c:1482 [] sock_put include/net/sock.h:1592 [inline] [] pfkey_release+0x25e/0x2f0 net/key/af_key.c:189 [] sock_release+0x8d/0x1e0 net/socket.c:599 [] sock_close+0x16/0x20 net/socket.c:1046 [] __fput+0x28c/0x6e0 fs/file_table.c:208 [] ____fput+0x15/0x20 fs/file_table.c:244 [] task_work_run+0x115/0x190 kernel/task_work.c:116 [] exit_task_work include/linux/task_work.h:21 [inline] [] do_exit+0x826/0x2a40 kernel/exit.c:833 [] do_group_exit+0x108/0x320 kernel/exit.c:937 [] get_signal+0x55c/0x1600 kernel/signal.c:2315 [] do_signal+0x87/0x1960 arch/x86/kernel/signal.c:807 [] exit_to_usermode_loop+0xe5/0x130 arch/x86/entry/common.c:156 [] prepare_exit_to_usermode arch/x86/entry/common.c:190 [inline] [] syscall_return_slowpath+0x1a0/0x1e0 arch/x86/entry/common.c:259 [] entry_SYSCALL_64_fastpath+0xc4/0xc6 Object at ffff880195ed2780, in cache skbuff_head_cache size: 224 Allocated: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:598 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] kmem_cache_alloc+0xba/0x290 mm/slub.c:2728 kmem_cache_alloc_node include/linux/slab.h:364 [inline] __alloc_skb+0xe6/0x600 net/core/skbuff.c:219 alloc_skb include/linux/skbuff.h:919 [inline] pfkey_xfrm_policy2msg_prep+0x29/0x50 net/key/af_key.c:2010 dump_sp+0xa8/0x450 net/key/af_key.c:2655 xfrm_policy_walk+0x1b1/0x4d0 net/xfrm/xfrm_policy.c:1047 pfkey_dump_sp+0x42/0x50 net/key/af_key.c:2682 pfkey_do_dump+0x40/0x2b0 net/key/af_key.c:288 pfkey_spddump+0x187/0x1e0 net/key/af_key.c:2705 pfkey_process+0x619/0x730 net/key/af_key.c:2795 pfkey_sendmsg+0x3af/0x750 net/key/af_key.c:3636 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Freed: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_slab_free+0x73/0xc0 mm/kasan/kasan.c:571 slab_free_hook mm/slub.c:1355 [inline] slab_free_freelist_hook mm/slub.c:1377 [inline] slab_free mm/slub.c:2958 [inline] kmem_cache_free+0xb2/0x2e0 mm/slub.c:2980 kfree_skbmem+0xd7/0xf0 net/core/skbuff.c:623 __kfree_skb+0x1d/0x20 net/core/skbuff.c:685 kfree_skb+0xcc/0x330 net/core/skbuff.c:705 pfkey_broadcast+0x3de/0x610 net/key/af_key.c:279 pfkey_do_dump+0x20e/0x2b0 net/key/af_key.c:299 pfkey_spddump+0x187/0x1e0 net/key/af_key.c:2705 pfkey_process+0x619/0x730 net/key/af_key.c:2795 pfkey_sendmsg+0x3af/0x750 net/key/af_key.c:3636 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Memory state around the buggy address: ffff880195ed2680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff880195ed2700: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc >ffff880195ed2780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff880195ed2800: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff880195ed2880: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: use-after-free in __skb_unlink include/linux/skbuff.h:1753 [inline] at addr ffff8801cdec2008 BUG: KASAN: use-after-free in __skb_dequeue include/linux/skbuff.h:1770 [inline] at addr ffff8801cdec2008 BUG: KASAN: use-after-free in skb_dequeue+0x162/0x180 net/core/skbuff.c:2381 at addr ffff8801cdec2008 Write of size 8 by task syz-executor6/28571 CPU: 1 PID: 28571 Comm: syz-executor6 Tainted: G B 4.9.40-ged32335 #11 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801ab5b76c0 ffffffff81d8d829 ffff8801da001280 ffff8801cdec2000 ffff8801cdec2200 ffffed0039bd8401 ffff8801cdec2008 ffff8801ab5b76e8 ffffffff81537a3c ffffed0039bd8401 ffff8801da001280 0000000000000001 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] kasan_report mm/kasan/report.c:335 [inline] [] __asan_report_store8_noabort+0x2c/0x30 mm/kasan/report.c:335 [] __skb_unlink include/linux/skbuff.h:1753 [inline] [] __skb_dequeue include/linux/skbuff.h:1770 [inline] [] skb_dequeue+0x162/0x180 net/core/skbuff.c:2381 [] skb_queue_purge+0x26/0x40 net/core/skbuff.c:2418 [] pfkey_sock_destruct+0x157/0x370 net/key/af_key.c:103 [] __sk_destruct+0x53/0x570 net/core/sock.c:1428 [] sk_destruct+0x47/0x80 net/core/sock.c:1463 [] __sk_free+0x57/0x230 net/core/sock.c:1471 [] sk_free+0x23/0x30 net/core/sock.c:1482 [] sock_put include/net/sock.h:1592 [inline] [] pfkey_release+0x25e/0x2f0 net/key/af_key.c:189 [] sock_release+0x8d/0x1e0 net/socket.c:599 [] sock_close+0x16/0x20 net/socket.c:1046 [] __fput+0x28c/0x6e0 fs/file_table.c:208 [] ____fput+0x15/0x20 fs/file_table.c:244 [] task_work_run+0x115/0x190 kernel/task_work.c:116 [] exit_task_work include/linux/task_work.h:21 [inline] [] do_exit+0x826/0x2a40 kernel/exit.c:833 [] do_group_exit+0x108/0x320 kernel/exit.c:937 [] get_signal+0x55c/0x1600 kernel/signal.c:2315 [] do_signal+0x87/0x1960 arch/x86/kernel/signal.c:807 [] exit_to_usermode_loop+0xe5/0x130 arch/x86/entry/common.c:156 [] prepare_exit_to_usermode arch/x86/entry/common.c:190 [inline] [] syscall_return_slowpath+0x1a0/0x1e0 arch/x86/entry/common.c:259 [] entry_SYSCALL_64_fastpath+0xc4/0xc6 Object at ffff8801cdec2000, in cache kmalloc-512 size: 512 Allocated: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:598 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] __kmalloc_track_caller+0xda/0x2b0 mm/slub.c:4232 __kmalloc_reserve.isra.37+0x33/0xc0 net/core/skbuff.c:138 __alloc_skb+0x119/0x600 net/core/skbuff.c:231 alloc_skb include/linux/skbuff.h:919 [inline] pfkey_sendmsg+0x12f/0x750 net/key/af_key.c:3623 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Freed: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_slab_free+0x73/0xc0 mm/kasan/kasan.c:571 slab_free_hook mm/slub.c:1355 [inline] slab_free_freelist_hook mm/slub.c:1377 [inline] slab_free mm/slub.c:2958 [inline] kfree+0xf0/0x2f0 mm/slub.c:3878 skb_free_head+0x74/0xb0 net/core/skbuff.c:580 skb_release_data+0x315/0x3f0 net/core/skbuff.c:611 skb_release_all+0x4a/0x60 net/core/skbuff.c:670 __kfree_skb+0x15/0x20 net/core/skbuff.c:684 kfree_skb+0xcc/0x330 net/core/skbuff.c:705 pfkey_sendmsg+0x61a/0x750 net/key/af_key.c:3642 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Memory state around the buggy address: ffff8801cdec1f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8801cdec1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8801cdec2000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8801cdec2080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8801cdec2100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: use-after-free in __read_once_size include/linux/compiler.h:243 [inline] at addr ffff880195ed285c BUG: KASAN: use-after-free in atomic_read arch/x86/include/asm/atomic.h:26 [inline] at addr ffff880195ed285c BUG: KASAN: use-after-free in kfree_skb+0x2ae/0x330 net/core/skbuff.c:700 at addr ffff880195ed285c Read of size 4 by task syz-executor6/28571 CPU: 1 PID: 28571 Comm: syz-executor6 Tainted: G B 4.9.40-ged32335 #11 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801ab5b76c0 ffffffff81d8d829 ffff8801da33c500 ffff880195ed2780 ffff880195ed2860 ffffed0032bda50b ffff880195ed285c ffff8801ab5b76e8 ffffffff81537a3c ffffed0032bda50b ffff8801da33c500 0000000000000000 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 [] __read_once_size include/linux/compiler.h:243 [inline] [] atomic_read arch/x86/include/asm/atomic.h:26 [inline] [] kfree_skb+0x2ae/0x330 net/core/skbuff.c:700 [] skb_queue_purge+0x19/0x40 net/core/skbuff.c:2419 [] pfkey_sock_destruct+0x157/0x370 net/key/af_key.c:103 [] __sk_destruct+0x53/0x570 net/core/sock.c:1428 [] sk_destruct+0x47/0x80 net/core/sock.c:1463 [] __sk_free+0x57/0x230 net/core/sock.c:1471 [] sk_free+0x23/0x30 net/core/sock.c:1482 [] sock_put include/net/sock.h:1592 [inline] [] pfkey_release+0x25e/0x2f0 net/key/af_key.c:189 [] sock_release+0x8d/0x1e0 net/socket.c:599 [] sock_close+0x16/0x20 net/socket.c:1046 [] __fput+0x28c/0x6e0 fs/file_table.c:208 [] ____fput+0x15/0x20 fs/file_table.c:244 [] task_work_run+0x115/0x190 kernel/task_work.c:116 [] exit_task_work include/linux/task_work.h:21 [inline] [] do_exit+0x826/0x2a40 kernel/exit.c:833 [] do_group_exit+0x108/0x320 kernel/exit.c:937 [] get_signal+0x55c/0x1600 kernel/signal.c:2315 [] do_signal+0x87/0x1960 arch/x86/kernel/signal.c:807 [] exit_to_usermode_loop+0xe5/0x130 arch/x86/entry/common.c:156 [] prepare_exit_to_usermode arch/x86/entry/common.c:190 [inline] [] syscall_return_slowpath+0x1a0/0x1e0 arch/x86/entry/common.c:259 [] entry_SYSCALL_64_fastpath+0xc4/0xc6 Object at ffff880195ed2780, in cache skbuff_head_cache size: 224 Allocated: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:598 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] kmem_cache_alloc+0xba/0x290 mm/slub.c:2728 kmem_cache_alloc_node include/linux/slab.h:364 [inline] __alloc_skb+0xe6/0x600 net/core/skbuff.c:219 alloc_skb include/linux/skbuff.h:919 [inline] pfkey_xfrm_policy2msg_prep+0x29/0x50 net/key/af_key.c:2010 dump_sp+0xa8/0x450 net/key/af_key.c:2655 xfrm_policy_walk+0x1b1/0x4d0 net/xfrm/xfrm_policy.c:1047 pfkey_dump_sp+0x42/0x50 net/key/af_key.c:2682 pfkey_do_dump+0x40/0x2b0 net/key/af_key.c:288 pfkey_spddump+0x187/0x1e0 net/key/af_key.c:2705 pfkey_process+0x619/0x730 net/key/af_key.c:2795 pfkey_sendmsg+0x3af/0x750 net/key/af_key.c:3636 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Freed: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_slab_free+0x73/0xc0 mm/kasan/kasan.c:571 slab_free_hook mm/slub.c:1355 [inline] slab_free_freelist_hook mm/slub.c:1377 [inline] slab_free mm/slub.c:2958 [inline] kmem_cache_free+0xb2/0x2e0 mm/slub.c:2980 kfree_skbmem+0xd7/0xf0 net/core/skbuff.c:623 __kfree_skb+0x1d/0x20 net/core/skbuff.c:685 kfree_skb+0xcc/0x330 net/core/skbuff.c:705 pfkey_broadcast+0x3de/0x610 net/key/af_key.c:279 pfkey_do_dump+0x20e/0x2b0 net/key/af_key.c:299 pfkey_spddump+0x187/0x1e0 net/key/af_key.c:2705 pfkey_process+0x619/0x730 net/key/af_key.c:2795 pfkey_sendmsg+0x3af/0x750 net/key/af_key.c:3636 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Memory state around the buggy address: ffff880195ed2700: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc ffff880195ed2780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff880195ed2800: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ^ ffff880195ed2880: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ffff880195ed2900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: use-after-free in skb_dst_drop include/net/dst.h:295 [inline] at addr ffff880195ed27d8 BUG: KASAN: use-after-free in skb_release_head_state+0x1ec/0x200 net/core/skbuff.c:649 at addr ffff880195ed27d8 Read of size 8 by task syz-executor6/28571 CPU: 1 PID: 28571 Comm: syz-executor6 Tainted: G B 4.9.40-ged32335 #11 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801ab5b7668 ffffffff81d8d829 ffff8801da33c500 ffff880195ed2780 ffff880195ed2860 ffffed0032bda4fb ffff880195ed27d8 ffff8801ab5b7690 ffffffff81537a3c ffffed0032bda4fb ffff8801da33c500 0000000000000000 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] kasan_report mm/kasan/report.c:330 [inline] [] __asan_report_load8_noabort+0x29/0x30 mm/kasan/report.c:330 [] skb_dst_drop include/net/dst.h:295 [inline] [] skb_release_head_state+0x1ec/0x200 net/core/skbuff.c:649 [] skb_release_all+0x15/0x60 net/core/skbuff.c:668 [] __kfree_skb+0x15/0x20 net/core/skbuff.c:684 [] kfree_skb+0xcc/0x330 net/core/skbuff.c:705 [] skb_queue_purge+0x19/0x40 net/core/skbuff.c:2419 [] pfkey_sock_destruct+0x157/0x370 net/key/af_key.c:103 [] __sk_destruct+0x53/0x570 net/core/sock.c:1428 [] sk_destruct+0x47/0x80 net/core/sock.c:1463 [] __sk_free+0x57/0x230 net/core/sock.c:1471 [] sk_free+0x23/0x30 net/core/sock.c:1482 [] sock_put include/net/sock.h:1592 [inline] [] pfkey_release+0x25e/0x2f0 net/key/af_key.c:189 [] sock_release+0x8d/0x1e0 net/socket.c:599 [] sock_close+0x16/0x20 net/socket.c:1046 [] __fput+0x28c/0x6e0 fs/file_table.c:208 [] ____fput+0x15/0x20 fs/file_table.c:244 [] task_work_run+0x115/0x190 kernel/task_work.c:116 [] exit_task_work include/linux/task_work.h:21 [inline] [] do_exit+0x826/0x2a40 kernel/exit.c:833 [] do_group_exit+0x108/0x320 kernel/exit.c:937 [] get_signal+0x55c/0x1600 kernel/signal.c:2315 [] do_signal+0x87/0x1960 arch/x86/kernel/signal.c:807 [] exit_to_usermode_loop+0xe5/0x130 arch/x86/entry/common.c:156 [] prepare_exit_to_usermode arch/x86/entry/common.c:190 [inline] [] syscall_return_slowpath+0x1a0/0x1e0 arch/x86/entry/common.c:259 [] entry_SYSCALL_64_fastpath+0xc4/0xc6 Object at ffff880195ed2780, in cache skbuff_head_cache size: 224 Allocated: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:598 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] kmem_cache_alloc+0xba/0x290 mm/slub.c:2728 kmem_cache_alloc_node include/linux/slab.h:364 [inline] __alloc_skb+0xe6/0x600 net/core/skbuff.c:219 alloc_skb include/linux/skbuff.h:919 [inline] pfkey_xfrm_policy2msg_prep+0x29/0x50 net/key/af_key.c:2010 dump_sp+0xa8/0x450 net/key/af_key.c:2655 xfrm_policy_walk+0x1b1/0x4d0 net/xfrm/xfrm_policy.c:1047 pfkey_dump_sp+0x42/0x50 net/key/af_key.c:2682 pfkey_do_dump+0x40/0x2b0 net/key/af_key.c:288 pfkey_spddump+0x187/0x1e0 net/key/af_key.c:2705 pfkey_process+0x619/0x730 net/key/af_key.c:2795 pfkey_sendmsg+0x3af/0x750 net/key/af_key.c:3636 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Freed: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_slab_free+0x73/0xc0 mm/kasan/kasan.c:571 slab_free_hook mm/slub.c:1355 [inline] slab_free_freelist_hook mm/slub.c:1377 [inline] slab_free mm/slub.c:2958 [inline] kmem_cache_free+0xb2/0x2e0 mm/slub.c:2980 kfree_skbmem+0xd7/0xf0 net/core/skbuff.c:623 __kfree_skb+0x1d/0x20 net/core/skbuff.c:685 kfree_skb+0xcc/0x330 net/core/skbuff.c:705 pfkey_broadcast+0x3de/0x610 net/key/af_key.c:279 pfkey_do_dump+0x20e/0x2b0 net/key/af_key.c:299 pfkey_spddump+0x187/0x1e0 net/key/af_key.c:2705 pfkey_process+0x619/0x730 net/key/af_key.c:2795 pfkey_sendmsg+0x3af/0x750 net/key/af_key.c:3636 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Memory state around the buggy address: ffff880195ed2680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff880195ed2700: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc >ffff880195ed2780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff880195ed2800: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff880195ed2880: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: use-after-free in skb_release_head_state+0x1c8/0x200 net/core/skbuff.c:651 at addr ffff880195ed27e8 Read of size 8 by task syz-executor6/28571 CPU: 0 PID: 28571 Comm: syz-executor6 Tainted: G B 4.9.40-ged32335 #11 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801ab5b7668 ffffffff81d8d829 ffff8801da33c500 ffff880195ed2780 ffff880195ed2860 ffffed0032bda4fd ffff880195ed27e8 ffff8801ab5b7690 ffffffff81537a3c ffffed0032bda4fd ffff8801da33c500 0000000000000000 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] kasan_report mm/kasan/report.c:330 [inline] [] __asan_report_load8_noabort+0x29/0x30 mm/kasan/report.c:330 [] skb_release_head_state+0x1c8/0x200 net/core/skbuff.c:651 [] skb_release_all+0x15/0x60 net/core/skbuff.c:668 [] __kfree_skb+0x15/0x20 net/core/skbuff.c:684 [] kfree_skb+0xcc/0x330 net/core/skbuff.c:705 [] skb_queue_purge+0x19/0x40 net/core/skbuff.c:2419 [] pfkey_sock_destruct+0x157/0x370 net/key/af_key.c:103 [] __sk_destruct+0x53/0x570 net/core/sock.c:1428 [] sk_destruct+0x47/0x80 net/core/sock.c:1463 [] __sk_free+0x57/0x230 net/core/sock.c:1471 [] sk_free+0x23/0x30 net/core/sock.c:1482 [] sock_put include/net/sock.h:1592 [inline] [] pfkey_release+0x25e/0x2f0 net/key/af_key.c:189 [] sock_release+0x8d/0x1e0 net/socket.c:599 [] sock_close+0x16/0x20 net/socket.c:1046 [] __fput+0x28c/0x6e0 fs/file_table.c:208 [] ____fput+0x15/0x20 fs/file_table.c:244 [] task_work_run+0x115/0x190 kernel/task_work.c:116 [] exit_task_work include/linux/task_work.h:21 [inline] [] do_exit+0x826/0x2a40 kernel/exit.c:833 [] do_group_exit+0x108/0x320 kernel/exit.c:937 [] get_signal+0x55c/0x1600 kernel/signal.c:2315 [] do_signal+0x87/0x1960 arch/x86/kernel/signal.c:807 [] exit_to_usermode_loop+0xe5/0x130 arch/x86/entry/common.c:156 [] prepare_exit_to_usermode arch/x86/entry/common.c:190 [inline] [] syscall_return_slowpath+0x1a0/0x1e0 arch/x86/entry/common.c:259 [] entry_SYSCALL_64_fastpath+0xc4/0xc6 Object at ffff880195ed2780, in cache skbuff_head_cache size: 224 Allocated: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:598 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] kmem_cache_alloc+0xba/0x290 mm/slub.c:2728 kmem_cache_alloc_node include/linux/slab.h:364 [inline] __alloc_skb+0xe6/0x600 net/core/skbuff.c:219 alloc_skb include/linux/skbuff.h:919 [inline] pfkey_xfrm_policy2msg_prep+0x29/0x50 net/key/af_key.c:2010 dump_sp+0xa8/0x450 net/key/af_key.c:2655 xfrm_policy_walk+0x1b1/0x4d0 net/xfrm/xfrm_policy.c:1047 pfkey_dump_sp+0x42/0x50 net/key/af_key.c:2682 pfkey_do_dump+0x40/0x2b0 net/key/af_key.c:288 pfkey_spddump+0x187/0x1e0 net/key/af_key.c:2705 pfkey_process+0x619/0x730 net/key/af_key.c:2795 pfkey_sendmsg+0x3af/0x750 net/key/af_key.c:3636 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Freed: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_slab_free+0x73/0xc0 mm/kasan/kasan.c:571 slab_free_hook mm/slub.c:1355 [inline] slab_free_freelist_hook mm/slub.c:1377 [inline] slab_free mm/slub.c:2958 [inline] kmem_cache_free+0xb2/0x2e0 mm/slub.c:2980 kfree_skbmem+0xd7/0xf0 net/core/skbuff.c:623 __kfree_skb+0x1d/0x20 net/core/skbuff.c:685 kfree_skb+0xcc/0x330 net/core/skbuff.c:705 pfkey_broadcast+0x3de/0x610 net/key/af_key.c:279 pfkey_do_dump+0x20e/0x2b0 net/key/af_key.c:299 pfkey_spddump+0x187/0x1e0 net/key/af_key.c:2705 pfkey_process+0x619/0x730 net/key/af_key.c:2795 pfkey_sendmsg+0x3af/0x750 net/key/af_key.c:3636 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Memory state around the buggy address: ffff880195ed2680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff880195ed2700: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc >ffff880195ed2780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff880195ed2800: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff880195ed2880: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: use-after-free in skb_release_head_state+0x1df/0x200 net/core/skbuff.c:653 at addr ffff880195ed27e0 Read of size 8 by task syz-executor6/28571 CPU: 0 PID: 28571 Comm: syz-executor6 Tainted: G B 4.9.40-ged32335 #11 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801ab5b7668 ffffffff81d8d829 ffff8801da33c500 ffff880195ed2780 ffff880195ed2860 ffffed0032bda4fc ffff880195ed27e0 ffff8801ab5b7690 ffffffff81537a3c ffffed0032bda4fc ffff8801da33c500 0000000000000000 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] kasan_report mm/kasan/report.c:330 [inline] [] __asan_report_load8_noabort+0x29/0x30 mm/kasan/report.c:330 [] skb_release_head_state+0x1df/0x200 net/core/skbuff.c:653 [] skb_release_all+0x15/0x60 net/core/skbuff.c:668 [] __kfree_skb+0x15/0x20 net/core/skbuff.c:684 [] kfree_skb+0xcc/0x330 net/core/skbuff.c:705 [] skb_queue_purge+0x19/0x40 net/core/skbuff.c:2419 [] pfkey_sock_destruct+0x157/0x370 net/key/af_key.c:103 [] __sk_destruct+0x53/0x570 net/core/sock.c:1428 [] sk_destruct+0x47/0x80 net/core/sock.c:1463 [] __sk_free+0x57/0x230 net/core/sock.c:1471 [] sk_free+0x23/0x30 net/core/sock.c:1482 [] sock_put include/net/sock.h:1592 [inline] [] pfkey_release+0x25e/0x2f0 net/key/af_key.c:189 [] sock_release+0x8d/0x1e0 net/socket.c:599 [] sock_close+0x16/0x20 net/socket.c:1046 [] __fput+0x28c/0x6e0 fs/file_table.c:208 [] ____fput+0x15/0x20 fs/file_table.c:244 [] task_work_run+0x115/0x190 kernel/task_work.c:116 [] exit_task_work include/linux/task_work.h:21 [inline] [] do_exit+0x826/0x2a40 kernel/exit.c:833 [] do_group_exit+0x108/0x320 kernel/exit.c:937 [] get_signal+0x55c/0x1600 kernel/signal.c:2315 [] do_signal+0x87/0x1960 arch/x86/kernel/signal.c:807 [] exit_to_usermode_loop+0xe5/0x130 arch/x86/entry/common.c:156 [] prepare_exit_to_usermode arch/x86/entry/common.c:190 [inline] [] syscall_return_slowpath+0x1a0/0x1e0 arch/x86/entry/common.c:259 [] entry_SYSCALL_64_fastpath+0xc4/0xc6 Object at ffff880195ed2780, in cache skbuff_head_cache size: 224 Allocated: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:598 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] kmem_cache_alloc+0xba/0x290 mm/slub.c:2728 kmem_cache_alloc_node include/linux/slab.h:364 [inline] __alloc_skb+0xe6/0x600 net/core/skbuff.c:219 alloc_skb include/linux/skbuff.h:919 [inline] pfkey_xfrm_policy2msg_prep+0x29/0x50 net/key/af_key.c:2010 dump_sp+0xa8/0x450 net/key/af_key.c:2655 xfrm_policy_walk+0x1b1/0x4d0 net/xfrm/xfrm_policy.c:1047 pfkey_dump_sp+0x42/0x50 net/key/af_key.c:2682 pfkey_do_dump+0x40/0x2b0 net/key/af_key.c:288 pfkey_spddump+0x187/0x1e0 net/key/af_key.c:2705 pfkey_process+0x619/0x730 net/key/af_key.c:2795 pfkey_sendmsg+0x3af/0x750 net/key/af_key.c:3636 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Freed: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_slab_free+0x73/0xc0 mm/kasan/kasan.c:571 slab_free_hook mm/slub.c:1355 [inline] slab_free_freelist_hook mm/slub.c:1377 [inline] slab_free mm/slub.c:2958 [inline] kmem_cache_free+0xb2/0x2e0 mm/slub.c:2980 kfree_skbmem+0xd7/0xf0 net/core/skbuff.c:623 __kfree_skb+0x1d/0x20 net/core/skbuff.c:685 kfree_skb+0xcc/0x330 net/core/skbuff.c:705 pfkey_broadcast+0x3de/0x610 net/key/af_key.c:279 pfkey_do_dump+0x20e/0x2b0 net/key/af_key.c:299 pfkey_spddump+0x187/0x1e0 net/key/af_key.c:2705 pfkey_process+0x619/0x730 net/key/af_key.c:2795 pfkey_sendmsg+0x3af/0x750 net/key/af_key.c:3636 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Memory state around the buggy address: ffff880195ed2680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff880195ed2700: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc >ffff880195ed2780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff880195ed2800: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff880195ed2880: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: use-after-free in sock_rfree+0x134/0x150 net/core/sock.c:1724 at addr ffff880195ed2798 Read of size 8 by task syz-executor6/28571 CPU: 0 PID: 28571 Comm: syz-executor6 Tainted: G B 4.9.40-ged32335 #11 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801ab5b7640 ffffffff81d8d829 ffff8801da33c500 ffff880195ed2780 ffff880195ed2860 ffffed0032bda4f3 ffff880195ed2798 ffff8801ab5b7668 ffffffff81537a3c ffffed0032bda4f3 ffff8801da33c500 0000000000000000 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] kasan_report mm/kasan/report.c:330 [inline] [] __asan_report_load8_noabort+0x29/0x30 mm/kasan/report.c:330 [] sock_rfree+0x134/0x150 net/core/sock.c:1724 [] skb_release_head_state+0xfc/0x200 net/core/skbuff.c:655 [] skb_release_all+0x15/0x60 net/core/skbuff.c:668 [] __kfree_skb+0x15/0x20 net/core/skbuff.c:684 [] kfree_skb+0xcc/0x330 net/core/skbuff.c:705 [] skb_queue_purge+0x19/0x40 net/core/skbuff.c:2419 [] pfkey_sock_destruct+0x157/0x370 net/key/af_key.c:103 [] __sk_destruct+0x53/0x570 net/core/sock.c:1428 [] sk_destruct+0x47/0x80 net/core/sock.c:1463 [] __sk_free+0x57/0x230 net/core/sock.c:1471 [] sk_free+0x23/0x30 net/core/sock.c:1482 [] sock_put include/net/sock.h:1592 [inline] [] pfkey_release+0x25e/0x2f0 net/key/af_key.c:189 [] sock_release+0x8d/0x1e0 net/socket.c:599 [] sock_close+0x16/0x20 net/socket.c:1046 [] __fput+0x28c/0x6e0 fs/file_table.c:208 [] ____fput+0x15/0x20 fs/file_table.c:244 [] task_work_run+0x115/0x190 kernel/task_work.c:116 [] exit_task_work include/linux/task_work.h:21 [inline] [] do_exit+0x826/0x2a40 kernel/exit.c:833 [] do_group_exit+0x108/0x320 kernel/exit.c:937 [] get_signal+0x55c/0x1600 kernel/signal.c:2315 [] do_signal+0x87/0x1960 arch/x86/kernel/signal.c:807 [] exit_to_usermode_loop+0xe5/0x130 arch/x86/entry/common.c:156 [] prepare_exit_to_usermode arch/x86/entry/common.c:190 [inline] [] syscall_return_slowpath+0x1a0/0x1e0 arch/x86/entry/common.c:259 [] entry_SYSCALL_64_fastpath+0xc4/0xc6 Object at ffff880195ed2780, in cache skbuff_head_cache size: 224 Allocated: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:598 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] kmem_cache_alloc+0xba/0x290 mm/slub.c:2728 kmem_cache_alloc_node include/linux/slab.h:364 [inline] __alloc_skb+0xe6/0x600 net/core/skbuff.c:219 alloc_skb include/linux/skbuff.h:919 [inline] pfkey_xfrm_policy2msg_prep+0x29/0x50 net/key/af_key.c:2010 dump_sp+0xa8/0x450 net/key/af_key.c:2655 xfrm_policy_walk+0x1b1/0x4d0 net/xfrm/xfrm_policy.c:1047 pfkey_dump_sp+0x42/0x50 net/key/af_key.c:2682 pfkey_do_dump+0x40/0x2b0 net/key/af_key.c:288 pfkey_spddump+0x187/0x1e0 net/key/af_key.c:2705 pfkey_process+0x619/0x730 net/key/af_key.c:2795 pfkey_sendmsg+0x3af/0x750 net/key/af_key.c:3636 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Freed: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_slab_free+0x73/0xc0 mm/kasan/kasan.c:571 slab_free_hook mm/slub.c:1355 [inline] slab_free_freelist_hook mm/slub.c:1377 [inline] slab_free mm/slub.c:2958 [inline] kmem_cache_free+0xb2/0x2e0 mm/slub.c:2980 kfree_skbmem+0xd7/0xf0 net/core/skbuff.c:623 __kfree_skb+0x1d/0x20 net/core/skbuff.c:685 kfree_skb+0xcc/0x330 net/core/skbuff.c:705 pfkey_broadcast+0x3de/0x610 net/key/af_key.c:279 pfkey_do_dump+0x20e/0x2b0 net/key/af_key.c:299 pfkey_spddump+0x187/0x1e0 net/key/af_key.c:2705 pfkey_process+0x619/0x730 net/key/af_key.c:2795 pfkey_sendmsg+0x3af/0x750 net/key/af_key.c:3636 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Memory state around the buggy address: ffff880195ed2680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff880195ed2700: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc >ffff880195ed2780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff880195ed2800: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff880195ed2880: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: use-after-free in sock_rfree+0x123/0x150 net/core/sock.c:1725 at addr ffff880195ed2858 Read of size 4 by task syz-executor6/28571 CPU: 0 PID: 28571 Comm: syz-executor6 Tainted: G B 4.9.40-ged32335 #11 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801ab5b7640 ffffffff81d8d829 ffff8801da33c500 ffff880195ed2780 ffff880195ed2860 ffffed0032bda50b ffff880195ed2858 ffff8801ab5b7668 ffffffff81537a3c ffffed0032bda50b ffff8801da33c500 0000000000000000 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 [] sock_rfree+0x123/0x150 net/core/sock.c:1725 [] skb_release_head_state+0xfc/0x200 net/core/skbuff.c:655 [] skb_release_all+0x15/0x60 net/core/skbuff.c:668 [] __kfree_skb+0x15/0x20 net/core/skbuff.c:684 [] kfree_skb+0xcc/0x330 net/core/skbuff.c:705 [] skb_queue_purge+0x19/0x40 net/core/skbuff.c:2419 [] pfkey_sock_destruct+0x157/0x370 net/key/af_key.c:103 [] __sk_destruct+0x53/0x570 net/core/sock.c:1428 [] sk_destruct+0x47/0x80 net/core/sock.c:1463 [] __sk_free+0x57/0x230 net/core/sock.c:1471 [] sk_free+0x23/0x30 net/core/sock.c:1482 [] sock_put include/net/sock.h:1592 [inline] [] pfkey_release+0x25e/0x2f0 net/key/af_key.c:189 [] sock_release+0x8d/0x1e0 net/socket.c:599 [] sock_close+0x16/0x20 net/socket.c:1046 [] __fput+0x28c/0x6e0 fs/file_table.c:208 [] ____fput+0x15/0x20 fs/file_table.c:244 [] task_work_run+0x115/0x190 kernel/task_work.c:116 [] exit_task_work include/linux/task_work.h:21 [inline] [] do_exit+0x826/0x2a40 kernel/exit.c:833 [] do_group_exit+0x108/0x320 kernel/exit.c:937 [] get_signal+0x55c/0x1600 kernel/signal.c:2315 [] do_signal+0x87/0x1960 arch/x86/kernel/signal.c:807 [] exit_to_usermode_loop+0xe5/0x130 arch/x86/entry/common.c:156 [] prepare_exit_to_usermode arch/x86/entry/common.c:190 [inline] [] syscall_return_slowpath+0x1a0/0x1e0 arch/x86/entry/common.c:259 [] entry_SYSCALL_64_fastpath+0xc4/0xc6 Object at ffff880195ed2780, in cache skbuff_head_cache size: 224 Allocated: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:598 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] kmem_cache_alloc+0xba/0x290 mm/slub.c:2728 kmem_cache_alloc_node include/linux/slab.h:364 [inline] __alloc_skb+0xe6/0x600 net/core/skbuff.c:219 alloc_skb include/linux/skbuff.h:919 [inline] pfkey_xfrm_policy2msg_prep+0x29/0x50 net/key/af_key.c:2010 dump_sp+0xa8/0x450 net/key/af_key.c:2655 xfrm_policy_walk+0x1b1/0x4d0 net/xfrm/xfrm_policy.c:1047 pfkey_dump_sp+0x42/0x50 net/key/af_key.c:2682 pfkey_do_dump+0x40/0x2b0 net/key/af_key.c:288 pfkey_spddump+0x187/0x1e0 net/key/af_key.c:2705 pfkey_process+0x619/0x730 net/key/af_key.c:2795 pfkey_sendmsg+0x3af/0x750 net/key/af_key.c:3636 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Freed: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_slab_free+0x73/0xc0 mm/kasan/kasan.c:571 slab_free_hook mm/slub.c:1355 [inline] slab_free_freelist_hook mm/slub.c:1377 [inline] slab_free mm/slub.c:2958 [inline] kmem_cache_free+0xb2/0x2e0 mm/slub.c:2980 kfree_skbmem+0xd7/0xf0 net/core/skbuff.c:623 __kfree_skb+0x1d/0x20 net/core/skbuff.c:685 kfree_skb+0xcc/0x330 net/core/skbuff.c:705 pfkey_broadcast+0x3de/0x610 net/key/af_key.c:279 pfkey_do_dump+0x20e/0x2b0 net/key/af_key.c:299 pfkey_spddump+0x187/0x1e0 net/key/af_key.c:2705 pfkey_process+0x619/0x730 net/key/af_key.c:2795 pfkey_sendmsg+0x3af/0x750 net/key/af_key.c:3636 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Memory state around the buggy address: ffff880195ed2700: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc ffff880195ed2780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff880195ed2800: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ^ ffff880195ed2880: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ffff880195ed2900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: use-after-free in skb_release_head_state+0x1d2/0x200 net/core/skbuff.c:658 at addr ffff880195ed27f0 Read of size 8 by task syz-executor6/28571 CPU: 0 PID: 28571 Comm: syz-executor6 Tainted: G B 4.9.40-ged32335 #11 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801ab5b7668 ffffffff81d8d829 ffff8801da33c500 ffff880195ed2780 ffff880195ed2860 ffffed0032bda4fe ffff880195ed27f0 ffff8801ab5b7690 ffffffff81537a3c ffffed0032bda4fe ffff8801da33c500 0000000000000000 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] kasan_report mm/kasan/report.c:330 [inline] [] __asan_report_load8_noabort+0x29/0x30 mm/kasan/report.c:330 [] skb_release_head_state+0x1d2/0x200 net/core/skbuff.c:658 [] skb_release_all+0x15/0x60 net/core/skbuff.c:668 [] __kfree_skb+0x15/0x20 net/core/skbuff.c:684 [] kfree_skb+0xcc/0x330 net/core/skbuff.c:705 [] skb_queue_purge+0x19/0x40 net/core/skbuff.c:2419 [] pfkey_sock_destruct+0x157/0x370 net/key/af_key.c:103 [] __sk_destruct+0x53/0x570 net/core/sock.c:1428 [] sk_destruct+0x47/0x80 net/core/sock.c:1463 [] __sk_free+0x57/0x230 net/core/sock.c:1471 [] sk_free+0x23/0x30 net/core/sock.c:1482 [] sock_put include/net/sock.h:1592 [inline] [] pfkey_release+0x25e/0x2f0 net/key/af_key.c:189 [] sock_release+0x8d/0x1e0 net/socket.c:599 [] sock_close+0x16/0x20 net/socket.c:1046 [] __fput+0x28c/0x6e0 fs/file_table.c:208 [] ____fput+0x15/0x20 fs/file_table.c:244 [] task_work_run+0x115/0x190 kernel/task_work.c:116 [] exit_task_work include/linux/task_work.h:21 [inline] [] do_exit+0x826/0x2a40 kernel/exit.c:833 [] do_group_exit+0x108/0x320 kernel/exit.c:937 [] get_signal+0x55c/0x1600 kernel/signal.c:2315 [] do_signal+0x87/0x1960 arch/x86/kernel/signal.c:807 [] exit_to_usermode_loop+0xe5/0x130 arch/x86/entry/common.c:156 [] prepare_exit_to_usermode arch/x86/entry/common.c:190 [inline] [] syscall_return_slowpath+0x1a0/0x1e0 arch/x86/entry/common.c:259 [] entry_SYSCALL_64_fastpath+0xc4/0xc6 Object at ffff880195ed2780, in cache skbuff_head_cache size: 224 Allocated: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:598 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] kmem_cache_alloc+0xba/0x290 mm/slub.c:2728 kmem_cache_alloc_node include/linux/slab.h:364 [inline] __alloc_skb+0xe6/0x600 net/core/skbuff.c:219 alloc_skb include/linux/skbuff.h:919 [inline] pfkey_xfrm_policy2msg_prep+0x29/0x50 net/key/af_key.c:2010 dump_sp+0xa8/0x450 net/key/af_key.c:2655 xfrm_policy_walk+0x1b1/0x4d0 net/xfrm/xfrm_policy.c:1047 pfkey_dump_sp+0x42/0x50 net/key/af_key.c:2682 pfkey_do_dump+0x40/0x2b0 net/key/af_key.c:288 pfkey_spddump+0x187/0x1e0 net/key/af_key.c:2705 pfkey_process+0x619/0x730 net/key/af_key.c:2795 pfkey_sendmsg+0x3af/0x750 net/key/af_key.c:3636 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Freed: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_slab_free+0x73/0xc0 mm/kasan/kasan.c:571 slab_free_hook mm/slub.c:1355 [inline] slab_free_freelist_hook mm/slub.c:1377 [inline] slab_free mm/slub.c:2958 [inline] kmem_cache_free+0xb2/0x2e0 mm/slub.c:2980 kfree_skbmem+0xd7/0xf0 net/core/skbuff.c:623 __kfree_skb+0x1d/0x20 net/core/skbuff.c:685 kfree_skb+0xcc/0x330 net/core/skbuff.c:705 pfkey_broadcast+0x3de/0x610 net/key/af_key.c:279 pfkey_do_dump+0x20e/0x2b0 net/key/af_key.c:299 pfkey_spddump+0x187/0x1e0 net/key/af_key.c:2705 pfkey_process+0x619/0x730 net/key/af_key.c:2795 pfkey_sendmsg+0x3af/0x750 net/key/af_key.c:3636 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Memory state around the buggy address: ffff880195ed2680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff880195ed2700: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc >ffff880195ed2780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff880195ed2800: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff880195ed2880: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: use-after-free in skb_release_all+0x57/0x60 net/core/skbuff.c:669 at addr ffff880195ed2848 Read of size 8 by task syz-executor6/28571 CPU: 0 PID: 28571 Comm: syz-executor6 Tainted: G B 4.9.40-ged32335 #11 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801ab5b7690 ffffffff81d8d829 ffff8801da33c500 ffff880195ed2780 ffff880195ed2860 ffffed0032bda509 ffff880195ed2848 ffff8801ab5b76b8 ffffffff81537a3c ffffed0032bda509 ffff8801da33c500 0000000000000000 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] kasan_report mm/kasan/report.c:330 [inline] [] __asan_report_load8_noabort+0x29/0x30 mm/kasan/report.c:330 [] skb_release_all+0x57/0x60 net/core/skbuff.c:669 [] __kfree_skb+0x15/0x20 net/core/skbuff.c:684 [] kfree_skb+0xcc/0x330 net/core/skbuff.c:705 [] skb_queue_purge+0x19/0x40 net/core/skbuff.c:2419 [] pfkey_sock_destruct+0x157/0x370 net/key/af_key.c:103 [] __sk_destruct+0x53/0x570 net/core/sock.c:1428 [] sk_destruct+0x47/0x80 net/core/sock.c:1463 [] __sk_free+0x57/0x230 net/core/sock.c:1471 [] sk_free+0x23/0x30 net/core/sock.c:1482 [] sock_put include/net/sock.h:1592 [inline] [] pfkey_release+0x25e/0x2f0 net/key/af_key.c:189 [] sock_release+0x8d/0x1e0 net/socket.c:599 [] sock_close+0x16/0x20 net/socket.c:1046 [] __fput+0x28c/0x6e0 fs/file_table.c:208 [] ____fput+0x15/0x20 fs/file_table.c:244 [] task_work_run+0x115/0x190 kernel/task_work.c:116 [] exit_task_work include/linux/task_work.h:21 [inline] [] do_exit+0x826/0x2a40 kernel/exit.c:833 [] do_group_exit+0x108/0x320 kernel/exit.c:937 [] get_signal+0x55c/0x1600 kernel/signal.c:2315 [] do_signal+0x87/0x1960 arch/x86/kernel/signal.c:807 [] exit_to_usermode_loop+0xe5/0x130 arch/x86/entry/common.c:156 [] prepare_exit_to_usermode arch/x86/entry/common.c:190 [inline] [] syscall_return_slowpath+0x1a0/0x1e0 arch/x86/entry/common.c:259 [] entry_SYSCALL_64_fastpath+0xc4/0xc6 Object at ffff880195ed2780, in cache skbuff_head_cache size: 224 Allocated: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:598 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] kmem_cache_alloc+0xba/0x290 mm/slub.c:2728 kmem_cache_alloc_node include/linux/slab.h:364 [inline] __alloc_skb+0xe6/0x600 net/core/skbuff.c:219 alloc_skb include/linux/skbuff.h:919 [inline] pfkey_xfrm_policy2msg_prep+0x29/0x50 net/key/af_key.c:2010 dump_sp+0xa8/0x450 net/key/af_key.c:2655 xfrm_policy_walk+0x1b1/0x4d0 net/xfrm/xfrm_policy.c:1047 pfkey_dump_sp+0x42/0x50 net/key/af_key.c:2682 pfkey_do_dump+0x40/0x2b0 net/key/af_key.c:288 pfkey_spddump+0x187/0x1e0 net/key/af_key.c:2705 pfkey_process+0x619/0x730 net/key/af_key.c:2795 pfkey_sendmsg+0x3af/0x750 net/key/af_key.c:3636 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Freed: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_slab_free+0x73/0xc0 mm/kasan/kasan.c:571 slab_free_hook mm/slub.c:1355 [inline] slab_free_freelist_hook mm/slub.c:1377 [inline] slab_free mm/slub.c:2958 [inline] kmem_cache_free+0xb2/0x2e0 mm/slub.c:2980 kfree_skbmem+0xd7/0xf0 net/core/skbuff.c:623 __kfree_skb+0x1d/0x20 net/core/skbuff.c:685 kfree_skb+0xcc/0x330 net/core/skbuff.c:705 pfkey_broadcast+0x3de/0x610 net/key/af_key.c:279 pfkey_do_dump+0x20e/0x2b0 net/key/af_key.c:299 pfkey_spddump+0x187/0x1e0 net/key/af_key.c:2705 pfkey_process+0x619/0x730 net/key/af_key.c:2795 pfkey_sendmsg+0x3af/0x750 net/key/af_key.c:3636 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Memory state around the buggy address: ffff880195ed2700: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc ffff880195ed2780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff880195ed2800: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ^ ffff880195ed2880: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ffff880195ed2900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: use-after-free in __read_once_size include/linux/compiler.h:243 [inline] at addr ffff880195ed2844 BUG: KASAN: use-after-free in atomic_read arch/x86/include/asm/atomic.h:26 [inline] at addr ffff880195ed2844 BUG: KASAN: use-after-free in page_ref_count include/linux/page_ref.h:66 [inline] at addr ffff880195ed2844 BUG: KASAN: use-after-free in put_page_testzero include/linux/mm.h:445 [inline] at addr ffff880195ed2844 BUG: KASAN: use-after-free in put_page include/linux/mm.h:779 [inline] at addr ffff880195ed2844 BUG: KASAN: use-after-free in __skb_frag_unref include/linux/skbuff.h:2592 [inline] at addr ffff880195ed2844 BUG: KASAN: use-after-free in skb_release_data+0x3a5/0x3f0 net/core/skbuff.c:594 at addr ffff880195ed2844 Read of size 4 by task syz-executor6/28571 CPU: 0 PID: 28571 Comm: syz-executor6 Tainted: G B 4.9.40-ged32335 #11 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801ab5b7640 ffffffff81d8d829 ffff8801da33c500 ffff880195ed2780 ffff880195ed2860 ffffed0032bda508 ffff880195ed2844 ffff8801ab5b7668 ffffffff81537a3c ffffed0032bda508 ffff8801da33c500 0000000000000000 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 [] __read_once_size include/linux/compiler.h:243 [inline] [] atomic_read arch/x86/include/asm/atomic.h:26 [inline] [] page_ref_count include/linux/page_ref.h:66 [inline] [] put_page_testzero include/linux/mm.h:445 [inline] [] put_page include/linux/mm.h:779 [inline] [] __skb_frag_unref include/linux/skbuff.h:2592 [inline] [] skb_release_data+0x3a5/0x3f0 net/core/skbuff.c:594 [] skb_release_all+0x4a/0x60 net/core/skbuff.c:670 [] __kfree_skb+0x15/0x20 net/core/skbuff.c:684 [] kfree_skb+0xcc/0x330 net/core/skbuff.c:705 [] skb_queue_purge+0x19/0x40 net/core/skbuff.c:2419 [] pfkey_sock_destruct+0x157/0x370 net/key/af_key.c:103 [] __sk_destruct+0x53/0x570 net/core/sock.c:1428 [] sk_destruct+0x47/0x80 net/core/sock.c:1463 [] __sk_free+0x57/0x230 net/core/sock.c:1471 [] sk_free+0x23/0x30 net/core/sock.c:1482 [] sock_put include/net/sock.h:1592 [inline] [] pfkey_release+0x25e/0x2f0 net/key/af_key.c:189 [] sock_release+0x8d/0x1e0 net/socket.c:599 [] sock_close+0x16/0x20 net/socket.c:1046 [] __fput+0x28c/0x6e0 fs/file_table.c:208 [] ____fput+0x15/0x20 fs/file_table.c:244 [] task_work_run+0x115/0x190 kernel/task_work.c:116 [] exit_task_work include/linux/task_work.h:21 [inline] [] do_exit+0x826/0x2a40 kernel/exit.c:833 [] do_group_exit+0x108/0x320 kernel/exit.c:937 [] get_signal+0x55c/0x1600 kernel/signal.c:2315 [] do_signal+0x87/0x1960 arch/x86/kernel/signal.c:807 [] exit_to_usermode_loop+0xe5/0x130 arch/x86/entry/common.c:156 [] prepare_exit_to_usermode arch/x86/entry/common.c:190 [inline] [] syscall_return_slowpath+0x1a0/0x1e0 arch/x86/entry/common.c:259 [] entry_SYSCALL_64_fastpath+0xc4/0xc6 Object at ffff880195ed2780, in cache skbuff_head_cache size: 224 Allocated: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:598 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] kmem_cache_alloc+0xba/0x290 mm/slub.c:2728 kmem_cache_alloc_node include/linux/slab.h:364 [inline] __alloc_skb+0xe6/0x600 net/core/skbuff.c:219 alloc_skb include/linux/skbuff.h:919 [inline] pfkey_xfrm_policy2msg_prep+0x29/0x50 net/key/af_key.c:2010 dump_sp+0xa8/0x450 net/key/af_key.c:2655 xfrm_policy_walk+0x1b1/0x4d0 net/xfrm/xfrm_policy.c:1047 pfkey_dump_sp+0x42/0x50 net/key/af_key.c:2682 pfkey_do_dump+0x40/0x2b0 net/key/af_key.c:288 pfkey_spddump+0x187/0x1e0 net/key/af_key.c:2705 pfkey_process+0x619/0x730 net/key/af_key.c:2795 pfkey_sendmsg+0x3af/0x750 net/key/af_key.c:3636 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Freed: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_slab_free+0x73/0xc0 mm/kasan/kasan.c:571 slab_free_hook mm/slub.c:1355 [inline] slab_free_freelist_hook mm/slub.c:1377 [inline] slab_free mm/slub.c:2958 [inline] kmem_cache_free+0xb2/0x2e0 mm/slub.c:2980 kfree_skbmem+0xd7/0xf0 net/core/skbuff.c:623 __kfree_skb+0x1d/0x20 net/core/skbuff.c:685 kfree_skb+0xcc/0x330 net/core/skbuff.c:705 pfkey_broadcast+0x3de/0x610 net/key/af_key.c:279 pfkey_do_dump+0x20e/0x2b0 net/key/af_key.c:299 pfkey_spddump+0x187/0x1e0 net/key/af_key.c:2705 pfkey_process+0x619/0x730 net/key/af_key.c:2795 pfkey_sendmsg+0x3af/0x750 net/key/af_key.c:3636 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Memory state around the buggy address: ffff880195ed2700: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc ffff880195ed2780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff880195ed2800: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ^ ffff880195ed2880: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ffff880195ed2900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: use-after-free in skb_release_data+0x3dd/0x3f0 net/core/skbuff.c:588 at addr ffff880195ed2848 Read of size 8 by task syz-executor6/28571 CPU: 0 PID: 28571 Comm: syz-executor6 Tainted: G B 4.9.40-ged32335 #11 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801ab5b7640 ffffffff81d8d829 ffff8801da33c500 ffff880195ed2780 ffff880195ed2860 ffffed0032bda509 ffff880195ed2848 ffff8801ab5b7668 ffffffff81537a3c ffffed0032bda509 ffff8801da33c500 0000000000000000 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] kasan_report mm/kasan/report.c:330 [inline] [] __asan_report_load8_noabort+0x29/0x30 mm/kasan/report.c:330 [] skb_release_data+0x3dd/0x3f0 net/core/skbuff.c:588 [] skb_release_all+0x4a/0x60 net/core/skbuff.c:670 [] __kfree_skb+0x15/0x20 net/core/skbuff.c:684 [] kfree_skb+0xcc/0x330 net/core/skbuff.c:705 [] skb_queue_purge+0x19/0x40 net/core/skbuff.c:2419 [] pfkey_sock_destruct+0x157/0x370 net/key/af_key.c:103 [] __sk_destruct+0x53/0x570 net/core/sock.c:1428 [] sk_destruct+0x47/0x80 net/core/sock.c:1463 [] __sk_free+0x57/0x230 net/core/sock.c:1471 [] sk_free+0x23/0x30 net/core/sock.c:1482 [] sock_put include/net/sock.h:1592 [inline] [] pfkey_release+0x25e/0x2f0 net/key/af_key.c:189 [] sock_release+0x8d/0x1e0 net/socket.c:599 [] sock_close+0x16/0x20 net/socket.c:1046 [] __fput+0x28c/0x6e0 fs/file_table.c:208 [] ____fput+0x15/0x20 fs/file_table.c:244 [] task_work_run+0x115/0x190 kernel/task_work.c:116 [] exit_task_work include/linux/task_work.h:21 [inline] [] do_exit+0x826/0x2a40 kernel/exit.c:833 [] do_group_exit+0x108/0x320 kernel/exit.c:937 [] get_signal+0x55c/0x1600 kernel/signal.c:2315 [] do_signal+0x87/0x1960 arch/x86/kernel/signal.c:807 [] exit_to_usermode_loop+0xe5/0x130 arch/x86/entry/common.c:156 [] prepare_exit_to_usermode arch/x86/entry/common.c:190 [inline] [] syscall_return_slowpath+0x1a0/0x1e0 arch/x86/entry/common.c:259 [] entry_SYSCALL_64_fastpath+0xc4/0xc6 Object at ffff880195ed2780, in cache skbuff_head_cache size: 224 Allocated: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:598 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] kmem_cache_alloc+0xba/0x290 mm/slub.c:2728 kmem_cache_alloc_node include/linux/slab.h:364 [inline] __alloc_skb+0xe6/0x600 net/core/skbuff.c:219 alloc_skb include/linux/skbuff.h:919 [inline] pfkey_xfrm_policy2msg_prep+0x29/0x50 net/key/af_key.c:2010 dump_sp+0xa8/0x450 net/key/af_key.c:2655 xfrm_policy_walk+0x1b1/0x4d0 net/xfrm/xfrm_policy.c:1047 pfkey_dump_sp+0x42/0x50 net/key/af_key.c:2682 pfkey_do_dump+0x40/0x2b0 net/key/af_key.c:288 pfkey_spddump+0x187/0x1e0 net/key/af_key.c:2705 pfkey_process+0x619/0x730 net/key/af_key.c:2795 pfkey_sendmsg+0x3af/0x750 net/key/af_key.c:3636 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Freed: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_slab_free+0x73/0xc0 mm/kasan/kasan.c:571 slab_free_hook mm/slub.c:1355 [inline] slab_free_freelist_hook mm/slub.c:1377 [inline] slab_free mm/slub.c:2958 [inline] kmem_cache_free+0xb2/0x2e0 mm/slub.c:2980 kfree_skbmem+0xd7/0xf0 net/core/skbuff.c:623 __kfree_skb+0x1d/0x20 net/core/skbuff.c:685 kfree_skb+0xcc/0x330 net/core/skbuff.c:705 pfkey_broadcast+0x3de/0x610 net/key/af_key.c:279 pfkey_do_dump+0x20e/0x2b0 net/key/af_key.c:299 pfkey_spddump+0x187/0x1e0 net/key/af_key.c:2705 pfkey_process+0x619/0x730 net/key/af_key.c:2795 pfkey_sendmsg+0x3af/0x750 net/key/af_key.c:3636 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Memory state around the buggy address: ffff880195ed2700: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc ffff880195ed2780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff880195ed2800: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ^ ffff880195ed2880: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ffff880195ed2900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: use-after-free in skb_release_data+0x3d3/0x3f0 net/core/skbuff.c:588 at addr ffff880195ed2806 Read of size 1 by task syz-executor6/28571 CPU: 0 PID: 28571 Comm: syz-executor6 Tainted: G B 4.9.40-ged32335 #11 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801ab5b7640 ffffffff81d8d829 ffff8801da33c500 ffff880195ed2780 ffff880195ed2860 ffffed0032bda500 ffff880195ed2806 ffff8801ab5b7668 ffffffff81537a3c ffffed0032bda500 ffff8801da33c500 0000000000000000 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] kasan_report mm/kasan/report.c:327 [inline] [] __asan_report_load1_noabort+0x29/0x30 mm/kasan/report.c:327 [] skb_release_data+0x3d3/0x3f0 net/core/skbuff.c:588 [] skb_release_all+0x4a/0x60 net/core/skbuff.c:670 [] __kfree_skb+0x15/0x20 net/core/skbuff.c:684 [] kfree_skb+0xcc/0x330 net/core/skbuff.c:705 [] skb_queue_purge+0x19/0x40 net/core/skbuff.c:2419 [] pfkey_sock_destruct+0x157/0x370 net/key/af_key.c:103 [] __sk_destruct+0x53/0x570 net/core/sock.c:1428 [] sk_destruct+0x47/0x80 net/core/sock.c:1463 [] __sk_free+0x57/0x230 net/core/sock.c:1471 [] sk_free+0x23/0x30 net/core/sock.c:1482 [] sock_put include/net/sock.h:1592 [inline] [] pfkey_release+0x25e/0x2f0 net/key/af_key.c:189 [] sock_release+0x8d/0x1e0 net/socket.c:599 [] sock_close+0x16/0x20 net/socket.c:1046 [] __fput+0x28c/0x6e0 fs/file_table.c:208 [] ____fput+0x15/0x20 fs/file_table.c:244 [] task_work_run+0x115/0x190 kernel/task_work.c:116 [] exit_task_work include/linux/task_work.h:21 [inline] [] do_exit+0x826/0x2a40 kernel/exit.c:833 [] do_group_exit+0x108/0x320 kernel/exit.c:937 [] get_signal+0x55c/0x1600 kernel/signal.c:2315 [] do_signal+0x87/0x1960 arch/x86/kernel/signal.c:807 [] exit_to_usermode_loop+0xe5/0x130 arch/x86/entry/common.c:156 [] prepare_exit_to_usermode arch/x86/entry/common.c:190 [inline] [] syscall_return_slowpath+0x1a0/0x1e0 arch/x86/entry/common.c:259 [] entry_SYSCALL_64_fastpath+0xc4/0xc6 Object at ffff880195ed2780, in cache skbuff_head_cache size: 224 Allocated: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:598 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] kmem_cache_alloc+0xba/0x290 mm/slub.c:2728 kmem_cache_alloc_node include/linux/slab.h:364 [inline] __alloc_skb+0xe6/0x600 net/core/skbuff.c:219 alloc_skb include/linux/skbuff.h:919 [inline] pfkey_xfrm_policy2msg_prep+0x29/0x50 net/key/af_key.c:2010 dump_sp+0xa8/0x450 net/key/af_key.c:2655 xfrm_policy_walk+0x1b1/0x4d0 net/xfrm/xfrm_policy.c:1047 pfkey_dump_sp+0x42/0x50 net/key/af_key.c:2682 pfkey_do_dump+0x40/0x2b0 net/key/af_key.c:288 pfkey_spddump+0x187/0x1e0 net/key/af_key.c:2705 pfkey_process+0x619/0x730 net/key/af_key.c:2795 pfkey_sendmsg+0x3af/0x750 net/key/af_key.c:3636 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Freed: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_slab_free+0x73/0xc0 mm/kasan/kasan.c:571 slab_free_hook mm/slub.c:1355 [inline] slab_free_freelist_hook mm/slub.c:1377 [inline] slab_free mm/slub.c:2958 [inline] kmem_cache_free+0xb2/0x2e0 mm/slub.c:2980 kfree_skbmem+0xd7/0xf0 net/core/skbuff.c:623 __kfree_skb+0x1d/0x20 net/core/skbuff.c:685 kfree_skb+0xcc/0x330 net/core/skbuff.c:705 pfkey_broadcast+0x3de/0x610 net/key/af_key.c:279 pfkey_do_dump+0x20e/0x2b0 net/key/af_key.c:299 pfkey_spddump+0x187/0x1e0 net/key/af_key.c:2705 pfkey_process+0x619/0x730 net/key/af_key.c:2795 pfkey_sendmsg+0x3af/0x750 net/key/af_key.c:3636 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Memory state around the buggy address: ffff880195ed2700: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc ffff880195ed2780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff880195ed2800: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ^ ffff880195ed2880: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ffff880195ed2900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: use-after-free in kfree_skbmem+0xe4/0xf0 net/core/skbuff.c:621 at addr ffff880195ed2806 Read of size 1 by task syz-executor6/28571 CPU: 0 PID: 28571 Comm: syz-executor6 Tainted: G B 4.9.40-ged32335 #11 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801ab5b7690 ffffffff81d8d829 ffff8801da33c500 ffff880195ed2780 ffff880195ed2860 ffffed0032bda500 ffff880195ed2806 ffff8801ab5b76b8 ffffffff81537a3c ffffed0032bda500 ffff8801da33c500 0000000000000000 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] kasan_report mm/kasan/report.c:327 [inline] [] __asan_report_load1_noabort+0x29/0x30 mm/kasan/report.c:327 [] kfree_skbmem+0xe4/0xf0 net/core/skbuff.c:621 [] __kfree_skb+0x1d/0x20 net/core/skbuff.c:685 [] kfree_skb+0xcc/0x330 net/core/skbuff.c:705 [] skb_queue_purge+0x19/0x40 net/core/skbuff.c:2419 [] pfkey_sock_destruct+0x157/0x370 net/key/af_key.c:103 [] __sk_destruct+0x53/0x570 net/core/sock.c:1428 [] sk_destruct+0x47/0x80 net/core/sock.c:1463 [] __sk_free+0x57/0x230 net/core/sock.c:1471 [] sk_free+0x23/0x30 net/core/sock.c:1482 [] sock_put include/net/sock.h:1592 [inline] [] pfkey_release+0x25e/0x2f0 net/key/af_key.c:189 [] sock_release+0x8d/0x1e0 net/socket.c:599 [] sock_close+0x16/0x20 net/socket.c:1046 [] __fput+0x28c/0x6e0 fs/file_table.c:208 [] ____fput+0x15/0x20 fs/file_table.c:244 [] task_work_run+0x115/0x190 kernel/task_work.c:116 [] exit_task_work include/linux/task_work.h:21 [inline] [] do_exit+0x826/0x2a40 kernel/exit.c:833 [] do_group_exit+0x108/0x320 kernel/exit.c:937 [] get_signal+0x55c/0x1600 kernel/signal.c:2315 [] do_signal+0x87/0x1960 arch/x86/kernel/signal.c:807 [] exit_to_usermode_loop+0xe5/0x130 arch/x86/entry/common.c:156 [] prepare_exit_to_usermode arch/x86/entry/common.c:190 [inline] [] syscall_return_slowpath+0x1a0/0x1e0 arch/x86/entry/common.c:259 [] entry_SYSCALL_64_fastpath+0xc4/0xc6 Object at ffff880195ed2780, in cache skbuff_head_cache size: 224 Allocated: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:598 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] kmem_cache_alloc+0xba/0x290 mm/slub.c:2728 kmem_cache_alloc_node include/linux/slab.h:364 [inline] __alloc_skb+0xe6/0x600 net/core/skbuff.c:219 alloc_skb include/linux/skbuff.h:919 [inline] pfkey_xfrm_policy2msg_prep+0x29/0x50 net/key/af_key.c:2010 dump_sp+0xa8/0x450 net/key/af_key.c:2655 xfrm_policy_walk+0x1b1/0x4d0 net/xfrm/xfrm_policy.c:1047 pfkey_dump_sp+0x42/0x50 net/key/af_key.c:2682 pfkey_do_dump+0x40/0x2b0 net/key/af_key.c:288 pfkey_spddump+0x187/0x1e0 net/key/af_key.c:2705 pfkey_process+0x619/0x730 net/key/af_key.c:2795 pfkey_sendmsg+0x3af/0x750 net/key/af_key.c:3636 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Freed: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_slab_free+0x73/0xc0 mm/kasan/kasan.c:571 slab_free_hook mm/slub.c:1355 [inline] slab_free_freelist_hook mm/slub.c:1377 [inline] slab_free mm/slub.c:2958 [inline] kmem_cache_free+0xb2/0x2e0 mm/slub.c:2980 kfree_skbmem+0xd7/0xf0 net/core/skbuff.c:623 __kfree_skb+0x1d/0x20 net/core/skbuff.c:685 kfree_skb+0xcc/0x330 net/core/skbuff.c:705 pfkey_broadcast+0x3de/0x610 net/key/af_key.c:279 pfkey_do_dump+0x20e/0x2b0 net/key/af_key.c:299 pfkey_spddump+0x187/0x1e0 net/key/af_key.c:2705 pfkey_process+0x619/0x730 net/key/af_key.c:2795 pfkey_sendmsg+0x3af/0x750 net/key/af_key.c:3636 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Memory state around the buggy address: ffff880195ed2700: fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc ffff880195ed2780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff880195ed2800: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ^ ffff880195ed2880: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ffff880195ed2900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: Double free or freeing an invalid pointer Unexpected shadow byte: 0xFB CPU: 0 PID: 28571 Comm: syz-executor6 Tainted: G B 4.9.40-ged32335 #11 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801ab5b7690 ffffffff81d8d829 ffff8801da33c500 ffff880195ed2780 ffff880195ed2860 ffffffff82edd6f7 0000000000000246 ffff8801ab5b76b8 ffffffff81537a3c 00000000fffffffb ffff8801da33c500 ffff880195ed2780 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 [] kasan_report_double_free+0x53/0x80 mm/kasan/report.c:181 [] kasan_slab_free+0x9d/0xc0 mm/kasan/kasan.c:562 [] slab_free_hook mm/slub.c:1355 [inline] [] slab_free_freelist_hook mm/slub.c:1377 [inline] [] slab_free mm/slub.c:2958 [inline] [] kmem_cache_free+0xb2/0x2e0 mm/slub.c:2980 [] kfree_skbmem+0xd7/0xf0 net/core/skbuff.c:623 [] __kfree_skb+0x1d/0x20 net/core/skbuff.c:685 [] kfree_skb+0xcc/0x330 net/core/skbuff.c:705 [] skb_queue_purge+0x19/0x40 net/core/skbuff.c:2419 [] pfkey_sock_destruct+0x157/0x370 net/key/af_key.c:103 [] __sk_destruct+0x53/0x570 net/core/sock.c:1428 [] sk_destruct+0x47/0x80 net/core/sock.c:1463 [] __sk_free+0x57/0x230 net/core/sock.c:1471 [] sk_free+0x23/0x30 net/core/sock.c:1482 [] sock_put include/net/sock.h:1592 [inline] [] pfkey_release+0x25e/0x2f0 net/key/af_key.c:189 [] sock_release+0x8d/0x1e0 net/socket.c:599 [] sock_close+0x16/0x20 net/socket.c:1046 [] __fput+0x28c/0x6e0 fs/file_table.c:208 [] ____fput+0x15/0x20 fs/file_table.c:244 [] task_work_run+0x115/0x190 kernel/task_work.c:116 [] exit_task_work include/linux/task_work.h:21 [inline] [] do_exit+0x826/0x2a40 kernel/exit.c:833 [] do_group_exit+0x108/0x320 kernel/exit.c:937 [] get_signal+0x55c/0x1600 kernel/signal.c:2315 [] do_signal+0x87/0x1960 arch/x86/kernel/signal.c:807 [] exit_to_usermode_loop+0xe5/0x130 arch/x86/entry/common.c:156 [] prepare_exit_to_usermode arch/x86/entry/common.c:190 [inline] [] syscall_return_slowpath+0x1a0/0x1e0 arch/x86/entry/common.c:259 [] entry_SYSCALL_64_fastpath+0xc4/0xc6 Object at ffff880195ed2780, in cache skbuff_head_cache size: 224 Allocated: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:598 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] kmem_cache_alloc+0xba/0x290 mm/slub.c:2728 kmem_cache_alloc_node include/linux/slab.h:364 [inline] __alloc_skb+0xe6/0x600 net/core/skbuff.c:219 alloc_skb include/linux/skbuff.h:919 [inline] pfkey_xfrm_policy2msg_prep+0x29/0x50 net/key/af_key.c:2010 dump_sp+0xa8/0x450 net/key/af_key.c:2655 xfrm_policy_walk+0x1b1/0x4d0 net/xfrm/xfrm_policy.c:1047 pfkey_dump_sp+0x42/0x50 net/key/af_key.c:2682 pfkey_do_dump+0x40/0x2b0 net/key/af_key.c:288 pfkey_spddump+0x187/0x1e0 net/key/af_key.c:2705 pfkey_process+0x619/0x730 net/key/af_key.c:2795 pfkey_sendmsg+0x3af/0x750 net/key/af_key.c:3636 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Freed: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_slab_free+0x73/0xc0 mm/kasan/kasan.c:571 slab_free_hook mm/slub.c:1355 [inline] slab_free_freelist_hook mm/slub.c:1377 [inline] slab_free mm/slub.c:2958 [inline] kmem_cache_free+0xb2/0x2e0 mm/slub.c:2980 kfree_skbmem+0xd7/0xf0 net/core/skbuff.c:623 __kfree_skb+0x1d/0x20 net/core/skbuff.c:685 kfree_skb+0xcc/0x330 net/core/skbuff.c:705 pfkey_broadcast+0x3de/0x610 net/key/af_key.c:279 pfkey_do_dump+0x20e/0x2b0 net/key/af_key.c:299 pfkey_spddump+0x187/0x1e0 net/key/af_key.c:2705 pfkey_process+0x619/0x730 net/key/af_key.c:2795 pfkey_sendmsg+0x3af/0x750 net/key/af_key.c:3636 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 ================================================================== ================================================================== BUG: KASAN: use-after-free in __skb_unlink include/linux/skbuff.h:1750 [inline] at addr ffff8801cdec2000 BUG: KASAN: use-after-free in __skb_dequeue include/linux/skbuff.h:1770 [inline] at addr ffff8801cdec2000 BUG: KASAN: use-after-free in skb_dequeue+0x176/0x180 net/core/skbuff.c:2381 at addr ffff8801cdec2000 Read of size 8 by task syz-executor6/28571 CPU: 0 PID: 28571 Comm: syz-executor6 Tainted: G B 4.9.40-ged32335 #11 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801ab5b76c0 ffffffff81d8d829 ffff8801da001280 ffff8801cdec2000 ffff8801cdec2200 ffffed0039bd8400 ffff8801cdec2000 ffff8801ab5b76e8 ffffffff81537a3c ffffed0039bd8400 ffff8801da001280 0000000000000000 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] kasan_report mm/kasan/report.c:330 [inline] [] __asan_report_load8_noabort+0x29/0x30 mm/kasan/report.c:330 [] __skb_unlink include/linux/skbuff.h:1750 [inline] [] __skb_dequeue include/linux/skbuff.h:1770 [inline] [] skb_dequeue+0x176/0x180 net/core/skbuff.c:2381 [] skb_queue_purge+0x26/0x40 net/core/skbuff.c:2418 [] pfkey_sock_destruct+0x157/0x370 net/key/af_key.c:103 [] __sk_destruct+0x53/0x570 net/core/sock.c:1428 [] sk_destruct+0x47/0x80 net/core/sock.c:1463 [] __sk_free+0x57/0x230 net/core/sock.c:1471 [] sk_free+0x23/0x30 net/core/sock.c:1482 [] sock_put include/net/sock.h:1592 [inline] [] pfkey_release+0x25e/0x2f0 net/key/af_key.c:189 [] sock_release+0x8d/0x1e0 net/socket.c:599 [] sock_close+0x16/0x20 net/socket.c:1046 [] __fput+0x28c/0x6e0 fs/file_table.c:208 [] ____fput+0x15/0x20 fs/file_table.c:244 [] task_work_run+0x115/0x190 kernel/task_work.c:116 [] exit_task_work include/linux/task_work.h:21 [inline] [] do_exit+0x826/0x2a40 kernel/exit.c:833 [] do_group_exit+0x108/0x320 kernel/exit.c:937 [] get_signal+0x55c/0x1600 kernel/signal.c:2315 [] do_signal+0x87/0x1960 arch/x86/kernel/signal.c:807 [] exit_to_usermode_loop+0xe5/0x130 arch/x86/entry/common.c:156 [] prepare_exit_to_usermode arch/x86/entry/common.c:190 [inline] [] syscall_return_slowpath+0x1a0/0x1e0 arch/x86/entry/common.c:259 [] entry_SYSCALL_64_fastpath+0xc4/0xc6 Object at ffff8801cdec2000, in cache kmalloc-512 size: 512 Allocated: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:598 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] __kmalloc_track_caller+0xda/0x2b0 mm/slub.c:4232 __kmalloc_reserve.isra.37+0x33/0xc0 net/core/skbuff.c:138 __alloc_skb+0x119/0x600 net/core/skbuff.c:231 alloc_skb include/linux/skbuff.h:919 [inline] pfkey_sendmsg+0x12f/0x750 net/key/af_key.c:3623 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Freed: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_slab_free+0x73/0xc0 mm/kasan/kasan.c:571 slab_free_hook mm/slub.c:1355 [inline] slab_free_freelist_hook mm/slub.c:1377 [inline] slab_free mm/slub.c:2958 [inline] kfree+0xf0/0x2f0 mm/slub.c:3878 skb_free_head+0x74/0xb0 net/core/skbuff.c:580 skb_release_data+0x315/0x3f0 net/core/skbuff.c:611 skb_release_all+0x4a/0x60 net/core/skbuff.c:670 __kfree_skb+0x15/0x20 net/core/skbuff.c:684 kfree_skb+0xcc/0x330 net/core/skbuff.c:705 pfkey_sendmsg+0x61a/0x750 net/key/af_key.c:3642 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Memory state around the buggy address: ffff8801cdec1f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8801cdec1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8801cdec2000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8801cdec2080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8801cdec2100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: use-after-free in __skb_unlink include/linux/skbuff.h:1751 [inline] at addr ffff8801cdec2008 BUG: KASAN: use-after-free in __skb_dequeue include/linux/skbuff.h:1770 [inline] at addr ffff8801cdec2008 BUG: KASAN: use-after-free in skb_dequeue+0x169/0x180 net/core/skbuff.c:2381 at addr ffff8801cdec2008 Read of size 8 by task syz-executor6/28571 CPU: 0 PID: 28571 Comm: syz-executor6 Tainted: G B 4.9.40-ged32335 #11 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801ab5b76c0 ffffffff81d8d829 ffff8801da001280 ffff8801cdec2000 ffff8801cdec2200 ffffed0039bd8401 ffff8801cdec2008 ffff8801ab5b76e8 ffffffff81537a3c ffffed0039bd8401 ffff8801da001280 0000000000000000 Call Trace: [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] kasan_report mm/kasan/report.c:330 [inline] [] __asan_report_load8_noabort+0x29/0x30 mm/kasan/report.c:330 [] __skb_unlink include/linux/skbuff.h:1751 [inline] [] __skb_dequeue include/linux/skbuff.h:1770 [inline] [] skb_dequeue+0x169/0x180 net/core/skbuff.c:2381 [] skb_queue_purge+0x26/0x40 net/core/skbuff.c:2418 [] pfkey_sock_destruct+0x157/0x370 net/key/af_key.c:103 [] __sk_destruct+0x53/0x570 net/core/sock.c:1428 [] sk_destruct+0x47/0x80 net/core/sock.c:1463 [] __sk_free+0x57/0x230 net/core/sock.c:1471 [] sk_free+0x23/0x30 net/core/sock.c:1482 [] sock_put include/net/sock.h:1592 [inline] [] pfkey_release+0x25e/0x2f0 net/key/af_key.c:189 [] sock_release+0x8d/0x1e0 net/socket.c:599 [] sock_close+0x16/0x20 net/socket.c:1046 [] __fput+0x28c/0x6e0 fs/file_table.c:208 [] ____fput+0x15/0x20 fs/file_table.c:244 [] task_work_run+0x115/0x190 kernel/task_work.c:116 [] exit_task_work include/linux/task_work.h:21 [inline] [] do_exit+0x826/0x2a40 kernel/exit.c:833 [] do_group_exit+0x108/0x320 kernel/exit.c:937 [] get_signal+0x55c/0x1600 kernel/signal.c:2315 [] do_signal+0x87/0x1960 arch/x86/kernel/signal.c:807 [] exit_to_usermode_loop+0xe5/0x130 arch/x86/entry/common.c:156 [] prepare_exit_to_usermode arch/x86/entry/common.c:190 [inline] [] syscall_return_slowpath+0x1a0/0x1e0 arch/x86/entry/common.c:259 [] entry_SYSCALL_64_fastpath+0xc4/0xc6 Object at ffff8801cdec2000, in cache kmalloc-512 size: 512 Allocated: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:598 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] __kmalloc_track_caller+0xda/0x2b0 mm/slub.c:4232 __kmalloc_reserve.isra.37+0x33/0xc0 net/core/skbuff.c:138 __alloc_skb+0x119/0x600 net/core/skbuff.c:231 alloc_skb include/linux/skbuff.h:919 [inline] pfkey_sendmsg+0x12f/0x750 net/key/af_key.c:3623 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Freed: PID = 28557 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 set_track mm/kasan/kasan.c:507 [inline] kasan_slab_free+0x73/0xc0 mm/kasan/kasan.c:571 slab_free_hook mm/slub.c:1355 [inline] slab_free_freelist_hook mm/slub.c:1377 [inline] slab_free mm/slub.c:2958 [inline] kfree+0xf0/0x2f0 mm/slub.c:3878 skb_free_head+0x74/0xb0 net/core/skbuff.c:580 skb_release_data+0x315/0x3f0 net/core/skbuff.c:611 skb_release_all+0x4a/0x60 net/core/skbuff.c:670 __kfree_skb+0x15/0x20 net/core/skbuff.c:684 kfree_skb+0xcc/0x330 net/core/skbuff.c:705 pfkey_sendmsg+0x61a/0x750 net/key/af_key.c:3642 sock_sendmsg_nosec net/socket.c:635 [inline] sock_sendmsg+0xca/0x110 net/socket.c:645 ___sys_sendmsg+0x6d1/0x7e0 net/socket.c:1968 __sys_sendmsg+0xd6/0x190 net/socket.c:2002 SYSC_sendmsg net/socket.c:2013 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2009 entry_SYSCALL_64_fastpath+0x23/0xc6 Memory state around the buggy address: ffff8801cdec1f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8801cdec1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00