Date
June 7, 2025, 10:40 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 21.330942] ================================================================== [ 21.331942] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x15c/0x310 [ 21.333218] Write of size 2 at addr fff00000c416b577 by task kunit_try_catch/160 [ 21.334024] [ 21.334378] CPU: 1 UID: 0 PID: 160 Comm: kunit_try_catch Tainted: G B N 6.12.33-rc1 #1 [ 21.334617] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.334694] Hardware name: linux,dummy-virt (DT) [ 21.334747] Call trace: [ 21.334773] dump_backtrace+0x9c/0x128 [ 21.334826] show_stack+0x20/0x38 [ 21.334906] dump_stack_lvl+0x8c/0xd0 [ 21.334990] print_report+0x118/0x5f0 [ 21.335041] kasan_report+0xdc/0x128 [ 21.335084] kasan_check_range+0x100/0x1a8 [ 21.335131] __asan_memset+0x34/0x78 [ 21.335178] kmalloc_oob_memset_2+0x15c/0x310 [ 21.335227] kunit_try_run_case+0x170/0x3f0 [ 21.335273] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.335325] kthread+0x24c/0x2d0 [ 21.335366] ret_from_fork+0x10/0x20 [ 21.335413] [ 21.342504] Allocated by task 160: [ 21.342924] kasan_save_stack+0x3c/0x68 [ 21.343449] kasan_save_track+0x20/0x40 [ 21.344034] kasan_save_alloc_info+0x40/0x58 [ 21.344659] __kasan_kmalloc+0xd4/0xd8 [ 21.345311] __kmalloc_cache_noprof+0x154/0x320 [ 21.345980] kmalloc_oob_memset_2+0xb0/0x310 [ 21.346572] kunit_try_run_case+0x170/0x3f0 [ 21.347174] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.347834] kthread+0x24c/0x2d0 [ 21.348354] ret_from_fork+0x10/0x20 [ 21.348941] [ 21.349285] The buggy address belongs to the object at fff00000c416b500 [ 21.349285] which belongs to the cache kmalloc-128 of size 128 [ 21.350492] The buggy address is located 119 bytes inside of [ 21.350492] allocated 120-byte region [fff00000c416b500, fff00000c416b578) [ 21.351730] [ 21.352087] The buggy address belongs to the physical page: [ 21.352778] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10416b [ 21.353711] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 21.354478] page_type: f5(slab) [ 21.355015] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 21.355868] raw: 0000000000000000 0000000080100010 00000001f5000000 0000000000000000 [ 21.356655] page dumped because: kasan: bad access detected [ 21.357304] [ 21.357651] Memory state around the buggy address: [ 21.358252] fff00000c416b400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.359031] fff00000c416b480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.359830] >fff00000c416b500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 21.360587] ^ [ 21.361398] fff00000c416b580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.362185] fff00000c416b600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.362931] ==================================================================
[ 17.663276] ================================================================== [ 17.664560] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x167/0x330 [ 17.665323] Write of size 2 at addr ffff888102921877 by task kunit_try_catch/177 [ 17.666575] [ 17.666838] CPU: 0 UID: 0 PID: 177 Comm: kunit_try_catch Tainted: G B N 6.12.33-rc1 #1 [ 17.667208] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.667274] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 17.667384] Call Trace: [ 17.667447] <TASK> [ 17.667689] dump_stack_lvl+0x73/0xb0 [ 17.667767] print_report+0xd1/0x640 [ 17.667809] ? __virt_addr_valid+0x1db/0x2d0 [ 17.668308] ? kmalloc_oob_memset_2+0x167/0x330 [ 17.668345] ? kasan_complete_mode_report_info+0x2a/0x200 [ 17.668378] ? kmalloc_oob_memset_2+0x167/0x330 [ 17.668411] kasan_report+0x140/0x180 [ 17.668475] ? kmalloc_oob_memset_2+0x167/0x330 [ 17.668570] kasan_check_range+0x10c/0x1c0 [ 17.668613] __asan_memset+0x27/0x50 [ 17.668643] kmalloc_oob_memset_2+0x167/0x330 [ 17.668677] ? __pfx_kmalloc_oob_memset_2+0x10/0x10 [ 17.668711] ? __schedule+0xc49/0x27a0 [ 17.668741] ? __pfx_read_tsc+0x10/0x10 [ 17.668769] ? ktime_get_ts64+0x84/0x230 [ 17.668807] kunit_try_run_case+0x1a6/0x480 [ 17.668879] ? __pfx_kunit_try_run_case+0x10/0x10 [ 17.668909] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 17.668937] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 17.668971] ? __kthread_parkme+0x82/0x160 [ 17.668998] ? preempt_count_sub+0x50/0x80 [ 17.669027] ? __pfx_kunit_try_run_case+0x10/0x10 [ 17.669055] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 17.669091] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 17.669126] kthread+0x257/0x310 [ 17.669150] ? __pfx_kthread+0x10/0x10 [ 17.669175] ret_from_fork+0x41/0x80 [ 17.669203] ? __pfx_kthread+0x10/0x10 [ 17.669267] ret_from_fork_asm+0x1a/0x30 [ 17.669312] </TASK> [ 17.669326] [ 17.688620] Allocated by task 177: [ 17.689078] kasan_save_stack+0x45/0x70 [ 17.689436] kasan_save_track+0x18/0x40 [ 17.689752] kasan_save_alloc_info+0x3b/0x50 [ 17.691314] __kasan_kmalloc+0xb7/0xc0 [ 17.691942] __kmalloc_cache_noprof+0x168/0x350 [ 17.692543] kmalloc_oob_memset_2+0xad/0x330 [ 17.693340] kunit_try_run_case+0x1a6/0x480 [ 17.694012] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 17.694501] kthread+0x257/0x310 [ 17.695247] ret_from_fork+0x41/0x80 [ 17.695703] ret_from_fork_asm+0x1a/0x30 [ 17.696303] [ 17.696750] The buggy address belongs to the object at ffff888102921800 [ 17.696750] which belongs to the cache kmalloc-128 of size 128 [ 17.698366] The buggy address is located 119 bytes inside of [ 17.698366] allocated 120-byte region [ffff888102921800, ffff888102921878) [ 17.699205] [ 17.699427] The buggy address belongs to the physical page: [ 17.700836] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102921 [ 17.701374] flags: 0x200000000000000(node=0|zone=2) [ 17.702666] page_type: f5(slab) [ 17.703203] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 17.704071] raw: 0000000000000000 0000000080100010 00000001f5000000 0000000000000000 [ 17.704661] page dumped because: kasan: bad access detected [ 17.705456] [ 17.706237] Memory state around the buggy address: [ 17.706675] ffff888102921700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 17.707782] ffff888102921780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.708324] >ffff888102921800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 17.710031] ^ [ 17.710762] ffff888102921880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.711545] ffff888102921900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.712265] ==================================================================