Date
July 4, 2025, 3:11 p.m.
Environment | |
---|---|
e850-96 | |
qemu-arm64 | |
qemu-x86_64 |
[ 38.106807] ================================================================== [ 38.130379] BUG: KASAN: slab-use-after-free in strcmp+0xc0/0xc8 [ 38.136279] Read of size 1 at addr ffff000800cab9d0 by task kunit_try_catch/308 [ 38.143571] [ 38.145058] CPU: 6 UID: 0 PID: 308 Comm: kunit_try_catch Tainted: G B N 6.15.5-rc2 #1 PREEMPT [ 38.145115] Tainted: [B]=BAD_PAGE, [N]=TEST [ 38.145133] Hardware name: WinLink E850-96 board (DT) [ 38.145155] Call trace: [ 38.145170] show_stack+0x20/0x38 (C) [ 38.145205] dump_stack_lvl+0x8c/0xd0 [ 38.145241] print_report+0x118/0x608 [ 38.145275] kasan_report+0xdc/0x128 [ 38.145307] __asan_report_load1_noabort+0x20/0x30 [ 38.145344] strcmp+0xc0/0xc8 [ 38.145372] kasan_strings+0x340/0xb00 [ 38.145406] kunit_try_run_case+0x170/0x3f0 [ 38.145444] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 38.145485] kthread+0x328/0x630 [ 38.145519] ret_from_fork+0x10/0x20 [ 38.145557] [ 38.210409] Allocated by task 308: [ 38.213798] kasan_save_stack+0x3c/0x68 [ 38.217613] kasan_save_track+0x20/0x40 [ 38.221433] kasan_save_alloc_info+0x40/0x58 [ 38.225686] __kasan_kmalloc+0xd4/0xd8 [ 38.229419] __kmalloc_cache_noprof+0x16c/0x3c0 [ 38.233933] kasan_strings+0xc8/0xb00 [ 38.237578] kunit_try_run_case+0x170/0x3f0 [ 38.241745] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 38.247215] kthread+0x328/0x630 [ 38.250426] ret_from_fork+0x10/0x20 [ 38.253985] [ 38.255461] Freed by task 308: [ 38.258500] kasan_save_stack+0x3c/0x68 [ 38.262317] kasan_save_track+0x20/0x40 [ 38.266137] kasan_save_free_info+0x4c/0x78 [ 38.270304] __kasan_slab_free+0x6c/0x98 [ 38.274210] kfree+0x214/0x3c8 [ 38.277248] kasan_strings+0x24c/0xb00 [ 38.280981] kunit_try_run_case+0x170/0x3f0 [ 38.285147] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 38.290616] kthread+0x328/0x630 [ 38.293828] ret_from_fork+0x10/0x20 [ 38.297387] [ 38.298864] The buggy address belongs to the object at ffff000800cab9c0 [ 38.298864] which belongs to the cache kmalloc-32 of size 32 [ 38.311192] The buggy address is located 16 bytes inside of [ 38.311192] freed 32-byte region [ffff000800cab9c0, ffff000800cab9e0) [ 38.323254] [ 38.324732] The buggy address belongs to the physical page: [ 38.330290] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x880cab [ 38.338273] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 38.344783] page_type: f5(slab) [ 38.347922] raw: 0bfffe0000000000 ffff000800002780 dead000000000122 0000000000000000 [ 38.355639] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 38.363359] page dumped because: kasan: bad access detected [ 38.368913] [ 38.370389] Memory state around the buggy address: [ 38.375172] ffff000800cab880: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 38.382372] ffff000800cab900: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 38.389578] >ffff000800cab980: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 38.396777] ^ [ 38.402597] ffff000800caba00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 38.409802] ffff000800caba80: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 38.417005] ==================================================================
[ 17.842771] ================================================================== [ 17.842844] BUG: KASAN: slab-use-after-free in strcmp+0xc0/0xc8 [ 17.842894] Read of size 1 at addr fff00000c7949310 by task kunit_try_catch/264 [ 17.843150] [ 17.843187] CPU: 1 UID: 0 PID: 264 Comm: kunit_try_catch Tainted: G B N 6.15.5-rc2 #1 PREEMPT [ 17.843426] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.843474] Hardware name: linux,dummy-virt (DT) [ 17.843576] Call trace: [ 17.843601] show_stack+0x20/0x38 (C) [ 17.843749] dump_stack_lvl+0x8c/0xd0 [ 17.843802] print_report+0x118/0x608 [ 17.843849] kasan_report+0xdc/0x128 [ 17.844267] __asan_report_load1_noabort+0x20/0x30 [ 17.844378] strcmp+0xc0/0xc8 [ 17.844658] kasan_strings+0x340/0xb00 [ 17.844811] kunit_try_run_case+0x170/0x3f0 [ 17.844942] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.845059] kthread+0x328/0x630 [ 17.845253] ret_from_fork+0x10/0x20 [ 17.845488] [ 17.845546] Allocated by task 264: [ 17.845619] kasan_save_stack+0x3c/0x68 [ 17.845666] kasan_save_track+0x20/0x40 [ 17.845934] kasan_save_alloc_info+0x40/0x58 [ 17.846168] __kasan_kmalloc+0xd4/0xd8 [ 17.846291] __kmalloc_cache_noprof+0x16c/0x3c0 [ 17.846418] kasan_strings+0xc8/0xb00 [ 17.846581] kunit_try_run_case+0x170/0x3f0 [ 17.846873] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.847108] kthread+0x328/0x630 [ 17.847748] ret_from_fork+0x10/0x20 [ 17.847824] [ 17.848277] Freed by task 264: [ 17.848457] kasan_save_stack+0x3c/0x68 [ 17.848512] kasan_save_track+0x20/0x40 [ 17.848552] kasan_save_free_info+0x4c/0x78 [ 17.848852] __kasan_slab_free+0x6c/0x98 [ 17.848924] kfree+0x214/0x3c8 [ 17.848958] kasan_strings+0x24c/0xb00 [ 17.849124] kunit_try_run_case+0x170/0x3f0 [ 17.849295] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.849444] kthread+0x328/0x630 [ 17.849541] ret_from_fork+0x10/0x20 [ 17.849696] [ 17.849838] The buggy address belongs to the object at fff00000c7949300 [ 17.849838] which belongs to the cache kmalloc-32 of size 32 [ 17.849941] The buggy address is located 16 bytes inside of [ 17.849941] freed 32-byte region [fff00000c7949300, fff00000c7949320) [ 17.850042] [ 17.850073] The buggy address belongs to the physical page: [ 17.850112] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107949 [ 17.850185] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.850243] page_type: f5(slab) [ 17.850290] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 17.850341] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 17.850383] page dumped because: kasan: bad access detected [ 17.850433] [ 17.850463] Memory state around the buggy address: [ 17.850497] fff00000c7949200: 00 00 00 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 17.850542] fff00000c7949280: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 17.850587] >fff00000c7949300: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 17.850848] ^ [ 17.851180] fff00000c7949380: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 17.851370] fff00000c7949400: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 17.851514] ==================================================================
[ 16.723630] ================================================================== [ 16.724819] BUG: KASAN: slab-use-after-free in strcmp+0xb0/0xc0 [ 16.725575] Read of size 1 at addr ffff8881029f4750 by task kunit_try_catch/280 [ 16.726528] [ 16.726732] CPU: 1 UID: 0 PID: 280 Comm: kunit_try_catch Tainted: G B N 6.15.5-rc2 #1 PREEMPT(voluntary) [ 16.726852] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.726882] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.726929] Call Trace: [ 16.726959] <TASK> [ 16.727003] dump_stack_lvl+0x73/0xb0 [ 16.727071] print_report+0xd1/0x650 [ 16.727119] ? __virt_addr_valid+0x1db/0x2d0 [ 16.727156] ? strcmp+0xb0/0xc0 [ 16.727177] ? kasan_complete_mode_report_info+0x64/0x200 [ 16.727203] ? strcmp+0xb0/0xc0 [ 16.727224] kasan_report+0x141/0x180 [ 16.727249] ? strcmp+0xb0/0xc0 [ 16.727274] __asan_report_load1_noabort+0x18/0x20 [ 16.727296] strcmp+0xb0/0xc0 [ 16.727318] kasan_strings+0x431/0xe80 [ 16.727362] ? __pfx_kasan_strings+0x10/0x10 [ 16.727386] ? __schedule+0x207f/0x2b60 [ 16.727410] ? schedule+0x7c/0x2e0 [ 16.727432] ? trace_hardirqs_on+0x37/0xe0 [ 16.727458] ? __schedule+0x207f/0x2b60 [ 16.727482] ? __pfx_read_tsc+0x10/0x10 [ 16.727504] ? ktime_get_ts64+0x86/0x230 [ 16.727531] kunit_try_run_case+0x1a5/0x480 [ 16.727558] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.727580] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.727606] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.727629] ? __kthread_parkme+0x82/0x180 [ 16.727653] ? preempt_count_sub+0x50/0x80 [ 16.727681] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.727705] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.727728] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.727752] kthread+0x337/0x6f0 [ 16.727770] ? trace_preempt_on+0x20/0xc0 [ 16.727793] ? __pfx_kthread+0x10/0x10 [ 16.727813] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.727834] ? calculate_sigpending+0x7b/0xa0 [ 16.727858] ? __pfx_kthread+0x10/0x10 [ 16.727895] ret_from_fork+0x41/0x80 [ 16.727918] ? __pfx_kthread+0x10/0x10 [ 16.727937] ret_from_fork_asm+0x1a/0x30 [ 16.727972] </TASK> [ 16.727984] [ 16.740679] Allocated by task 280: [ 16.741041] kasan_save_stack+0x45/0x70 [ 16.741488] kasan_save_track+0x18/0x40 [ 16.741843] kasan_save_alloc_info+0x3b/0x50 [ 16.742240] __kasan_kmalloc+0xb7/0xc0 [ 16.742487] __kmalloc_cache_noprof+0x189/0x420 [ 16.742707] kasan_strings+0xc0/0xe80 [ 16.742896] kunit_try_run_case+0x1a5/0x480 [ 16.743100] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.743330] kthread+0x337/0x6f0 [ 16.743721] ret_from_fork+0x41/0x80 [ 16.744163] ret_from_fork_asm+0x1a/0x30 [ 16.744538] [ 16.744724] Freed by task 280: [ 16.745035] kasan_save_stack+0x45/0x70 [ 16.745449] kasan_save_track+0x18/0x40 [ 16.745916] kasan_save_free_info+0x3f/0x60 [ 16.746372] __kasan_slab_free+0x56/0x70 [ 16.746754] kfree+0x222/0x3f0 [ 16.747059] kasan_strings+0x2aa/0xe80 [ 16.747318] kunit_try_run_case+0x1a5/0x480 [ 16.747716] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.747956] kthread+0x337/0x6f0 [ 16.748225] ret_from_fork+0x41/0x80 [ 16.748567] ret_from_fork_asm+0x1a/0x30 [ 16.748946] [ 16.749209] The buggy address belongs to the object at ffff8881029f4740 [ 16.749209] which belongs to the cache kmalloc-32 of size 32 [ 16.749845] The buggy address is located 16 bytes inside of [ 16.749845] freed 32-byte region [ffff8881029f4740, ffff8881029f4760) [ 16.750255] [ 16.750391] The buggy address belongs to the physical page: [ 16.750821] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029f4 [ 16.751679] flags: 0x200000000000000(node=0|zone=2) [ 16.752110] page_type: f5(slab) [ 16.752406] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 16.752870] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 16.753501] page dumped because: kasan: bad access detected [ 16.753737] [ 16.753853] Memory state around the buggy address: [ 16.754075] ffff8881029f4600: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 16.754629] ffff8881029f4680: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 16.755360] >ffff8881029f4700: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 16.755909] ^ [ 16.756405] ffff8881029f4780: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 16.756871] ffff8881029f4800: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 16.757215] ==================================================================