Date
June 2, 2025, 2:13 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 20.873613] ================================================================== [ 20.874138] BUG: KASAN: slab-use-after-free in strlen+0xa8/0xb0 [ 20.874488] Read of size 1 at addr fff00000c3f46150 by task kunit_try_catch/249 [ 20.874858] [ 20.875118] CPU: 1 UID: 0 PID: 249 Comm: kunit_try_catch Tainted: G B N 6.14.10-rc1 #1 [ 20.875265] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.875302] Hardware name: linux,dummy-virt (DT) [ 20.875344] Call trace: [ 20.875375] show_stack+0x20/0x38 (C) [ 20.875455] dump_stack_lvl+0x8c/0xd0 [ 20.875515] print_report+0x118/0x608 [ 20.875577] kasan_report+0xdc/0x128 [ 20.875636] __asan_report_load1_noabort+0x20/0x30 [ 20.875694] strlen+0xa8/0xb0 [ 20.875745] kasan_strings+0x304/0x8d8 [ 20.875802] kunit_try_run_case+0x170/0x3f0 [ 20.875860] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.875922] kthread+0x318/0x620 [ 20.875977] ret_from_fork+0x10/0x20 [ 20.876038] [ 20.880205] Allocated by task 249: [ 20.880594] kasan_save_stack+0x3c/0x68 [ 20.880848] kasan_save_track+0x20/0x40 [ 20.881060] kasan_save_alloc_info+0x40/0x58 [ 20.881294] __kasan_kmalloc+0xd4/0xd8 [ 20.881538] __kmalloc_cache_noprof+0x16c/0x3c0 [ 20.881800] kasan_strings+0xb0/0x8d8 [ 20.882026] kunit_try_run_case+0x170/0x3f0 [ 20.882847] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.883329] kthread+0x318/0x620 [ 20.883628] ret_from_fork+0x10/0x20 [ 20.883898] [ 20.884104] Freed by task 249: [ 20.884383] kasan_save_stack+0x3c/0x68 [ 20.884611] kasan_save_track+0x20/0x40 [ 20.884999] kasan_save_free_info+0x4c/0x78 [ 20.885372] __kasan_slab_free+0x6c/0x98 [ 20.885605] kfree+0x214/0x3c8 [ 20.885814] kasan_strings+0x124/0x8d8 [ 20.886040] kunit_try_run_case+0x170/0x3f0 [ 20.886623] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.886879] kthread+0x318/0x620 [ 20.887092] ret_from_fork+0x10/0x20 [ 20.887337] [ 20.887471] The buggy address belongs to the object at fff00000c3f46140 [ 20.887471] which belongs to the cache kmalloc-32 of size 32 [ 20.888008] The buggy address is located 16 bytes inside of [ 20.888008] freed 32-byte region [fff00000c3f46140, fff00000c3f46160) [ 20.888927] [ 20.889223] The buggy address belongs to the physical page: [ 20.889757] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103f46 [ 20.890495] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.891617] page_type: f5(slab) [ 20.891801] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 20.892401] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 20.892972] page dumped because: kasan: bad access detected [ 20.893396] [ 20.893600] Memory state around the buggy address: [ 20.893996] fff00000c3f46000: fa fb fb fb fc fc fc fc 00 00 07 fc fc fc fc fc [ 20.894548] fff00000c3f46080: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 20.895099] >fff00000c3f46100: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 20.895660] ^ [ 20.896057] fff00000c3f46180: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 20.896518] fff00000c3f46200: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 20.896963] ==================================================================
[ 14.654108] ================================================================== [ 14.654452] BUG: KASAN: slab-use-after-free in strlen+0x8f/0xb0 [ 14.654687] Read of size 1 at addr ffff888101bf5750 by task kunit_try_catch/267 [ 14.655117] [ 14.655224] CPU: 1 UID: 0 PID: 267 Comm: kunit_try_catch Tainted: G B N 6.14.10-rc1 #1 [ 14.655261] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.655273] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.655292] Call Trace: [ 14.655305] <TASK> [ 14.655320] dump_stack_lvl+0x73/0xb0 [ 14.655343] print_report+0xd1/0x650 [ 14.655364] ? __virt_addr_valid+0x1db/0x2d0 [ 14.655385] ? strlen+0x8f/0xb0 [ 14.655403] ? kasan_complete_mode_report_info+0x64/0x200 [ 14.655428] ? strlen+0x8f/0xb0 [ 14.655445] kasan_report+0x140/0x180 [ 14.655467] ? strlen+0x8f/0xb0 [ 14.655489] __asan_report_load1_noabort+0x18/0x20 [ 14.655512] strlen+0x8f/0xb0 [ 14.655530] kasan_strings+0x425/0xb60 [ 14.655551] ? __pfx_kasan_strings+0x10/0x10 [ 14.655571] ? __schedule+0xce8/0x2840 [ 14.655593] ? __pfx_read_tsc+0x10/0x10 [ 14.655613] ? ktime_get_ts64+0x86/0x230 [ 14.655638] kunit_try_run_case+0x1a6/0x480 [ 14.655660] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.655681] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 14.655704] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.655726] ? __kthread_parkme+0x82/0x160 [ 14.655748] ? preempt_count_sub+0x50/0x80 [ 14.655772] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.655794] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.655819] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.655844] kthread+0x324/0x6e0 [ 14.655865] ? trace_preempt_on+0x20/0xc0 [ 14.655887] ? __pfx_kthread+0x10/0x10 [ 14.655909] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.655931] ? calculate_sigpending+0x7b/0xa0 [ 14.655951] ? __pfx_kthread+0x10/0x10 [ 14.655973] ret_from_fork+0x41/0x80 [ 14.655990] ? __pfx_kthread+0x10/0x10 [ 14.656012] ret_from_fork_asm+0x1a/0x30 [ 14.656052] </TASK> [ 14.656061] [ 14.663180] Allocated by task 267: [ 14.663402] kasan_save_stack+0x45/0x70 [ 14.663596] kasan_save_track+0x18/0x40 [ 14.663729] kasan_save_alloc_info+0x3b/0x50 [ 14.663875] __kasan_kmalloc+0xb7/0xc0 [ 14.664004] __kmalloc_cache_noprof+0x18a/0x420 [ 14.664305] kasan_strings+0xb9/0xb60 [ 14.664502] kunit_try_run_case+0x1a6/0x480 [ 14.664708] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.664963] kthread+0x324/0x6e0 [ 14.665207] ret_from_fork+0x41/0x80 [ 14.665401] ret_from_fork_asm+0x1a/0x30 [ 14.665652] [ 14.665750] Freed by task 267: [ 14.665887] kasan_save_stack+0x45/0x70 [ 14.666031] kasan_save_track+0x18/0x40 [ 14.666164] kasan_save_free_info+0x3f/0x60 [ 14.666306] __kasan_slab_free+0x56/0x70 [ 14.666462] kfree+0x224/0x3f0 [ 14.666618] kasan_strings+0x13c/0xb60 [ 14.666800] kunit_try_run_case+0x1a6/0x480 [ 14.667001] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.667604] kthread+0x324/0x6e0 [ 14.667791] ret_from_fork+0x41/0x80 [ 14.668045] ret_from_fork_asm+0x1a/0x30 [ 14.668189] [ 14.668258] The buggy address belongs to the object at ffff888101bf5740 [ 14.668258] which belongs to the cache kmalloc-32 of size 32 [ 14.669052] The buggy address is located 16 bytes inside of [ 14.669052] freed 32-byte region [ffff888101bf5740, ffff888101bf5760) [ 14.669538] [ 14.669751] The buggy address belongs to the physical page: [ 14.669953] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101bf5 [ 14.670290] flags: 0x200000000000000(node=0|zone=2) [ 14.670493] page_type: f5(slab) [ 14.670845] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 14.671139] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 14.671363] page dumped because: kasan: bad access detected [ 14.671533] [ 14.671637] Memory state around the buggy address: [ 14.671862] ffff888101bf5600: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.672228] ffff888101bf5680: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 14.672615] >ffff888101bf5700: 00 00 07 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.672888] ^ [ 14.673080] ffff888101bf5780: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 14.673330] ffff888101bf5800: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 14.673652] ==================================================================