IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready audit: type=1400 audit(1583911950.177:41): avc: denied { associate } for pid=8222 comm="syz-executor.0" name="syz0" scontext=unconfined_u:object_r:unlabeled_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=filesystem permissive=1 ================================================================== BUG: KASAN: use-after-free in tcindex_set_parms+0x17d0/0x19d0 net/sched/cls_tcindex.c:455 Write of size 16 at addr ffff88809f728930 by task syz-executor.0/8262 CPU: 1 PID: 8262 Comm: syz-executor.0 Not tainted 4.19.108-syzkaller #0 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+0x188/0x20d lib/dump_stack.c:118 print_address_description.cold+0x7c/0x212 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report mm/kasan/report.c:412 [inline] kasan_report.cold+0x88/0x2b9 mm/kasan/report.c:396 tcindex_set_parms+0x17d0/0x19d0 net/sched/cls_tcindex.c:455 tcindex_change+0x200/0x2d3 net/sched/cls_tcindex.c:517 tc_new_tfilter+0xa6b/0x1450 net/sched/cls_api.c:1320 rtnetlink_rcv_msg+0x453/0xaf0 net/core/rtnetlink.c:4777 netlink_rcv_skb+0x160/0x410 net/netlink/af_netlink.c:2455 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x4d7/0x6a0 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x80b/0xcd0 net/netlink/af_netlink.c:1909 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:632 ___sys_sendmsg+0x803/0x920 net/socket.c:2115 __sys_sendmsg+0xec/0x1b0 net/socket.c:2153 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45c4a9 Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fafc3a11c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fafc3a126d4 RCX: 000000000045c4a9 RDX: 0000000000000000 RSI: 00000000200001c0 RDI: 0000000000000003 RBP: 000000000076bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000009fa R14: 00000000004cc777 R15: 000000000076bf2c Allocated by task 1: set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc mm/kasan/kasan.c:553 [inline] kasan_kmalloc+0xbf/0xe0 mm/kasan/kasan.c:531 kmem_cache_alloc_trace+0x14d/0x7a0 mm/slab.c:3625 kmalloc include/linux/slab.h:515 [inline] kzalloc include/linux/slab.h:709 [inline] call_usermodehelper_setup+0x77/0x2f0 kernel/umh.c:381 kobject_uevent_env+0xc92/0x1160 lib/kobject_uevent.c:611 driver_bound+0x19a/0x1f0 drivers/base/dd.c:348 really_probe+0x4f2/0x650 drivers/base/dd.c:536 driver_probe_device+0xfb/0x1a0 drivers/base/dd.c:664 __device_attach_driver+0x21d/0x290 drivers/base/dd.c:751 bus_for_each_drv+0x15c/0x1e0 drivers/base/bus.c:464 __device_attach+0x21e/0x320 drivers/base/dd.c:817 bus_probe_device+0x1ea/0x2a0 drivers/base/bus.c:524 device_add+0xae6/0x1660 drivers/base/core.c:2019 usb_set_configuration+0xf0f/0x1770 drivers/usb/core/message.c:2016 generic_probe+0xaf/0x110 drivers/usb/core/generic.c:174 usb_probe_device+0x9f/0x100 drivers/usb/core/driver.c:266 really_probe+0x47c/0x650 drivers/base/dd.c:503 driver_probe_device+0xfb/0x1a0 drivers/base/dd.c:664 __device_attach_driver+0x21d/0x290 drivers/base/dd.c:751 bus_for_each_drv+0x15c/0x1e0 drivers/base/bus.c:464 __device_attach+0x21e/0x320 drivers/base/dd.c:817 bus_probe_device+0x1ea/0x2a0 drivers/base/bus.c:524 device_add+0xae6/0x1660 drivers/base/core.c:2019 usb_new_device+0x98a/0x1750 drivers/usb/core/hub.c:2509 register_root_hub drivers/usb/core/hcd.c:1105 [inline] usb_add_hcd+0xb23/0x17b0 drivers/usb/core/hcd.c:2882 vhci_hcd_probe+0x166/0x230 drivers/usb/usbip/vhci_hcd.c:1369 platform_drv_probe+0x8d/0x160 drivers/base/platform.c:584 really_probe+0x47c/0x650 drivers/base/dd.c:503 driver_probe_device+0xfb/0x1a0 drivers/base/dd.c:664 __device_attach_driver+0x21d/0x290 drivers/base/dd.c:751 bus_for_each_drv+0x15c/0x1e0 drivers/base/bus.c:464 __device_attach+0x21e/0x320 drivers/base/dd.c:817 bus_probe_device+0x1ea/0x2a0 drivers/base/bus.c:524 device_add+0xae6/0x1660 drivers/base/core.c:2019 platform_device_add+0x355/0x6e0 drivers/base/platform.c:420 vhci_hcd_init+0x344/0x488 drivers/usb/usbip/vhci_hcd.c:1539 do_one_initcall+0xf1/0x734 init/main.c:883 do_initcall_level init/main.c:951 [inline] do_initcalls init/main.c:959 [inline] do_basic_setup init/main.c:977 [inline] kernel_init_freeable+0x4c9/0x5bb init/main.c:1144 kernel_init+0xd/0x1c0 init/main.c:1061 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Freed by task 2745: set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0xf7/0x140 mm/kasan/kasan.c:521 __cache_free mm/slab.c:3503 [inline] kfree+0xce/0x220 mm/slab.c:3822 call_usermodehelper_freeinfo kernel/umh.c:45 [inline] umh_complete kernel/umh.c:59 [inline] umh_complete+0x81/0x90 kernel/umh.c:48 call_usermodehelper_exec_async+0x542/0x630 kernel/umh.c:117 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 The buggy address belongs to the object at ffff88809f728900 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 48 bytes inside of 192-byte region [ffff88809f728900, ffff88809f7289c0) The buggy address belongs to the page: page:ffffea00027dca00 count:1 mapcount:0 mapping:ffff88812c3dc040 index:0x0 flags: 0xfffe0000000100(slab) raw: 00fffe0000000100 ffffea00027ddf08 ffffea00027dcc08 ffff88812c3dc040 raw: 0000000000000000 ffff88809f728000 0000000100000010 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88809f728800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88809f728880: 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88809f728900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88809f728980: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88809f728a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================