Date
July 18, 2025, 11:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.667289] ================================================================== [ 17.667398] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00 [ 17.667452] Read of size 1 at addr fff00000c7848510 by task kunit_try_catch/259 [ 17.667504] [ 17.667581] CPU: 0 UID: 0 PID: 259 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 17.667670] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.667952] Hardware name: linux,dummy-virt (DT) [ 17.668040] Call trace: [ 17.668080] show_stack+0x20/0x38 (C) [ 17.668400] dump_stack_lvl+0x8c/0xd0 [ 17.668491] print_report+0x118/0x5d0 [ 17.668543] kasan_report+0xdc/0x128 [ 17.668688] __asan_report_load1_noabort+0x20/0x30 [ 17.668764] kasan_strings+0x95c/0xb00 [ 17.668817] kunit_try_run_case+0x170/0x3f0 [ 17.669011] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.669211] kthread+0x328/0x630 [ 17.669278] ret_from_fork+0x10/0x20 [ 17.669433] [ 17.669502] Allocated by task 259: [ 17.669690] kasan_save_stack+0x3c/0x68 [ 17.669861] kasan_save_track+0x20/0x40 [ 17.670008] kasan_save_alloc_info+0x40/0x58 [ 17.670114] __kasan_kmalloc+0xd4/0xd8 [ 17.670276] __kmalloc_cache_noprof+0x16c/0x3c0 [ 17.670352] kasan_strings+0xc8/0xb00 [ 17.670717] kunit_try_run_case+0x170/0x3f0 [ 17.670804] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.670909] kthread+0x328/0x630 [ 17.670947] ret_from_fork+0x10/0x20 [ 17.671023] [ 17.671288] Freed by task 259: [ 17.671382] kasan_save_stack+0x3c/0x68 [ 17.671489] kasan_save_track+0x20/0x40 [ 17.671593] kasan_save_free_info+0x4c/0x78 [ 17.671668] __kasan_slab_free+0x6c/0x98 [ 17.671940] kfree+0x214/0x3c8 [ 17.672090] kasan_strings+0x24c/0xb00 [ 17.672150] kunit_try_run_case+0x170/0x3f0 [ 17.672190] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.672491] kthread+0x328/0x630 [ 17.672599] ret_from_fork+0x10/0x20 [ 17.672954] [ 17.673273] The buggy address belongs to the object at fff00000c7848500 [ 17.673273] which belongs to the cache kmalloc-32 of size 32 [ 17.673379] The buggy address is located 16 bytes inside of [ 17.673379] freed 32-byte region [fff00000c7848500, fff00000c7848520) [ 17.673484] [ 17.673584] The buggy address belongs to the physical page: [ 17.673641] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107848 [ 17.673846] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.674038] page_type: f5(slab) [ 17.674084] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 17.674166] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 17.674209] page dumped because: kasan: bad access detected [ 17.674242] [ 17.674264] Memory state around the buggy address: [ 17.674298] fff00000c7848400: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 17.674356] fff00000c7848480: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 17.674441] >fff00000c7848500: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 17.674481] ^ [ 17.674546] fff00000c7848580: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 17.674600] fff00000c7848600: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 17.674640] ==================================================================
[ 14.126128] ================================================================== [ 14.126485] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80 [ 14.126788] Read of size 1 at addr ffff888103a23e10 by task kunit_try_catch/278 [ 14.127085] [ 14.127257] CPU: 0 UID: 0 PID: 278 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 14.127311] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.127322] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.127341] Call Trace: [ 14.127357] <TASK> [ 14.127372] dump_stack_lvl+0x73/0xb0 [ 14.127399] print_report+0xd1/0x610 [ 14.127419] ? __virt_addr_valid+0x1db/0x2d0 [ 14.127441] ? kasan_strings+0xcbc/0xe80 [ 14.127460] ? kasan_complete_mode_report_info+0x64/0x200 [ 14.127483] ? kasan_strings+0xcbc/0xe80 [ 14.127503] kasan_report+0x141/0x180 [ 14.127524] ? kasan_strings+0xcbc/0xe80 [ 14.127549] __asan_report_load1_noabort+0x18/0x20 [ 14.127573] kasan_strings+0xcbc/0xe80 [ 14.127592] ? trace_hardirqs_on+0x37/0xe0 [ 14.127615] ? __pfx_kasan_strings+0x10/0x10 [ 14.127635] ? finish_task_switch.isra.0+0x153/0x700 [ 14.127657] ? __switch_to+0x47/0xf50 [ 14.127682] ? __schedule+0x10cc/0x2b60 [ 14.127703] ? __pfx_read_tsc+0x10/0x10 [ 14.127724] ? ktime_get_ts64+0x86/0x230 [ 14.127746] kunit_try_run_case+0x1a5/0x480 [ 14.127770] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.127793] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.127816] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.127839] ? __kthread_parkme+0x82/0x180 [ 14.127858] ? preempt_count_sub+0x50/0x80 [ 14.127881] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.127905] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.127929] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.127953] kthread+0x337/0x6f0 [ 14.127973] ? trace_preempt_on+0x20/0xc0 [ 14.127995] ? __pfx_kthread+0x10/0x10 [ 14.128015] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.128036] ? calculate_sigpending+0x7b/0xa0 [ 14.128059] ? __pfx_kthread+0x10/0x10 [ 14.128079] ret_from_fork+0x116/0x1d0 [ 14.128098] ? __pfx_kthread+0x10/0x10 [ 14.128117] ret_from_fork_asm+0x1a/0x30 [ 14.128148] </TASK> [ 14.128157] [ 14.136345] Allocated by task 278: [ 14.136505] kasan_save_stack+0x45/0x70 [ 14.136644] kasan_save_track+0x18/0x40 [ 14.136779] kasan_save_alloc_info+0x3b/0x50 [ 14.136927] __kasan_kmalloc+0xb7/0xc0 [ 14.137064] __kmalloc_cache_noprof+0x189/0x420 [ 14.137219] kasan_strings+0xc0/0xe80 [ 14.138342] kunit_try_run_case+0x1a5/0x480 [ 14.138603] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.138879] kthread+0x337/0x6f0 [ 14.140202] ret_from_fork+0x116/0x1d0 [ 14.140432] ret_from_fork_asm+0x1a/0x30 [ 14.140653] [ 14.140751] Freed by task 278: [ 14.140908] kasan_save_stack+0x45/0x70 [ 14.141691] kasan_save_track+0x18/0x40 [ 14.141869] kasan_save_free_info+0x3f/0x60 [ 14.142281] __kasan_slab_free+0x56/0x70 [ 14.142501] kfree+0x222/0x3f0 [ 14.142621] kasan_strings+0x2aa/0xe80 [ 14.142811] kunit_try_run_case+0x1a5/0x480 [ 14.143147] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.143623] kthread+0x337/0x6f0 [ 14.143860] ret_from_fork+0x116/0x1d0 [ 14.144207] ret_from_fork_asm+0x1a/0x30 [ 14.144425] [ 14.144665] The buggy address belongs to the object at ffff888103a23e00 [ 14.144665] which belongs to the cache kmalloc-32 of size 32 [ 14.145364] The buggy address is located 16 bytes inside of [ 14.145364] freed 32-byte region [ffff888103a23e00, ffff888103a23e20) [ 14.146574] [ 14.146761] The buggy address belongs to the physical page: [ 14.147220] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103a23 [ 14.147488] flags: 0x200000000000000(node=0|zone=2) [ 14.147657] page_type: f5(slab) [ 14.147780] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 14.148011] raw: 0000000000000000 0000000000400040 00000000f5000000 0000000000000000 [ 14.148240] page dumped because: kasan: bad access detected [ 14.148430] [ 14.148526] Memory state around the buggy address: [ 14.148749] ffff888103a23d00: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 14.149033] ffff888103a23d80: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 14.149264] >ffff888103a23e00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.150152] ^ [ 14.150336] ffff888103a23e80: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 14.150758] ffff888103a23f00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.151285] ==================================================================