Date
April 20, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-x86_64 | |
rk3399-rock-pi-4b |
[ 13.438627] ================================================================== [ 13.438953] BUG: KASAN: slab-use-after-free in kasan_strings+0xcbc/0xe80 [ 13.439404] Read of size 1 at addr ffff888102757490 by task kunit_try_catch/279 [ 13.439679] [ 13.439787] CPU: 0 UID: 0 PID: 279 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc3 #1 PREEMPT(voluntary) [ 13.439833] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.439846] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.439866] Call Trace: [ 13.439881] <TASK> [ 13.439895] dump_stack_lvl+0x73/0xb0 [ 13.439918] print_report+0xd1/0x650 [ 13.439940] ? __virt_addr_valid+0x1db/0x2d0 [ 13.439961] ? kasan_strings+0xcbc/0xe80 [ 13.439982] ? kasan_complete_mode_report_info+0x64/0x200 [ 13.440005] ? kasan_strings+0xcbc/0xe80 [ 13.440027] kasan_report+0x141/0x180 [ 13.440049] ? kasan_strings+0xcbc/0xe80 [ 13.440075] __asan_report_load1_noabort+0x18/0x20 [ 13.440096] kasan_strings+0xcbc/0xe80 [ 13.440115] ? trace_hardirqs_on+0x37/0xe0 [ 13.440289] ? __pfx_kasan_strings+0x10/0x10 [ 13.440317] ? finish_task_switch.isra.0+0x153/0x700 [ 13.440353] ? __switch_to+0x5d9/0xf60 [ 13.440373] ? dequeue_task_fair+0x156/0x4e0 [ 13.440397] ? __schedule+0x10cc/0x2b30 [ 13.440421] ? __pfx_read_tsc+0x10/0x10 [ 13.440439] ? ktime_get_ts64+0x86/0x230 [ 13.440464] kunit_try_run_case+0x1a5/0x480 [ 13.440488] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.440509] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.440532] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.440555] ? __kthread_parkme+0x82/0x180 [ 13.440576] ? preempt_count_sub+0x50/0x80 [ 13.440600] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.440623] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.440645] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.440719] kthread+0x337/0x6f0 [ 13.440743] ? trace_preempt_on+0x20/0xc0 [ 13.440764] ? __pfx_kthread+0x10/0x10 [ 13.440786] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.440809] ? calculate_sigpending+0x7b/0xa0 [ 13.440831] ? __pfx_kthread+0x10/0x10 [ 13.440854] ret_from_fork+0x41/0x80 [ 13.440874] ? __pfx_kthread+0x10/0x10 [ 13.440896] ret_from_fork_asm+0x1a/0x30 [ 13.440927] </TASK> [ 13.440937] [ 13.449044] Allocated by task 279: [ 13.449209] kasan_save_stack+0x45/0x70 [ 13.449427] kasan_save_track+0x18/0x40 [ 13.449575] kasan_save_alloc_info+0x3b/0x50 [ 13.449719] __kasan_kmalloc+0xb7/0xc0 [ 13.449853] __kmalloc_cache_noprof+0x189/0x420 [ 13.450005] kasan_strings+0xc0/0xe80 [ 13.450191] kunit_try_run_case+0x1a5/0x480 [ 13.450545] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.450944] kthread+0x337/0x6f0 [ 13.451115] ret_from_fork+0x41/0x80 [ 13.451286] ret_from_fork_asm+0x1a/0x30 [ 13.451433] [ 13.451502] Freed by task 279: [ 13.451610] kasan_save_stack+0x45/0x70 [ 13.451745] kasan_save_track+0x18/0x40 [ 13.452153] kasan_save_free_info+0x3f/0x60 [ 13.452381] __kasan_slab_free+0x56/0x70 [ 13.452647] kfree+0x222/0x3f0 [ 13.452819] kasan_strings+0x2aa/0xe80 [ 13.453009] kunit_try_run_case+0x1a5/0x480 [ 13.453213] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.453465] kthread+0x337/0x6f0 [ 13.453651] ret_from_fork+0x41/0x80 [ 13.453787] ret_from_fork_asm+0x1a/0x30 [ 13.453928] [ 13.454022] The buggy address belongs to the object at ffff888102757480 [ 13.454022] which belongs to the cache kmalloc-32 of size 32 [ 13.454817] The buggy address is located 16 bytes inside of [ 13.454817] freed 32-byte region [ffff888102757480, ffff8881027574a0) [ 13.455183] [ 13.455253] The buggy address belongs to the physical page: [ 13.455437] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102757 [ 13.455765] flags: 0x200000000000000(node=0|zone=2) [ 13.455997] page_type: f5(slab) [ 13.456276] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 13.456807] raw: 0000000000000000 0000000080400040 00000000f5000000 0000000000000000 [ 13.457038] page dumped because: kasan: bad access detected [ 13.457471] [ 13.457571] Memory state around the buggy address: [ 13.457799] ffff888102757380: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 13.458120] ffff888102757400: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 13.458493] >ffff888102757480: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 13.458764] ^ [ 13.458938] ffff888102757500: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 13.459295] ffff888102757580: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 13.459618] ==================================================================
[ 23.511264] ================================================================== [ 23.511945] BUG: KASAN: slab-use-after-free in kasan_strings+0x95c/0xb00 [ 23.512587] Read of size 1 at addr ffff0000101e8f90 by task kunit_try_catch/313 [ 23.513266] [ 23.513431] CPU: 0 UID: 0 PID: 313 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc3 #1 PREEMPT [ 23.513482] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.513496] Hardware name: Radxa ROCK Pi 4B (DT) [ 23.513515] Call trace: [ 23.513527] show_stack+0x20/0x38 (C) [ 23.513559] dump_stack_lvl+0x8c/0xd0 [ 23.513592] print_report+0x118/0x608 [ 23.513623] kasan_report+0xdc/0x128 [ 23.513652] __asan_report_load1_noabort+0x20/0x30 [ 23.513687] kasan_strings+0x95c/0xb00 [ 23.513720] kunit_try_run_case+0x170/0x3f0 [ 23.513757] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.513797] kthread+0x328/0x630 [ 23.513832] ret_from_fork+0x10/0x20 [ 23.513866] [ 23.519413] Allocated by task 313: [ 23.519742] kasan_save_stack+0x3c/0x68 [ 23.520117] kasan_save_track+0x20/0x40 [ 23.520490] kasan_save_alloc_info+0x40/0x58 [ 23.520905] __kasan_kmalloc+0xd4/0xd8 [ 23.521269] __kmalloc_cache_noprof+0x15c/0x3c0 [ 23.521712] kasan_strings+0xc8/0xb00 [ 23.522074] kunit_try_run_case+0x170/0x3f0 [ 23.522482] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.523008] kthread+0x328/0x630 [ 23.523332] ret_from_fork+0x10/0x20 [ 23.523683] [ 23.523837] Freed by task 313: [ 23.524132] kasan_save_stack+0x3c/0x68 [ 23.524506] kasan_save_track+0x20/0x40 [ 23.524878] kasan_save_free_info+0x4c/0x78 [ 23.525284] __kasan_slab_free+0x6c/0x98 [ 23.525663] kfree+0x214/0x3c8 [ 23.525972] kasan_strings+0x24c/0xb00 [ 23.526342] kunit_try_run_case+0x170/0x3f0 [ 23.526750] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 23.527275] kthread+0x328/0x630 [ 23.527599] ret_from_fork+0x10/0x20 [ 23.527950] [ 23.528105] The buggy address belongs to the object at ffff0000101e8f80 [ 23.528105] which belongs to the cache kmalloc-32 of size 32 [ 23.529224] The buggy address is located 16 bytes inside of [ 23.529224] freed 32-byte region [ffff0000101e8f80, ffff0000101e8fa0) [ 23.530321] [ 23.530476] The buggy address belongs to the physical page: [ 23.530994] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101e8 [ 23.531727] flags: 0x3fffe0000000000(node=0|zone=0|lastcpupid=0x1ffff) [ 23.532341] page_type: f5(slab) [ 23.532655] raw: 03fffe0000000000 ffff000000402780 dead000000000122 0000000000000000 [ 23.533372] raw: 0000000000000000 0000000000400040 00000000f5000000 0000000000000000 [ 23.534081] page dumped because: kasan: bad access detected [ 23.534598] [ 23.534751] Memory state around the buggy address: [ 23.535201] ffff0000101e8e80: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 23.535868] ffff0000101e8f00: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 23.536535] >ffff0000101e8f80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 23.537198] ^ [ 23.537556] ffff0000101e9000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.538223] ffff0000101e9080: fb fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb [ 23.538886] ==================================================================