Date
July 2, 2025, 11:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 33.175390] ================================================================== [ 33.175444] BUG: KASAN: slab-use-after-free in strlen+0xa8/0xb0 [ 33.175495] Read of size 1 at addr fff00000c993b210 by task kunit_try_catch/292 [ 33.175697] [ 33.175995] CPU: 1 UID: 0 PID: 292 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250702 #1 PREEMPT [ 33.176140] Tainted: [B]=BAD_PAGE, [N]=TEST [ 33.176242] Hardware name: linux,dummy-virt (DT) [ 33.176282] Call trace: [ 33.176307] show_stack+0x20/0x38 (C) [ 33.176363] dump_stack_lvl+0x8c/0xd0 [ 33.176413] print_report+0x118/0x608 [ 33.176464] kasan_report+0xdc/0x128 [ 33.176512] __asan_report_load1_noabort+0x20/0x30 [ 33.176565] strlen+0xa8/0xb0 [ 33.176750] kasan_strings+0x418/0xb00 [ 33.176834] kunit_try_run_case+0x170/0x3f0 [ 33.176890] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.176989] kthread+0x328/0x630 [ 33.177273] ret_from_fork+0x10/0x20 [ 33.177404] [ 33.177467] Allocated by task 292: [ 33.177532] kasan_save_stack+0x3c/0x68 [ 33.177622] kasan_save_track+0x20/0x40 [ 33.177689] kasan_save_alloc_info+0x40/0x58 [ 33.177753] __kasan_kmalloc+0xd4/0xd8 [ 33.177810] __kmalloc_cache_noprof+0x16c/0x3c0 [ 33.177873] kasan_strings+0xc8/0xb00 [ 33.177910] kunit_try_run_case+0x170/0x3f0 [ 33.178203] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.178271] kthread+0x328/0x630 [ 33.178400] ret_from_fork+0x10/0x20 [ 33.178472] [ 33.178503] Freed by task 292: [ 33.178552] kasan_save_stack+0x3c/0x68 [ 33.178609] kasan_save_track+0x20/0x40 [ 33.178650] kasan_save_free_info+0x4c/0x78 [ 33.178716] __kasan_slab_free+0x6c/0x98 [ 33.178765] kfree+0x214/0x3c8 [ 33.178810] kasan_strings+0x24c/0xb00 [ 33.178849] kunit_try_run_case+0x170/0x3f0 [ 33.178892] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.179286] kthread+0x328/0x630 [ 33.179349] ret_from_fork+0x10/0x20 [ 33.179435] [ 33.179478] The buggy address belongs to the object at fff00000c993b200 [ 33.179478] which belongs to the cache kmalloc-32 of size 32 [ 33.179817] The buggy address is located 16 bytes inside of [ 33.179817] freed 32-byte region [fff00000c993b200, fff00000c993b220) [ 33.179963] [ 33.180012] The buggy address belongs to the physical page: [ 33.180063] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10993b [ 33.180158] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 33.180221] page_type: f5(slab) [ 33.180268] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 33.180356] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 33.180482] page dumped because: kasan: bad access detected [ 33.180589] [ 33.180638] Memory state around the buggy address: [ 33.180693] fff00000c993b100: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 33.180750] fff00000c993b180: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 33.180828] >fff00000c993b200: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 33.180870] ^ [ 33.180902] fff00000c993b280: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 33.180956] fff00000c993b300: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 33.180996] ==================================================================
[ 25.317920] ================================================================== [ 25.318249] BUG: KASAN: slab-use-after-free in strlen+0x8f/0xb0 [ 25.318568] Read of size 1 at addr ffff888105a1be50 by task kunit_try_catch/308 [ 25.318895] [ 25.319000] CPU: 0 UID: 0 PID: 308 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250702 #1 PREEMPT(voluntary) [ 25.319052] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.319075] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.319109] Call Trace: [ 25.319131] <TASK> [ 25.319152] dump_stack_lvl+0x73/0xb0 [ 25.319209] print_report+0xd1/0x650 [ 25.319234] ? __virt_addr_valid+0x1db/0x2d0 [ 25.319258] ? strlen+0x8f/0xb0 [ 25.319279] ? kasan_complete_mode_report_info+0x64/0x200 [ 25.319306] ? strlen+0x8f/0xb0 [ 25.319327] kasan_report+0x141/0x180 [ 25.319349] ? strlen+0x8f/0xb0 [ 25.319374] __asan_report_load1_noabort+0x18/0x20 [ 25.319399] strlen+0x8f/0xb0 [ 25.319422] kasan_strings+0x57b/0xe80 [ 25.319442] ? trace_hardirqs_on+0x37/0xe0 [ 25.319468] ? __pfx_kasan_strings+0x10/0x10 [ 25.319489] ? finish_task_switch.isra.0+0x153/0x700 [ 25.319512] ? __switch_to+0x47/0xf50 [ 25.319538] ? __schedule+0x10cc/0x2b60 [ 25.319608] ? __pfx_read_tsc+0x10/0x10 [ 25.319643] ? ktime_get_ts64+0x86/0x230 [ 25.319668] kunit_try_run_case+0x1a5/0x480 [ 25.319693] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.319717] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.319738] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.319760] ? __kthread_parkme+0x82/0x180 [ 25.319781] ? preempt_count_sub+0x50/0x80 [ 25.319803] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.319828] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.319853] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.319878] kthread+0x337/0x6f0 [ 25.319898] ? trace_preempt_on+0x20/0xc0 [ 25.319920] ? __pfx_kthread+0x10/0x10 [ 25.319941] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.319964] ? calculate_sigpending+0x7b/0xa0 [ 25.319998] ? __pfx_kthread+0x10/0x10 [ 25.320020] ret_from_fork+0x116/0x1d0 [ 25.320039] ? __pfx_kthread+0x10/0x10 [ 25.320078] ret_from_fork_asm+0x1a/0x30 [ 25.320110] </TASK> [ 25.320122] [ 25.327838] Allocated by task 308: [ 25.328036] kasan_save_stack+0x45/0x70 [ 25.328521] kasan_save_track+0x18/0x40 [ 25.328714] kasan_save_alloc_info+0x3b/0x50 [ 25.328945] __kasan_kmalloc+0xb7/0xc0 [ 25.329142] __kmalloc_cache_noprof+0x189/0x420 [ 25.329445] kasan_strings+0xc0/0xe80 [ 25.329633] kunit_try_run_case+0x1a5/0x480 [ 25.329807] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.330090] kthread+0x337/0x6f0 [ 25.330261] ret_from_fork+0x116/0x1d0 [ 25.330439] ret_from_fork_asm+0x1a/0x30 [ 25.330604] [ 25.330691] Freed by task 308: [ 25.330827] kasan_save_stack+0x45/0x70 [ 25.331084] kasan_save_track+0x18/0x40 [ 25.331363] kasan_save_free_info+0x3f/0x60 [ 25.331521] __kasan_slab_free+0x56/0x70 [ 25.331739] kfree+0x222/0x3f0 [ 25.331885] kasan_strings+0x2aa/0xe80 [ 25.332122] kunit_try_run_case+0x1a5/0x480 [ 25.332428] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.332667] kthread+0x337/0x6f0 [ 25.332821] ret_from_fork+0x116/0x1d0 [ 25.332982] ret_from_fork_asm+0x1a/0x30 [ 25.333132] [ 25.333473] The buggy address belongs to the object at ffff888105a1be40 [ 25.333473] which belongs to the cache kmalloc-32 of size 32 [ 25.334056] The buggy address is located 16 bytes inside of [ 25.334056] freed 32-byte region [ffff888105a1be40, ffff888105a1be60) [ 25.334651] [ 25.334736] The buggy address belongs to the physical page: [ 25.334907] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105a1b [ 25.335193] flags: 0x200000000000000(node=0|zone=2) [ 25.335430] page_type: f5(slab) [ 25.335698] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 25.336091] raw: 0000000000000000 0000000000400040 00000000f5000000 0000000000000000 [ 25.336502] page dumped because: kasan: bad access detected [ 25.336754] [ 25.336831] Memory state around the buggy address: [ 25.337058] ffff888105a1bd00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 25.337461] ffff888105a1bd80: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 25.337774] >ffff888105a1be00: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 25.338095] ^ [ 25.338613] ffff888105a1be80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 25.338930] ffff888105a1bf00: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 25.339304] ==================================================================
[ 25.063989] ================================================================== [ 25.064299] BUG: KASAN: slab-use-after-free in strlen+0x8f/0xb0 [ 25.064609] Read of size 1 at addr ffff8881057feed0 by task kunit_try_catch/307 [ 25.064947] [ 25.065227] CPU: 1 UID: 0 PID: 307 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250702 #1 PREEMPT(voluntary) [ 25.065280] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.065314] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.065335] Call Trace: [ 25.065347] <TASK> [ 25.065361] dump_stack_lvl+0x73/0xb0 [ 25.065387] print_report+0xd1/0x650 [ 25.065409] ? __virt_addr_valid+0x1db/0x2d0 [ 25.065432] ? strlen+0x8f/0xb0 [ 25.065453] ? kasan_complete_mode_report_info+0x64/0x200 [ 25.065500] ? strlen+0x8f/0xb0 [ 25.065520] kasan_report+0x141/0x180 [ 25.065551] ? strlen+0x8f/0xb0 [ 25.065576] __asan_report_load1_noabort+0x18/0x20 [ 25.065600] strlen+0x8f/0xb0 [ 25.065631] kasan_strings+0x57b/0xe80 [ 25.065650] ? trace_hardirqs_on+0x37/0xe0 [ 25.065672] ? __pfx_kasan_strings+0x10/0x10 [ 25.065693] ? finish_task_switch.isra.0+0x153/0x700 [ 25.065714] ? __switch_to+0x47/0xf50 [ 25.065743] ? __schedule+0x10cc/0x2b60 [ 25.065764] ? __pfx_read_tsc+0x10/0x10 [ 25.065785] ? ktime_get_ts64+0x86/0x230 [ 25.065809] kunit_try_run_case+0x1a5/0x480 [ 25.065833] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.065857] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.065878] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.065900] ? __kthread_parkme+0x82/0x180 [ 25.065920] ? preempt_count_sub+0x50/0x80 [ 25.065943] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.065977] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.066001] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.066026] kthread+0x337/0x6f0 [ 25.066056] ? trace_preempt_on+0x20/0xc0 [ 25.066077] ? __pfx_kthread+0x10/0x10 [ 25.066097] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.066121] ? calculate_sigpending+0x7b/0xa0 [ 25.066151] ? __pfx_kthread+0x10/0x10 [ 25.066172] ret_from_fork+0x116/0x1d0 [ 25.066192] ? __pfx_kthread+0x10/0x10 [ 25.066221] ret_from_fork_asm+0x1a/0x30 [ 25.066252] </TASK> [ 25.066263] [ 25.073242] Allocated by task 307: [ 25.073376] kasan_save_stack+0x45/0x70 [ 25.073521] kasan_save_track+0x18/0x40 [ 25.073652] kasan_save_alloc_info+0x3b/0x50 [ 25.073861] __kasan_kmalloc+0xb7/0xc0 [ 25.074045] __kmalloc_cache_noprof+0x189/0x420 [ 25.074262] kasan_strings+0xc0/0xe80 [ 25.074459] kunit_try_run_case+0x1a5/0x480 [ 25.074664] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.074916] kthread+0x337/0x6f0 [ 25.075077] ret_from_fork+0x116/0x1d0 [ 25.075256] ret_from_fork_asm+0x1a/0x30 [ 25.075503] [ 25.075582] Freed by task 307: [ 25.075743] kasan_save_stack+0x45/0x70 [ 25.075884] kasan_save_track+0x18/0x40 [ 25.076069] kasan_save_free_info+0x3f/0x60 [ 25.076292] __kasan_slab_free+0x56/0x70 [ 25.076451] kfree+0x222/0x3f0 [ 25.076640] kasan_strings+0x2aa/0xe80 [ 25.076830] kunit_try_run_case+0x1a5/0x480 [ 25.077002] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.077248] kthread+0x337/0x6f0 [ 25.077426] ret_from_fork+0x116/0x1d0 [ 25.077609] ret_from_fork_asm+0x1a/0x30 [ 25.077815] [ 25.077897] The buggy address belongs to the object at ffff8881057feec0 [ 25.077897] which belongs to the cache kmalloc-32 of size 32 [ 25.078400] The buggy address is located 16 bytes inside of [ 25.078400] freed 32-byte region [ffff8881057feec0, ffff8881057feee0) [ 25.078927] [ 25.078993] The buggy address belongs to the physical page: [ 25.079159] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1057fe [ 25.079400] flags: 0x200000000000000(node=0|zone=2) [ 25.079581] page_type: f5(slab) [ 25.079696] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 25.080050] raw: 0000000000000000 0000000000400040 00000000f5000000 0000000000000000 [ 25.080384] page dumped because: kasan: bad access detected [ 25.080656] [ 25.080744] Memory state around the buggy address: [ 25.080963] ffff8881057fed80: 00 00 00 fc fc fc fc fc 00 00 00 04 fc fc fc fc [ 25.081302] ffff8881057fee00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 25.081648] >ffff8881057fee80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 25.081989] ^ [ 25.082166] ffff8881057fef00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 25.082385] ffff8881057fef80: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 25.082615] ==================================================================