Date
July 9, 2025, 2:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.474800] ================================================================== [ 19.475114] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00 [ 19.475183] Read of size 1 at addr fff00000c7753290 by task kunit_try_catch/259 [ 19.475238] [ 19.475514] CPU: 1 UID: 0 PID: 259 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc5 #1 PREEMPT [ 19.475628] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 19.475696] Hardware name: linux,dummy-virt (DT) [ 19.475732] Call trace: [ 19.475953] show_stack+0x20/0x38 (C) [ 19.476173] dump_stack_lvl+0x8c/0xd0 [ 19.476271] print_report+0x118/0x608 [ 19.476414] kasan_report+0xdc/0x128 [ 19.476800] __asan_report_load1_noabort+0x20/0x30 [ 19.476894] kasan_strings+0x95c/0xb00 [ 19.476955] kunit_try_run_case+0x170/0x3f0 [ 19.477170] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.477350] kthread+0x328/0x630 [ 19.477406] ret_from_fork+0x10/0x20 [ 19.477628] [ 19.477679] Allocated by task 259: [ 19.478174] kasan_save_stack+0x3c/0x68 [ 19.478336] kasan_save_track+0x20/0x40 [ 19.478471] kasan_save_alloc_info+0x40/0x58 [ 19.478551] __kasan_kmalloc+0xd4/0xd8 [ 19.478883] __kmalloc_cache_noprof+0x16c/0x3c0 [ 19.479230] kasan_strings+0xc8/0xb00 [ 19.479545] kunit_try_run_case+0x170/0x3f0 [ 19.479800] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.479981] kthread+0x328/0x630 [ 19.480186] ret_from_fork+0x10/0x20 [ 19.480414] [ 19.480474] Freed by task 259: [ 19.480564] kasan_save_stack+0x3c/0x68 [ 19.480730] kasan_save_track+0x20/0x40 [ 19.481138] kasan_save_free_info+0x4c/0x78 [ 19.481486] __kasan_slab_free+0x6c/0x98 [ 19.481590] kfree+0x214/0x3c8 [ 19.481966] kasan_strings+0x24c/0xb00 [ 19.482077] kunit_try_run_case+0x170/0x3f0 [ 19.482223] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.482313] kthread+0x328/0x630 [ 19.482643] ret_from_fork+0x10/0x20 [ 19.482748] [ 19.482849] The buggy address belongs to the object at fff00000c7753280 [ 19.482849] which belongs to the cache kmalloc-32 of size 32 [ 19.482986] The buggy address is located 16 bytes inside of [ 19.482986] freed 32-byte region [fff00000c7753280, fff00000c77532a0) [ 19.483166] [ 19.483226] The buggy address belongs to the physical page: [ 19.483372] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107753 [ 19.483765] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.483848] page_type: f5(slab) [ 19.484012] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 19.484218] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 19.484346] page dumped because: kasan: bad access detected [ 19.484383] [ 19.484564] Memory state around the buggy address: [ 19.484719] fff00000c7753180: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 19.484912] fff00000c7753200: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 19.485043] >fff00000c7753280: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 19.485141] ^ [ 19.485327] fff00000c7753300: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 19.485380] fff00000c7753380: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 19.486027] ==================================================================
[ 14.676882] ================================================================== [ 14.677401] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80 [ 14.677636] Read of size 1 at addr ffff8881029cc7d0 by task kunit_try_catch/276 [ 14.678083] [ 14.678265] CPU: 0 UID: 0 PID: 276 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 14.678328] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.678339] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.678358] Call Trace: [ 14.678369] <TASK> [ 14.678383] dump_stack_lvl+0x73/0xb0 [ 14.678422] print_report+0xd1/0x650 [ 14.678443] ? __virt_addr_valid+0x1db/0x2d0 [ 14.678467] ? kasan_strings+0xcbc/0xe80 [ 14.678487] ? kasan_complete_mode_report_info+0x64/0x200 [ 14.678510] ? kasan_strings+0xcbc/0xe80 [ 14.678530] kasan_report+0x141/0x180 [ 14.678552] ? kasan_strings+0xcbc/0xe80 [ 14.678576] __asan_report_load1_noabort+0x18/0x20 [ 14.678611] kasan_strings+0xcbc/0xe80 [ 14.678630] ? trace_hardirqs_on+0x37/0xe0 [ 14.678653] ? __pfx_kasan_strings+0x10/0x10 [ 14.678673] ? finish_task_switch.isra.0+0x153/0x700 [ 14.678697] ? __switch_to+0x47/0xf50 [ 14.678729] ? __schedule+0x10cc/0x2b60 [ 14.678751] ? __pfx_read_tsc+0x10/0x10 [ 14.678796] ? ktime_get_ts64+0x86/0x230 [ 14.678836] kunit_try_run_case+0x1a5/0x480 [ 14.678860] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.678883] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.678917] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.678941] ? __kthread_parkme+0x82/0x180 [ 14.678960] ? preempt_count_sub+0x50/0x80 [ 14.678983] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.679007] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.679031] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.679057] kthread+0x337/0x6f0 [ 14.679075] ? trace_preempt_on+0x20/0xc0 [ 14.679097] ? __pfx_kthread+0x10/0x10 [ 14.679118] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.679140] ? calculate_sigpending+0x7b/0xa0 [ 14.679164] ? __pfx_kthread+0x10/0x10 [ 14.679185] ret_from_fork+0x116/0x1d0 [ 14.679203] ? __pfx_kthread+0x10/0x10 [ 14.679224] ret_from_fork_asm+0x1a/0x30 [ 14.679255] </TASK> [ 14.679265] [ 14.688657] Allocated by task 276: [ 14.688851] kasan_save_stack+0x45/0x70 [ 14.689091] kasan_save_track+0x18/0x40 [ 14.689226] kasan_save_alloc_info+0x3b/0x50 [ 14.689375] __kasan_kmalloc+0xb7/0xc0 [ 14.689505] __kmalloc_cache_noprof+0x189/0x420 [ 14.689735] kasan_strings+0xc0/0xe80 [ 14.689962] kunit_try_run_case+0x1a5/0x480 [ 14.690170] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.690395] kthread+0x337/0x6f0 [ 14.690513] ret_from_fork+0x116/0x1d0 [ 14.690658] ret_from_fork_asm+0x1a/0x30 [ 14.690858] [ 14.690951] Freed by task 276: [ 14.691139] kasan_save_stack+0x45/0x70 [ 14.691334] kasan_save_track+0x18/0x40 [ 14.691538] kasan_save_free_info+0x3f/0x60 [ 14.691833] __kasan_slab_free+0x56/0x70 [ 14.692069] kfree+0x222/0x3f0 [ 14.692237] kasan_strings+0x2aa/0xe80 [ 14.692421] kunit_try_run_case+0x1a5/0x480 [ 14.692630] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.692902] kthread+0x337/0x6f0 [ 14.693055] ret_from_fork+0x116/0x1d0 [ 14.693186] ret_from_fork_asm+0x1a/0x30 [ 14.693322] [ 14.693436] The buggy address belongs to the object at ffff8881029cc7c0 [ 14.693436] which belongs to the cache kmalloc-32 of size 32 [ 14.694026] The buggy address is located 16 bytes inside of [ 14.694026] freed 32-byte region [ffff8881029cc7c0, ffff8881029cc7e0) [ 14.694422] [ 14.694494] The buggy address belongs to the physical page: [ 14.694675] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029cc [ 14.695056] flags: 0x200000000000000(node=0|zone=2) [ 14.695292] page_type: f5(slab) [ 14.695463] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 14.695848] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 14.696079] page dumped because: kasan: bad access detected [ 14.696257] [ 14.696351] Memory state around the buggy address: [ 14.696570] ffff8881029cc680: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 14.696946] ffff8881029cc700: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 14.697294] >ffff8881029cc780: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.697616] ^ [ 14.697852] ffff8881029cc800: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.698171] ffff8881029cc880: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.698462] ==================================================================