Date
July 20, 2025, 8:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.218357] ================================================================== [ 15.218635] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x150/0x300 [ 15.218696] Write of size 4 at addr fff00000c6094c75 by task kunit_try_catch/175 [ 15.218827] [ 15.218863] CPU: 1 UID: 0 PID: 175 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.219219] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.219262] Hardware name: linux,dummy-virt (DT) [ 15.219328] Call trace: [ 15.219353] show_stack+0x20/0x38 (C) [ 15.219408] dump_stack_lvl+0x8c/0xd0 [ 15.219454] print_report+0x118/0x5d0 [ 15.219543] kasan_report+0xdc/0x128 [ 15.219588] kasan_check_range+0x100/0x1a8 [ 15.219697] __asan_memset+0x34/0x78 [ 15.219743] kmalloc_oob_memset_4+0x150/0x300 [ 15.219788] kunit_try_run_case+0x170/0x3f0 [ 15.219977] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.220049] kthread+0x328/0x630 [ 15.220337] ret_from_fork+0x10/0x20 [ 15.220431] [ 15.220470] Allocated by task 175: [ 15.220517] kasan_save_stack+0x3c/0x68 [ 15.220646] kasan_save_track+0x20/0x40 [ 15.220688] kasan_save_alloc_info+0x40/0x58 [ 15.220727] __kasan_kmalloc+0xd4/0xd8 [ 15.220762] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.221114] kmalloc_oob_memset_4+0xb0/0x300 [ 15.221200] kunit_try_run_case+0x170/0x3f0 [ 15.221239] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.221312] kthread+0x328/0x630 [ 15.221344] ret_from_fork+0x10/0x20 [ 15.221627] [ 15.221695] The buggy address belongs to the object at fff00000c6094c00 [ 15.221695] which belongs to the cache kmalloc-128 of size 128 [ 15.221864] The buggy address is located 117 bytes inside of [ 15.221864] allocated 120-byte region [fff00000c6094c00, fff00000c6094c78) [ 15.221949] [ 15.222047] The buggy address belongs to the physical page: [ 15.222119] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106094 [ 15.222254] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.222342] page_type: f5(slab) [ 15.222395] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 15.222906] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 15.222990] page dumped because: kasan: bad access detected [ 15.223131] [ 15.223213] Memory state around the buggy address: [ 15.223318] fff00000c6094b00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.223393] fff00000c6094b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.223440] >fff00000c6094c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 15.223618] ^ [ 15.223857] fff00000c6094c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.224011] fff00000c6094d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.224089] ==================================================================
[ 13.051525] ================================================================== [ 13.051984] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x166/0x330 [ 13.052367] Write of size 4 at addr ffff8881029df575 by task kunit_try_catch/192 [ 13.052678] [ 13.052797] CPU: 1 UID: 0 PID: 192 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 13.052844] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.052855] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.052877] Call Trace: [ 13.052889] <TASK> [ 13.052904] dump_stack_lvl+0x73/0xb0 [ 13.052936] print_report+0xd1/0x610 [ 13.052959] ? __virt_addr_valid+0x1db/0x2d0 [ 13.052983] ? kmalloc_oob_memset_4+0x166/0x330 [ 13.053004] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.053026] ? kmalloc_oob_memset_4+0x166/0x330 [ 13.053048] kasan_report+0x141/0x180 [ 13.053071] ? kmalloc_oob_memset_4+0x166/0x330 [ 13.053098] kasan_check_range+0x10c/0x1c0 [ 13.053179] __asan_memset+0x27/0x50 [ 13.053201] kmalloc_oob_memset_4+0x166/0x330 [ 13.053224] ? __pfx_kmalloc_oob_memset_4+0x10/0x10 [ 13.053247] ? __schedule+0x10c6/0x2b60 [ 13.053271] ? __pfx_read_tsc+0x10/0x10 [ 13.053292] ? ktime_get_ts64+0x86/0x230 [ 13.053316] kunit_try_run_case+0x1a5/0x480 [ 13.053341] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.053363] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.053388] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.053411] ? __kthread_parkme+0x82/0x180 [ 13.053432] ? preempt_count_sub+0x50/0x80 [ 13.053456] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.053529] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.053553] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.053577] kthread+0x337/0x6f0 [ 13.053597] ? trace_preempt_on+0x20/0xc0 [ 13.053620] ? __pfx_kthread+0x10/0x10 [ 13.053641] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.053664] ? calculate_sigpending+0x7b/0xa0 [ 13.053688] ? __pfx_kthread+0x10/0x10 [ 13.053709] ret_from_fork+0x116/0x1d0 [ 13.053728] ? __pfx_kthread+0x10/0x10 [ 13.053749] ret_from_fork_asm+0x1a/0x30 [ 13.053779] </TASK> [ 13.053789] [ 13.062303] Allocated by task 192: [ 13.062504] kasan_save_stack+0x45/0x70 [ 13.062717] kasan_save_track+0x18/0x40 [ 13.063033] kasan_save_alloc_info+0x3b/0x50 [ 13.063204] __kasan_kmalloc+0xb7/0xc0 [ 13.063390] __kmalloc_cache_noprof+0x189/0x420 [ 13.063641] kmalloc_oob_memset_4+0xac/0x330 [ 13.063890] kunit_try_run_case+0x1a5/0x480 [ 13.064061] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.064301] kthread+0x337/0x6f0 [ 13.064467] ret_from_fork+0x116/0x1d0 [ 13.064626] ret_from_fork_asm+0x1a/0x30 [ 13.064890] [ 13.064987] The buggy address belongs to the object at ffff8881029df500 [ 13.064987] which belongs to the cache kmalloc-128 of size 128 [ 13.065491] The buggy address is located 117 bytes inside of [ 13.065491] allocated 120-byte region [ffff8881029df500, ffff8881029df578) [ 13.065986] [ 13.066087] The buggy address belongs to the physical page: [ 13.066338] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029df [ 13.066607] flags: 0x200000000000000(node=0|zone=2) [ 13.066786] page_type: f5(slab) [ 13.066916] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 13.067179] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 13.067769] page dumped because: kasan: bad access detected [ 13.068038] [ 13.068135] Memory state around the buggy address: [ 13.068421] ffff8881029df400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 13.068940] ffff8881029df480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.069512] >ffff8881029df500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 13.069764] ^ [ 13.070168] ffff8881029df580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.070487] ffff8881029df600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.070823] ==================================================================