Date
June 17, 2025, 3:39 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 92.808395] ================================================================== [ 92.809185] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0xd8/0x1e8 [ 92.809859] Write of size 4 at addr ffff0000c6077675 by task kunit_try_catch/153 [ 92.810491] [ 92.811555] CPU: 0 PID: 153 Comm: kunit_try_catch Tainted: G B N 6.6.94-rc1 #1 [ 92.812476] Hardware name: linux,dummy-virt (DT) [ 92.812925] Call trace: [ 92.813305] dump_backtrace+0x9c/0x128 [ 92.813807] show_stack+0x20/0x38 [ 92.814253] dump_stack_lvl+0x60/0xb0 [ 92.814759] print_report+0xf8/0x5e8 [ 92.815254] kasan_report+0xdc/0x128 [ 92.815790] kasan_check_range+0xe8/0x190 [ 92.816519] __asan_memset+0x34/0x78 [ 92.817043] kmalloc_oob_memset_4+0xd8/0x1e8 [ 92.817579] kunit_try_run_case+0x114/0x298 [ 92.818086] kunit_generic_run_threadfn_adapter+0x38/0x60 [ 92.818811] kthread+0x18c/0x1a8 [ 92.819248] ret_from_fork+0x10/0x20 [ 92.819838] [ 92.820100] Allocated by task 153: [ 92.820384] kasan_save_stack+0x3c/0x68 [ 92.820810] kasan_set_track+0x2c/0x40 [ 92.821209] kasan_save_alloc_info+0x24/0x38 [ 92.821653] __kasan_kmalloc+0xd4/0xd8 [ 92.822233] kmalloc_trace+0x68/0x130 [ 92.822716] kmalloc_oob_memset_4+0xa0/0x1e8 [ 92.823365] kunit_try_run_case+0x114/0x298 [ 92.824059] kunit_generic_run_threadfn_adapter+0x38/0x60 [ 92.824637] kthread+0x18c/0x1a8 [ 92.825034] ret_from_fork+0x10/0x20 [ 92.825711] [ 92.826040] The buggy address belongs to the object at ffff0000c6077600 [ 92.826040] which belongs to the cache kmalloc-128 of size 128 [ 92.827157] The buggy address is located 117 bytes inside of [ 92.827157] allocated 120-byte region [ffff0000c6077600, ffff0000c6077678) [ 92.828495] [ 92.828766] The buggy address belongs to the physical page: [ 92.829347] page:000000001b5b04a5 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106077 [ 92.830219] flags: 0xbfffc0000000800(slab|node=0|zone=2|lastcpupid=0xffff) [ 92.831298] page_type: 0xffffffff() [ 92.831651] raw: 0bfffc0000000800 ffff0000c00018c0 dead000000000122 0000000000000000 [ 92.832645] raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 [ 92.833386] page dumped because: kasan: bad access detected [ 92.833860] [ 92.834124] Memory state around the buggy address: [ 92.834628] ffff0000c6077500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc [ 92.836360] ffff0000c6077580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 92.837022] >ffff0000c6077600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 92.837757] ^ [ 92.838391] ffff0000c6077680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 92.839099] ffff0000c6077700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 92.839795] ==================================================================
[ 33.970937] ================================================================== [ 33.971565] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0xdd/0x1e0 [ 33.972376] Write of size 4 at addr ffff888102862475 by task kunit_try_catch/168 [ 33.972789] [ 33.972973] CPU: 0 PID: 168 Comm: kunit_try_catch Tainted: G B N 6.6.94-rc1 #1 [ 33.973426] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 33.973941] Call Trace: [ 33.974101] <TASK> [ 33.974281] dump_stack_lvl+0x4e/0x90 [ 33.974528] print_report+0xd2/0x650 [ 33.975333] ? __virt_addr_valid+0x156/0x1e0 [ 33.975678] ? kmalloc_oob_memset_4+0xdd/0x1e0 [ 33.976027] ? kasan_complete_mode_report_info+0x2a/0x200 [ 33.976409] ? kmalloc_oob_memset_4+0xdd/0x1e0 [ 33.976686] kasan_report+0x147/0x180 [ 33.976968] ? kmalloc_oob_memset_4+0xdd/0x1e0 [ 33.977287] kasan_check_range+0x10c/0x1c0 [ 33.977530] __asan_memset+0x27/0x50 [ 33.977819] kmalloc_oob_memset_4+0xdd/0x1e0 [ 33.978104] ? __pfx_kmalloc_oob_memset_4+0x10/0x10 [ 33.978919] ? __schedule+0x715/0x11a0 [ 33.979217] ? ktime_get_ts64+0x118/0x140 [ 33.979498] kunit_try_run_case+0x120/0x290 [ 33.979809] ? __pfx_kunit_try_run_case+0x10/0x10 [ 33.980188] ? __kasan_check_write+0x18/0x20 [ 33.980468] ? trace_preempt_on+0x20/0xa0 [ 33.980720] ? __kthread_parkme+0x4f/0xd0 [ 33.981075] ? preempt_count_sub+0x50/0x80 [ 33.981357] ? __pfx_kunit_try_run_case+0x10/0x10 [ 33.981640] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 33.982030] kunit_generic_run_threadfn_adapter+0x33/0x50 [ 33.982689] kthread+0x19e/0x1e0 [ 33.983026] ? __pfx_kthread+0x10/0x10 [ 33.983300] ret_from_fork+0x41/0x70 [ 33.983532] ? __pfx_kthread+0x10/0x10 [ 33.983780] ret_from_fork_asm+0x1b/0x30 [ 33.984206] </TASK> [ 33.984344] [ 33.984472] Allocated by task 168: [ 33.984693] kasan_save_stack+0x44/0x70 [ 33.984975] kasan_set_track+0x29/0x40 [ 33.985234] kasan_save_alloc_info+0x22/0x30 [ 33.985492] __kasan_kmalloc+0xb7/0xc0 [ 33.985734] kmalloc_trace+0x4c/0xb0 [ 33.986024] kmalloc_oob_memset_4+0x9f/0x1e0 [ 33.986330] kunit_try_run_case+0x120/0x290 [ 33.986578] kunit_generic_run_threadfn_adapter+0x33/0x50 [ 33.987428] kthread+0x19e/0x1e0 [ 33.987639] ret_from_fork+0x41/0x70 [ 33.988099] ret_from_fork_asm+0x1b/0x30 [ 33.988365] [ 33.988481] The buggy address belongs to the object at ffff888102862400 [ 33.988481] which belongs to the cache kmalloc-128 of size 128 [ 33.989150] The buggy address is located 117 bytes inside of [ 33.989150] allocated 120-byte region [ffff888102862400, ffff888102862478) [ 33.989877] [ 33.990001] The buggy address belongs to the physical page: [ 33.990332] page:(____ptrval____) refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102862 [ 33.991290] flags: 0x200000000000800(slab|node=0|zone=2) [ 33.991607] page_type: 0xffffffff() [ 33.991928] raw: 0200000000000800 ffff8881000418c0 dead000000000122 0000000000000000 [ 33.992369] raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 [ 33.992779] page dumped because: kasan: bad access detected [ 33.993074] [ 33.993174] Memory state around the buggy address: [ 33.993471] ffff888102862300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.993916] ffff888102862380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.994344] >ffff888102862400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 33.995226] ^ [ 33.995609] ffff888102862480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.996067] ffff888102862500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.996457] ==================================================================