IPv6: ADDRCONF(NETDEV_CHANGE): sit4: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): sit13: link becomes ready SELinux: unrecognized netlink message: protocol=0 nlmsg_type=102 sclass=netlink_route_socket pig=10037 comm=syz-executor.4 ================================================================== BUG: KASAN: slab-out-of-bounds in __ptr_ring_produce include/linux/ptr_ring.h:107 [inline] BUG: KASAN: slab-out-of-bounds in ptr_ring_produce include/linux/ptr_ring.h:130 [inline] BUG: KASAN: slab-out-of-bounds in skb_array_produce include/linux/skb_array.h:48 [inline] BUG: KASAN: slab-out-of-bounds in tun_net_xmit+0x10b8/0x1180 drivers/net/tun.c:920 Read of size 8 at addr ffff8801d4e7df50 by task syz-executor.3/10039 CPU: 1 PID: 10039 Comm: syz-executor.3 Not tainted 4.9.141+ #1 ffff8801db707488 ffffffff81b42e79 ffffea0007539f40 ffff8801d4e7df50 0000000000000000 ffff8801d4e7df50 ffff8801d176d208 ffff8801db7074c0 ffffffff815009b8[ 1252.508663] SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=10042 comm=syz-executor.1 ffff8801d4e7df50 0000000000000008 0000000000000000 [ 1252.530614] [] __dump_stack lib/dump_stack.c:15 [inline] [ 1252.530614] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] print_address_description+0x6c/0x234 mm/kasan/report.c:256 [] kasan_report_error mm/kasan/report.c:355 [inline] [] kasan_report.cold.6+0x242/0x2fe mm/kasan/report.c:412 [] __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 [] __ptr_ring_produce include/linux/ptr_ring.h:107 [inline] [] ptr_ring_produce include/linux/ptr_ring.h:130 [inline] [] skb_array_produce include/linux/skb_array.h:48 [inline] [] tun_net_xmit+0x10b8/0x1180 drivers/net/tun.c:920 [] __netdev_start_xmit include/linux/netdevice.h:4069 [inline] [] netdev_start_xmit include/linux/netdevice.h:4078 [inline] [] xmit_one net/core/dev.c:2977 [inline] [] dev_hard_start_xmit+0x197/0x8b0 net/core/dev.c:2993 [] sch_direct_xmit+0x2b3/0x580 net/sched/sch_generic.c:182 [] __dev_xmit_skb net/core/dev.c:3173 [inline] [] __dev_queue_xmit+0x152e/0x1b90 net/core/dev.c:3441 SELinux: unrecognized netlink message: protocol=0 nlmsg_type=0 sclass=netlink_route_socket pig=10045 comm=syz-executor.2 [] dev_queue_xmit+0x17/0x20 net/core/dev.c:3506 [] neigh_direct_output+0x15/0x20 net/core/neighbour.c:1365 [] dst_neigh_output include/net/dst.h:470 [inline] [] ip6_finish_output2+0xb0e/0x1d10 net/ipv6/ip6_output.c:119 [] ip6_finish_output+0x334/0x980 net/ipv6/ip6_output.c:145 [] NF_HOOK_COND include/linux/netfilter.h:246 [inline] [] ip6_output+0x1ea/0x6d0 net/ipv6/ip6_output.c:162 [] dst_output include/net/dst.h:507 [inline] [] NF_HOOK_THRESH include/linux/netfilter.h:232 [inline] [] NF_HOOK include/linux/netfilter.h:255 [inline] [] mld_sendpack+0xa1e/0xf80 net/ipv6/mcast.c:1659 [] mld_send_cr net/ipv6/mcast.c:1955 [inline] [] mld_ifc_timer_expire+0x3ba/0x7b0 net/ipv6/mcast.c:2455 [] call_timer_fn+0x163/0x6e0 kernel/time/timer.c:1319 [] expire_timers+0x234/0x580 kernel/time/timer.c:1359 [] __run_timers kernel/time/timer.c:1674 [inline] [] run_timer_softirq+0x208/0x5e0 kernel/time/timer.c:1687 [] __do_softirq+0x20e/0x964 kernel/softirq.c:288 [] invoke_softirq kernel/softirq.c:368 [inline] [] irq_exit+0x11c/0x150 kernel/softirq.c:409 [] exiting_irq arch/x86/include/asm/apic.h:669 [inline] [] smp_apic_timer_interrupt+0x81/0xb0 arch/x86/kernel/apic/apic.c:962 [] apic_timer_interrupt+0x9d/0xb0 arch/x86/entry/entry_64.S:648 [ 1252.933405] [] ? arch_local_irq_restore arch/x86/include/asm/paravirt.h:768 [inline] [ 1252.933405] [] ? __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:162 [inline] [ 1252.933405] [] ? _raw_spin_unlock_irqrestore+0x5f/0x70 kernel/locking/spinlock.c:191 [] spin_unlock_irqrestore include/linux/spinlock.h:362 [inline] [] pagevec_lru_move_fn+0x12f/0x200 mm/swap.c:201 [] __pagevec_lru_add mm/swap.c:878 [inline] [] __lru_cache_add+0x168/0x250 mm/swap.c:397 [] lru_cache_add_anon+0xa4/0xf0 mm/swap.c:409 [] shmem_getpage_gfp+0x895/0x18f0 mm/shmem.c:1774 [] shmem_fault+0x222/0x6d0 mm/shmem.c:1959 [] __do_fault+0x223/0x500 mm/memory.c:2833 [] do_read_fault mm/memory.c:3180 [inline] [] do_fault mm/memory.c:3315 [inline] [] handle_pte_fault mm/memory.c:3516 [inline] [] __handle_mm_fault mm/memory.c:3603 [inline] [] handle_mm_fault+0x1326/0x2350 mm/memory.c:3640 [] faultin_page mm/gup.c:386 [inline] [] __get_user_pages+0x446/0xf80 mm/gup.c:588 [] populate_vma_page_range+0x19a/0x230 mm/gup.c:1106 [] __mm_populate+0x1d7/0x320 mm/gup.c:1154 [] mm_populate include/linux/mm.h:2041 [inline] [] vm_mmap_pgoff+0x195/0x1b0 mm/util.c:333 [] SYSC_mmap_pgoff mm/mmap.c:1555 [inline] [] SyS_mmap_pgoff+0x152/0x1b0 mm/mmap.c:1513 [] SYSC_mmap arch/x86/kernel/sys_x86_64.c:96 [inline] [] SyS_mmap+0x16/0x20 arch/x86/kernel/sys_x86_64.c:87 [] do_syscall_64+0x19f/0x550 arch/x86/entry/common.c:285 [] entry_SYSCALL_64_after_swapgs+0x5d/0xdb Allocated by task 10033: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack mm/kasan/kasan.c:505 [inline] set_track mm/kasan/kasan.c:517 [inline] kasan_kmalloc.part.1+0x62/0xf0 mm/kasan/kasan.c:609 kasan_kmalloc+0xaf/0xc0 mm/kasan/kasan.c:594 __kmalloc+0x12f/0x310 mm/slub.c:3741 kmalloc_array include/linux/slab.h:582 [inline] kcalloc include/linux/slab.h:593 [inline] __ptr_ring_init_queue_alloc include/linux/ptr_ring.h:356 [inline] ptr_ring_resize_multiple include/linux/ptr_ring.h:445 [inline] skb_array_resize_multiple include/linux/skb_array.h:169 [inline] tun_queue_resize drivers/net/tun.c:2523 [inline] tun_device_event+0x3e0/0xa00 drivers/net/tun.c:2541 notifier_call_chain+0xb4/0x1d0 kernel/notifier.c:93 __raw_notifier_call_chain kernel/notifier.c:394 [inline] raw_notifier_call_chain+0x2d/0x40 kernel/notifier.c:401 call_netdevice_notifiers_info+0x55/0x70 net/core/dev.c:1647 call_netdevice_notifiers+0x70/0xa0 net/core/dev.c:1663 do_setlink+0xc55/0x2ef0 net/core/rtnetlink.c:2052 rtnl_group_changelink net/core/rtnetlink.c:2423 [inline] rtnl_newlink+0xbd0/0x1550 net/core/rtnetlink.c:2571 rtnetlink_rcv_msg+0x49c/0x650 net/core/rtnetlink.c:4078 netlink_rcv_skb+0x145/0x370 net/netlink/af_netlink.c:2365 rtnetlink_rcv+0x2a/0x40 net/core/rtnetlink.c:4084 netlink_unicast_kernel net/netlink/af_netlink.c:1285 [inline] netlink_unicast+0x4d8/0x6d0 net/netlink/af_netlink.c:1311 netlink_sendmsg+0x694/0xc30 net/netlink/af_netlink.c:1859 sock_sendmsg_nosec net/socket.c:648 [inline] sock_sendmsg+0xbb/0x110 net/socket.c:658 ___sys_sendmsg+0x6fc/0x840 net/socket.c:1982 __sys_sendmsg+0xd9/0x190 net/socket.c:2016 SYSC_sendmsg net/socket.c:2027 [inline] SyS_sendmsg+0x2d/0x50 net/socket.c:2023 do_syscall_64+0x19f/0x550 arch/x86/entry/common.c:285 entry_SYSCALL_64_after_swapgs+0x5d/0xdb Freed by task 7534: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack mm/kasan/kasan.c:505 [inline] set_track mm/kasan/kasan.c:517 [inline] kasan_slab_free+0xac/0x190 mm/kasan/kasan.c:582 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+0xfb/0x310 mm/slub.c:3878 kfree_const+0x39/0x50 mm/util.c:35 kobject_cleanup lib/kobject.c:649 [inline] kobject_release lib/kobject.c:672 [inline] kref_sub include/linux/kref.h:73 [inline] kref_put include/linux/kref.h:98 [inline] kobject_put+0x163/0x250 lib/kobject.c:689 netdev_queue_update_kobjects+0x18f/0x290 net/core/net-sysfs.c:1346 remove_queue_kobjects net/core/net-sysfs.c:1396 [inline] netdev_unregister_kobject+0xaa/0x110 net/core/net-sysfs.c:1530 rollback_registered_many+0x691/0xb50 net/core/dev.c:6883 unregister_netdevice_many+0x48/0x220 net/core/dev.c:7907 ip_tunnel_delete_net+0x2af/0x390 net/ipv4/ip_tunnel.c:1069 vti_exit_net+0x129/0x1f0 net/ipv4/ip_vti.c:458 ops_exit_list.isra.0+0xb0/0x160 net/core/net_namespace.c:136 cleanup_net+0x3f2/0x8b0 net/core/net_namespace.c:473 process_one_work+0x831/0x15f0 kernel/workqueue.c:2092 worker_thread+0xd6/0x1140 kernel/workqueue.c:2226 kthread+0x26d/0x300 kernel/kthread.c:211 ret_from_fork+0x5c/0x70 arch/x86/entry/entry_64.S:373 The buggy address belongs to the object at ffff8801d4e7df48 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 0 bytes to the right of 8-byte region [ffff8801d4e7df48, ffff8801d4e7df50) The buggy address belongs to the page: page:ffffea0007539f40 count:1 mapcount:0 mapping: (null) index:0x0 flags: 0x4000000000000080(slab) page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801d4e7de00: fc fc fb fc fc 00 fc fc fb fc fc fb fc fc fb fc ffff8801d4e7de80: fc 00 fc fc fb fc fc fb fc fc fb fc fc fb fc fc >ffff8801d4e7df00: fb fc fc fb fc fc fb fc fc 00 fc fc fb fc fc fb ^ ffff8801d4e7df80: fc fc fb fc fc fb fc fc fb fc fc 00 fc fc fc fc ffff8801d4e7e000: 00 00 00 fc fc 00 00 00 fc fc 00 00 00 fc fc 00 ==================================================================