Date
June 7, 2025, 10:40 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 25.559879] ================================================================== [ 25.560006] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00 [ 25.560128] Read of size 1 at addr fff00000c772d090 by task kunit_try_catch/263 [ 25.560246] [ 25.560326] CPU: 1 UID: 0 PID: 263 Comm: kunit_try_catch Tainted: G B N 6.15.2-rc1 #1 PREEMPT [ 25.560683] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.560752] Hardware name: linux,dummy-virt (DT) [ 25.560863] Call trace: [ 25.560920] show_stack+0x20/0x38 (C) [ 25.561037] dump_stack_lvl+0x8c/0xd0 [ 25.561157] print_report+0x118/0x608 [ 25.561306] kasan_report+0xdc/0x128 [ 25.561439] __asan_report_load1_noabort+0x20/0x30 [ 25.561550] kasan_strings+0x95c/0xb00 [ 25.561703] kunit_try_run_case+0x170/0x3f0 [ 25.561836] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 25.561961] kthread+0x328/0x630 [ 25.562353] ret_from_fork+0x10/0x20 [ 25.562877] [ 25.562975] Allocated by task 263: [ 25.563133] kasan_save_stack+0x3c/0x68 [ 25.563261] kasan_save_track+0x20/0x40 [ 25.563375] kasan_save_alloc_info+0x40/0x58 [ 25.563522] __kasan_kmalloc+0xd4/0xd8 [ 25.563611] __kmalloc_cache_noprof+0x16c/0x3c0 [ 25.563883] kasan_strings+0xc8/0xb00 [ 25.563989] kunit_try_run_case+0x170/0x3f0 [ 25.564122] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 25.564279] kthread+0x328/0x630 [ 25.564464] ret_from_fork+0x10/0x20 [ 25.564619] [ 25.564725] Freed by task 263: [ 25.564880] kasan_save_stack+0x3c/0x68 [ 25.565255] kasan_save_track+0x20/0x40 [ 25.565620] kasan_save_free_info+0x4c/0x78 [ 25.565828] __kasan_slab_free+0x6c/0x98 [ 25.566041] kfree+0x214/0x3c8 [ 25.566153] kasan_strings+0x24c/0xb00 [ 25.566747] kunit_try_run_case+0x170/0x3f0 [ 25.566987] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 25.567281] kthread+0x328/0x630 [ 25.567594] ret_from_fork+0x10/0x20 [ 25.567746] [ 25.567891] The buggy address belongs to the object at fff00000c772d080 [ 25.567891] which belongs to the cache kmalloc-32 of size 32 [ 25.568139] The buggy address is located 16 bytes inside of [ 25.568139] freed 32-byte region [fff00000c772d080, fff00000c772d0a0) [ 25.568424] [ 25.568514] The buggy address belongs to the physical page: [ 25.568692] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10772d [ 25.569466] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 25.569848] page_type: f5(slab) [ 25.570180] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 25.570687] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 25.570982] page dumped because: kasan: bad access detected [ 25.571258] [ 25.571325] Memory state around the buggy address: [ 25.571651] fff00000c772cf80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 25.571824] fff00000c772d000: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 25.571979] >fff00000c772d080: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 25.572161] ^ [ 25.572319] fff00000c772d100: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 25.572599] fff00000c772d180: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 25.573107] ==================================================================
[ 15.878361] ================================================================== [ 15.878709] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80 [ 15.879026] Read of size 1 at addr ffff8881039f3390 by task kunit_try_catch/279 [ 15.879659] [ 15.879803] CPU: 1 UID: 0 PID: 279 Comm: kunit_try_catch Tainted: G B N 6.15.2-rc1 #1 PREEMPT(voluntary) [ 15.879877] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.879894] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 15.879918] Call Trace: [ 15.879943] <TASK> [ 15.879965] dump_stack_lvl+0x73/0xb0 [ 15.879999] print_report+0xd1/0x650 [ 15.880023] ? __virt_addr_valid+0x1db/0x2d0 [ 15.880045] ? kasan_strings+0xcbc/0xe80 [ 15.880066] ? kasan_complete_mode_report_info+0x64/0x200 [ 15.880088] ? kasan_strings+0xcbc/0xe80 [ 15.880108] kasan_report+0x141/0x180 [ 15.880130] ? kasan_strings+0xcbc/0xe80 [ 15.880155] __asan_report_load1_noabort+0x18/0x20 [ 15.880176] kasan_strings+0xcbc/0xe80 [ 15.880196] ? trace_hardirqs_on+0x37/0xe0 [ 15.880218] ? __pfx_kasan_strings+0x10/0x10 [ 15.880238] ? finish_task_switch.isra.0+0x153/0x700 [ 15.880261] ? __switch_to+0x5d9/0xf60 [ 15.880280] ? dequeue_task_fair+0x166/0x4e0 [ 15.880304] ? __schedule+0x10cc/0x2b30 [ 15.880325] ? __pfx_read_tsc+0x10/0x10 [ 15.880345] ? ktime_get_ts64+0x86/0x230 [ 15.880368] kunit_try_run_case+0x1a5/0x480 [ 15.880392] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.880412] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 15.880435] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 15.880457] ? __kthread_parkme+0x82/0x180 [ 15.880479] ? preempt_count_sub+0x50/0x80 [ 15.880502] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.880524] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.880547] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 15.880587] kthread+0x337/0x6f0 [ 15.880606] ? trace_preempt_on+0x20/0xc0 [ 15.880628] ? __pfx_kthread+0x10/0x10 [ 15.880650] ? _raw_spin_unlock_irq+0x47/0x80 [ 15.880671] ? calculate_sigpending+0x7b/0xa0 [ 15.880693] ? __pfx_kthread+0x10/0x10 [ 15.880712] ret_from_fork+0x41/0x80 [ 15.880731] ? __pfx_kthread+0x10/0x10 [ 15.880751] ret_from_fork_asm+0x1a/0x30 [ 15.880781] </TASK> [ 15.880793] [ 15.891917] Allocated by task 279: [ 15.892099] kasan_save_stack+0x45/0x70 [ 15.892222] kasan_save_track+0x18/0x40 [ 15.892766] kasan_save_alloc_info+0x3b/0x50 [ 15.893041] __kasan_kmalloc+0xb7/0xc0 [ 15.893151] __kmalloc_cache_noprof+0x189/0x420 [ 15.893460] kasan_strings+0xc0/0xe80 [ 15.893877] kunit_try_run_case+0x1a5/0x480 [ 15.893987] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.894101] kthread+0x337/0x6f0 [ 15.894182] ret_from_fork+0x41/0x80 [ 15.894271] ret_from_fork_asm+0x1a/0x30 [ 15.894361] [ 15.894414] Freed by task 279: [ 15.894490] kasan_save_stack+0x45/0x70 [ 15.894593] kasan_save_track+0x18/0x40 [ 15.894775] kasan_save_free_info+0x3f/0x60 [ 15.894974] __kasan_slab_free+0x56/0x70 [ 15.896177] kfree+0x222/0x3f0 [ 15.896459] kasan_strings+0x2aa/0xe80 [ 15.896810] kunit_try_run_case+0x1a5/0x480 [ 15.897050] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.897300] kthread+0x337/0x6f0 [ 15.897448] ret_from_fork+0x41/0x80 [ 15.897637] ret_from_fork_asm+0x1a/0x30 [ 15.898204] [ 15.898288] The buggy address belongs to the object at ffff8881039f3380 [ 15.898288] which belongs to the cache kmalloc-32 of size 32 [ 15.899073] The buggy address is located 16 bytes inside of [ 15.899073] freed 32-byte region [ffff8881039f3380, ffff8881039f33a0) [ 15.899798] [ 15.899886] The buggy address belongs to the physical page: [ 15.900263] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039f3 [ 15.900609] flags: 0x200000000000000(node=0|zone=2) [ 15.900837] page_type: f5(slab) [ 15.901160] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 15.901387] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 15.902334] page dumped because: kasan: bad access detected [ 15.902551] [ 15.903070] Memory state around the buggy address: [ 15.903263] ffff8881039f3280: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 15.903475] ffff8881039f3300: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 15.904202] >ffff8881039f3380: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 15.904490] ^ [ 15.904604] ffff8881039f3400: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 15.905929] ffff8881039f3480: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 15.906227] ==================================================================