IPv6: ADDRCONF(NETDEV_CHANGE): macvtap0: link becomes ready batman_adv: batadv0: Interface activated: batadv_slave_1 IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready ================================================================== BUG: KASAN: use-after-free in ip_tunnel_xmit+0x24b4/0x33e0 net/ipv4/ip_tunnel.c:659 Read of size 4 at addr ffff8880abbbd8b0 by task syz-executor339/7977 CPU: 0 PID: 7977 Comm: syz-executor339 Not tainted 4.14.298-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 print_address_description.cold+0x54/0x1d3 mm/kasan/report.c:252 kasan_report_error.cold+0x8a/0x191 mm/kasan/report.c:351 kasan_report mm/kasan/report.c:409 [inline] __asan_report_load4_noabort+0x68/0x70 mm/kasan/report.c:429 ip_tunnel_xmit+0x24b4/0x33e0 net/ipv4/ip_tunnel.c:659 ipgre_xmit+0x412/0x780 net/ipv4/ip_gre.c:670 __netdev_start_xmit include/linux/netdevice.h:4054 [inline] netdev_start_xmit include/linux/netdevice.h:4063 [inline] xmit_one net/core/dev.c:3005 [inline] dev_hard_start_xmit+0x188/0x890 net/core/dev.c:3021 __dev_queue_xmit+0x1d7f/0x2480 net/core/dev.c:3521 packet_snd+0x13aa/0x26f0 net/packet/af_packet.c:3032 packet_sendmsg+0x12ed/0x33a0 net/packet/af_packet.c:3061 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xb5/0x100 net/socket.c:656 ___sys_sendmsg+0x6c8/0x800 net/socket.c:2062 __sys_sendmsg+0xa3/0x120 net/socket.c:2096 SYSC_sendmsg net/socket.c:2107 [inline] SyS_sendmsg+0x27/0x40 net/socket.c:2103 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 Allocated by task 7977: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:551 __do_kmalloc_node mm/slab.c:3682 [inline] __kmalloc_node_track_caller+0x4c/0x70 mm/slab.c:3696 __kmalloc_reserve net/core/skbuff.c:137 [inline] __alloc_skb+0x96/0x510 net/core/skbuff.c:205 alloc_skb include/linux/skbuff.h:980 [inline] alloc_skb_with_frags+0x85/0x500 net/core/skbuff.c:5259 sock_alloc_send_pskb+0x577/0x6d0 net/core/sock.c:2101 packet_alloc_skb net/packet/af_packet.c:2882 [inline] packet_snd+0x4f7/0x26f0 net/packet/af_packet.c:2977 packet_sendmsg+0x12ed/0x33a0 net/packet/af_packet.c:3061 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xb5/0x100 net/socket.c:656 ___sys_sendmsg+0x6c8/0x800 net/socket.c:2062 __sys_sendmsg+0xa3/0x120 net/socket.c:2096 SYSC_sendmsg net/socket.c:2107 [inline] SyS_sendmsg+0x27/0x40 net/socket.c:2103 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 Freed by task 7977: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0xc3/0x1a0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xc9/0x250 mm/slab.c:3815 skb_free_head net/core/skbuff.c:563 [inline] pskb_expand_head+0x895/0xd30 net/core/skbuff.c:1505 __pskb_pull_tail+0xd9/0x14a0 net/core/skbuff.c:1908 pskb_may_pull include/linux/skbuff.h:2181 [inline] ip_tunnel_xmit+0x1405/0x33e0 net/ipv4/ip_tunnel.c:651 ipgre_xmit+0x412/0x780 net/ipv4/ip_gre.c:670 __netdev_start_xmit include/linux/netdevice.h:4054 [inline] netdev_start_xmit include/linux/netdevice.h:4063 [inline] xmit_one net/core/dev.c:3005 [inline] dev_hard_start_xmit+0x188/0x890 net/core/dev.c:3021 __dev_queue_xmit+0x1d7f/0x2480 net/core/dev.c:3521 packet_snd+0x13aa/0x26f0 net/packet/af_packet.c:3032 packet_sendmsg+0x12ed/0x33a0 net/packet/af_packet.c:3061 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xb5/0x100 net/socket.c:656 ___sys_sendmsg+0x6c8/0x800 net/socket.c:2062 __sys_sendmsg+0xa3/0x120 net/socket.c:2096 SYSC_sendmsg net/socket.c:2107 [inline] SyS_sendmsg+0x27/0x40 net/socket.c:2103 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 The buggy address belongs to the object at ffff8880abbbd800 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 176 bytes inside of 512-byte region [ffff8880abbbd800, ffff8880abbbda00) The buggy address belongs to the page: page:ffffea0002aeef40 count:1 mapcount:0 mapping:ffff8880abbbd080 index:0x0 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffff8880abbbd080 0000000000000000 0000000100000006 raw: ffffea0002b1d320 ffffea0002ab6260 ffff88813fe74940 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880abbbd780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880abbbd800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880abbbd880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880abbbd900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880abbbd980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================