sshd (7958) used greatest stack depth: 16456 bytes left IPVS: ftp: loaded support on port[0] = 21 nf_conntrack: default automatic helper assignment has been turned off for security reasons and CT-based firewall rule not found. Use the iptables CT target to attach helpers instead. ================================================================== BUG: KASAN: slab-out-of-bounds in __ptr_ring_produce include/linux/ptr_ring.h:110 [inline] BUG: KASAN: slab-out-of-bounds in ptr_ring_produce include/linux/ptr_ring.h:133 [inline] BUG: KASAN: slab-out-of-bounds in tun_net_xmit+0x197e/0x1be0 drivers/net/tun.c:1119 Read of size 8 at addr ffff8880982f0148 by task syz-executor649/7992 CPU: 1 PID: 7992 Comm: syz-executor649 Not tainted 4.20.0-rc7-next-20181224 #190 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d3/0x2c6 lib/dump_stack.c:113 print_address_description.cold.5+0x9/0x1ff mm/kasan/report.c:187 kasan_report.cold.6+0x1b/0x39 mm/kasan/report.c:317 __asan_report_load8_noabort+0x14/0x20 mm/kasan/generic_report.c:135 __ptr_ring_produce include/linux/ptr_ring.h:110 [inline] ptr_ring_produce include/linux/ptr_ring.h:133 [inline] tun_net_xmit+0x197e/0x1be0 drivers/net/tun.c:1119 __netdev_start_xmit include/linux/netdevice.h:4382 [inline] netdev_start_xmit include/linux/netdevice.h:4391 [inline] xmit_one net/core/dev.c:3278 [inline] dev_hard_start_xmit+0x286/0xc80 net/core/dev.c:3294 sch_direct_xmit+0x48b/0x1130 net/sched/sch_generic.c:327 qdisc_restart net/sched/sch_generic.c:390 [inline] __qdisc_run+0x624/0x19f0 net/sched/sch_generic.c:398 qdisc_run include/net/pkt_sched.h:121 [inline] __dev_xmit_skb net/core/dev.c:3473 [inline] __dev_queue_xmit+0x190c/0x3940 net/core/dev.c:3832 dev_queue_xmit+0x17/0x20 net/core/dev.c:3897 neigh_hh_output include/net/neighbour.h:498 [inline] neigh_output include/net/neighbour.h:506 [inline] ip6_finish_output2+0x144e/0x2930 net/ipv6/ip6_output.c:120 ip6_finish_output+0x583/0xc50 net/ipv6/ip6_output.c:154 NF_HOOK_COND include/linux/netfilter.h:278 [inline] ip6_output+0x232/0x9d0 net/ipv6/ip6_output.c:171 dst_output include/net/dst.h:444 [inline] ip6_local_out+0xc5/0x1b0 net/ipv6/output_core.c:176 ip6_send_skb+0xbc/0x340 net/ipv6/ip6_output.c:1727 udp_v6_send_skb.isra.31+0x831/0x14a0 net/ipv6/udp.c:1169 udpv6_sendmsg+0x2d86/0x36a0 net/ipv6/udp.c:1466 inet_sendmsg+0x1a1/0x690 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg+0xd5/0x120 net/socket.c:631 __sys_sendto+0x3d7/0x670 net/socket.c:1788 __do_sys_sendto net/socket.c:1800 [inline] __se_sys_sendto net/socket.c:1796 [inline] __x64_sys_sendto+0xe1/0x1a0 net/socket.c:1796 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x441ba9 Code: e8 4c 06 03 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 cb 08 fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffd386a69a8 EFLAGS: 00000216 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000441ba9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 000000000000c36b R08: 00000000200001c0 R09: 000000000000001c R10: 0000000000000000 R11: 0000000000000216 R12: 0000000000000000 R13: 0000000000402990 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 7991: save_stack+0x43/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] kasan_kmalloc+0xcb/0xd0 mm/kasan/common.c:482 __do_kmalloc_node mm/slab.c:3671 [inline] __kmalloc_node+0x4d/0x70 mm/slab.c:3678 kmalloc_node include/linux/slab.h:588 [inline] kvmalloc_node+0x65/0xf0 mm/util.c:416 kvmalloc include/linux/mm.h:639 [inline] kvmalloc_array include/linux/mm.h:657 [inline] __ptr_ring_init_queue_alloc include/linux/ptr_ring.h:475 [inline] ptr_ring_resize_multiple include/linux/ptr_ring.h:635 [inline] tun_queue_resize drivers/net/tun.c:3606 [inline] tun_device_event+0x56a/0x106c drivers/net/tun.c:3625 notifier_call_chain+0x17e/0x380 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+0x3f/0x90 net/core/dev.c:1739 call_netdevice_notifiers_extack net/core/dev.c:1751 [inline] call_netdevice_notifiers net/core/dev.c:1765 [inline] dev_change_tx_queue_len+0x188/0x270 net/core/dev.c:7742 dev_ifsioc+0x79b/0xa80 net/core/dev_ioctl.c:287 dev_ioctl+0x1b5/0xcc0 net/core/dev_ioctl.c:488 sock_do_ioctl+0x1f6/0x420 net/socket.c:973 sock_ioctl+0x313/0x690 net/socket.c:1074 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:509 [inline] do_vfs_ioctl+0x1de/0x1790 fs/ioctl.c:696 ksys_ioctl+0xa9/0xd0 fs/ioctl.c:713 __do_sys_ioctl fs/ioctl.c:720 [inline] __se_sys_ioctl fs/ioctl.c:718 [inline] __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:718 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 4293: save_stack+0x43/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:444 kasan_slab_free+0xe/0x10 mm/kasan/common.c:452 __cache_free mm/slab.c:3485 [inline] kfree+0xcf/0x230 mm/slab.c:3804 single_release+0x8f/0xb0 fs/seq_file.c:597 __fput+0x3bc/0xa90 fs/file_table.c:279 ____fput+0x15/0x20 fs/file_table.c:312 task_work_run+0x1e8/0x2a0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x318/0x380 arch/x86/entry/common.c:166 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline] syscall_return_slowpath arch/x86/entry/common.c:268 [inline] do_syscall_64+0x6be/0x820 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8880982f0140 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 8 bytes inside of 32-byte region [ffff8880982f0140, ffff8880982f0160) The buggy address belongs to the page: page:ffffea000260bc00 count:1 mapcount:0 mapping:ffff88812c3f01c0 index:0xffff8880982f0fc1 flags: 0x1fffc0000000200(slab) raw: 01fffc0000000200 ffffea0002477f08 ffffea00029e4448 ffff88812c3f01c0 raw: ffff8880982f0fc1 ffff8880982f0000 000000010000003f 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880982f0000: 00 00 fc fc fc fc fc fc 00 00 fc fc fc fc fc fc ffff8880982f0080: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc >ffff8880982f0100: fb fb fb fb fc fc fc fc 00 fc fc fc fc fc fc fc ^ ffff8880982f0180: fb fb fb fb fc fc fc fc 00 fc fc fc fc fc fc fc ffff8880982f0200: 00 fc fc fc fc fc fc fc 00 fc fc fc fc fc fc fc ==================================================================