================================================================== BUG: KASAN: use-after-free in __lock_acquire+0x2cb4/0x3ff0 kernel/locking/lockdep.c:3295 Read of size 8 at addr ffff888095794ea0 by task kworker/1:8/21949 CPU: 1 PID: 21949 Comm: kworker/1:8 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Workqueue: events l2cap_chan_timeout Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1b9 mm/kasan/report.c:354 kasan_report mm/kasan/report.c:412 [inline] __asan_report_load8_noabort+0x88/0x90 mm/kasan/report.c:433 __lock_acquire+0x2cb4/0x3ff0 kernel/locking/lockdep.c:3295 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline] _raw_spin_lock_bh+0x2f/0x40 kernel/locking/spinlock.c:168 spin_lock_bh include/linux/spinlock.h:334 [inline] lock_sock_nested+0x3b/0x110 net/core/sock.c:2884 l2cap_sock_teardown_cb+0xa0/0x6d0 net/bluetooth/l2cap_sock.c:1348 l2cap_chan_del+0xbc/0xa50 net/bluetooth/l2cap_core.c:603 l2cap_chan_close+0x1b5/0x950 net/bluetooth/l2cap_core.c:761 l2cap_chan_timeout+0x17e/0x2f0 net/bluetooth/l2cap_core.c:430 process_one_work+0x864/0x1570 kernel/workqueue.c:2153 worker_thread+0x64c/0x1130 kernel/workqueue.c:2296 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Allocated by task 7784: __do_kmalloc_node mm/slab.c:3689 [inline] __kmalloc_node_track_caller+0x4c/0x70 mm/slab.c:3703 __kmalloc_reserve net/core/skbuff.c:137 [inline] __alloc_skb+0xae/0x560 net/core/skbuff.c:205 alloc_skb include/linux/skbuff.h:995 [inline] mrp_pdu_init net/802/mrp.c:316 [inline] mrp_pdu_append_vecattr_event+0x7d2/0x1050 net/802/mrp.c:415 mrp_attr_event+0x15d/0x220 net/802/mrp.c:510 mrp_mad_event net/802/mrp.c:590 [inline] mrp_join_timer+0x5a/0xc0 net/802/mrp.c:607 call_timer_fn+0x177/0x700 kernel/time/timer.c:1338 expire_timers+0x243/0x4e0 kernel/time/timer.c:1375 __run_timers kernel/time/timer.c:1696 [inline] run_timer_softirq+0x21c/0x670 kernel/time/timer.c:1709 __do_softirq+0x265/0x980 kernel/softirq.c:292 Freed by task 7784: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x210 mm/slab.c:3822 skb_free_head net/core/skbuff.c:563 [inline] skb_release_data+0x6de/0x920 net/core/skbuff.c:583 skb_release_all net/core/skbuff.c:640 [inline] __kfree_skb net/core/skbuff.c:654 [inline] kfree_skb+0x11a/0x3d0 net/core/skbuff.c:672 kfree_skb_list+0x3f/0x60 net/core/skbuff.c:681 __dev_xmit_skb net/core/dev.c:3506 [inline] __dev_queue_xmit+0x2973/0x2e00 net/core/dev.c:3807 mrp_queue_xmit net/802/mrp.c:367 [inline] mrp_join_timer+0x8a/0xc0 net/802/mrp.c:611 call_timer_fn+0x177/0x700 kernel/time/timer.c:1338 expire_timers+0x243/0x4e0 kernel/time/timer.c:1375 __run_timers kernel/time/timer.c:1696 [inline] run_timer_softirq+0x21c/0x670 kernel/time/timer.c:1709 __do_softirq+0x265/0x980 kernel/softirq.c:292 The buggy address belongs to the object at ffff888095794e00 which belongs to the cache kmalloc-2048 of size 2048 The buggy address is located 160 bytes inside of 2048-byte region [ffff888095794e00, ffff888095795600) The buggy address belongs to the page: page:ffffea000255e500 count:1 mapcount:0 mapping:ffff88813bff0c40 index:0xffff888095794e00 compound_mapcount: 0 flags: 0xfff00000008100(slab|head) raw: 00fff00000008100 ffffea000102cf08 ffffea00025b9a08 ffff88813bff0c40 raw: ffff888095794e00 ffff888095794580 0000000100000002 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888095794d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888095794e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888095794e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888095794f00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888095794f80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================