================================================================== BUG: KASAN: slab-out-of-bounds in __lock_acquire+0x3e6f/0x54c0 kernel/locking/lockdep.c:4770 Read of size 8 at addr ffff8880288fa0a0 by task kworker/1:3/9463 CPU: 1 PID: 9463 Comm: kworker/1:3 Not tainted 5.11.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events l2cap_chan_timeout Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0xfa/0x151 lib/dump_stack.c:120 print_address_description.constprop.0.cold+0x5b/0x2c6 mm/kasan/report.c:230 __kasan_report mm/kasan/report.c:396 [inline] kasan_report.cold+0x79/0xd5 mm/kasan/report.c:413 __lock_acquire+0x3e6f/0x54c0 kernel/locking/lockdep.c:4770 lock_acquire kernel/locking/lockdep.c:5510 [inline] lock_acquire+0x1ab/0x730 kernel/locking/lockdep.c:5475 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline] _raw_spin_lock_bh+0x2f/0x40 kernel/locking/spinlock.c:175 spin_lock_bh include/linux/spinlock.h:359 [inline] lock_sock_nested+0x40/0x120 net/core/sock.c:3063 l2cap_sock_teardown_cb+0xa1/0x660 net/bluetooth/l2cap_sock.c:1520 l2cap_chan_del+0xbc/0xa80 net/bluetooth/l2cap_core.c:618 l2cap_chan_close+0x1bc/0xaf0 net/bluetooth/l2cap_core.c:823 l2cap_chan_timeout+0x17e/0x2f0 net/bluetooth/l2cap_core.c:436 process_one_work+0x98d/0x1600 kernel/workqueue.c:2275 worker_thread+0x64c/0x1120 kernel/workqueue.c:2421 kthread+0x3b1/0x4a0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Allocated by task 12390: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:401 [inline] ____kasan_kmalloc.constprop.0+0x7f/0xa0 mm/kasan/common.c:429 kasan_slab_alloc include/linux/kasan.h:209 [inline] slab_post_alloc_hook mm/slab.h:512 [inline] slab_alloc mm/slab.c:3315 [inline] kmem_cache_alloc+0x1a8/0x4b0 mm/slab.c:3486 dst_alloc+0x9e/0x650 net/core/dst.c:93 ip6_dst_alloc+0x2e/0x100 net/ipv6/route.c:358 ip6_rt_cache_alloc+0x1f2/0x820 net/ipv6/route.c:1348 ip6_pol_route+0xc81/0x11c0 net/ipv6/route.c:2248 pol_lookup_func include/net/ip6_fib.h:579 [inline] fib6_rule_lookup+0x111/0x6f0 net/ipv6/fib6_rules.c:115 ip6_route_output_flags_noref+0x2e2/0x380 net/ipv6/route.c:2512 ip6_route_output_flags+0x8b/0x310 net/ipv6/route.c:2525 ip6_dst_lookup_tail+0x5ed/0x1740 net/ipv6/ip6_output.c:1091 ip6_dst_lookup_flow+0x8c/0x1d0 net/ipv6/ip6_output.c:1194 rawv6_sendmsg+0xca1/0x3930 net/ipv6/raw.c:928 inet_sendmsg+0x99/0xe0 net/ipv4/af_inet.c:821 sock_sendmsg_nosec net/socket.c:654 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:674 ____sys_sendmsg+0x331/0x810 net/socket.c:2350 ___sys_sendmsg+0xf3/0x170 net/socket.c:2404 __sys_sendmmsg+0x195/0x470 net/socket.c:2494 __do_sys_sendmmsg net/socket.c:2523 [inline] __se_sys_sendmmsg net/socket.c:2520 [inline] __x64_sys_sendmmsg+0x99/0x100 net/socket.c:2520 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae Freed by task 12424: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_set_track+0x1c/0x30 mm/kasan/common.c:46 kasan_set_free_info+0x20/0x30 mm/kasan/generic.c:356 ____kasan_slab_free+0xb0/0xe0 mm/kasan/common.c:362 kasan_slab_free include/linux/kasan.h:192 [inline] __cache_free mm/slab.c:3424 [inline] kmem_cache_free+0x54/0x1b0 mm/slab.c:3717 dst_destroy+0x2bc/0x3c0 net/core/dst.c:129 rcu_do_batch kernel/rcu/tree.c:2559 [inline] rcu_core+0x722/0x1280 kernel/rcu/tree.c:2794 __do_softirq+0x29b/0x9f6 kernel/softirq.c:343 Last potentially related work creation: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_record_aux_stack+0x87/0xb0 mm/kasan/generic.c:344 __call_rcu kernel/rcu/tree.c:3039 [inline] call_rcu+0xb1/0x700 kernel/rcu/tree.c:3114 dst_release net/core/dst.c:179 [inline] dst_release+0x79/0xe0 net/core/dst.c:169 rawv6_sendmsg+0xf15/0x3930 net/ipv6/raw.c:960 inet_sendmsg+0x99/0xe0 net/ipv4/af_inet.c:821 sock_sendmsg_nosec net/socket.c:654 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:674 ____sys_sendmsg+0x331/0x810 net/socket.c:2350 ___sys_sendmsg+0xf3/0x170 net/socket.c:2404 __sys_sendmmsg+0x195/0x470 net/socket.c:2494 __do_sys_sendmmsg net/socket.c:2523 [inline] __se_sys_sendmmsg net/socket.c:2520 [inline] __x64_sys_sendmmsg+0x99/0x100 net/socket.c:2520 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae The buggy address belongs to the object at ffff8880288fa0c0 which belongs to the cache ip6_dst_cache of size 232 The buggy address is located 32 bytes to the left of 232-byte region [ffff8880288fa0c0, ffff8880288fa1a8) The buggy address belongs to the page: page:000000006e25b6c4 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x288fa flags: 0xfff00000000200(slab) raw: 00fff00000000200 ffffea00007c13c8 ffffea00009a8f08 ffff888022aec700 raw: 0000000000000000 ffff8880288fa0c0 000000010000000c 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880288f9f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880288fa000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880288fa080: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb ^ ffff8880288fa100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880288fa180: fb fb fb fb fb fc fc fc fc fc fc fc fc fc fc fc ==================================================================