Date
July 2, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 20.433571] ================================================================== [ 20.433678] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00 [ 20.433755] Read of size 1 at addr fff00000c58a9390 by task kunit_try_catch/259 [ 20.433942] [ 20.433976] CPU: 0 UID: 0 PID: 259 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 20.434322] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.434599] Hardware name: linux,dummy-virt (DT) [ 20.434651] Call trace: [ 20.434783] show_stack+0x20/0x38 (C) [ 20.434849] dump_stack_lvl+0x8c/0xd0 [ 20.434899] print_report+0x118/0x608 [ 20.434947] kasan_report+0xdc/0x128 [ 20.435006] __asan_report_load1_noabort+0x20/0x30 [ 20.435061] kasan_strings+0x95c/0xb00 [ 20.435108] kunit_try_run_case+0x170/0x3f0 [ 20.435162] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.435217] kthread+0x328/0x630 [ 20.435262] ret_from_fork+0x10/0x20 [ 20.435313] [ 20.435345] Allocated by task 259: [ 20.435376] kasan_save_stack+0x3c/0x68 [ 20.435418] kasan_save_track+0x20/0x40 [ 20.435458] kasan_save_alloc_info+0x40/0x58 [ 20.435498] __kasan_kmalloc+0xd4/0xd8 [ 20.435536] __kmalloc_cache_noprof+0x16c/0x3c0 [ 20.435591] kasan_strings+0xc8/0xb00 [ 20.435627] kunit_try_run_case+0x170/0x3f0 [ 20.435667] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.436161] kthread+0x328/0x630 [ 20.436223] ret_from_fork+0x10/0x20 [ 20.436482] [ 20.436515] Freed by task 259: [ 20.436548] kasan_save_stack+0x3c/0x68 [ 20.436714] kasan_save_track+0x20/0x40 [ 20.436904] kasan_save_free_info+0x4c/0x78 [ 20.437236] __kasan_slab_free+0x6c/0x98 [ 20.437374] kfree+0x214/0x3c8 [ 20.437557] kasan_strings+0x24c/0xb00 [ 20.437786] kunit_try_run_case+0x170/0x3f0 [ 20.437881] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.437932] kthread+0x328/0x630 [ 20.437966] ret_from_fork+0x10/0x20 [ 20.438222] [ 20.438499] The buggy address belongs to the object at fff00000c58a9380 [ 20.438499] which belongs to the cache kmalloc-32 of size 32 [ 20.438626] The buggy address is located 16 bytes inside of [ 20.438626] freed 32-byte region [fff00000c58a9380, fff00000c58a93a0) [ 20.438802] [ 20.438930] The buggy address belongs to the physical page: [ 20.438995] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1058a9 [ 20.439181] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.439324] page_type: f5(slab) [ 20.439591] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 20.439674] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 20.439874] page dumped because: kasan: bad access detected [ 20.440080] [ 20.440285] Memory state around the buggy address: [ 20.440465] fff00000c58a9280: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 20.440556] fff00000c58a9300: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 20.440779] >fff00000c58a9380: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 20.440958] ^ [ 20.441001] fff00000c58a9400: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 20.441269] fff00000c58a9480: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 20.441493] ==================================================================
[ 13.385665] ================================================================== [ 13.386267] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80 [ 13.386501] Read of size 1 at addr ffff888103988590 by task kunit_try_catch/278 [ 13.386821] [ 13.386930] CPU: 1 UID: 0 PID: 278 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 13.386971] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.386982] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.387198] Call Trace: [ 13.387211] <TASK> [ 13.387227] dump_stack_lvl+0x73/0xb0 [ 13.387255] print_report+0xd1/0x650 [ 13.387277] ? __virt_addr_valid+0x1db/0x2d0 [ 13.387300] ? kasan_strings+0xcbc/0xe80 [ 13.387320] ? kasan_complete_mode_report_info+0x64/0x200 [ 13.387342] ? kasan_strings+0xcbc/0xe80 [ 13.387375] kasan_report+0x141/0x180 [ 13.387398] ? kasan_strings+0xcbc/0xe80 [ 13.387423] __asan_report_load1_noabort+0x18/0x20 [ 13.387446] kasan_strings+0xcbc/0xe80 [ 13.387465] ? trace_hardirqs_on+0x37/0xe0 [ 13.387489] ? __pfx_kasan_strings+0x10/0x10 [ 13.387508] ? finish_task_switch.isra.0+0x153/0x700 [ 13.387530] ? __switch_to+0x47/0xf50 [ 13.387555] ? __schedule+0x10cc/0x2b60 [ 13.387576] ? __pfx_read_tsc+0x10/0x10 [ 13.387596] ? ktime_get_ts64+0x86/0x230 [ 13.387620] kunit_try_run_case+0x1a5/0x480 [ 13.387643] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.387665] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.387692] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.387714] ? __kthread_parkme+0x82/0x180 [ 13.387733] ? preempt_count_sub+0x50/0x80 [ 13.387755] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.387778] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.387800] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.387823] kthread+0x337/0x6f0 [ 13.387842] ? trace_preempt_on+0x20/0xc0 [ 13.387876] ? __pfx_kthread+0x10/0x10 [ 13.387896] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.387916] ? calculate_sigpending+0x7b/0xa0 [ 13.387940] ? __pfx_kthread+0x10/0x10 [ 13.387960] ret_from_fork+0x116/0x1d0 [ 13.387977] ? __pfx_kthread+0x10/0x10 [ 13.387996] ret_from_fork_asm+0x1a/0x30 [ 13.388026] </TASK> [ 13.388036] [ 13.395178] Allocated by task 278: [ 13.395320] kasan_save_stack+0x45/0x70 [ 13.395473] kasan_save_track+0x18/0x40 [ 13.395607] kasan_save_alloc_info+0x3b/0x50 [ 13.395789] __kasan_kmalloc+0xb7/0xc0 [ 13.395980] __kmalloc_cache_noprof+0x189/0x420 [ 13.396209] kasan_strings+0xc0/0xe80 [ 13.396408] kunit_try_run_case+0x1a5/0x480 [ 13.396621] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.397023] kthread+0x337/0x6f0 [ 13.397180] ret_from_fork+0x116/0x1d0 [ 13.397350] ret_from_fork_asm+0x1a/0x30 [ 13.397532] [ 13.397615] Freed by task 278: [ 13.397775] kasan_save_stack+0x45/0x70 [ 13.397937] kasan_save_track+0x18/0x40 [ 13.398109] kasan_save_free_info+0x3f/0x60 [ 13.398287] __kasan_slab_free+0x56/0x70 [ 13.398486] kfree+0x222/0x3f0 [ 13.398634] kasan_strings+0x2aa/0xe80 [ 13.398855] kunit_try_run_case+0x1a5/0x480 [ 13.399038] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.399250] kthread+0x337/0x6f0 [ 13.399412] ret_from_fork+0x116/0x1d0 [ 13.399598] ret_from_fork_asm+0x1a/0x30 [ 13.399771] [ 13.399871] The buggy address belongs to the object at ffff888103988580 [ 13.399871] which belongs to the cache kmalloc-32 of size 32 [ 13.400321] The buggy address is located 16 bytes inside of [ 13.400321] freed 32-byte region [ffff888103988580, ffff8881039885a0) [ 13.400790] [ 13.400888] The buggy address belongs to the physical page: [ 13.401097] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103988 [ 13.401430] flags: 0x200000000000000(node=0|zone=2) [ 13.401621] page_type: f5(slab) [ 13.401797] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 13.402098] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 13.402404] page dumped because: kasan: bad access detected [ 13.402604] [ 13.402674] Memory state around the buggy address: [ 13.403014] ffff888103988480: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 13.403322] ffff888103988500: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 13.403611] >ffff888103988580: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 13.403933] ^ [ 13.404093] ffff888103988600: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 13.404381] ffff888103988680: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 13.404693] ==================================================================