IPv6: ADDRCONF(NETDEV_CHANGE): batadv_slave_1: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready ================================================================== BUG: KASAN: use-after-free in l2cap_chan_close+0x59e/0xa40 net/bluetooth/l2cap_core.c:734 Read of size 1 at addr ffff8880a77b9020 by task kworker/1:24/2941 CPU: 1 PID: 2941 Comm: kworker/1:24 Not tainted 5.6.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events do_enable_set Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x12d/0x187 lib/dump_stack.c:118 print_address_description.constprop.8.cold.10+0x9/0x31d mm/kasan/report.c:374 __kasan_report.cold.11+0x1b/0x32 mm/kasan/report.c:506 kasan_report+0x12/0x20 mm/kasan/common.c:641 __asan_report_load1_noabort+0x14/0x20 mm/kasan/generic_report.c:132 l2cap_chan_close+0x59e/0xa40 net/bluetooth/l2cap_core.c:734 do_enable_set+0x47e/0x8b0 net/bluetooth/6lowpan.c:1074 process_one_work+0x88b/0x1680 kernel/workqueue.c:2266 worker_thread+0x85/0xb60 kernel/workqueue.c:2412 kthread+0x331/0x3f0 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Allocated by task 2941: save_stack+0x21/0x90 mm/kasan/common.c:72 set_track mm/kasan/common.c:80 [inline] __kasan_kmalloc.constprop.17+0xc7/0xd0 mm/kasan/common.c:515 kasan_kmalloc+0x9/0x10 mm/kasan/common.c:529 kmem_cache_alloc_trace+0x15b/0x780 mm/slab.c:3551 kmalloc include/linux/slab.h:555 [inline] kzalloc include/linux/slab.h:669 [inline] l2cap_chan_create+0x41/0x350 net/bluetooth/l2cap_core.c:446 chan_create+0xa/0xc0 net/bluetooth/6lowpan.c:640 bt_6lowpan_listen net/bluetooth/6lowpan.c:959 [inline] do_enable_set+0x4af/0x8b0 net/bluetooth/6lowpan.c:1078 process_one_work+0x88b/0x1680 kernel/workqueue.c:2266 worker_thread+0x85/0xb60 kernel/workqueue.c:2412 kthread+0x331/0x3f0 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Freed by task 2812: save_stack+0x21/0x90 mm/kasan/common.c:72 set_track mm/kasan/common.c:80 [inline] kasan_set_free_info mm/kasan/common.c:337 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:476 kasan_slab_free+0xe/0x10 mm/kasan/common.c:485 __cache_free mm/slab.c:3426 [inline] kfree+0x108/0x2c0 mm/slab.c:3757 l2cap_chan_destroy net/bluetooth/l2cap_core.c:484 [inline] kref_put include/linux/kref.h:65 [inline] l2cap_chan_put+0x15d/0x1d0 net/bluetooth/l2cap_core.c:498 do_enable_set+0x48a/0x8b0 net/bluetooth/6lowpan.c:1075 process_one_work+0x88b/0x1680 kernel/workqueue.c:2266 worker_thread+0x85/0xb60 kernel/workqueue.c:2412 kthread+0x331/0x3f0 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 The buggy address belongs to the object at ffff8880a77b9000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 32 bytes inside of 2048-byte region [ffff8880a77b9000, ffff8880a77b9800) The buggy address belongs to the page: page:ffffea00029dee40 refcount:1 mapcount:0 mapping:ffff8880aa400e00 index:0x0 flags: 0xfffe0000000200(slab) raw: 00fffe0000000200 ffffea0002768748 ffffea0002997948 ffff8880aa400e00 raw: 0000000000000000 ffff8880a77b9000 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880a77b8f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880a77b8f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880a77b9000: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880a77b9080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880a77b9100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================