audit: type=1804 audit(1569838469.180:116): pid=9598 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op="invalid_pcr" cause="open_writers" comm="syz-executor.1" name="/root/syzkaller-testdir257850084/syzkaller.PCJrq6/12/memory.events" dev="sda1" ino=16877 res=1 ================================================================== BUG: KASAN: use-after-free in ____bpf_clone_redirect net/core/filter.c:1768 [inline] BUG: KASAN: use-after-free in bpf_clone_redirect+0x2de/0x2f0 net/core/filter.c:1759 Read of size 8 at addr ffff888092944850 by task syz-executor.1/9611 CPU: 0 PID: 9611 Comm: syz-executor.1 Not tainted 4.14.146 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x138/0x197 lib/dump_stack.c:53 print_address_description.cold+0x7c/0x1dc mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report mm/kasan/report.c:409 [inline] kasan_report.cold+0xa9/0x2af mm/kasan/report.c:393 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:430 ____bpf_clone_redirect net/core/filter.c:1768 [inline] bpf_clone_redirect+0x2de/0x2f0 net/core/filter.c:1759 bpf_prog_5dcdee4b6441ca99+0xe1d/0x1000 Allocated by task 9157: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x45/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc mm/kasan/kasan.c:551 [inline] kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:529 kasan_slab_alloc+0xf/0x20 mm/kasan/kasan.c:489 kmem_cache_alloc_node+0x144/0x780 mm/slab.c:3642 __alloc_skb+0x9c/0x500 net/core/skbuff.c:193 alloc_skb include/linux/skbuff.h:980 [inline] nlmsg_new include/net/netlink.h:511 [inline] rtmsg_ifinfo_build_skb+0x72/0x140 net/core/rtnetlink.c:2878 rtmsg_ifinfo_event.part.0+0x35/0xc0 net/core/rtnetlink.c:2912 rtmsg_ifinfo_event net/core/rtnetlink.c:4336 [inline] rtnetlink_event+0xf4/0x120 net/core/rtnetlink.c:4329 notifier_call_chain+0x111/0x1b0 kernel/notifier.c:93 __raw_notifier_call_chain kernel/notifier.c:394 [inline] raw_notifier_call_chain+0x2e/0x40 kernel/notifier.c:401 call_netdevice_notifiers_info+0x56/0x70 net/core/dev.c:1671 call_netdevice_notifiers net/core/dev.c:1687 [inline] dev_set_mac_address net/core/dev.c:6972 [inline] dev_set_mac_address+0x1d1/0x2b0 net/core/dev.c:6957 bond_enslave+0x952/0x4d00 drivers/net/bonding/bond_main.c:1501 do_set_master net/core/rtnetlink.c:1940 [inline] do_set_master+0x19f/0x200 net/core/rtnetlink.c:1915 do_setlink+0x99f/0x2d50 net/core/rtnetlink.c:2077 rtnl_newlink+0x11a7/0x1700 net/core/rtnetlink.c:2630 rtnetlink_rcv_msg+0x3eb/0xb70 net/core/rtnetlink.c:4285 netlink_rcv_skb+0x14f/0x3c0 net/netlink/af_netlink.c:2432 rtnetlink_rcv+0x1d/0x30 net/core/rtnetlink.c:4297 netlink_unicast_kernel net/netlink/af_netlink.c:1286 [inline] netlink_unicast+0x45d/0x640 net/netlink/af_netlink.c:1312 netlink_sendmsg+0x7c4/0xc60 net/netlink/af_netlink.c:1877 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xce/0x110 net/socket.c:656 SYSC_sendto+0x206/0x310 net/socket.c:1763 SyS_sendto+0x40/0x50 net/socket.c:1731 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 Freed by task 9157: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x45/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0x75/0xc0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kmem_cache_free+0x83/0x2b0 mm/slab.c:3758 kfree_skbmem net/core/skbuff.c:586 [inline] kfree_skbmem+0xac/0x120 net/core/skbuff.c:580 __kfree_skb net/core/skbuff.c:646 [inline] consume_skb+0xb7/0x340 net/core/skbuff.c:705 netlink_broadcast_filtered+0x2ae/0x9f0 net/netlink/af_netlink.c:1488 netlink_broadcast net/netlink/af_netlink.c:1510 [inline] nlmsg_multicast include/net/netlink.h:591 [inline] nlmsg_notify+0x7c/0x190 net/netlink/af_netlink.c:2475 rtnl_notify net/core/rtnetlink.c:653 [inline] rtmsg_ifinfo_send net/core/rtnetlink.c:2900 [inline] rtmsg_ifinfo_event.part.0+0xa1/0xc0 net/core/rtnetlink.c:2914 rtmsg_ifinfo_event net/core/rtnetlink.c:4336 [inline] rtnetlink_event+0xf4/0x120 net/core/rtnetlink.c:4329 notifier_call_chain+0x111/0x1b0 kernel/notifier.c:93 __raw_notifier_call_chain kernel/notifier.c:394 [inline] raw_notifier_call_chain+0x2e/0x40 kernel/notifier.c:401 call_netdevice_notifiers_info+0x56/0x70 net/core/dev.c:1671 call_netdevice_notifiers net/core/dev.c:1687 [inline] dev_set_mac_address net/core/dev.c:6972 [inline] dev_set_mac_address+0x1d1/0x2b0 net/core/dev.c:6957 bond_enslave+0x952/0x4d00 drivers/net/bonding/bond_main.c:1501 do_set_master net/core/rtnetlink.c:1940 [inline] do_set_master+0x19f/0x200 net/core/rtnetlink.c:1915 do_setlink+0x99f/0x2d50 net/core/rtnetlink.c:2077 rtnl_newlink+0x11a7/0x1700 net/core/rtnetlink.c:2630 rtnetlink_rcv_msg+0x3eb/0xb70 net/core/rtnetlink.c:4285 netlink_rcv_skb+0x14f/0x3c0 net/netlink/af_netlink.c:2432 rtnetlink_rcv+0x1d/0x30 net/core/rtnetlink.c:4297 netlink_unicast_kernel net/netlink/af_netlink.c:1286 [inline] netlink_unicast+0x45d/0x640 net/netlink/af_netlink.c:1312 netlink_sendmsg+0x7c4/0xc60 net/netlink/af_netlink.c:1877 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xce/0x110 net/socket.c:656 SYSC_sendto+0x206/0x310 net/socket.c:1763 SyS_sendto+0x40/0x50 net/socket.c:1731 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 The buggy address belongs to the object at ffff8880929447c0 which belongs to the cache skbuff_head_cache of size 232 The buggy address is located 144 bytes inside of 232-byte region [ffff8880929447c0, ffff8880929448a8) The buggy address belongs to the page: page:ffffea00024a5100 count:1 mapcount:0 mapping:ffff888092944040 index:0x0 flags: 0x1fffc0000000100(slab) raw: 01fffc0000000100 ffff888092944040 0000000000000000 000000010000000c raw: ffffea0001d87d60 ffffea00024cf8e0 ffff88821b75f3c0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888092944700: fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc ffff888092944780: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb >ffff888092944800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888092944880: fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc ffff888092944900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================