IPv6: ADDRCONF(NETDEV_CHANGE): veth0_macvtap: link becomes ready device veth0_macvtap entered promiscuous mode IPv6: ADDRCONF(NETDEV_UP): macvtap0: link is not ready device veth1_macvtap entered promiscuous mode ================================================================== BUG: KASAN: slab-out-of-bounds in sg_mark_end include/linux/scatterlist.h:190 [inline] BUG: KASAN: slab-out-of-bounds in tls_push_record+0x10cc/0x1270 net/tls/tls_sw.c:255 IPv6: ADDRCONF(NETDEV_UP): macsec0: link is not ready Read of size 8 at addr ffff8880a2603638 by task syz-executor.5/9361 CPU: 0 PID: 9361 Comm: syz-executor.5 Not tainted 4.14.236-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 IPv6: ADDRCONF(NETDEV_UP): macvlan1: link is not ready Call Trace: IPv6: ADDRCONF(NETDEV_UP): veth0_macvtap: link is not ready __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 IPv6: ADDRCONF(NETDEV_UP): veth1_macvtap: link is not ready kasan_report_error.cold+0x8a/0x191 mm/kasan/report.c:351 kasan_report mm/kasan/report.c:409 [inline] __asan_report_load8_noabort+0x68/0x70 mm/kasan/report.c:430 sg_mark_end include/linux/scatterlist.h:190 [inline] tls_push_record+0x10cc/0x1270 net/tls/tls_sw.c:255 tls_handle_open_record net/tls/tls_main.c:158 [inline] tls_sk_proto_close+0x6f0/0x8b0 net/tls/tls_main.c:270 device veth0_macvtap entered promiscuous mode IPv6: ADDRCONF(NETDEV_UP): macvtap0: link is not ready inet_release+0xdf/0x1b0 net/ipv4/af_inet.c:425 device veth1_macvtap entered promiscuous mode inet6_release+0x4c/0x70 net/ipv6/af_inet6.c:450 IPv6: ADDRCONF(NETDEV_UP): macsec0: link is not ready __sock_release+0xcd/0x2b0 net/socket.c:602 IPv6: ADDRCONF(NETDEV_UP): veth0_to_batadv: link is not ready IPv6: ADDRCONF(NETDEV_UP): veth1_to_batadv: link is not ready sock_close+0x15/0x20 net/socket.c:1139 __fput+0x25f/0x7a0 fs/file_table.c:210 task_work_run+0x11f/0x190 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:191 [inline] exit_to_usermode_loop+0x1ad/0x200 arch/x86/entry/common.c:164 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline] syscall_return_slowpath arch/x86/entry/common.c:270 [inline] do_syscall_64+0x4a3/0x640 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x4193eb RSP: 002b:00007ffca5fc3ab0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00000000004193eb batman_adv: The newly added mac address (aa:aa:aa:aa:aa:3d) already exists on: batadv_slave_0 RDX: 0000000000570c48 RSI: 0000001b2fa26684 RDI: 0000000000000003 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000786 R10: 00000000f1d0678a R11: 0000000000000293 R12: 0000000000026ea1 R13: 00000000000003e8 R14: 000000000056bf80 R15: 0000000000026e73 Allocated by task 7711: 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:5255 sock_alloc_send_pskb+0x577/0x6d0 net/core/sock.c:2083 mld_newpack+0x1bd/0x710 net/ipv6/mcast.c:1583 add_grhead+0x265/0x330 net/ipv6/mcast.c:1688 add_grec+0xc40/0xed0 net/ipv6/mcast.c:1819 mld_send_initial_cr.part.0+0xb0/0x140 net/ipv6/mcast.c:2069 mld_send_initial_cr net/ipv6/mcast.c:1170 [inline] mld_dad_timer_expire+0x140/0x520 net/ipv6/mcast.c:2093 call_timer_fn+0x14a/0x650 kernel/time/timer.c:1280 expire_timers+0x232/0x4d0 kernel/time/timer.c:1319 __run_timers kernel/time/timer.c:1637 [inline] run_timer_softirq+0x1d5/0x5a0 kernel/time/timer.c:1650 __do_softirq+0x24d/0x9ff kernel/softirq.c:288 Freed by task 7711: 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] skb_release_data+0x5f6/0x820 net/core/skbuff.c:583 skb_release_all net/core/skbuff.c:640 [inline] __kfree_skb net/core/skbuff.c:654 [inline] kfree_skb+0xe7/0x390 net/core/skbuff.c:672 ip6_mc_input+0x749/0x9e0 net/ipv6/ip6_input.c:407 dst_input include/net/dst.h:476 [inline] ip6_rcv_finish+0x23b/0x7a0 net/ipv6/ip6_input.c:71 NF_HOOK include/linux/netfilter.h:250 [inline] ipv6_rcv+0xac7/0x1b60 net/ipv6/ip6_input.c:208 __netif_receive_skb_core+0x15ee/0x2a30 net/core/dev.c:4474 __netif_receive_skb+0x27/0x1a0 net/core/dev.c:4512 process_backlog+0x218/0x6f0 net/core/dev.c:5194 napi_poll net/core/dev.c:5596 [inline] net_rx_action+0x466/0xfd0 net/core/dev.c:5662 __do_softirq+0x24d/0x9ff kernel/softirq.c:288 The buggy address belongs to the object at ffff8880a2602dc0 which belongs to the cache kmalloc-2048 of size 2048 The buggy address is located 120 bytes to the right of 2048-byte region [ffff8880a2602dc0, ffff8880a26035c0) The buggy address belongs to the page: page:ffffea0002898080 count:1 mapcount:0 mapping:ffff8880a2602540 index:0x0 compound_mapcount: 0 flags: 0xfff00000008100(slab|head) raw: 00fff00000008100 ffff8880a2602540 0000000000000000 0000000100000003 raw: ffffea000279b1a0 ffffea000279ec20 ffff88813fe80c40 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a2603500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880a2603580: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff8880a2603600: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ^ ffff8880a2603680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880a2603700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================