================================================================== BUG: KASAN: use-after-free in trace_event_get_offsets_lock_acquire include/trace/events/lock.h:13 [inline] BUG: KASAN: use-after-free in perf_trace_lock_acquire+0x402/0x530 include/trace/events/lock.h:13 Read of size 8 at addr ffff8880484f4af8 by task kworker/1:18/5401 CPU: 1 PID: 5401 Comm: kworker/1:18 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events sco_sock_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 trace_event_get_offsets_lock_acquire include/trace/events/lock.h:13 [inline] perf_trace_lock_acquire+0x402/0x530 include/trace/events/lock.h:13 trace_lock_acquire include/trace/events/lock.h:13 [inline] lock_acquire+0x298/0x3c0 kernel/locking/lockdep.c:3907 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:144 spin_lock include/linux/spinlock.h:329 [inline] sco_sock_timeout+0x7b/0x1b0 net/bluetooth/sco.c:95 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 6796: __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] pskb_expand_head+0x159/0xf20 net/core/skbuff.c:1473 netlink_trim+0x200/0x250 net/netlink/af_netlink.c:1307 netlink_broadcast_filtered+0x61/0xbc0 net/netlink/af_netlink.c:1504 netlink_broadcast net/netlink/af_netlink.c:1549 [inline] nlmsg_multicast include/net/netlink.h:591 [inline] nlmsg_notify+0x15e/0x1f0 net/netlink/af_netlink.c:2506 rtnl_notify net/core/rtnetlink.c:736 [inline] rtmsg_ifinfo_send net/core/rtnetlink.c:3377 [inline] rtmsg_ifinfo_event net/core/rtnetlink.c:3392 [inline] rtmsg_ifinfo_event net/core/rtnetlink.c:3380 [inline] rtnetlink_event+0x193/0x1d0 net/core/rtnetlink.c:4833 notifier_call_chain+0xc0/0x230 kernel/notifier.c:93 __netdev_upper_dev_link+0x2fb/0x770 net/core/dev.c:7181 macsec_newlink+0x541/0x1440 drivers/net/macsec.c:3284 rtnl_newlink+0x1030/0x15c0 net/core/rtnetlink.c:3141 rtnetlink_rcv_msg+0x453/0xb80 net/core/rtnetlink.c:4782 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2463 netlink_unicast_kernel net/netlink/af_netlink.c:1325 [inline] netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1351 netlink_sendmsg+0x6c3/0xc50 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg+0xc3/0x120 net/socket.c:661 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2227 __sys_sendmsg net/socket.c:2265 [inline] __do_sys_sendmsg net/socket.c:2274 [inline] __se_sys_sendmsg net/socket.c:2272 [inline] __x64_sys_sendmsg+0x132/0x220 net/socket.c:2272 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 6796: __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] consume_skb+0x113/0x3d0 net/core/skbuff.c:714 netlink_broadcast_filtered+0x31f/0xbc0 net/netlink/af_netlink.c:1527 netlink_broadcast net/netlink/af_netlink.c:1549 [inline] nlmsg_multicast include/net/netlink.h:591 [inline] nlmsg_notify+0x15e/0x1f0 net/netlink/af_netlink.c:2506 rtnl_notify net/core/rtnetlink.c:736 [inline] rtmsg_ifinfo_send net/core/rtnetlink.c:3377 [inline] rtmsg_ifinfo_event net/core/rtnetlink.c:3392 [inline] rtmsg_ifinfo_event net/core/rtnetlink.c:3380 [inline] rtnetlink_event+0x193/0x1d0 net/core/rtnetlink.c:4833 notifier_call_chain+0xc0/0x230 kernel/notifier.c:93 __netdev_upper_dev_link+0x2fb/0x770 net/core/dev.c:7181 macsec_newlink+0x541/0x1440 drivers/net/macsec.c:3284 rtnl_newlink+0x1030/0x15c0 net/core/rtnetlink.c:3141 rtnetlink_rcv_msg+0x453/0xb80 net/core/rtnetlink.c:4782 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2463 netlink_unicast_kernel net/netlink/af_netlink.c:1325 [inline] netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1351 netlink_sendmsg+0x6c3/0xc50 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg+0xc3/0x120 net/socket.c:661 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2227 __sys_sendmsg net/socket.c:2265 [inline] __do_sys_sendmsg net/socket.c:2274 [inline] __se_sys_sendmsg net/socket.c:2272 [inline] __x64_sys_sendmsg+0x132/0x220 net/socket.c:2272 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8880484f4a40 which belongs to the cache kmalloc-2048 of size 2048 The buggy address is located 184 bytes inside of 2048-byte region [ffff8880484f4a40, ffff8880484f5240) The buggy address belongs to the page: page:ffffea0001213d00 count:1 mapcount:0 mapping:ffff88813bff0c40 index:0xffff8880484f4a40 compound_mapcount: 0 flags: 0xfff00000008100(slab|head) raw: 00fff00000008100 ffffea00013e3d08 ffffea00024a5c88 ffff88813bff0c40 raw: ffff8880484f4a40 ffff8880484f41c0 0000000100000002 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880484f4980: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff8880484f4a00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb >ffff8880484f4a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880484f4b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880484f4b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================