Date
June 17, 2025, 3:39 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 92.757520] ================================================================== [ 92.758840] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0xd8/0x1f0 [ 92.761040] Write of size 2 at addr ffff0000c5f8ab77 by task kunit_try_catch/151 [ 92.762136] [ 92.762618] CPU: 1 PID: 151 Comm: kunit_try_catch Tainted: G B N 6.6.94-rc1 #1 [ 92.763852] Hardware name: linux,dummy-virt (DT) [ 92.764890] Call trace: [ 92.765394] dump_backtrace+0x9c/0x128 [ 92.766276] show_stack+0x20/0x38 [ 92.767264] dump_stack_lvl+0x60/0xb0 [ 92.768111] print_report+0xf8/0x5e8 [ 92.768980] kasan_report+0xdc/0x128 [ 92.769825] kasan_check_range+0xe8/0x190 [ 92.770666] __asan_memset+0x34/0x78 [ 92.771853] kmalloc_oob_memset_2+0xd8/0x1f0 [ 92.772632] kunit_try_run_case+0x114/0x298 [ 92.773545] kunit_generic_run_threadfn_adapter+0x38/0x60 [ 92.774502] kthread+0x18c/0x1a8 [ 92.775518] ret_from_fork+0x10/0x20 [ 92.776386] [ 92.776788] Allocated by task 151: [ 92.777446] kasan_save_stack+0x3c/0x68 [ 92.778340] kasan_set_track+0x2c/0x40 [ 92.779746] kasan_save_alloc_info+0x24/0x38 [ 92.780662] __kasan_kmalloc+0xd4/0xd8 [ 92.781505] kmalloc_trace+0x68/0x130 [ 92.782307] kmalloc_oob_memset_2+0xa0/0x1f0 [ 92.783223] kunit_try_run_case+0x114/0x298 [ 92.784207] kunit_generic_run_threadfn_adapter+0x38/0x60 [ 92.784903] kthread+0x18c/0x1a8 [ 92.785463] ret_from_fork+0x10/0x20 [ 92.786035] [ 92.786279] The buggy address belongs to the object at ffff0000c5f8ab00 [ 92.786279] which belongs to the cache kmalloc-128 of size 128 [ 92.787332] The buggy address is located 119 bytes inside of [ 92.787332] allocated 120-byte region [ffff0000c5f8ab00, ffff0000c5f8ab78) [ 92.788095] [ 92.788300] The buggy address belongs to the physical page: [ 92.788850] page:00000000678618b8 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105f8a [ 92.789690] flags: 0xbfffc0000000800(slab|node=0|zone=2|lastcpupid=0xffff) [ 92.790276] page_type: 0xffffffff() [ 92.790759] raw: 0bfffc0000000800 ffff0000c00018c0 dead000000000122 0000000000000000 [ 92.791615] raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 [ 92.792338] page dumped because: kasan: bad access detected [ 92.792886] [ 92.793151] Memory state around the buggy address: [ 92.793641] ffff0000c5f8aa00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc [ 92.794278] ffff0000c5f8aa80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 92.794912] >ffff0000c5f8ab00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 92.795562] ^ [ 92.796415] ffff0000c5f8ab80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 92.797118] ffff0000c5f8ac00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 92.797757] ==================================================================
[ 33.937193] ================================================================== [ 33.937847] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0xdd/0x1e0 [ 33.938380] Write of size 2 at addr ffff888102862377 by task kunit_try_catch/166 [ 33.939106] [ 33.939293] CPU: 0 PID: 166 Comm: kunit_try_catch Tainted: G B N 6.6.94-rc1 #1 [ 33.940306] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 33.941150] Call Trace: [ 33.941546] <TASK> [ 33.941764] dump_stack_lvl+0x4e/0x90 [ 33.942230] print_report+0xd2/0x650 [ 33.942677] ? __virt_addr_valid+0x156/0x1e0 [ 33.943172] ? kmalloc_oob_memset_2+0xdd/0x1e0 [ 33.943520] ? kasan_complete_mode_report_info+0x2a/0x200 [ 33.944059] ? kmalloc_oob_memset_2+0xdd/0x1e0 [ 33.944529] kasan_report+0x147/0x180 [ 33.944946] ? kmalloc_oob_memset_2+0xdd/0x1e0 [ 33.945335] kasan_check_range+0x10c/0x1c0 [ 33.945814] __asan_memset+0x27/0x50 [ 33.946203] kmalloc_oob_memset_2+0xdd/0x1e0 [ 33.946613] ? __pfx_kmalloc_oob_memset_2+0x10/0x10 [ 33.947091] ? __schedule+0x715/0x11a0 [ 33.947388] ? ktime_get_ts64+0x118/0x140 [ 33.947634] kunit_try_run_case+0x120/0x290 [ 33.948049] ? __pfx_kunit_try_run_case+0x10/0x10 [ 33.948349] ? __kasan_check_write+0x18/0x20 [ 33.948824] ? trace_preempt_on+0x20/0xa0 [ 33.949114] ? __kthread_parkme+0x4f/0xd0 [ 33.949435] ? preempt_count_sub+0x50/0x80 [ 33.949743] ? __pfx_kunit_try_run_case+0x10/0x10 [ 33.950105] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 33.950718] kunit_generic_run_threadfn_adapter+0x33/0x50 [ 33.951166] kthread+0x19e/0x1e0 [ 33.951433] ? __pfx_kthread+0x10/0x10 [ 33.951725] ret_from_fork+0x41/0x70 [ 33.952216] ? __pfx_kthread+0x10/0x10 [ 33.952460] ret_from_fork_asm+0x1b/0x30 [ 33.952769] </TASK> [ 33.952952] [ 33.953066] Allocated by task 166: [ 33.953275] kasan_save_stack+0x44/0x70 [ 33.953526] kasan_set_track+0x29/0x40 [ 33.953791] kasan_save_alloc_info+0x22/0x30 [ 33.954054] __kasan_kmalloc+0xb7/0xc0 [ 33.954397] kmalloc_trace+0x4c/0xb0 [ 33.954653] kmalloc_oob_memset_2+0x9f/0x1e0 [ 33.955033] kunit_try_run_case+0x120/0x290 [ 33.955308] kunit_generic_run_threadfn_adapter+0x33/0x50 [ 33.955653] kthread+0x19e/0x1e0 [ 33.955886] ret_from_fork+0x41/0x70 [ 33.956180] ret_from_fork_asm+0x1b/0x30 [ 33.956389] [ 33.956579] The buggy address belongs to the object at ffff888102862300 [ 33.956579] which belongs to the cache kmalloc-128 of size 128 [ 33.957236] The buggy address is located 119 bytes inside of [ 33.957236] allocated 120-byte region [ffff888102862300, ffff888102862378) [ 33.958102] [ 33.958234] The buggy address belongs to the physical page: [ 33.958557] page:(____ptrval____) refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102862 [ 33.959146] flags: 0x200000000000800(slab|node=0|zone=2) [ 33.959486] page_type: 0xffffffff() [ 33.959733] raw: 0200000000000800 ffff8881000418c0 dead000000000122 0000000000000000 [ 33.960184] raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 [ 33.960564] page dumped because: kasan: bad access detected [ 33.961004] [ 33.961140] Memory state around the buggy address: [ 33.961448] ffff888102862200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.961799] ffff888102862280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.962254] >ffff888102862300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 33.962603] ^ [ 33.963189] ffff888102862380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.963625] ffff888102862400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.964035] ==================================================================