: renamed from eql ================================================================== 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+0x1af2/0x1c90 drivers/net/tun.c:1115 Read of size 8 at addr ffff8881c70d8688 by task syz-executor3/31413 CPU: 0 PID: 31413 Comm: syz-executor3 Not tainted 4.20.0-rc5+ #365 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+0x244/0x39d lib/dump_stack.c:113 print_address_description.cold.7+0x9/0x1ff mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.8+0x242/0x309 mm/kasan/report.c:412 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 __ptr_ring_produce include/linux/ptr_ring.h:110 [inline] ptr_ring_produce include/linux/ptr_ring.h:133 [inline] tun_net_xmit+0x1af2/0x1c90 drivers/net/tun.c:1115 __netdev_start_xmit include/linux/netdevice.h:4356 [inline] netdev_start_xmit include/linux/netdevice.h:4365 [inline] xmit_one net/core/dev.c:3252 [inline] dev_hard_start_xmit+0x295/0xc80 net/core/dev.c:3268 sch_direct_xmit+0x48b/0x1130 net/sched/sch_generic.c:327 qdisc_restart net/sched/sch_generic.c:390 [inline] __qdisc_run+0x636/0x1990 net/sched/sch_generic.c:398 qdisc_run include/net/pkt_sched.h:121 [inline] __dev_xmit_skb net/core/dev.c:3447 [inline] __dev_queue_xmit+0x1915/0x3ad0 net/core/dev.c:3806 dev_queue_xmit+0x17/0x20 net/core/dev.c:3871 neigh_hh_output include/net/neighbour.h:474 [inline] neigh_output include/net/neighbour.h:482 [inline] ip6_finish_output2+0x1342/0x27a0 net/ipv6/ip6_output.c:120 ip6_finish_output+0x58c/0xc60 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] NF_HOOK include/linux/netfilter.h:289 [inline] mld_sendpack+0xae7/0xfb0 net/ipv6/mcast.c:1683 mld_send_cr net/ipv6/mcast.c:1979 [inline] mld_ifc_timer_expire+0x447/0x8a0 net/ipv6/mcast.c:2478 call_timer_fn+0x272/0x920 kernel/time/timer.c:1326 expire_timers kernel/time/timer.c:1363 [inline] __run_timers+0x7e5/0xc70 kernel/time/timer.c:1682 run_timer_softirq+0x52/0xb0 kernel/time/timer.c:1695 __do_softirq+0x308/0xb7e kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x17f/0x1c0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x1cb/0x760 arch/x86/kernel/apic/apic.c:1061 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:804 RIP: 0033:0x40c80a Code: 48 89 f0 0f 1f 44 00 00 48 8d 6f fc 44 39 c1 49 89 ee 77 28 48 83 e8 04 39 ca 76 0e 0f 1f 40 00 48 83 e8 04 8b 10 39 ca 77 f6 <48> 39 e8 76 16 89 57 fc 44 89 00 8b 50 fc 41 8b 0c 24 44 8b 07 48 RSP: 002b:00007fffdad2fd80 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 00007f161d7ebb78 RBX: 00007f161d7ebaa8 RCX: 0000000081aa2960 RDX: 0000000081aa2960 RSI: 00007f161d7ebbac RDI: 00007f161d7ebac0 RBP: 00007f161d7ebabc R08: 0000000081aa3ec0 R09: 0000000000000000 R10: 00007fffdad30080 R11: 0000000000000246 R12: 00007f161d7ebaa0 R13: 0000000000000016 R14: 00007f161d7ebabc R15: 000000000003ffff Allocated by task 31382: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:553 __do_kmalloc_node mm/slab.c:3684 [inline] __kmalloc_node+0x50/0x70 mm/slab.c:3691 kmalloc_node include/linux/slab.h:589 [inline] kvmalloc_node+0x65/0xf0 mm/util.c:416 kvmalloc include/linux/mm.h:577 [inline] kvmalloc_array include/linux/mm.h:595 [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:3554 [inline] tun_device_event+0x56a/0x106c drivers/net/tun.c:3573 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:1733 call_netdevice_notifiers net/core/dev.c:1751 [inline] dev_change_tx_queue_len+0x188/0x270 net/core/dev.c:7675 dev_ifsioc+0x799/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 9: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3498 [inline] kfree+0xcf/0x230 mm/slab.c:3817 kzfree+0x28/0x30 mm/slab_common.c:1564 aa_free_task_ctx security/apparmor/include/task.h:61 [inline] apparmor_task_free+0x13a/0x1e0 security/apparmor/lsm.c:95 security_task_free+0x4a/0x80 security/security.c:1007 __put_task_struct+0x195/0x620 kernel/fork.c:724 put_task_struct include/linux/sched/task.h:96 [inline] delayed_put_task_struct+0x2ff/0x4c0 kernel/exit.c:181 __rcu_reclaim kernel/rcu/rcu.h:240 [inline] rcu_do_batch kernel/rcu/tree.c:2437 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2716 [inline] rcu_process_callbacks+0x100a/0x1ac0 kernel/rcu/tree.c:2697 __do_softirq+0x308/0xb7e kernel/softirq.c:292 The buggy address belongs to the object at ffff8881c70d8680 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 8 bytes inside of 32-byte region [ffff8881c70d8680, ffff8881c70d86a0) The buggy address belongs to the page: page:ffffea00071c3600 count:1 mapcount:0 mapping:ffff8881da8001c0 index:0xffff8881c70d8fc1 flags: 0x2fffc0000000200(slab) raw: 02fffc0000000200 ffffea00074a0dc8 ffffea0006e37588 ffff8881da8001c0 raw: ffff8881c70d8fc1 ffff8881c70d8000 000000010000003d 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881c70d8580: 00 fc fc fc fc fc fc fc 00 fc fc fc fc fc fc fc ffff8881c70d8600: 00 fc fc fc fc fc fc fc 00 02 fc fc fc fc fc fc >ffff8881c70d8680: 00 fc fc fc fc fc fc fc 00 02 fc fc fc fc fc fc ^ ffff8881c70d8700: 00 02 fc fc fc fc fc fc 00 02 fc fc fc fc fc fc ffff8881c70d8780: 00 00 07 fc fc fc fc fc 00 01 fc fc fc fc fc fc ==================================================================