Date
June 2, 2025, 2:11 p.m.
Environment | |
---|---|
e850-96 | |
qemu-x86_64 |
[ 38.053860] ================================================================== [ 38.077426] BUG: KASAN: slab-use-after-free in strcmp+0xc0/0xc8 [ 38.083323] Read of size 1 at addr ffff00080394fc10 by task kunit_try_catch/306 [ 38.090614] [ 38.092101] CPU: 7 UID: 0 PID: 306 Comm: kunit_try_catch Tainted: G B N 6.15.1-rc1 #1 PREEMPT [ 38.092156] Tainted: [B]=BAD_PAGE, [N]=TEST [ 38.092175] Hardware name: WinLink E850-96 board (DT) [ 38.092198] Call trace: [ 38.092213] show_stack+0x20/0x38 (C) [ 38.092250] dump_stack_lvl+0x8c/0xd0 [ 38.092284] print_report+0x118/0x608 [ 38.092318] kasan_report+0xdc/0x128 [ 38.092348] __asan_report_load1_noabort+0x20/0x30 [ 38.092383] strcmp+0xc0/0xc8 [ 38.092408] kasan_strings+0x340/0xb00 [ 38.092442] kunit_try_run_case+0x170/0x3f0 [ 38.092480] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 38.092521] kthread+0x328/0x630 [ 38.092554] ret_from_fork+0x10/0x20 [ 38.092592] [ 38.157454] Allocated by task 306: [ 38.160841] kasan_save_stack+0x3c/0x68 [ 38.164659] kasan_save_track+0x20/0x40 [ 38.168478] kasan_save_alloc_info+0x40/0x58 [ 38.172731] __kasan_kmalloc+0xd4/0xd8 [ 38.176465] __kmalloc_cache_noprof+0x16c/0x3c0 [ 38.180977] kasan_strings+0xc8/0xb00 [ 38.184623] kunit_try_run_case+0x170/0x3f0 [ 38.188790] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 38.194259] kthread+0x328/0x630 [ 38.197470] ret_from_fork+0x10/0x20 [ 38.201029] [ 38.202506] Freed by task 306: [ 38.205545] kasan_save_stack+0x3c/0x68 [ 38.209363] kasan_save_track+0x20/0x40 [ 38.213183] kasan_save_free_info+0x4c/0x78 [ 38.217349] __kasan_slab_free+0x6c/0x98 [ 38.221255] kfree+0x214/0x3c8 [ 38.224293] kasan_strings+0x24c/0xb00 [ 38.228025] kunit_try_run_case+0x170/0x3f0 [ 38.232192] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 38.237661] kthread+0x328/0x630 [ 38.240872] ret_from_fork+0x10/0x20 [ 38.244431] [ 38.245909] The buggy address belongs to the object at ffff00080394fc00 [ 38.245909] which belongs to the cache kmalloc-32 of size 32 [ 38.258235] The buggy address is located 16 bytes inside of [ 38.258235] freed 32-byte region [ffff00080394fc00, ffff00080394fc20) [ 38.270299] [ 38.271778] The buggy address belongs to the physical page: [ 38.277335] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x88394f [ 38.285320] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 38.291828] page_type: f5(slab) [ 38.294966] raw: 0bfffe0000000000 ffff000800002780 dead000000000122 0000000000000000 [ 38.302684] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 38.310403] page dumped because: kasan: bad access detected [ 38.315958] [ 38.317433] Memory state around the buggy address: [ 38.322215] ffff00080394fb00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 38.329417] ffff00080394fb80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 38.336622] >ffff00080394fc00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 38.343823] ^ [ 38.347558] ffff00080394fc80: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 38.354763] ffff00080394fd00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 38.361965] ==================================================================
[ 18.978161] ================================================================== [ 18.979338] BUG: KASAN: slab-use-after-free in strcmp+0xb0/0xc0 [ 18.980309] Read of size 1 at addr ffff888101e064d0 by task kunit_try_catch/280 [ 18.980652] [ 18.980829] CPU: 1 UID: 0 PID: 280 Comm: kunit_try_catch Tainted: G B N 6.15.1-rc1 #1 PREEMPT(voluntary) [ 18.980939] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.980965] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 18.981008] Call Trace: [ 18.981034] <TASK> [ 18.981074] dump_stack_lvl+0x73/0xb0 [ 18.981141] print_report+0xd1/0x650 [ 18.981191] ? __virt_addr_valid+0x1db/0x2d0 [ 18.981242] ? strcmp+0xb0/0xc0 [ 18.981277] ? kasan_complete_mode_report_info+0x64/0x200 [ 18.981328] ? strcmp+0xb0/0xc0 [ 18.981368] kasan_report+0x141/0x180 [ 18.981419] ? strcmp+0xb0/0xc0 [ 18.981465] __asan_report_load1_noabort+0x18/0x20 [ 18.981508] strcmp+0xb0/0xc0 [ 18.981550] kasan_strings+0x431/0xe80 [ 18.981587] ? trace_hardirqs_on+0x37/0xe0 [ 18.981634] ? __pfx_kasan_strings+0x10/0x10 [ 18.981674] ? finish_task_switch.isra.0+0x153/0x700 [ 18.981720] ? __switch_to+0x5d9/0xf60 [ 18.981780] ? dequeue_task_fair+0x166/0x4e0 [ 18.981836] ? __schedule+0x10cc/0x2b30 [ 18.981890] ? __pfx_read_tsc+0x10/0x10 [ 18.981936] ? ktime_get_ts64+0x86/0x230 [ 18.981992] kunit_try_run_case+0x1a5/0x480 [ 18.982039] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.982064] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 18.982091] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 18.982126] ? __kthread_parkme+0x82/0x180 [ 18.982160] ? preempt_count_sub+0x50/0x80 [ 18.982187] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.982212] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 18.982237] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 18.982261] kthread+0x337/0x6f0 [ 18.982281] ? trace_preempt_on+0x20/0xc0 [ 18.982305] ? __pfx_kthread+0x10/0x10 [ 18.982326] ? _raw_spin_unlock_irq+0x47/0x80 [ 18.982349] ? calculate_sigpending+0x7b/0xa0 [ 18.982373] ? __pfx_kthread+0x10/0x10 [ 18.982394] ret_from_fork+0x41/0x80 [ 18.982417] ? __pfx_kthread+0x10/0x10 [ 18.982438] ret_from_fork_asm+0x1a/0x30 [ 18.982472] </TASK> [ 18.982488] [ 18.997023] Allocated by task 280: [ 18.997670] kasan_save_stack+0x45/0x70 [ 18.997953] kasan_save_track+0x18/0x40 [ 18.998464] kasan_save_alloc_info+0x3b/0x50 [ 18.998815] __kasan_kmalloc+0xb7/0xc0 [ 18.999032] __kmalloc_cache_noprof+0x189/0x420 [ 18.999755] kasan_strings+0xc0/0xe80 [ 19.000104] kunit_try_run_case+0x1a5/0x480 [ 19.000606] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 19.000839] kthread+0x337/0x6f0 [ 19.001041] ret_from_fork+0x41/0x80 [ 19.001696] ret_from_fork_asm+0x1a/0x30 [ 19.002050] [ 19.002362] Freed by task 280: [ 19.002560] kasan_save_stack+0x45/0x70 [ 19.002731] kasan_save_track+0x18/0x40 [ 19.002912] kasan_save_free_info+0x3f/0x60 [ 19.003113] __kasan_slab_free+0x56/0x70 [ 19.003676] kfree+0x222/0x3f0 [ 19.004028] kasan_strings+0x2aa/0xe80 [ 19.004847] kunit_try_run_case+0x1a5/0x480 [ 19.005403] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 19.005693] kthread+0x337/0x6f0 [ 19.005882] ret_from_fork+0x41/0x80 [ 19.006111] ret_from_fork_asm+0x1a/0x30 [ 19.006694] [ 19.006831] The buggy address belongs to the object at ffff888101e064c0 [ 19.006831] which belongs to the cache kmalloc-32 of size 32 [ 19.007910] The buggy address is located 16 bytes inside of [ 19.007910] freed 32-byte region [ffff888101e064c0, ffff888101e064e0) [ 19.008948] [ 19.009262] The buggy address belongs to the physical page: [ 19.009708] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101e06 [ 19.010230] flags: 0x200000000000000(node=0|zone=2) [ 19.010675] page_type: f5(slab) [ 19.010891] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 19.011436] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 19.012047] page dumped because: kasan: bad access detected [ 19.012659] [ 19.012964] Memory state around the buggy address: [ 19.013570] ffff888101e06380: 00 00 00 04 fc fc fc fc fa fb fb fb fc fc fc fc [ 19.014197] ffff888101e06400: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 19.014920] >ffff888101e06480: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 19.015388] ^ [ 19.015860] ffff888101e06500: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 19.016108] ffff888101e06580: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 19.016524] ==================================================================