================================================================== BUG: KASAN: slab-use-after-free in instrument_atomic_read_write include/linux/instrumented.h:96 [inline] BUG: KASAN: slab-use-after-free in atomic_fetch_add_relaxed include/linux/atomic/atomic-instrumented.h:252 [inline] BUG: KASAN: slab-use-after-free in __refcount_add include/linux/refcount.h:184 [inline] BUG: KASAN: slab-use-after-free in __refcount_inc include/linux/refcount.h:241 [inline] BUG: KASAN: slab-use-after-free in refcount_inc include/linux/refcount.h:258 [inline] BUG: KASAN: slab-use-after-free in sock_hold include/net/sock.h:774 [inline] BUG: KASAN: slab-use-after-free in sco_sock_timeout+0x97/0x2e0 net/bluetooth/sco.c:92 Write of size 4 at addr ffff88801ac60080 by task kworker/2:0/25 CPU: 2 PID: 25 Comm: kworker/2:0 Not tainted 6.10.0-rc7-syzkaller-g4d145e3f830b #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Workqueue: events sco_sock_timeout 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 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0xef/0x1a0 mm/kasan/generic.c:189 instrument_atomic_read_write include/linux/instrumented.h:96 [inline] atomic_fetch_add_relaxed include/linux/atomic/atomic-instrumented.h:252 [inline] __refcount_add include/linux/refcount.h:184 [inline] __refcount_inc include/linux/refcount.h:241 [inline] refcount_inc include/linux/refcount.h:258 [inline] sock_hold include/net/sock.h:774 [inline] sco_sock_timeout+0x97/0x2e0 net/bluetooth/sco.c:92 process_one_work+0x9c5/0x1b40 kernel/workqueue.c:3248 process_scheduled_works kernel/workqueue.c:3329 [inline] worker_thread+0x6c8/0xf30 kernel/workqueue.c:3409 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Allocated by task 5468: 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:4123 [inline] __kmalloc_noprof+0x1ec/0x410 mm/slub.c:4136 kmalloc_noprof include/linux/slab.h:664 [inline] sk_prot_alloc+0x1a8/0x2a0 net/core/sock.c:2080 sk_alloc+0x36/0xb90 net/core/sock.c:2133 bt_sock_alloc+0x3b/0x3a0 net/bluetooth/af_bluetooth.c:148 sco_sock_alloc net/bluetooth/sco.c:500 [inline] sco_sock_create+0xe3/0x3c0 net/bluetooth/sco.c:531 bt_sock_create+0x182/0x350 net/bluetooth/af_bluetooth.c:132 __sock_create+0x32e/0x800 net/socket.c:1571 sock_create net/socket.c:1622 [inline] __sys_socket_create net/socket.c:1659 [inline] __sys_socket+0x14f/0x260 net/socket.c:1706 __do_sys_socket net/socket.c:1720 [inline] __se_sys_socket net/socket.c:1718 [inline] __x64_sys_socket+0x72/0xb0 net/socket.c:1718 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 Freed by task 5469: 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:2196 [inline] slab_free mm/slub.c:4438 [inline] kfree+0x12a/0x3b0 mm/slub.c:4559 sk_prot_free net/core/sock.c:2116 [inline] __sk_destruct+0x5d8/0x730 net/core/sock.c:2208 sk_destruct+0xc2/0xf0 net/core/sock.c:2223 __sk_free+0xf4/0x3e0 net/core/sock.c:2234 sk_free+0x7c/0xa0 net/core/sock.c:2245 sock_put include/net/sock.h:1879 [inline] sco_sock_kill net/bluetooth/sco.c:431 [inline] sco_sock_kill+0x19d/0x1c0 net/bluetooth/sco.c:421 sco_sock_release+0x154/0x2d0 net/bluetooth/sco.c:1259 __sock_release+0xb0/0x270 net/socket.c:659 sock_close+0x1c/0x30 net/socket.c:1421 __fput+0x408/0xbb0 fs/file_table.c:422 task_work_run+0x14e/0x250 kernel/task_work.c:180 get_signal+0x1ca/0x2710 kernel/signal.c:2681 arch_do_signal_or_restart+0x90/0x7e0 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x14a/0x2a0 kernel/entry/common.c:218 do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88801ac60000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 128 bytes inside of freed 2048-byte region [ffff88801ac60000, ffff88801ac60800) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88801ac60000 pfn:0x1ac60 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 ffff888015442f00 0000000000000000 dead000000000001 raw: ffff88801ac60000 0000000000080007 00000001ffffefff 0000000000000000 head: 00fff00000000040 ffff888015442f00 0000000000000000 dead000000000001 head: ffff88801ac60000 0000000000080007 00000001ffffefff 0000000000000000 head: 00fff00000000003 ffffea00006b1801 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1, tgid 1 (swapper/0), ts 4385196805, free_ts 0 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:2265 allocate_slab mm/slub.c:2428 [inline] new_slab+0x84/0x260 mm/slub.c:2481 ___slab_alloc+0xdac/0x1870 mm/slub.c:3667 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3757 __slab_alloc_node mm/slub.c:3810 [inline] slab_alloc_node mm/slub.c:3990 [inline] kmalloc_trace_noprof+0x2b4/0x300 mm/slub.c:4149 kmalloc_noprof include/linux/slab.h:660 [inline] kzalloc_noprof include/linux/slab.h:778 [inline] acpi_ds_create_walk_state+0x78/0x250 drivers/acpi/acpica/dswstate.c:518 acpi_ds_call_control_method+0xf3/0x6d0 drivers/acpi/acpica/dsmethod.c:498 acpi_ps_parse_aml+0x845/0xcb0 drivers/acpi/acpica/psparse.c:503 acpi_ps_execute_method+0x55a/0xb30 drivers/acpi/acpica/psxface.c:190 acpi_ns_evaluate+0x76c/0xca0 drivers/acpi/acpica/nseval.c:205 acpi_ut_evaluate_object+0xda/0x4a0 drivers/acpi/acpica/uteval.c:60 acpi_rs_get_method_data+0x85/0xf0 drivers/acpi/acpica/rsutils.c:650 acpi_walk_resources+0x15c/0x1f0 drivers/acpi/acpica/rsxface.c:616 page_owner free stack trace missing Memory state around the buggy address: ffff88801ac5ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88801ac60000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88801ac60080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88801ac60100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88801ac60180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================