Date
July 9, 2025, 12:11 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.692980] ================================================================== [ 19.693079] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x150/0x300 [ 19.693132] Write of size 4 at addr fff00000c638df75 by task kunit_try_catch/175 [ 19.693188] [ 19.693244] CPU: 1 UID: 0 PID: 175 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 19.693336] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.693362] Hardware name: linux,dummy-virt (DT) [ 19.693439] Call trace: [ 19.693468] show_stack+0x20/0x38 (C) [ 19.693535] dump_stack_lvl+0x8c/0xd0 [ 19.693723] print_report+0x118/0x608 [ 19.693772] kasan_report+0xdc/0x128 [ 19.693817] kasan_check_range+0x100/0x1a8 [ 19.693864] __asan_memset+0x34/0x78 [ 19.693917] kmalloc_oob_memset_4+0x150/0x300 [ 19.693964] kunit_try_run_case+0x170/0x3f0 [ 19.694012] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.694074] kthread+0x328/0x630 [ 19.694116] ret_from_fork+0x10/0x20 [ 19.694163] [ 19.694181] Allocated by task 175: [ 19.694209] kasan_save_stack+0x3c/0x68 [ 19.694250] kasan_save_track+0x20/0x40 [ 19.694287] kasan_save_alloc_info+0x40/0x58 [ 19.694346] __kasan_kmalloc+0xd4/0xd8 [ 19.694383] __kmalloc_cache_noprof+0x16c/0x3c0 [ 19.694431] kmalloc_oob_memset_4+0xb0/0x300 [ 19.694485] kunit_try_run_case+0x170/0x3f0 [ 19.694571] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.694617] kthread+0x328/0x630 [ 19.694650] ret_from_fork+0x10/0x20 [ 19.694928] [ 19.695138] The buggy address belongs to the object at fff00000c638df00 [ 19.695138] which belongs to the cache kmalloc-128 of size 128 [ 19.695221] The buggy address is located 117 bytes inside of [ 19.695221] allocated 120-byte region [fff00000c638df00, fff00000c638df78) [ 19.695282] [ 19.695302] The buggy address belongs to the physical page: [ 19.695597] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10638d [ 19.695920] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.696002] page_type: f5(slab) [ 19.696090] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 19.696185] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 19.696342] page dumped because: kasan: bad access detected [ 19.696435] [ 19.696476] Memory state around the buggy address: [ 19.696524] fff00000c638de00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.696640] fff00000c638de80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.696719] >fff00000c638df00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 19.696887] ^ [ 19.696933] fff00000c638df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.696978] fff00000c638e000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.697175] ==================================================================
[ 12.708691] ================================================================== [ 12.709701] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x166/0x330 [ 12.710204] Write of size 4 at addr ffff88810269af75 by task kunit_try_catch/191 [ 12.710430] [ 12.710520] CPU: 0 UID: 0 PID: 191 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.710566] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.710577] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.710599] Call Trace: [ 12.710611] <TASK> [ 12.710629] dump_stack_lvl+0x73/0xb0 [ 12.710661] print_report+0xd1/0x650 [ 12.710684] ? __virt_addr_valid+0x1db/0x2d0 [ 12.710713] ? kmalloc_oob_memset_4+0x166/0x330 [ 12.710734] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.710757] ? kmalloc_oob_memset_4+0x166/0x330 [ 12.710779] kasan_report+0x141/0x180 [ 12.710801] ? kmalloc_oob_memset_4+0x166/0x330 [ 12.710828] kasan_check_range+0x10c/0x1c0 [ 12.710851] __asan_memset+0x27/0x50 [ 12.710870] kmalloc_oob_memset_4+0x166/0x330 [ 12.710893] ? __pfx_kmalloc_oob_memset_4+0x10/0x10 [ 12.710915] ? __schedule+0x10cc/0x2b60 [ 12.710948] ? __pfx_read_tsc+0x10/0x10 [ 12.710969] ? ktime_get_ts64+0x86/0x230 [ 12.710994] kunit_try_run_case+0x1a5/0x480 [ 12.711020] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.711042] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.711066] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.711090] ? __kthread_parkme+0x82/0x180 [ 12.711111] ? preempt_count_sub+0x50/0x80 [ 12.711255] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.711287] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.711313] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.711338] kthread+0x337/0x6f0 [ 12.711357] ? trace_preempt_on+0x20/0xc0 [ 12.711396] ? __pfx_kthread+0x10/0x10 [ 12.711416] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.711438] ? calculate_sigpending+0x7b/0xa0 [ 12.711462] ? __pfx_kthread+0x10/0x10 [ 12.711549] ret_from_fork+0x116/0x1d0 [ 12.711568] ? __pfx_kthread+0x10/0x10 [ 12.711601] ret_from_fork_asm+0x1a/0x30 [ 12.711631] </TASK> [ 12.711642] [ 12.724648] Allocated by task 191: [ 12.725088] kasan_save_stack+0x45/0x70 [ 12.725511] kasan_save_track+0x18/0x40 [ 12.725837] kasan_save_alloc_info+0x3b/0x50 [ 12.726107] __kasan_kmalloc+0xb7/0xc0 [ 12.726486] __kmalloc_cache_noprof+0x189/0x420 [ 12.726938] kmalloc_oob_memset_4+0xac/0x330 [ 12.727349] kunit_try_run_case+0x1a5/0x480 [ 12.727507] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.727681] kthread+0x337/0x6f0 [ 12.727801] ret_from_fork+0x116/0x1d0 [ 12.727957] ret_from_fork_asm+0x1a/0x30 [ 12.728354] [ 12.728513] The buggy address belongs to the object at ffff88810269af00 [ 12.728513] which belongs to the cache kmalloc-128 of size 128 [ 12.729722] The buggy address is located 117 bytes inside of [ 12.729722] allocated 120-byte region [ffff88810269af00, ffff88810269af78) [ 12.731023] [ 12.731208] The buggy address belongs to the physical page: [ 12.731595] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10269a [ 12.731837] flags: 0x200000000000000(node=0|zone=2) [ 12.732199] page_type: f5(slab) [ 12.732510] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.733323] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.734189] page dumped because: kasan: bad access detected [ 12.734673] [ 12.734752] Memory state around the buggy address: [ 12.734911] ffff88810269ae00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.735597] ffff88810269ae80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.736360] >ffff88810269af00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.736827] ^ [ 12.737345] ffff88810269af80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.737978] ffff88810269b000: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 12.738412] ==================================================================