Bluetooth: Unknown BR/EDR signaling command 0x0f Bluetooth: Wrong link type (-22) Bluetooth: Unknown BR/EDR signaling command 0x11 Bluetooth: Wrong link type (-22) ================================================================== BUG: KASAN: slab-use-after-free in l2cap_connect.constprop.0+0x10d8/0x1270 net/bluetooth/l2cap_core.c:3949 Read of size 8 at addr ffff888062662800 by task kworker/u9:2/24875 CPU: 0 PID: 24875 Comm: kworker/u9:2 Not tainted 6.10.0-syzkaller-09703-gd7e78951a8b8 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 Workqueue: hci0 hci_rx_work Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114 print_address_description mm/kasan/report.c:377 [inline] print_report+0xc3/0x620 mm/kasan/report.c:488 kasan_report+0xd9/0x110 mm/kasan/report.c:601 l2cap_connect.constprop.0+0x10d8/0x1270 net/bluetooth/l2cap_core.c:3949 l2cap_connect_req net/bluetooth/l2cap_core.c:4080 [inline] l2cap_bredr_sig_cmd net/bluetooth/l2cap_core.c:4772 [inline] l2cap_sig_channel net/bluetooth/l2cap_core.c:5543 [inline] l2cap_recv_frame+0xf0b/0x8eb0 net/bluetooth/l2cap_core.c:6824 l2cap_recv_acldata+0x9b4/0xb70 net/bluetooth/l2cap_core.c:7513 hci_acldata_packet net/bluetooth/hci_core.c:3797 [inline] hci_rx_work+0xaab/0x1610 net/bluetooth/hci_core.c:4034 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c4/0x3a0 kernel/kthread.c:389 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Allocated by task 26537: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:370 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:387 kmalloc_noprof include/linux/slab.h:681 [inline] kzalloc_noprof include/linux/slab.h:807 [inline] l2cap_conn_add.part.0+0x60/0xa60 net/bluetooth/l2cap_core.c:6867 l2cap_conn_add net/bluetooth/l2cap_core.c:69 [inline] l2cap_connect_cfm+0x428/0xf80 net/bluetooth/l2cap_core.c:7244 hci_connect_cfm include/net/bluetooth/hci_core.h:1965 [inline] hci_remote_features_evt+0x54b/0x9e0 net/bluetooth/hci_event.c:3720 hci_event_func net/bluetooth/hci_event.c:7445 [inline] hci_event_packet+0x9ee/0x1180 net/bluetooth/hci_event.c:7497 hci_rx_work+0x2c6/0x1610 net/bluetooth/hci_core.c:4029 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c4/0x3a0 kernel/kthread.c:389 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Freed by task 26537: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:579 poison_slab_object+0xf7/0x160 mm/kasan/common.c:240 __kasan_slab_free+0x32/0x50 mm/kasan/common.c:256 kasan_slab_free include/linux/kasan.h:184 [inline] slab_free_hook mm/slub.c:2235 [inline] slab_free mm/slub.c:4464 [inline] kfree+0x12a/0x3b0 mm/slub.c:4585 l2cap_conn_free net/bluetooth/l2cap_core.c:1810 [inline] kref_put include/linux/kref.h:65 [inline] l2cap_conn_put net/bluetooth/l2cap_core.c:1822 [inline] l2cap_conn_del+0x59f/0x740 net/bluetooth/l2cap_core.c:1802 l2cap_connect_cfm+0x9e6/0xf80 net/bluetooth/l2cap_core.c:7240 hci_connect_cfm include/net/bluetooth/hci_core.h:1965 [inline] hci_conn_failed+0x1c6/0x370 net/bluetooth/hci_conn.c:1265 hci_abort_conn_sync+0x75a/0xb50 net/bluetooth/hci_sync.c:5510 abort_conn_sync+0x197/0x360 net/bluetooth/hci_conn.c:2917 hci_cmd_sync_work+0x1a7/0x410 net/bluetooth/hci_sync.c:328 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c4/0x3a0 kernel/kthread.c:389 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Last potentially related work creation: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 __kasan_record_aux_stack+0xba/0xd0 mm/kasan/generic.c:541 insert_work+0x36/0x230 kernel/workqueue.c:2185 __queue_work+0x97e/0x1070 kernel/workqueue.c:2341 call_timer_fn+0x1a3/0x610 kernel/time/timer.c:1792 expire_timers kernel/time/timer.c:1838 [inline] __run_timers+0x567/0xaf0 kernel/time/timer.c:2417 __run_timer_base kernel/time/timer.c:2428 [inline] __run_timer_base kernel/time/timer.c:2421 [inline] run_timer_base+0x111/0x190 kernel/time/timer.c:2437 run_timer_softirq+0x1a/0x40 kernel/time/timer.c:2447 handle_softirqs+0x219/0x8f0 kernel/softirq.c:554 __do_softirq kernel/softirq.c:588 [inline] invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu kernel/softirq.c:637 [inline] irq_exit_rcu+0xbb/0x120 kernel/softirq.c:649 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0x95/0xb0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 Second to last potentially related work creation: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 __kasan_record_aux_stack+0xba/0xd0 mm/kasan/generic.c:541 insert_work+0x36/0x230 kernel/workqueue.c:2185 __queue_work+0x3f8/0x1070 kernel/workqueue.c:2345 queue_work_on+0x11a/0x140 kernel/workqueue.c:2392 queue_work include/linux/workqueue.h:621 [inline] l2cap_conn_ready net/bluetooth/l2cap_core.c:1640 [inline] l2cap_connect_cfm+0x9c9/0xf80 net/bluetooth/l2cap_core.c:7285 hci_connect_cfm include/net/bluetooth/hci_core.h:1965 [inline] hci_remote_features_evt+0x54b/0x9e0 net/bluetooth/hci_event.c:3720 hci_event_func net/bluetooth/hci_event.c:7445 [inline] hci_event_packet+0x9ee/0x1180 net/bluetooth/hci_event.c:7497 hci_rx_work+0x2c6/0x1610 net/bluetooth/hci_core.c:4029 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c4/0x3a0 kernel/kthread.c:389 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 The buggy address belongs to the object at ffff888062662800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 0 bytes inside of freed 1024-byte region [ffff888062662800, ffff888062662c00) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x62660 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 anon flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffefff(slab) raw: 00fff00000000040 ffff888015441dc0 0000000000000000 dead000000000001 raw: 0000000000000000 0000000000100010 00000001ffffefff 0000000000000000 head: 00fff00000000040 ffff888015441dc0 0000000000000000 dead000000000001 head: 0000000000000000 0000000000100010 00000001ffffefff 0000000000000000 head: 00fff00000000003 ffffea0001899801 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x152820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 2854, tgid 2854 (kworker/u8:9), ts 1559074969014, free_ts 1557599401370 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1473 prep_new_page mm/page_alloc.c:1481 [inline] get_page_from_freelist+0x1353/0x2e50 mm/page_alloc.c:3425 __alloc_pages_noprof+0x22b/0x2460 mm/page_alloc.c:4683 __alloc_pages_node_noprof include/linux/gfp.h:269 [inline] alloc_pages_node_noprof include/linux/gfp.h:296 [inline] alloc_slab_page+0x56/0x110 mm/slub.c:2304 allocate_slab mm/slub.c:2467 [inline] new_slab+0x84/0x260 mm/slub.c:2520 ___slab_alloc+0xdac/0x1870 mm/slub.c:3706 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3796 __slab_alloc_node mm/slub.c:3849 [inline] slab_alloc_node mm/slub.c:4016 [inline] __do_kmalloc_node mm/slub.c:4148 [inline] __kmalloc_noprof+0x367/0x400 mm/slub.c:4161 kmalloc_noprof include/linux/slab.h:685 [inline] kzalloc_noprof include/linux/slab.h:807 [inline] ieee802_11_parse_elems_full+0xea/0x1680 net/mac80211/parse.c:958 ieee802_11_parse_elems_crc net/mac80211/ieee80211_i.h:2361 [inline] ieee802_11_parse_elems net/mac80211/ieee80211_i.h:2368 [inline] ieee80211_inform_bss+0xfd/0x1100 net/mac80211/scan.c:79 rdev_inform_bss net/wireless/rdev-ops.h:418 [inline] cfg80211_inform_single_bss_data+0x8e5/0x1dc0 net/wireless/scan.c:2335 cfg80211_inform_bss_data+0x205/0x39c0 net/wireless/scan.c:3159 cfg80211_inform_bss_frame_data+0x271/0x7b0 net/wireless/scan.c:3249 ieee80211_bss_info_update+0x311/0xab0 net/mac80211/scan.c:226 ieee80211_rx_bss_info net/mac80211/ibss.c:1100 [inline] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1579 [inline] ieee80211_ibss_rx_queued_mgmt+0x1898/0x2f40 net/mac80211/ibss.c:1606 ieee80211_iface_process_skb net/mac80211/iface.c:1588 [inline] ieee80211_iface_work+0xc0b/0xf00 net/mac80211/iface.c:1642 page last free pid 5164 tgid 5164 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1093 [inline] free_unref_page+0x64a/0xe40 mm/page_alloc.c:2588 kasan_depopulate_vmalloc_pte+0x63/0x80 mm/kasan/shadow.c:408 apply_to_pte_range mm/memory.c:2746 [inline] apply_to_pmd_range mm/memory.c:2790 [inline] apply_to_pud_range mm/memory.c:2826 [inline] apply_to_p4d_range mm/memory.c:2862 [inline] __apply_to_page_range+0x798/0xdd0 mm/memory.c:2896 kasan_release_vmalloc+0xac/0xc0 mm/kasan/shadow.c:525 purge_vmap_node+0x3fc/0x920 mm/vmalloc.c:2207 __purge_vmap_area_lazy+0x9ca/0xc10 mm/vmalloc.c:2289 drain_vmap_area_work+0x27/0x40 mm/vmalloc.c:2323 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c4/0x3a0 kernel/kthread.c:389 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Memory state around the buggy address: ffff888062662700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888062662780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888062662800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888062662880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888062662900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: slab-use-after-free in l2cap_build_cmd net/bluetooth/l2cap_core.c:2951 [inline] BUG: KASAN: slab-use-after-free in l2cap_send_cmd+0x788/0x920 net/bluetooth/l2cap_core.c:954 Read of size 4 at addr ffff888062662810 by task kworker/u9:2/24875 CPU: 0 PID: 24875 Comm: kworker/u9:2 Tainted: G B 6.10.0-syzkaller-09703-gd7e78951a8b8 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 Workqueue: hci0 hci_rx_work Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114 print_address_description mm/kasan/report.c:377 [inline] print_report+0xc3/0x620 mm/kasan/report.c:488 kasan_report+0xd9/0x110 mm/kasan/report.c:601 l2cap_build_cmd net/bluetooth/l2cap_core.c:2951 [inline] l2cap_send_cmd+0x788/0x920 net/bluetooth/l2cap_core.c:954 l2cap_connect.constprop.0+0x6f7/0x1270 net/bluetooth/l2cap_core.c:4034 l2cap_connect_req net/bluetooth/l2cap_core.c:4080 [inline] l2cap_bredr_sig_cmd net/bluetooth/l2cap_core.c:4772 [inline] l2cap_sig_channel net/bluetooth/l2cap_core.c:5543 [inline] l2cap_recv_frame+0xf0b/0x8eb0 net/bluetooth/l2cap_core.c:6824 l2cap_recv_acldata+0x9b4/0xb70 net/bluetooth/l2cap_core.c:7513 hci_acldata_packet net/bluetooth/hci_core.c:3797 [inline] hci_rx_work+0xaab/0x1610 net/bluetooth/hci_core.c:4034 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c4/0x3a0 kernel/kthread.c:389 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Allocated by task 26537: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:370 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:387 kmalloc_noprof include/linux/slab.h:681 [inline] kzalloc_noprof include/linux/slab.h:807 [inline] l2cap_conn_add.part.0+0x60/0xa60 net/bluetooth/l2cap_core.c:6867 l2cap_conn_add net/bluetooth/l2cap_core.c:69 [inline] l2cap_connect_cfm+0x428/0xf80 net/bluetooth/l2cap_core.c:7244 hci_connect_cfm include/net/bluetooth/hci_core.h:1965 [inline] hci_remote_features_evt+0x54b/0x9e0 net/bluetooth/hci_event.c:3720 hci_event_func net/bluetooth/hci_event.c:7445 [inline] hci_event_packet+0x9ee/0x1180 net/bluetooth/hci_event.c:7497 hci_rx_work+0x2c6/0x1610 net/bluetooth/hci_core.c:4029 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c4/0x3a0 kernel/kthread.c:389 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Freed by task 26537: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:579 poison_slab_object+0xf7/0x160 mm/kasan/common.c:240 __kasan_slab_free+0x32/0x50 mm/kasan/common.c:256 kasan_slab_free include/linux/kasan.h:184 [inline] slab_free_hook mm/slub.c:2235 [inline] slab_free mm/slub.c:4464 [inline] kfree+0x12a/0x3b0 mm/slub.c:4585 l2cap_conn_free net/bluetooth/l2cap_core.c:1810 [inline] kref_put include/linux/kref.h:65 [inline] l2cap_conn_put net/bluetooth/l2cap_core.c:1822 [inline] l2cap_conn_del+0x59f/0x740 net/bluetooth/l2cap_core.c:1802 l2cap_connect_cfm+0x9e6/0xf80 net/bluetooth/l2cap_core.c:7240 hci_connect_cfm include/net/bluetooth/hci_core.h:1965 [inline] hci_conn_failed+0x1c6/0x370 net/bluetooth/hci_conn.c:1265 hci_abort_conn_sync+0x75a/0xb50 net/bluetooth/hci_sync.c:5510 abort_conn_sync+0x197/0x360 net/bluetooth/hci_conn.c:2917 hci_cmd_sync_work+0x1a7/0x410 net/bluetooth/hci_sync.c:328 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c4/0x3a0 kernel/kthread.c:389 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Last potentially related work creation: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 __kasan_record_aux_stack+0xba/0xd0 mm/kasan/generic.c:541 insert_work+0x36/0x230 kernel/workqueue.c:2185 __queue_work+0x97e/0x1070 kernel/workqueue.c:2341 call_timer_fn+0x1a3/0x610 kernel/time/timer.c:1792 expire_timers kernel/time/timer.c:1838 [inline] __run_timers+0x567/0xaf0 kernel/time/timer.c:2417 __run_timer_base kernel/time/timer.c:2428 [inline] __run_timer_base kernel/time/timer.c:2421 [inline] run_timer_base+0x111/0x190 kernel/time/timer.c:2437 run_timer_softirq+0x1a/0x40 kernel/time/timer.c:2447 handle_softirqs+0x219/0x8f0 kernel/softirq.c:554 __do_softirq kernel/softirq.c:588 [inline] invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu kernel/softirq.c:637 [inline] irq_exit_rcu+0xbb/0x120 kernel/softirq.c:649 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0x95/0xb0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 Second to last potentially related work creation: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 __kasan_record_aux_stack+0xba/0xd0 mm/kasan/generic.c:541 insert_work+0x36/0x230 kernel/workqueue.c:2185 __queue_work+0x3f8/0x1070 kernel/workqueue.c:2345 queue_work_on+0x11a/0x140 kernel/workqueue.c:2392 queue_work include/linux/workqueue.h:621 [inline] l2cap_conn_ready net/bluetooth/l2cap_core.c:1640 [inline] l2cap_connect_cfm+0x9c9/0xf80 net/bluetooth/l2cap_core.c:7285 hci_connect_cfm include/net/bluetooth/hci_core.h:1965 [inline] hci_remote_features_evt+0x54b/0x9e0 net/bluetooth/hci_event.c:3720 hci_event_func net/bluetooth/hci_event.c:7445 [inline] hci_event_packet+0x9ee/0x1180 net/bluetooth/hci_event.c:7497 hci_rx_work+0x2c6/0x1610 net/bluetooth/hci_core.c:4029 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c4/0x3a0 kernel/kthread.c:389 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 The buggy address belongs to the object at ffff888062662800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 16 bytes inside of freed 1024-byte region [ffff888062662800, ffff888062662c00) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x62660 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 anon flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffefff(slab) raw: 00fff00000000040 ffff888015441dc0 0000000000000000 dead000000000001 raw: 0000000000000000 0000000000100010 00000001ffffefff 0000000000000000 head: 00fff00000000040 ffff888015441dc0 0000000000000000 dead000000000001 head: 0000000000000000 0000000000100010 00000001ffffefff 0000000000000000 head: 00fff00000000003 ffffea0001899801 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x152820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 2854, tgid 2854 (kworker/u8:9), ts 1559074969014, free_ts 1557599401370 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1473 prep_new_page mm/page_alloc.c:1481 [inline] get_page_from_freelist+0x1353/0x2e50 mm/page_alloc.c:3425 __alloc_pages_noprof+0x22b/0x2460 mm/page_alloc.c:4683 __alloc_pages_node_noprof include/linux/gfp.h:269 [inline] alloc_pages_node_noprof include/linux/gfp.h:296 [inline] alloc_slab_page+0x56/0x110 mm/slub.c:2304 allocate_slab mm/slub.c:2467 [inline] new_slab+0x84/0x260 mm/slub.c:2520 ___slab_alloc+0xdac/0x1870 mm/slub.c:3706 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3796 __slab_alloc_node mm/slub.c:3849 [inline] slab_alloc_node mm/slub.c:4016 [inline] __do_kmalloc_node mm/slub.c:4148 [inline] __kmalloc_noprof+0x367/0x400 mm/slub.c:4161 kmalloc_noprof include/linux/slab.h:685 [inline] kzalloc_noprof include/linux/slab.h:807 [inline] ieee802_11_parse_elems_full+0xea/0x1680 net/mac80211/parse.c:958 ieee802_11_parse_elems_crc net/mac80211/ieee80211_i.h:2361 [inline] ieee802_11_parse_elems net/mac80211/ieee80211_i.h:2368 [inline] ieee80211_inform_bss+0xfd/0x1100 net/mac80211/scan.c:79 rdev_inform_bss net/wireless/rdev-ops.h:418 [inline] cfg80211_inform_single_bss_data+0x8e5/0x1dc0 net/wireless/scan.c:2335 cfg80211_inform_bss_data+0x205/0x39c0 net/wireless/scan.c:3159 cfg80211_inform_bss_frame_data+0x271/0x7b0 net/wireless/scan.c:3249 ieee80211_bss_info_update+0x311/0xab0 net/mac80211/scan.c:226 ieee80211_rx_bss_info net/mac80211/ibss.c:1100 [inline] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1579 [inline] ieee80211_ibss_rx_queued_mgmt+0x1898/0x2f40 net/mac80211/ibss.c:1606 ieee80211_iface_process_skb net/mac80211/iface.c:1588 [inline] ieee80211_iface_work+0xc0b/0xf00 net/mac80211/iface.c:1642 page last free pid 5164 tgid 5164 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1093 [inline] free_unref_page+0x64a/0xe40 mm/page_alloc.c:2588 kasan_depopulate_vmalloc_pte+0x63/0x80 mm/kasan/shadow.c:408 apply_to_pte_range mm/memory.c:2746 [inline] apply_to_pmd_range mm/memory.c:2790 [inline] apply_to_pud_range mm/memory.c:2826 [inline] apply_to_p4d_range mm/memory.c:2862 [inline] __apply_to_page_range+0x798/0xdd0 mm/memory.c:2896 kasan_release_vmalloc+0xac/0xc0 mm/kasan/shadow.c:525 purge_vmap_node+0x3fc/0x920 mm/vmalloc.c:2207 __purge_vmap_area_lazy+0x9ca/0xc10 mm/vmalloc.c:2289 drain_vmap_area_work+0x27/0x40 mm/vmalloc.c:2323 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c4/0x3a0 kernel/kthread.c:389 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Memory state around the buggy address: ffff888062662700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888062662780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888062662800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888062662880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888062662900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: slab-use-after-free in l2cap_build_cmd net/bluetooth/l2cap_core.c:2964 [inline] BUG: KASAN: slab-use-after-free in l2cap_send_cmd+0x882/0x920 net/bluetooth/l2cap_core.c:954 Read of size 8 at addr ffff888062662800 by task kworker/u9:2/24875 CPU: 0 PID: 24875 Comm: kworker/u9:2 Tainted: G B 6.10.0-syzkaller-09703-gd7e78951a8b8 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 Workqueue: hci0 hci_rx_work Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114 print_address_description mm/kasan/report.c:377 [inline] print_report+0xc3/0x620 mm/kasan/report.c:488 kasan_report+0xd9/0x110 mm/kasan/report.c:601 l2cap_build_cmd net/bluetooth/l2cap_core.c:2964 [inline] l2cap_send_cmd+0x882/0x920 net/bluetooth/l2cap_core.c:954 l2cap_connect.constprop.0+0x6f7/0x1270 net/bluetooth/l2cap_core.c:4034 l2cap_connect_req net/bluetooth/l2cap_core.c:4080 [inline] l2cap_bredr_sig_cmd net/bluetooth/l2cap_core.c:4772 [inline] l2cap_sig_channel net/bluetooth/l2cap_core.c:5543 [inline] l2cap_recv_frame+0xf0b/0x8eb0 net/bluetooth/l2cap_core.c:6824 l2cap_recv_acldata+0x9b4/0xb70 net/bluetooth/l2cap_core.c:7513 hci_acldata_packet net/bluetooth/hci_core.c:3797 [inline] hci_rx_work+0xaab/0x1610 net/bluetooth/hci_core.c:4034 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c4/0x3a0 kernel/kthread.c:389 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Allocated by task 26537: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:370 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:387 kmalloc_noprof include/linux/slab.h:681 [inline] kzalloc_noprof include/linux/slab.h:807 [inline] l2cap_conn_add.part.0+0x60/0xa60 net/bluetooth/l2cap_core.c:6867 l2cap_conn_add net/bluetooth/l2cap_core.c:69 [inline] l2cap_connect_cfm+0x428/0xf80 net/bluetooth/l2cap_core.c:7244 hci_connect_cfm include/net/bluetooth/hci_core.h:1965 [inline] hci_remote_features_evt+0x54b/0x9e0 net/bluetooth/hci_event.c:3720 hci_event_func net/bluetooth/hci_event.c:7445 [inline] hci_event_packet+0x9ee/0x1180 net/bluetooth/hci_event.c:7497 hci_rx_work+0x2c6/0x1610 net/bluetooth/hci_core.c:4029 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c4/0x3a0 kernel/kthread.c:389 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Freed by task 26537: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:579 poison_slab_object+0xf7/0x160 mm/kasan/common.c:240 __kasan_slab_free+0x32/0x50 mm/kasan/common.c:256 kasan_slab_free include/linux/kasan.h:184 [inline] slab_free_hook mm/slub.c:2235 [inline] slab_free mm/slub.c:4464 [inline] kfree+0x12a/0x3b0 mm/slub.c:4585 l2cap_conn_free net/bluetooth/l2cap_core.c:1810 [inline] kref_put include/linux/kref.h:65 [inline] l2cap_conn_put net/bluetooth/l2cap_core.c:1822 [inline] l2cap_conn_del+0x59f/0x740 net/bluetooth/l2cap_core.c:1802 l2cap_connect_cfm+0x9e6/0xf80 net/bluetooth/l2cap_core.c:7240 hci_connect_cfm include/net/bluetooth/hci_core.h:1965 [inline] hci_conn_failed+0x1c6/0x370 net/bluetooth/hci_conn.c:1265 hci_abort_conn_sync+0x75a/0xb50 net/bluetooth/hci_sync.c:5510 abort_conn_sync+0x197/0x360 net/bluetooth/hci_conn.c:2917 hci_cmd_sync_work+0x1a7/0x410 net/bluetooth/hci_sync.c:328 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c4/0x3a0 kernel/kthread.c:389 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Last potentially related work creation: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 __kasan_record_aux_stack+0xba/0xd0 mm/kasan/generic.c:541 insert_work+0x36/0x230 kernel/workqueue.c:2185 __queue_work+0x97e/0x1070 kernel/workqueue.c:2341 call_timer_fn+0x1a3/0x610 kernel/time/timer.c:1792 expire_timers kernel/time/timer.c:1838 [inline] __run_timers+0x567/0xaf0 kernel/time/timer.c:2417 __run_timer_base kernel/time/timer.c:2428 [inline] __run_timer_base kernel/time/timer.c:2421 [inline] run_timer_base+0x111/0x190 kernel/time/timer.c:2437 run_timer_softirq+0x1a/0x40 kernel/time/timer.c:2447 handle_softirqs+0x219/0x8f0 kernel/softirq.c:554 __do_softirq kernel/softirq.c:588 [inline] invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu kernel/softirq.c:637 [inline] irq_exit_rcu+0xbb/0x120 kernel/softirq.c:649 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0x95/0xb0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 Second to last potentially related work creation: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 __kasan_record_aux_stack+0xba/0xd0 mm/kasan/generic.c:541 insert_work+0x36/0x230 kernel/workqueue.c:2185 __queue_work+0x3f8/0x1070 kernel/workqueue.c:2345 queue_work_on+0x11a/0x140 kernel/workqueue.c:2392 queue_work include/linux/workqueue.h:621 [inline] l2cap_conn_ready net/bluetooth/l2cap_core.c:1640 [inline] l2cap_connect_cfm+0x9c9/0xf80 net/bluetooth/l2cap_core.c:7285 hci_connect_cfm include/net/bluetooth/hci_core.h:1965 [inline] hci_remote_features_evt+0x54b/0x9e0 net/bluetooth/hci_event.c:3720 hci_event_func net/bluetooth/hci_event.c:7445 [inline] hci_event_packet+0x9ee/0x1180 net/bluetooth/hci_event.c:7497 hci_rx_work+0x2c6/0x1610 net/bluetooth/hci_core.c:4029 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c4/0x3a0 kernel/kthread.c:389 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 The buggy address belongs to the object at ffff888062662800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 0 bytes inside of freed 1024-byte region [ffff888062662800, ffff888062662c00) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x62660 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 anon flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffefff(slab) raw: 00fff00000000040 ffff888015441dc0 0000000000000000 dead000000000001 raw: 0000000000000000 0000000000100010 00000001ffffefff 0000000000000000 head: 00fff00000000040 ffff888015441dc0 0000000000000000 dead000000000001 head: 0000000000000000 0000000000100010 00000001ffffefff 0000000000000000 head: 00fff00000000003 ffffea0001899801 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x152820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 2854, tgid 2854 (kworker/u8:9), ts 1559074969014, free_ts 1557599401370 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1473 prep_new_page mm/page_alloc.c:1481 [inline] get_page_from_freelist+0x1353/0x2e50 mm/page_alloc.c:3425 __alloc_pages_noprof+0x22b/0x2460 mm/page_alloc.c:4683 __alloc_pages_node_noprof include/linux/gfp.h:269 [inline] alloc_pages_node_noprof include/linux/gfp.h:296 [inline] alloc_slab_page+0x56/0x110 mm/slub.c:2304 allocate_slab mm/slub.c:2467 [inline] new_slab+0x84/0x260 mm/slub.c:2520 ___slab_alloc+0xdac/0x1870 mm/slub.c:3706 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3796 __slab_alloc_node mm/slub.c:3849 [inline] slab_alloc_node mm/slub.c:4016 [inline] __do_kmalloc_node mm/slub.c:4148 [inline] __kmalloc_noprof+0x367/0x400 mm/slub.c:4161 kmalloc_noprof include/linux/slab.h:685 [inline] kzalloc_noprof include/linux/slab.h:807 [inline] ieee802_11_parse_elems_full+0xea/0x1680 net/mac80211/parse.c:958 ieee802_11_parse_elems_crc net/mac80211/ieee80211_i.h:2361 [inline] ieee802_11_parse_elems net/mac80211/ieee80211_i.h:2368 [inline] ieee80211_inform_bss+0xfd/0x1100 net/mac80211/scan.c:79 rdev_inform_bss net/wireless/rdev-ops.h:418 [inline] cfg80211_inform_single_bss_data+0x8e5/0x1dc0 net/wireless/scan.c:2335 cfg80211_inform_bss_data+0x205/0x39c0 net/wireless/scan.c:3159 cfg80211_inform_bss_frame_data+0x271/0x7b0 net/wireless/scan.c:3249 ieee80211_bss_info_update+0x311/0xab0 net/mac80211/scan.c:226 ieee80211_rx_bss_info net/mac80211/ibss.c:1100 [inline] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1579 [inline] ieee80211_ibss_rx_queued_mgmt+0x1898/0x2f40 net/mac80211/ibss.c:1606 ieee80211_iface_process_skb net/mac80211/iface.c:1588 [inline] ieee80211_iface_work+0xc0b/0xf00 net/mac80211/iface.c:1642 page last free pid 5164 tgid 5164 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1093 [inline] free_unref_page+0x64a/0xe40 mm/page_alloc.c:2588 kasan_depopulate_vmalloc_pte+0x63/0x80 mm/kasan/shadow.c:408 apply_to_pte_range mm/memory.c:2746 [inline] apply_to_pmd_range mm/memory.c:2790 [inline] apply_to_pud_range mm/memory.c:2826 [inline] apply_to_p4d_range mm/memory.c:2862 [inline] __apply_to_page_range+0x798/0xdd0 mm/memory.c:2896 kasan_release_vmalloc+0xac/0xc0 mm/kasan/shadow.c:525 purge_vmap_node+0x3fc/0x920 mm/vmalloc.c:2207 __purge_vmap_area_lazy+0x9ca/0xc10 mm/vmalloc.c:2289 drain_vmap_area_work+0x27/0x40 mm/vmalloc.c:2323 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c4/0x3a0 kernel/kthread.c:389 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Memory state around the buggy address: ffff888062662700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888062662780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888062662800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888062662880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888062662900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: slab-use-after-free in l2cap_build_cmd net/bluetooth/l2cap_core.c:2964 [inline] BUG: KASAN: slab-use-after-free in l2cap_send_cmd+0x7c7/0x920 net/bluetooth/l2cap_core.c:954 Read of size 1 at addr ffff88807f1d583b by task kworker/u9:2/24875 CPU: 1 PID: 24875 Comm: kworker/u9:2 Tainted: G B 6.10.0-syzkaller-09703-gd7e78951a8b8 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 Workqueue: hci0 hci_rx_work Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114 print_address_description mm/kasan/report.c:377 [inline] print_report+0xc3/0x620 mm/kasan/report.c:488 kasan_report+0xd9/0x110 mm/kasan/report.c:601 l2cap_build_cmd net/bluetooth/l2cap_core.c:2964 [inline] l2cap_send_cmd+0x7c7/0x920 net/bluetooth/l2cap_core.c:954 l2cap_connect.constprop.0+0x6f7/0x1270 net/bluetooth/l2cap_core.c:4034 l2cap_connect_req net/bluetooth/l2cap_core.c:4080 [inline] l2cap_bredr_sig_cmd net/bluetooth/l2cap_core.c:4772 [inline] l2cap_sig_channel net/bluetooth/l2cap_core.c:5543 [inline] l2cap_recv_frame+0xf0b/0x8eb0 net/bluetooth/l2cap_core.c:6824 l2cap_recv_acldata+0x9b4/0xb70 net/bluetooth/l2cap_core.c:7513 hci_acldata_packet net/bluetooth/hci_core.c:3797 [inline] hci_rx_work+0xaab/0x1610 net/bluetooth/hci_core.c:4034 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c4/0x3a0 kernel/kthread.c:389 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Allocated by task 24713: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:370 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:387 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slub.c:4149 [inline] __kmalloc_node_track_caller_noprof+0x20f/0x430 mm/slub.c:4168 kmalloc_reserve+0xef/0x2c0 net/core/skbuff.c:605 __alloc_skb+0x164/0x380 net/core/skbuff.c:674 alloc_skb include/linux/skbuff.h:1320 [inline] nlmsg_new include/net/netlink.h:1015 [inline] inet6_rt_notify+0xf0/0x2c0 net/ipv6/route.c:6180 fib6_del_route net/ipv6/ip6_fib.c:2012 [inline] fib6_del+0xf08/0x17b0 net/ipv6/ip6_fib.c:2047 fib6_clean_node+0x426/0x5b0 net/ipv6/ip6_fib.c:2209 fib6_walk_continue+0x452/0x8d0 net/ipv6/ip6_fib.c:2131 fib6_walk+0x182/0x370 net/ipv6/ip6_fib.c:2179 fib6_clean_tree+0xd7/0x120 net/ipv6/ip6_fib.c:2259 __fib6_clean_all+0x100/0x2d0 net/ipv6/ip6_fib.c:2275 rt6_sync_down_dev net/ipv6/route.c:4908 [inline] rt6_disable_ip+0x765/0x980 net/ipv6/route.c:4913 addrconf_ifdown.isra.0+0x117/0x1b40 net/ipv6/addrconf.c:3856 addrconf_notify+0x223/0x19e0 net/ipv6/addrconf.c:3779 notifier_call_chain+0xbc/0x410 kernel/notifier.c:93 call_netdevice_notifiers_info+0xbe/0x140 net/core/dev.c:1994 call_netdevice_notifiers_extack net/core/dev.c:2032 [inline] call_netdevice_notifiers net/core/dev.c:2046 [inline] dev_close_many+0x333/0x6a0 net/core/dev.c:1587 unregister_netdevice_many_notify+0x477/0x1e40 net/core/dev.c:11318 cleanup_net+0x58c/0xbf0 net/core/net_namespace.c:635 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c4/0x3a0 kernel/kthread.c:389 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Freed by task 24713: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:579 poison_slab_object+0xf7/0x160 mm/kasan/common.c:240 __kasan_slab_free+0x32/0x50 mm/kasan/common.c:256 kasan_slab_free include/linux/kasan.h:184 [inline] slab_free_hook mm/slub.c:2235 [inline] slab_free mm/slub.c:4464 [inline] kfree+0x12a/0x3b0 mm/slub.c:4585 skb_kfree_head net/core/skbuff.c:1084 [inline] skb_free_head+0x108/0x1d0 net/core/skbuff.c:1096 skb_release_data+0x75c/0x980 net/core/skbuff.c:1123 skb_release_all net/core/skbuff.c:1188 [inline] __kfree_skb net/core/skbuff.c:1202 [inline] consume_skb net/core/skbuff.c:1426 [inline] consume_skb+0xd0/0x170 net/core/skbuff.c:1420 netlink_broadcast_filtered+0x3d5/0xf10 net/netlink/af_netlink.c:1542 nlmsg_multicast_filtered include/net/netlink.h:1125 [inline] nlmsg_multicast include/net/netlink.h:1144 [inline] nlmsg_notify+0x9e/0x220 net/netlink/af_netlink.c:2593 inet6_rt_notify+0x1f4/0x2c0 net/ipv6/route.c:6192 fib6_del_route net/ipv6/ip6_fib.c:2012 [inline] fib6_del+0xf08/0x17b0 net/ipv6/ip6_fib.c:2047 fib6_clean_node+0x426/0x5b0 net/ipv6/ip6_fib.c:2209 fib6_walk_continue+0x452/0x8d0 net/ipv6/ip6_fib.c:2131 fib6_walk+0x182/0x370 net/ipv6/ip6_fib.c:2179 fib6_clean_tree+0xd7/0x120 net/ipv6/ip6_fib.c:2259 __fib6_clean_all+0x100/0x2d0 net/ipv6/ip6_fib.c:2275 rt6_sync_down_dev net/ipv6/route.c:4908 [inline] rt6_disable_ip+0x765/0x980 net/ipv6/route.c:4913 addrconf_ifdown.isra.0+0x117/0x1b40 net/ipv6/addrconf.c:3856 addrconf_notify+0x223/0x19e0 net/ipv6/addrconf.c:3779 notifier_call_chain+0xbc/0x410 kernel/notifier.c:93 call_netdevice_notifiers_info+0xbe/0x140 net/core/dev.c:1994 call_netdevice_notifiers_extack net/core/dev.c:2032 [inline] call_netdevice_notifiers net/core/dev.c:2046 [inline] dev_close_many+0x333/0x6a0 net/core/dev.c:1587 unregister_netdevice_many_notify+0x477/0x1e40 net/core/dev.c:11318 cleanup_net+0x58c/0xbf0 net/core/net_namespace.c:635 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c4/0x3a0 kernel/kthread.c:389 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 The buggy address belongs to the object at ffff88807f1d5800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 59 bytes inside of freed 1024-byte region [ffff88807f1d5800, ffff88807f1d5c00) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7f1d0 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffefff(slab) raw: 00fff00000000040 ffff888015441dc0 ffffea0000b5aa00 dead000000000002 raw: 0000000000000000 0000000000100010 00000001ffffefff 0000000000000000 head: 00fff00000000040 ffff888015441dc0 ffffea0000b5aa00 dead000000000002 head: 0000000000000000 0000000000100010 00000001ffffefff 0000000000000000 head: 00fff00000000003 ffffea0001fc7401 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 4762, tgid 4762 (dhcpcd), ts 74550015043, free_ts 74407549516 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1473 prep_new_page mm/page_alloc.c:1481 [inline] get_page_from_freelist+0x1353/0x2e50 mm/page_alloc.c:3425 __alloc_pages_noprof+0x22b/0x2460 mm/page_alloc.c:4683 __alloc_pages_node_noprof include/linux/gfp.h:269 [inline] alloc_pages_node_noprof include/linux/gfp.h:296 [inline] alloc_slab_page+0x56/0x110 mm/slub.c:2304 allocate_slab mm/slub.c:2467 [inline] new_slab+0x84/0x260 mm/slub.c:2520 ___slab_alloc+0xdac/0x1870 mm/slub.c:3706 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3796 __slab_alloc_node mm/slub.c:3849 [inline] slab_alloc_node mm/slub.c:4016 [inline] __do_kmalloc_node mm/slub.c:4148 [inline] __kmalloc_node_track_caller_noprof+0x355/0x430 mm/slub.c:4168 kmalloc_reserve+0xef/0x2c0 net/core/skbuff.c:605 __alloc_skb+0x164/0x380 net/core/skbuff.c:674 alloc_skb include/linux/skbuff.h:1320 [inline] nlmsg_new include/net/netlink.h:1015 [inline] inet6_rt_notify+0xf0/0x2c0 net/ipv6/route.c:6180 fib6_add_rt2node net/ipv6/ip6_fib.c:1266 [inline] fib6_add+0x2503/0x4ba0 net/ipv6/ip6_fib.c:1495 __ip6_ins_rt net/ipv6/route.c:1314 [inline] ip6_route_add+0x8d/0x190 net/ipv6/route.c:3857 addrconf_prefix_route+0x2fe/0x510 net/ipv6/addrconf.c:2486 inet6_addr_add+0x609/0xbe0 net/ipv6/addrconf.c:3063 inet6_rtm_newaddr+0x11e7/0x1ab0 net/ipv6/addrconf.c:5048 page last free pid 4893 tgid 4893 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1093 [inline] free_unref_page+0x64a/0xe40 mm/page_alloc.c:2588 __put_partials+0x14c/0x170 mm/slub.c:3034 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x192/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3979 [inline] slab_alloc_node mm/slub.c:4028 [inline] kmem_cache_alloc_noprof+0x121/0x2f0 mm/slub.c:4035 getname_flags.part.0+0x4c/0x550 fs/namei.c:139 getname_flags+0x93/0xf0 include/linux/audit.h:322 vfs_fstatat+0x86/0x160 fs/stat.c:340 __do_sys_newfstatat+0xa2/0x130 fs/stat.c:505 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88807f1d5700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88807f1d5780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88807f1d5800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88807f1d5880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88807f1d5900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: slab-use-after-free in l2cap_send_cmd+0x90a/0x920 net/bluetooth/l2cap_core.c:964 Read of size 8 at addr ffff888062662800 by task kworker/u9:2/24875 CPU: 1 PID: 24875 Comm: kworker/u9:2 Tainted: G B 6.10.0-syzkaller-09703-gd7e78951a8b8 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 Workqueue: hci0 hci_rx_work Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114 print_address_description mm/kasan/report.c:377 [inline] print_report+0xc3/0x620 mm/kasan/report.c:488 kasan_report+0xd9/0x110 mm/kasan/report.c:601 l2cap_send_cmd+0x90a/0x920 net/bluetooth/l2cap_core.c:964 l2cap_connect.constprop.0+0x6f7/0x1270 net/bluetooth/l2cap_core.c:4034 l2cap_connect_req net/bluetooth/l2cap_core.c:4080 [inline] l2cap_bredr_sig_cmd net/bluetooth/l2cap_core.c:4772 [inline] l2cap_sig_channel net/bluetooth/l2cap_core.c:5543 [inline] l2cap_recv_frame+0xf0b/0x8eb0 net/bluetooth/l2cap_core.c:6824 l2cap_recv_acldata+0x9b4/0xb70 net/bluetooth/l2cap_core.c:7513 hci_acldata_packet net/bluetooth/hci_core.c:3797 [inline] hci_rx_work+0xaab/0x1610 net/bluetooth/hci_core.c:4034 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c4/0x3a0 kernel/kthread.c:389 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Allocated by task 26537: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:370 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:387 kmalloc_noprof include/linux/slab.h:681 [inline] kzalloc_noprof include/linux/slab.h:807 [inline] l2cap_conn_add.part.0+0x60/0xa60 net/bluetooth/l2cap_core.c:6867 l2cap_conn_add net/bluetooth/l2cap_core.c:69 [inline] l2cap_connect_cfm+0x428/0xf80 net/bluetooth/l2cap_core.c:7244 hci_connect_cfm include/net/bluetooth/hci_core.h:1965 [inline] hci_remote_features_evt+0x54b/0x9e0 net/bluetooth/hci_event.c:3720 hci_event_func net/bluetooth/hci_event.c:7445 [inline] hci_event_packet+0x9ee/0x1180 net/bluetooth/hci_event.c:7497 hci_rx_work+0x2c6/0x1610 net/bluetooth/hci_core.c:4029 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c4/0x3a0 kernel/kthread.c:389 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Freed by task 26537: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:579 poison_slab_object+0xf7/0x160 mm/kasan/common.c:240 __kasan_slab_free+0x32/0x50 mm/kasan/common.c:256 kasan_slab_free include/linux/kasan.h:184 [inline] slab_free_hook mm/slub.c:2235 [inline] slab_free mm/slub.c:4464 [inline] kfree+0x12a/0x3b0 mm/slub.c:4585 l2cap_conn_free net/bluetooth/l2cap_core.c:1810 [inline] kref_put include/linux/kref.h:65 [inline] l2cap_conn_put net/bluetooth/l2cap_core.c:1822 [inline] l2cap_conn_del+0x59f/0x740 net/bluetooth/l2cap_core.c:1802 l2cap_connect_cfm+0x9e6/0xf80 net/bluetooth/l2cap_core.c:7240 hci_connect_cfm include/net/bluetooth/hci_core.h:1965 [inline] hci_conn_failed+0x1c6/0x370 net/bluetooth/hci_conn.c:1265 hci_abort_conn_sync+0x75a/0xb50 net/bluetooth/hci_sync.c:5510 abort_conn_sync+0x197/0x360 net/bluetooth/hci_conn.c:2917 hci_cmd_sync_work+0x1a7/0x410 net/bluetooth/hci_sync.c:328 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c4/0x3a0 kernel/kthread.c:389 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Last potentially related work creation: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 __kasan_record_aux_stack+0xba/0xd0 mm/kasan/generic.c:541 insert_work+0x36/0x230 kernel/workqueue.c:2185 __queue_work+0x97e/0x1070 kernel/workqueue.c:2341 call_timer_fn+0x1a3/0x610 kernel/time/timer.c:1792 expire_timers kernel/time/timer.c:1838 [inline] __run_timers+0x567/0xaf0 kernel/time/timer.c:2417 __run_timer_base kernel/time/timer.c:2428 [inline] __run_timer_base kernel/time/timer.c:2421 [inline] run_timer_base+0x111/0x190 kernel/time/timer.c:2437 run_timer_softirq+0x1a/0x40 kernel/time/timer.c:2447 handle_softirqs+0x219/0x8f0 kernel/softirq.c:554 __do_softirq kernel/softirq.c:588 [inline] invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu kernel/softirq.c:637 [inline] irq_exit_rcu+0xbb/0x120 kernel/softirq.c:649 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0x95/0xb0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 Second to last potentially related work creation: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 __kasan_record_aux_stack+0xba/0xd0 mm/kasan/generic.c:541 insert_work+0x36/0x230 kernel/workqueue.c:2185 __queue_work+0x3f8/0x1070 kernel/workqueue.c:2345 queue_work_on+0x11a/0x140 kernel/workqueue.c:2392 queue_work include/linux/workqueue.h:621 [inline] l2cap_conn_ready net/bluetooth/l2cap_core.c:1640 [inline] l2cap_connect_cfm+0x9c9/0xf80 net/bluetooth/l2cap_core.c:7285 hci_connect_cfm include/net/bluetooth/hci_core.h:1965 [inline] hci_remote_features_evt+0x54b/0x9e0 net/bluetooth/hci_event.c:3720 hci_event_func net/bluetooth/hci_event.c:7445 [inline] hci_event_packet+0x9ee/0x1180 net/bluetooth/hci_event.c:7497 hci_rx_work+0x2c6/0x1610 net/bluetooth/hci_core.c:4029 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c4/0x3a0 kernel/kthread.c:389 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 The buggy address belongs to the object at ffff888062662800 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 0 bytes inside of freed 1024-byte region [ffff888062662800, ffff888062662c00) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x62660 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 anon flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffefff(slab) raw: 00fff00000000040 ffff888015441dc0 0000000000000000 dead000000000001 raw: 0000000000000000 0000000000100010 00000001ffffefff 0000000000000000 head: 00fff00000000040 ffff888015441dc0 0000000000000000 dead000000000001 head: 0000000000000000 0000000000100010 00000001ffffefff 0000000000000000 head: 00fff00000000003 ffffea0001899801 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x152820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 2854, tgid 2854 (kworker/u8:9), ts 1559074969014, free_ts 1557599401370 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1473 prep_new_page mm/page_alloc.c:1481 [inline] get_page_from_freelist+0x1353/0x2e50 mm/page_alloc.c:3425 __alloc_pages_noprof+0x22b/0x2460 mm/page_alloc.c:4683 __alloc_pages_node_noprof include/linux/gfp.h:269 [inline] alloc_pages_node_noprof include/linux/gfp.h:296 [inline] alloc_slab_page+0x56/0x110 mm/slub.c:2304 allocate_slab mm/slub.c:2467 [inline] new_slab+0x84/0x260 mm/slub.c:2520 ___slab_alloc+0xdac/0x1870 mm/slub.c:3706 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3796 __slab_alloc_node mm/slub.c:3849 [inline] slab_alloc_node mm/slub.c:4016 [inline] __do_kmalloc_node mm/slub.c:4148 [inline] __kmalloc_noprof+0x367/0x400 mm/slub.c:4161 kmalloc_noprof include/linux/slab.h:685 [inline] kzalloc_noprof include/linux/slab.h:807 [inline] ieee802_11_parse_elems_full+0xea/0x1680 net/mac80211/parse.c:958 ieee802_11_parse_elems_crc net/mac80211/ieee80211_i.h:2361 [inline] ieee802_11_parse_elems net/mac80211/ieee80211_i.h:2368 [inline] ieee80211_inform_bss+0xfd/0x1100 net/mac80211/scan.c:79 rdev_inform_bss net/wireless/rdev-ops.h:418 [inline] cfg80211_inform_single_bss_data+0x8e5/0x1dc0 net/wireless/scan.c:2335 cfg80211_inform_bss_data+0x205/0x39c0 net/wireless/scan.c:3159 cfg80211_inform_bss_frame_data+0x271/0x7b0 net/wireless/scan.c:3249 ieee80211_bss_info_update+0x311/0xab0 net/mac80211/scan.c:226 ieee80211_rx_bss_info net/mac80211/ibss.c:1100 [inline] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1579 [inline] ieee80211_ibss_rx_queued_mgmt+0x1898/0x2f40 net/mac80211/ibss.c:1606 ieee80211_iface_process_skb net/mac80211/iface.c:1588 [inline] ieee80211_iface_work+0xc0b/0xf00 net/mac80211/iface.c:1642 page last free pid 5164 tgid 5164 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1093 [inline] free_unref_page+0x64a/0xe40 mm/page_alloc.c:2588 kasan_depopulate_vmalloc_pte+0x63/0x80 mm/kasan/shadow.c:408 apply_to_pte_range mm/memory.c:2746 [inline] apply_to_pmd_range mm/memory.c:2790 [inline] apply_to_pud_range mm/memory.c:2826 [inline] apply_to_p4d_range mm/memory.c:2862 [inline] __apply_to_page_range+0x798/0xdd0 mm/memory.c:2896 kasan_release_vmalloc+0xac/0xc0 mm/kasan/shadow.c:525 purge_vmap_node+0x3fc/0x920 mm/vmalloc.c:2207 __purge_vmap_area_lazy+0x9ca/0xc10 mm/vmalloc.c:2289 drain_vmap_area_work+0x27/0x40 mm/vmalloc.c:2323 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c4/0x3a0 kernel/kthread.c:389 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Memory state around the buggy address: ffff888062662700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888062662780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888062662800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888062662880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888062662900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ================================================================== ================================================================== BUG: KASAN: slab-out-of-bounds in l2cap_send_cmd+0x8b7/0x920 net/bluetooth/l2cap_core.c:964 Read of size 8 at addr ffff88807f1d67e0 by task kworker/u9:2/24875 CPU: 1 PID: 24875 Comm: kworker/u9:2 Tainted: G B 6.10.0-syzkaller-09703-gd7e78951a8b8 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 Workqueue: hci0 hci_rx_work Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:114 print_address_description mm/kasan/report.c:377 [inline] print_report+0xc3/0x620 mm/kasan/report.c:488 kasan_report+0xd9/0x110 mm/kasan/report.c:601 l2cap_send_cmd+0x8b7/0x920 net/bluetooth/l2cap_core.c:964 l2cap_connect.constprop.0+0x6f7/0x1270 net/bluetooth/l2cap_core.c:4034 l2cap_connect_req net/bluetooth/l2cap_core.c:4080 [inline] l2cap_bredr_sig_cmd net/bluetooth/l2cap_core.c:4772 [inline] l2cap_sig_channel net/bluetooth/l2cap_core.c:5543 [inline] l2cap_recv_frame+0xf0b/0x8eb0 net/bluetooth/l2cap_core.c:6824 l2cap_recv_acldata+0x9b4/0xb70 net/bluetooth/l2cap_core.c:7513 hci_acldata_packet net/bluetooth/hci_core.c:3797 [inline] hci_rx_work+0xaab/0x1610 net/bluetooth/hci_core.c:4034 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c4/0x3a0 kernel/kthread.c:389 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Allocated by task 5169: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:370 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:387 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slub.c:4149 [inline] __kmalloc_noprof+0x1e8/0x400 mm/slub.c:4161 kmalloc_noprof include/linux/slab.h:685 [inline] kzalloc_noprof include/linux/slab.h:807 [inline] ieee802_11_parse_elems_full+0xea/0x1680 net/mac80211/parse.c:958 ieee802_11_parse_elems_crc net/mac80211/ieee80211_i.h:2361 [inline] ieee802_11_parse_elems net/mac80211/ieee80211_i.h:2368 [inline] ieee80211_inform_bss+0xfd/0x1100 net/mac80211/scan.c:79 rdev_inform_bss net/wireless/rdev-ops.h:418 [inline] cfg80211_inform_single_bss_data+0x8e5/0x1dc0 net/wireless/scan.c:2335 cfg80211_inform_bss_data+0x205/0x39c0 net/wireless/scan.c:3159 cfg80211_inform_bss_frame_data+0x271/0x7b0 net/wireless/scan.c:3249 ieee80211_bss_info_update+0x311/0xab0 net/mac80211/scan.c:226 ieee80211_scan_rx+0x474/0xac0 net/mac80211/scan.c:340 __ieee80211_rx_handle_packet net/mac80211/rx.c:5225 [inline] ieee80211_rx_list+0x1be3/0x2e90 net/mac80211/rx.c:5462 ieee80211_rx_napi+0xdd/0x400 net/mac80211/rx.c:5485 ieee80211_rx include/net/mac80211.h:5124 [inline] ieee80211_handle_queued_frames+0xd5/0x130 net/mac80211/main.c:439 tasklet_action_common.constprop.0+0x24f/0x3e0 kernel/softirq.c:785 handle_softirqs+0x219/0x8f0 kernel/softirq.c:554 do_softirq kernel/softirq.c:455 [inline] do_softirq+0xb2/0xf0 kernel/softirq.c:442 __local_bh_enable_ip+0x100/0x120 kernel/softirq.c:382 spin_unlock_bh include/linux/spinlock.h:396 [inline] ptr_ring_consume_bh include/linux/ptr_ring.h:367 [inline] wg_packet_encrypt_worker+0x27d/0xbb0 drivers/net/wireguard/send.c:293 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c4/0x3a0 kernel/kthread.c:389 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Freed by task 5169: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:579 poison_slab_object+0xf7/0x160 mm/kasan/common.c:240 __kasan_slab_free+0x32/0x50 mm/kasan/common.c:256 kasan_slab_free include/linux/kasan.h:184 [inline] slab_free_hook mm/slub.c:2235 [inline] slab_free mm/slub.c:4464 [inline] kfree+0x12a/0x3b0 mm/slub.c:4585 ieee80211_inform_bss+0x76e/0x1100 net/mac80211/scan.c:160 rdev_inform_bss net/wireless/rdev-ops.h:418 [inline] cfg80211_inform_single_bss_data+0x8e5/0x1dc0 net/wireless/scan.c:2335 cfg80211_inform_bss_data+0x205/0x39c0 net/wireless/scan.c:3159 cfg80211_inform_bss_frame_data+0x271/0x7b0 net/wireless/scan.c:3249 ieee80211_bss_info_update+0x311/0xab0 net/mac80211/scan.c:226 ieee80211_scan_rx+0x474/0xac0 net/mac80211/scan.c:340 __ieee80211_rx_handle_packet net/mac80211/rx.c:5225 [inline] ieee80211_rx_list+0x1be3/0x2e90 net/mac80211/rx.c:5462 ieee80211_rx_napi+0xdd/0x400 net/mac80211/rx.c:5485 ieee80211_rx include/net/mac80211.h:5124 [inline] ieee80211_handle_queued_frames+0xd5/0x130 net/mac80211/main.c:439 tasklet_action_common.constprop.0+0x24f/0x3e0 kernel/softirq.c:785 handle_softirqs+0x219/0x8f0 kernel/softirq.c:554 do_softirq kernel/softirq.c:455 [inline] do_softirq+0xb2/0xf0 kernel/softirq.c:442 __local_bh_enable_ip+0x100/0x120 kernel/softirq.c:382 spin_unlock_bh include/linux/spinlock.h:396 [inline] ptr_ring_consume_bh include/linux/ptr_ring.h:367 [inline] wg_packet_encrypt_worker+0x27d/0xbb0 drivers/net/wireguard/send.c:293 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c4/0x3a0 kernel/kthread.c:389 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 The buggy address belongs to the object at ffff88807f1d6000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 992 bytes to the right of allocated 1024-byte region [ffff88807f1d6000, ffff88807f1d6400) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7f1d0 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffefff(slab) raw: 00fff00000000040 ffff888015441dc0 ffffea0000b5aa00 dead000000000002 raw: 0000000000000000 0000000000100010 00000001ffffefff 0000000000000000 head: 00fff00000000040 ffff888015441dc0 ffffea0000b5aa00 dead000000000002 head: 0000000000000000 0000000000100010 00000001ffffefff 0000000000000000 head: 00fff00000000003 ffffea0001fc7401 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 4762, tgid 4762 (dhcpcd), ts 74550015043, free_ts 74407549516 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1473 prep_new_page mm/page_alloc.c:1481 [inline] get_page_from_freelist+0x1353/0x2e50 mm/page_alloc.c:3425 __alloc_pages_noprof+0x22b/0x2460 mm/page_alloc.c:4683 __alloc_pages_node_noprof include/linux/gfp.h:269 [inline] alloc_pages_node_noprof include/linux/gfp.h:296 [inline] alloc_slab_page+0x56/0x110 mm/slub.c:2304 allocate_slab mm/slub.c:2467 [inline] new_slab+0x84/0x260 mm/slub.c:2520 ___slab_alloc+0xdac/0x1870 mm/slub.c:3706 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3796 __slab_alloc_node mm/slub.c:3849 [inline] slab_alloc_node mm/slub.c:4016 [inline] __do_kmalloc_node mm/slub.c:4148 [inline] __kmalloc_node_track_caller_noprof+0x355/0x430 mm/slub.c:4168 kmalloc_reserve+0xef/0x2c0 net/core/skbuff.c:605 __alloc_skb+0x164/0x380 net/core/skbuff.c:674 alloc_skb include/linux/skbuff.h:1320 [inline] nlmsg_new include/net/netlink.h:1015 [inline] inet6_rt_notify+0xf0/0x2c0 net/ipv6/route.c:6180 fib6_add_rt2node net/ipv6/ip6_fib.c:1266 [inline] fib6_add+0x2503/0x4ba0 net/ipv6/ip6_fib.c:1495 __ip6_ins_rt net/ipv6/route.c:1314 [inline] ip6_route_add+0x8d/0x190 net/ipv6/route.c:3857 addrconf_prefix_route+0x2fe/0x510 net/ipv6/addrconf.c:2486 inet6_addr_add+0x609/0xbe0 net/ipv6/addrconf.c:3063 inet6_rtm_newaddr+0x11e7/0x1ab0 net/ipv6/addrconf.c:5048 page last free pid 4893 tgid 4893 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1093 [inline] free_unref_page+0x64a/0xe40 mm/page_alloc.c:2588 __put_partials+0x14c/0x170 mm/slub.c:3034 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x192/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3979 [inline] slab_alloc_node mm/slub.c:4028 [inline] kmem_cache_alloc_noprof+0x121/0x2f0 mm/slub.c:4035 getname_flags.part.0+0x4c/0x550 fs/namei.c:139 getname_flags+0x93/0xf0 include/linux/audit.h:322 vfs_fstatat+0x86/0x160 fs/stat.c:340 __do_sys_newfstatat+0xa2/0x130 fs/stat.c:505 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff88807f1d6680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88807f1d6700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88807f1d6780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88807f1d6800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88807f1d6880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== Oops: general protection fault, probably for non-canonical address 0xdffffc0000000064: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000320-0x0000000000000327] CPU: 1 PID: 24875 Comm: kworker/u9:2 Tainted: G B 6.10.0-syzkaller-09703-gd7e78951a8b8 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 Workqueue: hci0 hci_rx_work RIP: 0010:l2cap_send_cmd+0x5d0/0x920 net/bluetooth/l2cap_core.c:964 Code: 80 3c 02 00 0f 85 02 03 00 00 49 8b ac 24 e0 0f 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d bd 22 03 00 00 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 ea 02 00 00 RSP: 0018:ffffc90008b377f8 EFLAGS: 00010212 RAX: dffffc0000000000 RBX: ffff88807d4c18c0 RCX: ffffc90013b1e000 RDX: 0000000000000064 RSI: ffffffff81e8788e RDI: 0000000000000322 RBP: 0000000000000000 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000000 R11: 3d3d3d3d3d3d3d3d R12: ffff88807f1d5800 R13: ffff888066642548 R14: ffffc90008b378f0 R15: ffff888062662800 FS: 0000000000000000(0000) GS:ffff8880b9300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7559958400 CR3: 0000000062e3c000 CR4: 0000000000350ef0 Call Trace: l2cap_connect.constprop.0+0x6f7/0x1270 net/bluetooth/l2cap_core.c:4034 l2cap_connect_req net/bluetooth/l2cap_core.c:4080 [inline] l2cap_bredr_sig_cmd net/bluetooth/l2cap_core.c:4772 [inline] l2cap_sig_channel net/bluetooth/l2cap_core.c:5543 [inline] l2cap_recv_frame+0xf0b/0x8eb0 net/bluetooth/l2cap_core.c:6824 l2cap_recv_acldata+0x9b4/0xb70 net/bluetooth/l2cap_core.c:7513 hci_acldata_packet net/bluetooth/hci_core.c:3797 [inline] hci_rx_work+0xaab/0x1610 net/bluetooth/hci_core.c:4034 process_one_work+0x9c8/0x1b40 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x6c8/0xf20 kernel/workqueue.c:3390 kthread+0x2c4/0x3a0 kernel/kthread.c:389 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:l2cap_send_cmd+0x5d0/0x920 net/bluetooth/l2cap_core.c:964 Code: 80 3c 02 00 0f 85 02 03 00 00 49 8b ac 24 e0 0f 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d bd 22 03 00 00 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 ea 02 00 00 RSP: 0018:ffffc90008b377f8 EFLAGS: 00010212 RAX: dffffc0000000000 RBX: ffff88807d4c18c0 RCX: ffffc90013b1e000 RDX: 0000000000000064 RSI: ffffffff81e8788e RDI: 0000000000000322 RBP: 0000000000000000 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000000 R11: 3d3d3d3d3d3d3d3d R12: ffff88807f1d5800 R13: ffff888066642548 R14: ffffc90008b378f0 R15: ffff888062662800 FS: 0000000000000000(0000) GS:ffff8880b9300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7559958400 CR3: 0000000062e3c000 CR4: 0000000000350ef0 ---------------- Code disassembly (best guess): 0: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 4: 0f 85 02 03 00 00 jne 0x30c a: 49 8b ac 24 e0 0f 00 mov 0xfe0(%r12),%rbp 11: 00 12: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 19: fc ff df 1c: 48 8d bd 22 03 00 00 lea 0x322(%rbp),%rdi 23: 48 89 fa mov %rdi,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax <-- trapping instruction 2e: 48 89 fa mov %rdi,%rdx 31: 83 e2 07 and $0x7,%edx 34: 38 d0 cmp %dl,%al 36: 7f 08 jg 0x40 38: 84 c0 test %al,%al 3a: 0f 85 ea 02 00 00 jne 0x32a