Date
May 15, 2025, 10:38 a.m.
Environment | |
---|---|
e850-96 |
[ 40.846946] ================================================================== [ 40.853935] BUG: KASAN: slab-use-after-free in strlen+0xa8/0xb0 [ 40.859835] Read of size 1 at addr ffff0008065c9310 by task kunit_try_catch/304 [ 40.867126] [ 40.868611] CPU: 6 UID: 0 PID: 304 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250515 #1 PREEMPT [ 40.868666] Tainted: [B]=BAD_PAGE, [N]=TEST [ 40.868684] Hardware name: WinLink E850-96 board (DT) [ 40.868707] Call trace: [ 40.868722] show_stack+0x20/0x38 (C) [ 40.868759] dump_stack_lvl+0x8c/0xd0 [ 40.868792] print_report+0x118/0x608 [ 40.868825] kasan_report+0xdc/0x128 [ 40.868856] __asan_report_load1_noabort+0x20/0x30 [ 40.868894] strlen+0xa8/0xb0 [ 40.868928] kasan_strings+0x418/0xb00 [ 40.868957] kunit_try_run_case+0x170/0x3f0 [ 40.868988] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 40.869026] kthread+0x328/0x630 [ 40.869061] ret_from_fork+0x10/0x20 [ 40.869095] [ 40.935180] Allocated by task 304: [ 40.938568] kasan_save_stack+0x3c/0x68 [ 40.942386] kasan_save_track+0x20/0x40 [ 40.946205] kasan_save_alloc_info+0x40/0x58 [ 40.950458] __kasan_kmalloc+0xd4/0xd8 [ 40.954191] __kmalloc_cache_noprof+0x15c/0x3c0 [ 40.958704] kasan_strings+0xc8/0xb00 [ 40.962350] kunit_try_run_case+0x170/0x3f0 [ 40.966517] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 40.971986] kthread+0x328/0x630 [ 40.975197] ret_from_fork+0x10/0x20 [ 40.978757] [ 40.980234] Freed by task 304: [ 40.983273] kasan_save_stack+0x3c/0x68 [ 40.987090] kasan_save_track+0x20/0x40 [ 40.990911] kasan_save_free_info+0x4c/0x78 [ 40.995076] __kasan_slab_free+0x6c/0x98 [ 40.998982] kfree+0x214/0x3c8 [ 41.002020] kasan_strings+0x24c/0xb00 [ 41.005753] kunit_try_run_case+0x170/0x3f0 [ 41.009919] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 41.015388] kthread+0x328/0x630 [ 41.018599] ret_from_fork+0x10/0x20 [ 41.022159] [ 41.023636] The buggy address belongs to the object at ffff0008065c9300 [ 41.023636] which belongs to the cache kmalloc-32 of size 32 [ 41.035963] The buggy address is located 16 bytes inside of [ 41.035963] freed 32-byte region [ffff0008065c9300, ffff0008065c9320) [ 41.048026] [ 41.049504] The buggy address belongs to the physical page: [ 41.055061] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x8865c9 [ 41.063045] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 41.069555] page_type: f5(slab) [ 41.072691] raw: 0bfffe0000000000 ffff000800002780 dead000000000122 0000000000000000 [ 41.080411] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 41.088130] page dumped because: kasan: bad access detected [ 41.093685] [ 41.095160] Memory state around the buggy address: [ 41.099944] ffff0008065c9200: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 41.107144] ffff0008065c9280: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc [ 41.114348] >ffff0008065c9300: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 41.121549] ^ [ 41.125285] ffff0008065c9380: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 41.132491] ffff0008065c9400: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 41.139692] ==================================================================