Date
June 18, 2025, 6:43 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 23.309308] ================================================================== [ 23.309439] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00 [ 23.309867] Read of size 1 at addr fff00000c605c810 by task kunit_try_catch/269 [ 23.310047] [ 23.310253] CPU: 0 UID: 0 PID: 269 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc2-next-20250618 #1 PREEMPT [ 23.310458] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 23.310533] Hardware name: linux,dummy-virt (DT) [ 23.310616] Call trace: [ 23.310705] show_stack+0x20/0x38 (C) [ 23.310829] dump_stack_lvl+0x8c/0xd0 [ 23.311251] print_report+0x118/0x608 [ 23.311408] kasan_report+0xdc/0x128 [ 23.311563] __asan_report_load1_noabort+0x20/0x30 [ 23.311683] kasan_strings+0x95c/0xb00 [ 23.311945] kunit_try_run_case+0x170/0x3f0 [ 23.312123] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.312287] kthread+0x328/0x630 [ 23.312408] ret_from_fork+0x10/0x20 [ 23.312547] [ 23.312605] Allocated by task 269: [ 23.312680] kasan_save_stack+0x3c/0x68 [ 23.312803] kasan_save_track+0x20/0x40 [ 23.312933] kasan_save_alloc_info+0x40/0x58 [ 23.313079] __kasan_kmalloc+0xd4/0xd8 [ 23.313177] __kmalloc_cache_noprof+0x16c/0x3c0 [ 23.313317] kasan_strings+0xc8/0xb00 [ 23.313442] kunit_try_run_case+0x170/0x3f0 [ 23.313562] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.313668] kthread+0x328/0x630 [ 23.313747] ret_from_fork+0x10/0x20 [ 23.313843] [ 23.313893] Freed by task 269: [ 23.313960] kasan_save_stack+0x3c/0x68 [ 23.314096] kasan_save_track+0x20/0x40 [ 23.314195] kasan_save_free_info+0x4c/0x78 [ 23.314303] __kasan_slab_free+0x6c/0x98 [ 23.314554] kfree+0x214/0x3c8 [ 23.314786] kasan_strings+0x24c/0xb00 [ 23.314871] kunit_try_run_case+0x170/0x3f0 [ 23.314958] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.315077] kthread+0x328/0x630 [ 23.315163] ret_from_fork+0x10/0x20 [ 23.315263] [ 23.315321] The buggy address belongs to the object at fff00000c605c800 [ 23.315321] which belongs to the cache kmalloc-32 of size 32 [ 23.316121] The buggy address is located 16 bytes inside of [ 23.316121] freed 32-byte region [fff00000c605c800, fff00000c605c820) [ 23.316299] [ 23.316359] The buggy address belongs to the physical page: [ 23.316449] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10605c [ 23.316649] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 23.316827] page_type: f5(slab) [ 23.316922] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 23.317102] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 23.317207] page dumped because: kasan: bad access detected [ 23.317293] [ 23.317349] Memory state around the buggy address: [ 23.317450] fff00000c605c700: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 23.317578] fff00000c605c780: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 23.317757] >fff00000c605c800: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 23.317860] ^ [ 23.317940] fff00000c605c880: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 23.318052] fff00000c605c900: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 23.318176] ==================================================================
[ 13.102569] ================================================================== [ 13.102946] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80 [ 13.103230] Read of size 1 at addr ffff88810262ad90 by task kunit_try_catch/285 [ 13.103531] [ 13.103786] CPU: 0 UID: 0 PID: 285 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250618 #1 PREEMPT(voluntary) [ 13.103836] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.103848] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.103870] Call Trace: [ 13.103886] <TASK> [ 13.103901] dump_stack_lvl+0x73/0xb0 [ 13.103929] print_report+0xd1/0x650 [ 13.103951] ? __virt_addr_valid+0x1db/0x2d0 [ 13.103973] ? kasan_strings+0xcbc/0xe80 [ 13.103992] ? kasan_complete_mode_report_info+0x64/0x200 [ 13.104017] ? kasan_strings+0xcbc/0xe80 [ 13.104037] kasan_report+0x141/0x180 [ 13.104058] ? kasan_strings+0xcbc/0xe80 [ 13.104082] __asan_report_load1_noabort+0x18/0x20 [ 13.104106] kasan_strings+0xcbc/0xe80 [ 13.104124] ? trace_hardirqs_on+0x37/0xe0 [ 13.104147] ? __pfx_kasan_strings+0x10/0x10 [ 13.104167] ? finish_task_switch.isra.0+0x153/0x700 [ 13.104188] ? __switch_to+0x47/0xf50 [ 13.104224] ? __schedule+0x10cc/0x2b60 [ 13.104245] ? __pfx_read_tsc+0x10/0x10 [ 13.104264] ? ktime_get_ts64+0x86/0x230 [ 13.104289] kunit_try_run_case+0x1a5/0x480 [ 13.104311] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.104334] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.104355] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.104378] ? __kthread_parkme+0x82/0x180 [ 13.104397] ? preempt_count_sub+0x50/0x80 [ 13.104420] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.104443] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.104464] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.104486] kthread+0x337/0x6f0 [ 13.104505] ? trace_preempt_on+0x20/0xc0 [ 13.104527] ? __pfx_kthread+0x10/0x10 [ 13.104547] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.104566] ? calculate_sigpending+0x7b/0xa0 [ 13.104589] ? __pfx_kthread+0x10/0x10 [ 13.104611] ret_from_fork+0x116/0x1d0 [ 13.104629] ? __pfx_kthread+0x10/0x10 [ 13.104654] ret_from_fork_asm+0x1a/0x30 [ 13.104683] </TASK> [ 13.104692] [ 13.114141] Allocated by task 285: [ 13.114466] kasan_save_stack+0x45/0x70 [ 13.114695] kasan_save_track+0x18/0x40 [ 13.114994] kasan_save_alloc_info+0x3b/0x50 [ 13.115266] __kasan_kmalloc+0xb7/0xc0 [ 13.115566] __kmalloc_cache_noprof+0x189/0x420 [ 13.115810] kasan_strings+0xc0/0xe80 [ 13.116096] kunit_try_run_case+0x1a5/0x480 [ 13.116443] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.116687] kthread+0x337/0x6f0 [ 13.117023] ret_from_fork+0x116/0x1d0 [ 13.117193] ret_from_fork_asm+0x1a/0x30 [ 13.117527] [ 13.117616] Freed by task 285: [ 13.117750] kasan_save_stack+0x45/0x70 [ 13.118005] kasan_save_track+0x18/0x40 [ 13.118448] kasan_save_free_info+0x3f/0x60 [ 13.118637] __kasan_slab_free+0x56/0x70 [ 13.118875] kfree+0x222/0x3f0 [ 13.119151] kasan_strings+0x2aa/0xe80 [ 13.119422] kunit_try_run_case+0x1a5/0x480 [ 13.119633] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.120008] kthread+0x337/0x6f0 [ 13.120449] ret_from_fork+0x116/0x1d0 [ 13.120595] ret_from_fork_asm+0x1a/0x30 [ 13.120788] [ 13.120862] The buggy address belongs to the object at ffff88810262ad80 [ 13.120862] which belongs to the cache kmalloc-32 of size 32 [ 13.121652] The buggy address is located 16 bytes inside of [ 13.121652] freed 32-byte region [ffff88810262ad80, ffff88810262ada0) [ 13.122176] [ 13.122275] The buggy address belongs to the physical page: [ 13.122670] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10262a [ 13.123057] flags: 0x200000000000000(node=0|zone=2) [ 13.123328] page_type: f5(slab) [ 13.123446] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 13.123917] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 13.124305] page dumped because: kasan: bad access detected [ 13.124537] [ 13.124682] Memory state around the buggy address: [ 13.124910] ffff88810262ac80: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 13.125337] ffff88810262ad00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 13.125623] >ffff88810262ad80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 13.125904] ^ [ 13.126058] ffff88810262ae00: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 13.126373] ffff88810262ae80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 13.126645] ==================================================================