Date
July 13, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.684329] ================================================================== [ 16.684411] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0 [ 16.684476] Write of size 128 at addr fff00000c5aae100 by task kunit_try_catch/171 [ 16.684584] [ 16.684642] CPU: 1 UID: 0 PID: 171 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 16.684723] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.684749] Hardware name: linux,dummy-virt (DT) [ 16.684823] Call trace: [ 16.684851] show_stack+0x20/0x38 (C) [ 16.684959] dump_stack_lvl+0x8c/0xd0 [ 16.685005] print_report+0x118/0x5d0 [ 16.685059] kasan_report+0xdc/0x128 [ 16.685103] kasan_check_range+0x100/0x1a8 [ 16.685149] __asan_memset+0x34/0x78 [ 16.685409] kmalloc_oob_in_memset+0x144/0x2d0 [ 16.685504] kunit_try_run_case+0x170/0x3f0 [ 16.685552] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.685660] kthread+0x328/0x630 [ 16.685706] ret_from_fork+0x10/0x20 [ 16.685777] [ 16.685795] Allocated by task 171: [ 16.685822] kasan_save_stack+0x3c/0x68 [ 16.685907] kasan_save_track+0x20/0x40 [ 16.685961] kasan_save_alloc_info+0x40/0x58 [ 16.686053] __kasan_kmalloc+0xd4/0xd8 [ 16.686138] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.686189] kmalloc_oob_in_memset+0xb0/0x2d0 [ 16.686226] kunit_try_run_case+0x170/0x3f0 [ 16.686263] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.686306] kthread+0x328/0x630 [ 16.686338] ret_from_fork+0x10/0x20 [ 16.686372] [ 16.686390] The buggy address belongs to the object at fff00000c5aae100 [ 16.686390] which belongs to the cache kmalloc-128 of size 128 [ 16.686591] The buggy address is located 0 bytes inside of [ 16.686591] allocated 120-byte region [fff00000c5aae100, fff00000c5aae178) [ 16.686664] [ 16.686683] The buggy address belongs to the physical page: [ 16.686751] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105aae [ 16.686832] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.686917] page_type: f5(slab) [ 16.686988] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 16.687076] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.687133] page dumped because: kasan: bad access detected [ 16.687211] [ 16.687280] Memory state around the buggy address: [ 16.687338] fff00000c5aae000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.687413] fff00000c5aae080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.687466] >fff00000c5aae100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.687573] ^ [ 16.687613] fff00000c5aae180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.687655] fff00000c5aae200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.687711] ==================================================================
[ 12.649276] ================================================================== [ 12.650882] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x15f/0x320 [ 12.651851] Write of size 128 at addr ffff8881026b2a00 by task kunit_try_catch/187 [ 12.652636] [ 12.653004] CPU: 0 UID: 0 PID: 187 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 12.653055] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.653067] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.653090] Call Trace: [ 12.653105] <TASK> [ 12.653220] dump_stack_lvl+0x73/0xb0 [ 12.653262] print_report+0xd1/0x610 [ 12.653287] ? __virt_addr_valid+0x1db/0x2d0 [ 12.653312] ? kmalloc_oob_in_memset+0x15f/0x320 [ 12.653335] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.653358] ? kmalloc_oob_in_memset+0x15f/0x320 [ 12.653381] kasan_report+0x141/0x180 [ 12.653418] ? kmalloc_oob_in_memset+0x15f/0x320 [ 12.653457] kasan_check_range+0x10c/0x1c0 [ 12.653481] __asan_memset+0x27/0x50 [ 12.653501] kmalloc_oob_in_memset+0x15f/0x320 [ 12.653524] ? __pfx_kmalloc_oob_in_memset+0x10/0x10 [ 12.653548] ? __schedule+0x10cc/0x2b60 [ 12.653573] ? __pfx_read_tsc+0x10/0x10 [ 12.653596] ? ktime_get_ts64+0x86/0x230 [ 12.653623] kunit_try_run_case+0x1a5/0x480 [ 12.653649] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.653672] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.653699] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.653723] ? __kthread_parkme+0x82/0x180 [ 12.653746] ? preempt_count_sub+0x50/0x80 [ 12.653771] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.653796] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.653821] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.653846] kthread+0x337/0x6f0 [ 12.653865] ? trace_preempt_on+0x20/0xc0 [ 12.653889] ? __pfx_kthread+0x10/0x10 [ 12.653909] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.653931] ? calculate_sigpending+0x7b/0xa0 [ 12.653956] ? __pfx_kthread+0x10/0x10 [ 12.653978] ret_from_fork+0x116/0x1d0 [ 12.653997] ? __pfx_kthread+0x10/0x10 [ 12.654018] ret_from_fork_asm+0x1a/0x30 [ 12.654049] </TASK> [ 12.654059] [ 12.669627] Allocated by task 187: [ 12.670062] kasan_save_stack+0x45/0x70 [ 12.670480] kasan_save_track+0x18/0x40 [ 12.670845] kasan_save_alloc_info+0x3b/0x50 [ 12.671316] __kasan_kmalloc+0xb7/0xc0 [ 12.671828] __kmalloc_cache_noprof+0x189/0x420 [ 12.671999] kmalloc_oob_in_memset+0xac/0x320 [ 12.672150] kunit_try_run_case+0x1a5/0x480 [ 12.672305] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.672955] kthread+0x337/0x6f0 [ 12.673284] ret_from_fork+0x116/0x1d0 [ 12.673831] ret_from_fork_asm+0x1a/0x30 [ 12.674466] [ 12.674736] The buggy address belongs to the object at ffff8881026b2a00 [ 12.674736] which belongs to the cache kmalloc-128 of size 128 [ 12.676062] The buggy address is located 0 bytes inside of [ 12.676062] allocated 120-byte region [ffff8881026b2a00, ffff8881026b2a78) [ 12.676464] [ 12.676904] The buggy address belongs to the physical page: [ 12.677528] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1026b2 [ 12.678358] flags: 0x200000000000000(node=0|zone=2) [ 12.679100] page_type: f5(slab) [ 12.679232] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.679755] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.680755] page dumped because: kasan: bad access detected [ 12.681241] [ 12.681481] Memory state around the buggy address: [ 12.682062] ffff8881026b2900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.682287] ffff8881026b2980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.682858] >ffff8881026b2a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.683682] ^ [ 12.684380] ffff8881026b2a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.685215] ffff8881026b2b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.685700] ==================================================================
[ 12.926349] ================================================================== [ 12.926846] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x15f/0x320 [ 12.927371] Write of size 128 at addr ffff888102b2e500 by task kunit_try_catch/188 [ 12.927680] [ 12.927799] CPU: 1 UID: 0 PID: 188 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 12.927851] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.927863] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.927882] Call Trace: [ 12.927893] <TASK> [ 12.927949] dump_stack_lvl+0x73/0xb0 [ 12.927996] print_report+0xd1/0x610 [ 12.928020] ? __virt_addr_valid+0x1db/0x2d0 [ 12.928044] ? kmalloc_oob_in_memset+0x15f/0x320 [ 12.928079] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.928111] ? kmalloc_oob_in_memset+0x15f/0x320 [ 12.928145] kasan_report+0x141/0x180 [ 12.928178] ? kmalloc_oob_in_memset+0x15f/0x320 [ 12.928205] kasan_check_range+0x10c/0x1c0 [ 12.928229] __asan_memset+0x27/0x50 [ 12.928249] kmalloc_oob_in_memset+0x15f/0x320 [ 12.928270] ? __kasan_check_write+0x18/0x20 [ 12.928290] ? __pfx_kmalloc_oob_in_memset+0x10/0x10 [ 12.928315] ? __pfx_queued_spin_lock_slowpath+0x10/0x10 [ 12.928342] ? __pfx_read_tsc+0x10/0x10 [ 12.928363] ? ktime_get_ts64+0x86/0x230 [ 12.928388] kunit_try_run_case+0x1a5/0x480 [ 12.928412] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.928436] ? _raw_spin_lock_irqsave+0xf9/0x100 [ 12.928461] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.928485] ? __kthread_parkme+0x82/0x180 [ 12.928505] ? preempt_count_sub+0x50/0x80 [ 12.928529] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.928563] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.928588] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.928614] kthread+0x337/0x6f0 [ 12.928643] ? trace_preempt_on+0x20/0xc0 [ 12.928667] ? __pfx_kthread+0x10/0x10 [ 12.928687] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.928745] ? calculate_sigpending+0x7b/0xa0 [ 12.928771] ? __pfx_kthread+0x10/0x10 [ 12.928792] ret_from_fork+0x116/0x1d0 [ 12.928812] ? __pfx_kthread+0x10/0x10 [ 12.928832] ret_from_fork_asm+0x1a/0x30 [ 12.928863] </TASK> [ 12.928873] [ 12.937137] Allocated by task 188: [ 12.937267] kasan_save_stack+0x45/0x70 [ 12.937595] kasan_save_track+0x18/0x40 [ 12.937914] kasan_save_alloc_info+0x3b/0x50 [ 12.938363] __kasan_kmalloc+0xb7/0xc0 [ 12.938582] __kmalloc_cache_noprof+0x189/0x420 [ 12.939634] kmalloc_oob_in_memset+0xac/0x320 [ 12.940132] kunit_try_run_case+0x1a5/0x480 [ 12.940408] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.940843] kthread+0x337/0x6f0 [ 12.941012] ret_from_fork+0x116/0x1d0 [ 12.941509] ret_from_fork_asm+0x1a/0x30 [ 12.942047] [ 12.942456] The buggy address belongs to the object at ffff888102b2e500 [ 12.942456] which belongs to the cache kmalloc-128 of size 128 [ 12.943516] The buggy address is located 0 bytes inside of [ 12.943516] allocated 120-byte region [ffff888102b2e500, ffff888102b2e578) [ 12.944813] [ 12.944918] The buggy address belongs to the physical page: [ 12.945348] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b2e [ 12.945876] flags: 0x200000000000000(node=0|zone=2) [ 12.946273] page_type: f5(slab) [ 12.946553] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.947478] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.948084] page dumped because: kasan: bad access detected [ 12.948367] [ 12.948473] Memory state around the buggy address: [ 12.948701] ffff888102b2e400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.949098] ffff888102b2e480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.949402] >ffff888102b2e500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.949672] ^ [ 12.950096] ffff888102b2e580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.950484] ffff888102b2e600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.950801] ==================================================================