Date
July 16, 2025, 3:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.673330] ================================================================== [ 16.673406] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0 [ 16.673483] Write of size 128 at addr fff00000c6554a00 by task kunit_try_catch/170 [ 16.673625] [ 16.673656] CPU: 1 UID: 0 PID: 170 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 16.673750] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.673916] Hardware name: linux,dummy-virt (DT) [ 16.673960] Call trace: [ 16.674010] show_stack+0x20/0x38 (C) [ 16.674083] dump_stack_lvl+0x8c/0xd0 [ 16.674130] print_report+0x118/0x5d0 [ 16.674181] kasan_report+0xdc/0x128 [ 16.674226] kasan_check_range+0x100/0x1a8 [ 16.674272] __asan_memset+0x34/0x78 [ 16.674323] kmalloc_oob_in_memset+0x144/0x2d0 [ 16.674368] kunit_try_run_case+0x170/0x3f0 [ 16.674414] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.674465] kthread+0x328/0x630 [ 16.674504] ret_from_fork+0x10/0x20 [ 16.674549] [ 16.674574] Allocated by task 170: [ 16.674602] kasan_save_stack+0x3c/0x68 [ 16.674644] kasan_save_track+0x20/0x40 [ 16.674680] kasan_save_alloc_info+0x40/0x58 [ 16.674731] __kasan_kmalloc+0xd4/0xd8 [ 16.674767] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.674805] kmalloc_oob_in_memset+0xb0/0x2d0 [ 16.674841] kunit_try_run_case+0x170/0x3f0 [ 16.675123] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.675179] kthread+0x328/0x630 [ 16.675303] ret_from_fork+0x10/0x20 [ 16.675350] [ 16.675370] The buggy address belongs to the object at fff00000c6554a00 [ 16.675370] which belongs to the cache kmalloc-128 of size 128 [ 16.675632] The buggy address is located 0 bytes inside of [ 16.675632] allocated 120-byte region [fff00000c6554a00, fff00000c6554a78) [ 16.675791] [ 16.675841] The buggy address belongs to the physical page: [ 16.675899] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106554 [ 16.675996] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.676076] page_type: f5(slab) [ 16.676182] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 16.676292] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.676388] page dumped because: kasan: bad access detected [ 16.676483] [ 16.676500] Memory state around the buggy address: [ 16.676530] fff00000c6554900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.676882] fff00000c6554980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.677002] >fff00000c6554a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.677101] ^ [ 16.677250] fff00000c6554a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.677353] fff00000c6554b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.677422] ==================================================================
[ 12.601477] ================================================================== [ 12.601874] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x15f/0x320 [ 12.602785] Write of size 128 at addr ffff8881029cc900 by task kunit_try_catch/187 [ 12.603628] [ 12.603863] CPU: 1 UID: 0 PID: 187 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 12.603911] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.603922] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.603943] Call Trace: [ 12.603955] <TASK> [ 12.603971] dump_stack_lvl+0x73/0xb0 [ 12.604003] print_report+0xd1/0x610 [ 12.604026] ? __virt_addr_valid+0x1db/0x2d0 [ 12.604085] ? kmalloc_oob_in_memset+0x15f/0x320 [ 12.604108] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.604131] ? kmalloc_oob_in_memset+0x15f/0x320 [ 12.604181] kasan_report+0x141/0x180 [ 12.604203] ? kmalloc_oob_in_memset+0x15f/0x320 [ 12.604230] kasan_check_range+0x10c/0x1c0 [ 12.604254] __asan_memset+0x27/0x50 [ 12.604273] kmalloc_oob_in_memset+0x15f/0x320 [ 12.604296] ? __pfx_kmalloc_oob_in_memset+0x10/0x10 [ 12.604320] ? __schedule+0x10cc/0x2b60 [ 12.604343] ? __pfx_read_tsc+0x10/0x10 [ 12.604365] ? ktime_get_ts64+0x86/0x230 [ 12.604391] kunit_try_run_case+0x1a5/0x480 [ 12.604418] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.604483] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.604510] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.604534] ? __kthread_parkme+0x82/0x180 [ 12.604555] ? preempt_count_sub+0x50/0x80 [ 12.604580] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.604606] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.604631] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.604656] kthread+0x337/0x6f0 [ 12.604676] ? trace_preempt_on+0x20/0xc0 [ 12.604701] ? __pfx_kthread+0x10/0x10 [ 12.604722] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.604743] ? calculate_sigpending+0x7b/0xa0 [ 12.604780] ? __pfx_kthread+0x10/0x10 [ 12.604801] ret_from_fork+0x116/0x1d0 [ 12.604821] ? __pfx_kthread+0x10/0x10 [ 12.604842] ret_from_fork_asm+0x1a/0x30 [ 12.604874] </TASK> [ 12.604885] [ 12.617206] Allocated by task 187: [ 12.617522] kasan_save_stack+0x45/0x70 [ 12.617810] kasan_save_track+0x18/0x40 [ 12.618107] kasan_save_alloc_info+0x3b/0x50 [ 12.618356] __kasan_kmalloc+0xb7/0xc0 [ 12.618741] __kmalloc_cache_noprof+0x189/0x420 [ 12.619092] kmalloc_oob_in_memset+0xac/0x320 [ 12.619348] kunit_try_run_case+0x1a5/0x480 [ 12.619580] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.619846] kthread+0x337/0x6f0 [ 12.620079] ret_from_fork+0x116/0x1d0 [ 12.620350] ret_from_fork_asm+0x1a/0x30 [ 12.620685] [ 12.620770] The buggy address belongs to the object at ffff8881029cc900 [ 12.620770] which belongs to the cache kmalloc-128 of size 128 [ 12.621291] The buggy address is located 0 bytes inside of [ 12.621291] allocated 120-byte region [ffff8881029cc900, ffff8881029cc978) [ 12.622171] [ 12.622255] The buggy address belongs to the physical page: [ 12.622566] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029cc [ 12.622852] flags: 0x200000000000000(node=0|zone=2) [ 12.623131] page_type: f5(slab) [ 12.623538] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.623965] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.624443] page dumped because: kasan: bad access detected [ 12.624808] [ 12.624882] Memory state around the buggy address: [ 12.625069] ffff8881029cc800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.625576] ffff8881029cc880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.625951] >ffff8881029cc900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.626306] ^ [ 12.626650] ffff8881029cc980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.627032] ffff8881029cca00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.627411] ==================================================================