Date
July 20, 2025, 11:12 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.832846] ================================================================== [ 18.832913] BUG: KASAN: slab-use-after-free in strlen+0xa8/0xb0 [ 18.832963] Read of size 1 at addr fff00000c79c3ad0 by task kunit_try_catch/259 [ 18.833016] [ 18.833291] CPU: 1 UID: 0 PID: 259 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7 #1 PREEMPT [ 18.833664] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.833931] Hardware name: linux,dummy-virt (DT) [ 18.834224] Call trace: [ 18.834317] show_stack+0x20/0x38 (C) [ 18.834504] dump_stack_lvl+0x8c/0xd0 [ 18.834582] print_report+0x118/0x5d0 [ 18.834656] kasan_report+0xdc/0x128 [ 18.834705] __asan_report_load1_noabort+0x20/0x30 [ 18.834759] strlen+0xa8/0xb0 [ 18.834803] kasan_strings+0x418/0xb00 [ 18.834851] kunit_try_run_case+0x170/0x3f0 [ 18.834912] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.834969] kthread+0x328/0x630 [ 18.835014] ret_from_fork+0x10/0x20 [ 18.835064] [ 18.835349] Allocated by task 259: [ 18.835405] kasan_save_stack+0x3c/0x68 [ 18.835550] kasan_save_track+0x20/0x40 [ 18.835590] kasan_save_alloc_info+0x40/0x58 [ 18.835633] __kasan_kmalloc+0xd4/0xd8 [ 18.835673] __kmalloc_cache_noprof+0x16c/0x3c0 [ 18.835714] kasan_strings+0xc8/0xb00 [ 18.835752] kunit_try_run_case+0x170/0x3f0 [ 18.835800] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.835847] kthread+0x328/0x630 [ 18.836164] ret_from_fork+0x10/0x20 [ 18.836227] [ 18.836248] Freed by task 259: [ 18.836286] kasan_save_stack+0x3c/0x68 [ 18.836506] kasan_save_track+0x20/0x40 [ 18.836558] kasan_save_free_info+0x4c/0x78 [ 18.836600] __kasan_slab_free+0x6c/0x98 [ 18.836936] kfree+0x214/0x3c8 [ 18.837102] kasan_strings+0x24c/0xb00 [ 18.837140] kunit_try_run_case+0x170/0x3f0 [ 18.837181] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.837227] kthread+0x328/0x630 [ 18.837261] ret_from_fork+0x10/0x20 [ 18.837673] [ 18.837748] The buggy address belongs to the object at fff00000c79c3ac0 [ 18.837748] which belongs to the cache kmalloc-32 of size 32 [ 18.838035] The buggy address is located 16 bytes inside of [ 18.838035] freed 32-byte region [fff00000c79c3ac0, fff00000c79c3ae0) [ 18.838103] [ 18.838125] The buggy address belongs to the physical page: [ 18.838158] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1079c3 [ 18.838213] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.838286] page_type: f5(slab) [ 18.838328] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 18.838382] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 18.838755] page dumped because: kasan: bad access detected [ 18.838821] [ 18.838953] Memory state around the buggy address: [ 18.838990] fff00000c79c3980: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 18.839081] fff00000c79c3a00: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 18.839178] >fff00000c79c3a80: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 18.839284] ^ [ 18.839357] fff00000c79c3b00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 18.839404] fff00000c79c3b80: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 18.839490] ==================================================================
[ 19.079864] ================================================================== [ 19.079925] BUG: KASAN: slab-use-after-free in strlen+0xa8/0xb0 [ 19.079980] Read of size 1 at addr fff00000c5b41290 by task kunit_try_catch/259 [ 19.080034] [ 19.080664] CPU: 1 UID: 0 PID: 259 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7 #1 PREEMPT [ 19.081770] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.081802] Hardware name: linux,dummy-virt (DT) [ 19.082036] Call trace: [ 19.082065] show_stack+0x20/0x38 (C) [ 19.082200] dump_stack_lvl+0x8c/0xd0 [ 19.082343] print_report+0x118/0x5d0 [ 19.082677] kasan_report+0xdc/0x128 [ 19.082885] __asan_report_load1_noabort+0x20/0x30 [ 19.083280] strlen+0xa8/0xb0 [ 19.083745] kasan_strings+0x418/0xb00 [ 19.083809] kunit_try_run_case+0x170/0x3f0 [ 19.084063] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.084329] kthread+0x328/0x630 [ 19.084376] ret_from_fork+0x10/0x20 [ 19.084753] [ 19.084781] Allocated by task 259: [ 19.084833] kasan_save_stack+0x3c/0x68 [ 19.085106] kasan_save_track+0x20/0x40 [ 19.085361] kasan_save_alloc_info+0x40/0x58 [ 19.085407] __kasan_kmalloc+0xd4/0xd8 [ 19.085600] __kmalloc_cache_noprof+0x16c/0x3c0 [ 19.085672] kasan_strings+0xc8/0xb00 [ 19.085931] kunit_try_run_case+0x170/0x3f0 [ 19.086041] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.086415] kthread+0x328/0x630 [ 19.086452] ret_from_fork+0x10/0x20 [ 19.086875] [ 19.087003] Freed by task 259: [ 19.087036] kasan_save_stack+0x3c/0x68 [ 19.087081] kasan_save_track+0x20/0x40 [ 19.087602] kasan_save_free_info+0x4c/0x78 [ 19.087670] __kasan_slab_free+0x6c/0x98 [ 19.087709] kfree+0x214/0x3c8 [ 19.087744] kasan_strings+0x24c/0xb00 [ 19.087789] kunit_try_run_case+0x170/0x3f0 [ 19.088435] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.088698] kthread+0x328/0x630 [ 19.088764] ret_from_fork+0x10/0x20 [ 19.089219] [ 19.089263] The buggy address belongs to the object at fff00000c5b41280 [ 19.089263] which belongs to the cache kmalloc-32 of size 32 [ 19.089329] The buggy address is located 16 bytes inside of [ 19.089329] freed 32-byte region [fff00000c5b41280, fff00000c5b412a0) [ 19.089635] [ 19.089674] The buggy address belongs to the physical page: [ 19.089959] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105b41 [ 19.090204] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.090387] page_type: f5(slab) [ 19.090435] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 19.090811] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 19.091156] page dumped because: kasan: bad access detected [ 19.091359] [ 19.091581] Memory state around the buggy address: [ 19.091634] fff00000c5b41180: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 19.091771] fff00000c5b41200: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 19.091821] >fff00000c5b41280: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 19.092212] ^ [ 19.092253] fff00000c5b41300: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 19.092300] fff00000c5b41380: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 19.092342] ==================================================================
[ 14.678286] ================================================================== [ 14.678940] BUG: KASAN: slab-use-after-free in strlen+0x8f/0xb0 [ 14.679440] Read of size 1 at addr ffff8881039514d0 by task kunit_try_catch/277 [ 14.679716] [ 14.679805] CPU: 1 UID: 0 PID: 277 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7 #1 PREEMPT(voluntary) [ 14.679850] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.679862] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.679884] Call Trace: [ 14.679901] <TASK> [ 14.679919] dump_stack_lvl+0x73/0xb0 [ 14.679948] print_report+0xd1/0x610 [ 14.679971] ? __virt_addr_valid+0x1db/0x2d0 [ 14.679995] ? strlen+0x8f/0xb0 [ 14.680013] ? kasan_complete_mode_report_info+0x64/0x200 [ 14.680036] ? strlen+0x8f/0xb0 [ 14.680054] kasan_report+0x141/0x180 [ 14.680077] ? strlen+0x8f/0xb0 [ 14.680100] __asan_report_load1_noabort+0x18/0x20 [ 14.680124] strlen+0x8f/0xb0 [ 14.680144] kasan_strings+0x57b/0xe80 [ 14.680164] ? trace_hardirqs_on+0x37/0xe0 [ 14.680187] ? __pfx_kasan_strings+0x10/0x10 [ 14.680208] ? finish_task_switch.isra.0+0x153/0x700 [ 14.680230] ? __switch_to+0x47/0xf50 [ 14.680257] ? __schedule+0x10c6/0x2b60 [ 14.680280] ? __pfx_read_tsc+0x10/0x10 [ 14.680302] ? ktime_get_ts64+0x86/0x230 [ 14.680327] kunit_try_run_case+0x1a5/0x480 [ 14.680356] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.680381] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.680419] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.680442] ? __kthread_parkme+0x82/0x180 [ 14.680465] ? preempt_count_sub+0x50/0x80 [ 14.680490] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.680515] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.680538] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.680563] kthread+0x337/0x6f0 [ 14.680585] ? trace_preempt_on+0x20/0xc0 [ 14.680618] ? __pfx_kthread+0x10/0x10 [ 14.680640] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.680662] ? calculate_sigpending+0x7b/0xa0 [ 14.680692] ? __pfx_kthread+0x10/0x10 [ 14.680714] ret_from_fork+0x116/0x1d0 [ 14.680733] ? __pfx_kthread+0x10/0x10 [ 14.680755] ret_from_fork_asm+0x1a/0x30 [ 14.680787] </TASK> [ 14.680798] [ 14.688024] Allocated by task 277: [ 14.688189] kasan_save_stack+0x45/0x70 [ 14.688336] kasan_save_track+0x18/0x40 [ 14.688484] kasan_save_alloc_info+0x3b/0x50 [ 14.688634] __kasan_kmalloc+0xb7/0xc0 [ 14.688829] __kmalloc_cache_noprof+0x189/0x420 [ 14.689053] kasan_strings+0xc0/0xe80 [ 14.689238] kunit_try_run_case+0x1a5/0x480 [ 14.689453] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.689861] kthread+0x337/0x6f0 [ 14.689985] ret_from_fork+0x116/0x1d0 [ 14.690118] ret_from_fork_asm+0x1a/0x30 [ 14.690318] [ 14.690427] Freed by task 277: [ 14.690589] kasan_save_stack+0x45/0x70 [ 14.690789] kasan_save_track+0x18/0x40 [ 14.690977] kasan_save_free_info+0x3f/0x60 [ 14.691153] __kasan_slab_free+0x56/0x70 [ 14.691332] kfree+0x222/0x3f0 [ 14.691496] kasan_strings+0x2aa/0xe80 [ 14.691693] kunit_try_run_case+0x1a5/0x480 [ 14.691876] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.692095] kthread+0x337/0x6f0 [ 14.692255] ret_from_fork+0x116/0x1d0 [ 14.692410] ret_from_fork_asm+0x1a/0x30 [ 14.692617] [ 14.692700] The buggy address belongs to the object at ffff8881039514c0 [ 14.692700] which belongs to the cache kmalloc-32 of size 32 [ 14.693183] The buggy address is located 16 bytes inside of [ 14.693183] freed 32-byte region [ffff8881039514c0, ffff8881039514e0) [ 14.693541] [ 14.693661] The buggy address belongs to the physical page: [ 14.693920] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103951 [ 14.694207] flags: 0x200000000000000(node=0|zone=2) [ 14.694372] page_type: f5(slab) [ 14.694504] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 14.695196] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 14.695548] page dumped because: kasan: bad access detected [ 14.695769] [ 14.695867] Memory state around the buggy address: [ 14.696058] ffff888103951380: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.696358] ffff888103951400: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.696682] >ffff888103951480: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.696946] ^ [ 14.697202] ffff888103951500: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.697493] ffff888103951580: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.697783] ==================================================================
[ 14.770508] ================================================================== [ 14.771118] BUG: KASAN: slab-use-after-free in strlen+0x8f/0xb0 [ 14.771576] Read of size 1 at addr ffff8881027c0890 by task kunit_try_catch/277 [ 14.772038] [ 14.772172] CPU: 1 UID: 0 PID: 277 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7 #1 PREEMPT(voluntary) [ 14.772218] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.772231] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.772252] Call Trace: [ 14.772269] <TASK> [ 14.772285] dump_stack_lvl+0x73/0xb0 [ 14.772312] print_report+0xd1/0x610 [ 14.772338] ? __virt_addr_valid+0x1db/0x2d0 [ 14.772362] ? strlen+0x8f/0xb0 [ 14.772379] ? kasan_complete_mode_report_info+0x64/0x200 [ 14.772401] ? strlen+0x8f/0xb0 [ 14.772419] kasan_report+0x141/0x180 [ 14.772440] ? strlen+0x8f/0xb0 [ 14.772461] __asan_report_load1_noabort+0x18/0x20 [ 14.772485] strlen+0x8f/0xb0 [ 14.772503] kasan_strings+0x57b/0xe80 [ 14.772523] ? trace_hardirqs_on+0x37/0xe0 [ 14.772545] ? __pfx_kasan_strings+0x10/0x10 [ 14.772565] ? finish_task_switch.isra.0+0x153/0x700 [ 14.772588] ? __switch_to+0x47/0xf50 [ 14.772612] ? __schedule+0x10c6/0x2b60 [ 14.772634] ? __pfx_read_tsc+0x10/0x10 [ 14.772654] ? ktime_get_ts64+0x86/0x230 [ 14.772677] kunit_try_run_case+0x1a5/0x480 [ 14.772702] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.772724] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.772746] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.772769] ? __kthread_parkme+0x82/0x180 [ 14.772789] ? preempt_count_sub+0x50/0x80 [ 14.772811] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.772835] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.772913] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.772938] kthread+0x337/0x6f0 [ 14.772957] ? trace_preempt_on+0x20/0xc0 [ 14.772978] ? __pfx_kthread+0x10/0x10 [ 14.772998] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.773019] ? calculate_sigpending+0x7b/0xa0 [ 14.773042] ? __pfx_kthread+0x10/0x10 [ 14.773063] ret_from_fork+0x116/0x1d0 [ 14.773081] ? __pfx_kthread+0x10/0x10 [ 14.773101] ret_from_fork_asm+0x1a/0x30 [ 14.773130] </TASK> [ 14.773141] [ 14.781251] Allocated by task 277: [ 14.781437] kasan_save_stack+0x45/0x70 [ 14.781918] kasan_save_track+0x18/0x40 [ 14.782120] kasan_save_alloc_info+0x3b/0x50 [ 14.782359] __kasan_kmalloc+0xb7/0xc0 [ 14.782502] __kmalloc_cache_noprof+0x189/0x420 [ 14.782667] kasan_strings+0xc0/0xe80 [ 14.782806] kunit_try_run_case+0x1a5/0x480 [ 14.783357] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.783624] kthread+0x337/0x6f0 [ 14.783795] ret_from_fork+0x116/0x1d0 [ 14.784164] ret_from_fork_asm+0x1a/0x30 [ 14.784371] [ 14.784451] Freed by task 277: [ 14.784567] kasan_save_stack+0x45/0x70 [ 14.784766] kasan_save_track+0x18/0x40 [ 14.785121] kasan_save_free_info+0x3f/0x60 [ 14.785347] __kasan_slab_free+0x56/0x70 [ 14.785514] kfree+0x222/0x3f0 [ 14.785684] kasan_strings+0x2aa/0xe80 [ 14.785896] kunit_try_run_case+0x1a5/0x480 [ 14.786101] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.786379] kthread+0x337/0x6f0 [ 14.786533] ret_from_fork+0x116/0x1d0 [ 14.786711] ret_from_fork_asm+0x1a/0x30 [ 14.787083] [ 14.787202] The buggy address belongs to the object at ffff8881027c0880 [ 14.787202] which belongs to the cache kmalloc-32 of size 32 [ 14.787735] The buggy address is located 16 bytes inside of [ 14.787735] freed 32-byte region [ffff8881027c0880, ffff8881027c08a0) [ 14.788307] [ 14.788417] The buggy address belongs to the physical page: [ 14.788655] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1027c0 [ 14.788930] flags: 0x200000000000000(node=0|zone=2) [ 14.789099] page_type: f5(slab) [ 14.789262] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 14.789831] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 14.790128] page dumped because: kasan: bad access detected [ 14.790355] [ 14.790455] Memory state around the buggy address: [ 14.790680] ffff8881027c0780: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.791220] ffff8881027c0800: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.791663] >ffff8881027c0880: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.792028] ^ [ 14.792223] ffff8881027c0900: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 14.792589] ffff8881027c0980: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.792981] ==================================================================