Date
Feb. 5, 2025, 2:09 p.m.
Environment | |
---|---|
qemu-arm64 |
[ 182.782534] ================================================================== [ 182.784000] BUG: KASAN: slab-use-after-free in strlen+0x18/0x68 [ 182.785416] Read of size 1 at addr ffff0000c5f6ec10 by task kunit_try_catch/204 [ 182.787295] [ 182.787863] CPU: 0 PID: 204 Comm: kunit_try_catch Tainted: G B N 6.6.76-rc1 #1 [ 182.789670] Hardware name: linux,dummy-virt (DT) [ 182.790835] Call trace: [ 182.791506] dump_backtrace+0x9c/0x128 [ 182.792619] show_stack+0x20/0x38 [ 182.793619] dump_stack_lvl+0x60/0xb0 [ 182.794800] print_report+0xf8/0x5d8 [ 182.795935] kasan_report+0xc8/0x118 [ 182.797056] __asan_load1+0x60/0x70 [ 182.798153] strlen+0x18/0x68 [ 182.799119] kasan_strings+0x17c/0x478 [ 182.800194] kunit_try_run_case+0xf8/0x260 [ 182.801633] kunit_generic_run_threadfn_adapter+0x38/0x60 [ 182.803850] kthread+0x18c/0x1a8 [ 182.805046] ret_from_fork+0x10/0x20 [ 182.806076] [ 182.806623] Allocated by task 204: [ 182.807503] kasan_save_stack+0x3c/0x68 [ 182.808655] kasan_set_track+0x2c/0x40 [ 182.809792] kasan_save_alloc_info+0x24/0x38 [ 182.811038] __kasan_kmalloc+0xd4/0xd8 [ 182.812196] kmalloc_trace+0x68/0x130 [ 182.813252] kasan_strings+0xa0/0x478 [ 182.814316] kunit_try_run_case+0xf8/0x260 [ 182.815534] kunit_generic_run_threadfn_adapter+0x38/0x60 [ 182.817013] kthread+0x18c/0x1a8 [ 182.817964] ret_from_fork+0x10/0x20 [ 182.819020] [ 182.819524] Freed by task 204: [ 182.820391] kasan_save_stack+0x3c/0x68 [ 182.821545] kasan_set_track+0x2c/0x40 [ 182.822718] kasan_save_free_info+0x38/0x60 [ 182.823977] __kasan_slab_free+0x100/0x170 [ 182.825174] __kmem_cache_free+0x170/0x2e0 [ 182.826374] kfree+0x74/0x138 [ 182.827313] kasan_strings+0xbc/0x478 [ 182.828386] kunit_try_run_case+0xf8/0x260 [ 182.829602] kunit_generic_run_threadfn_adapter+0x38/0x60 [ 182.831042] kthread+0x18c/0x1a8 [ 182.832000] ret_from_fork+0x10/0x20 [ 182.833079] [ 182.833619] The buggy address belongs to the object at ffff0000c5f6ec00 [ 182.833619] which belongs to the cache kmalloc-32 of size 32 [ 182.836021] The buggy address is located 16 bytes inside of [ 182.836021] freed 32-byte region [ffff0000c5f6ec00, ffff0000c5f6ec20) [ 182.838465] [ 182.839003] The buggy address belongs to the physical page: [ 182.840278] page:00000000e8269612 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105f6e [ 182.842223] flags: 0xbfffc0000000800(slab|node=0|zone=2|lastcpupid=0xffff) [ 182.843833] page_type: 0xffffffff() [ 182.844874] raw: 0bfffc0000000800 ffff0000c0001500 dead000000000122 0000000000000000 [ 182.846618] raw: 0000000000000000 0000000080400040 00000001ffffffff 0000000000000000 [ 182.848196] page dumped because: kasan: bad access detected [ 182.849420] [ 182.850006] Memory state around the buggy address: [ 182.851197] ffff0000c5f6eb00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 182.852808] ffff0000c5f6eb80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 182.854408] >ffff0000c5f6ec00: fa fb fb fb fc fc fc fc fc fc fc fc fc fc fc fc [ 182.855945] ^ [ 182.856906] ffff0000c5f6ec80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 182.858532] ffff0000c5f6ed00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 182.860070] ==================================================================