IPv6: ADDRCONF(NETDEV_CHANGE): macvtap0: link becomes ready batman_adv: batadv0: Interface activated: batadv_slave_1 IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): bond0: link becomes ready ================================================================== BUG: KASAN: use-after-free in tasklet_action+0x2aa/0x360 kernel/softirq.c:506 Read of size 8 at addr ffff8881d19392d0 by task ksoftirqd/0/7 CPU: 0 PID: 7 Comm: ksoftirqd/0 Not tainted 4.14.214-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x14b/0x1f1 lib/dump_stack.c:58 print_address_description.cold.6+0x9/0x1ca mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report.cold.7+0x11a/0x2d4 mm/kasan/report.c:409 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:430 tasklet_action+0x2aa/0x360 kernel/softirq.c:506 __do_softirq+0x246/0x9b5 kernel/softirq.c:288 run_ksoftirqd+0x57/0x1a0 kernel/softirq.c:670 smpboot_thread_fn+0x553/0x850 kernel/smpboot.c:164 kthread+0x338/0x400 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 Allocated by task 14810: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc.part.1+0x62/0xf0 mm/kasan/kasan.c:551 kasan_kmalloc+0xaf/0xc0 mm/kasan/kasan.c:536 kmem_cache_alloc_trace+0x152/0x3f0 mm/slab.c:3618 kmalloc include/linux/slab.h:488 [inline] kzalloc include/linux/slab.h:661 [inline] bcm_tx_setup net/can/bcm.c:952 [inline] bcm_sendmsg+0x1994/0x4520 net/can/bcm.c:1388 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xac/0xf0 net/socket.c:656 ___sys_sendmsg+0x625/0x920 net/socket.c:2062 __sys_sendmsg+0xc1/0x140 net/socket.c:2096 SYSC_sendmsg net/socket.c:2107 [inline] SyS_sendmsg+0xd/0x20 net/socket.c:2103 do_syscall_64+0x1c7/0x5b0 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb Freed by task 14810: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0xab/0x190 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xcc/0x270 mm/slab.c:3815 bcm_remove_op+0x1cd/0x240 net/can/bcm.c:781 bcm_release+0xe7/0x500 net/can/bcm.c:1540 __sock_release+0xc2/0x2a0 net/socket.c:602 sock_close+0x10/0x20 net/socket.c:1139 __fput+0x232/0x740 fs/file_table.c:210 ____fput+0x9/0x10 fs/file_table.c:244 task_work_run+0xe5/0x170 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:191 [inline] exit_to_usermode_loop+0x14a/0x190 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+0x416/0x5b0 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x46/0xbb The buggy address belongs to the object at ffff8881d1939200 which belongs to the cache kmalloc-1024 of size 1024 The buggy address is located 208 bytes inside of 1024-byte region [ffff8881d1939200, ffff8881d1939600) The buggy address belongs to the page: page:ffffea0007464e00 count:1 mapcount:0 mapping:ffff8881d1938000 index:0x0 compound_mapcount: 0 flags: 0x17ffe0000008100(slab|head) raw: 017ffe0000008100 ffff8881d1938000 0000000000000000 0000000100000007 raw: ffffea0007b632a0 ffffea0007ca4620 ffff8881f6000ac0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881d1939180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8881d1939200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8881d1939280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881d1939300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881d1939380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================