================================================================== binder: 11551:11553 unknown command 1661272064 BUG: KASAN: slab-out-of-bounds in ____bpf_skb_change_head net/core/filter.c:2423 [inline] BUG: KASAN: slab-out-of-bounds in bpf_skb_change_head+0x4ea/0x600 net/core/filter.c:2419 Read of size 4 at addr ffff8881cac070f8 by task syz-executor.4/11552 CPU: 0 PID: 11552 Comm: syz-executor.4 Not tainted 4.14.152+ #0 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0xca/0x134 lib/dump_stack.c:53 print_address_description+0x60/0x226 mm/kasan/report.c:187 __kasan_report.cold+0x1a/0x41 mm/kasan/report.c:316 ____bpf_skb_change_head net/core/filter.c:2423 [inline] bpf_skb_change_head+0x4ea/0x600 net/core/filter.c:2419 ___bpf_prog_run+0x2478/0x5510 kernel/bpf/core.c:1095 binder: 11551:11553 ioctl c0306201 20000080 returned -22 Allocated by task 10206: save_stack mm/kasan/common.c:76 [inline] set_track mm/kasan/common.c:85 [inline] __kasan_kmalloc.part.0+0x53/0xc0 mm/kasan/common.c:501 slab_post_alloc_hook mm/slab.h:439 [inline] slab_alloc_node mm/slub.c:2792 [inline] slab_alloc mm/slub.c:2800 [inline] kmem_cache_alloc+0xee/0x360 mm/slub.c:2805 kmem_cache_alloc_node include/linux/slab.h:361 [inline] __alloc_skb+0xea/0x5c0 net/core/skbuff.c:193 alloc_skb include/linux/skbuff.h:980 [inline] __skb_tstamp_tx+0x12b/0x640 net/core/skbuff.c:4384 skb_tx_timestamp include/linux/skbuff.h:3535 [inline] tun_net_xmit+0xc5d/0xee0 drivers/net/tun.c:899 __netdev_start_xmit include/linux/netdevice.h:4033 [inline] netdev_start_xmit include/linux/netdevice.h:4042 [inline] xmit_one net/core/dev.c:3009 [inline] dev_hard_start_xmit+0x19f/0x8c0 net/core/dev.c:3025 sch_direct_xmit+0x27a/0x520 net/sched/sch_generic.c:186 __dev_xmit_skb net/core/dev.c:3218 [inline] __dev_queue_xmit+0x1594/0x1d00 net/core/dev.c:3493 neigh_hh_output include/net/neighbour.h:490 [inline] neigh_output include/net/neighbour.h:498 [inline] ip_finish_output2+0x9fe/0x12f0 net/ipv4/ip_output.c:229 ip_finish_output+0x3be/0xc80 net/ipv4/ip_output.c:317 NF_HOOK_COND include/linux/netfilter.h:239 [inline] ip_mc_output+0x231/0xbe0 net/ipv4/ip_output.c:390 dst_output include/net/dst.h:462 [inline] ip_local_out+0x98/0x170 net/ipv4/ip_output.c:124 ip_send_skb+0x3a/0xc0 net/ipv4/ip_output.c:1418 udp_send_skb+0x531/0xba0 net/ipv4/udp.c:833 udp_sendmsg+0x15ae/0x1bb0 net/ipv4/udp.c:1057 inet_sendmsg+0x15b/0x520 net/ipv4/af_inet.c:760 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xb7/0x100 net/socket.c:656 ___sys_sendmsg+0x368/0x890 net/socket.c:2062 __sys_sendmmsg+0x13c/0x360 net/socket.c:2152 SYSC_sendmmsg net/socket.c:2183 [inline] SyS_sendmmsg+0x2f/0x50 net/socket.c:2178 do_syscall_64+0x19b/0x520 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 0xffffffffffffffff Freed by task 0: save_stack mm/kasan/common.c:76 [inline] set_track mm/kasan/common.c:85 [inline] __kasan_slab_free+0x164/0x210 mm/kasan/common.c:463 slab_free_hook mm/slub.c:1407 [inline] slab_free_freelist_hook mm/slub.c:1458 [inline] slab_free mm/slub.c:3039 [inline] kmem_cache_free+0xd7/0x3b0 mm/slub.c:3055 kfree_skbmem net/core/skbuff.c:586 [inline] kfree_skbmem+0xa0/0x110 net/core/skbuff.c:580 __kfree_skb net/core/skbuff.c:646 [inline] kfree_skb+0xeb/0x370 net/core/skbuff.c:663 __skb_queue_purge include/linux/skbuff.h:2604 [inline] inet_sock_destruct+0x213/0x740 net/ipv4/af_inet.c:137 __sk_destruct+0x4c/0x5a0 net/core/sock.c:1556 __rcu_reclaim kernel/rcu/rcu.h:195 [inline] rcu_do_batch kernel/rcu/tree.c:2699 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2962 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2929 [inline] rcu_process_callbacks+0x59f/0xf60 kernel/rcu/tree.c:2946 __do_softirq+0x234/0x9ec kernel/softirq.c:288 The buggy address belongs to the object at ffff8881cac07000 which belongs to the cache skbuff_head_cache of size 224 The buggy address is located 24 bytes to the right of 224-byte region [ffff8881cac07000, ffff8881cac070e0) The buggy address belongs to the page: page:ffffea00072b01c0 count:1 mapcount:0 mapping: (null) index:0x0 flags: 0x4000000000000200(slab) raw: 4000000000000200 0000000000000000 0000000000000000 00000001800c000c raw: dead000000000100 dead000000000200 ffff8881dab70200 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881cac06f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8881cac07000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8881cac07080: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ^ ffff8881cac07100: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ffff8881cac07180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================