Date
July 8, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.446696] ================================================================== [ 19.446760] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x150/0x2f8 [ 19.446816] Write of size 16 at addr fff00000c6343d69 by task kunit_try_catch/178 [ 19.447383] [ 19.447833] CPU: 1 UID: 0 PID: 178 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 19.448144] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.448209] Hardware name: linux,dummy-virt (DT) [ 19.448242] Call trace: [ 19.448273] show_stack+0x20/0x38 (C) [ 19.448850] dump_stack_lvl+0x8c/0xd0 [ 19.448908] print_report+0x118/0x608 [ 19.449370] kasan_report+0xdc/0x128 [ 19.449618] kasan_check_range+0x100/0x1a8 [ 19.449670] __asan_memset+0x34/0x78 [ 19.449711] kmalloc_oob_memset_16+0x150/0x2f8 [ 19.449756] kunit_try_run_case+0x170/0x3f0 [ 19.450418] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.450481] kthread+0x328/0x630 [ 19.450532] ret_from_fork+0x10/0x20 [ 19.450582] [ 19.450602] Allocated by task 178: [ 19.451246] kasan_save_stack+0x3c/0x68 [ 19.451300] kasan_save_track+0x20/0x40 [ 19.451458] kasan_save_alloc_info+0x40/0x58 [ 19.451729] __kasan_kmalloc+0xd4/0xd8 [ 19.451776] __kmalloc_cache_noprof+0x16c/0x3c0 [ 19.451815] kmalloc_oob_memset_16+0xb0/0x2f8 [ 19.452114] kunit_try_run_case+0x170/0x3f0 [ 19.452301] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.452522] kthread+0x328/0x630 [ 19.452688] ret_from_fork+0x10/0x20 [ 19.453251] [ 19.453298] The buggy address belongs to the object at fff00000c6343d00 [ 19.453298] which belongs to the cache kmalloc-128 of size 128 [ 19.453680] The buggy address is located 105 bytes inside of [ 19.453680] allocated 120-byte region [fff00000c6343d00, fff00000c6343d78) [ 19.453789] [ 19.454126] The buggy address belongs to the physical page: [ 19.454221] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106343 [ 19.454277] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.454332] page_type: f5(slab) [ 19.454373] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 19.454654] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 19.454695] page dumped because: kasan: bad access detected [ 19.454725] [ 19.455288] Memory state around the buggy address: [ 19.455694] fff00000c6343c00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.455945] fff00000c6343c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.456184] >fff00000c6343d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 19.456226] ^ [ 19.456290] fff00000c6343d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.456377] fff00000c6343e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.456642] ==================================================================
[ 12.641749] ================================================================== [ 12.642433] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x166/0x330 [ 12.642690] Write of size 16 at addr ffff888102b79e69 by task kunit_try_catch/196 [ 12.642915] [ 12.643002] CPU: 0 UID: 0 PID: 196 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.643046] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.643057] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.643077] Call Trace: [ 12.643089] <TASK> [ 12.643105] dump_stack_lvl+0x73/0xb0 [ 12.643134] print_report+0xd1/0x650 [ 12.643155] ? __virt_addr_valid+0x1db/0x2d0 [ 12.643177] ? kmalloc_oob_memset_16+0x166/0x330 [ 12.643197] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.643219] ? kmalloc_oob_memset_16+0x166/0x330 [ 12.643240] kasan_report+0x141/0x180 [ 12.643260] ? kmalloc_oob_memset_16+0x166/0x330 [ 12.643286] kasan_check_range+0x10c/0x1c0 [ 12.643308] __asan_memset+0x27/0x50 [ 12.643326] kmalloc_oob_memset_16+0x166/0x330 [ 12.643347] ? __pfx_kmalloc_oob_memset_16+0x10/0x10 [ 12.643369] ? __schedule+0x10cc/0x2b60 [ 12.643391] ? __pfx_read_tsc+0x10/0x10 [ 12.643412] ? ktime_get_ts64+0x86/0x230 [ 12.643437] kunit_try_run_case+0x1a5/0x480 [ 12.643460] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.643481] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.643504] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.643525] ? __kthread_parkme+0x82/0x180 [ 12.643545] ? preempt_count_sub+0x50/0x80 [ 12.643568] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.643591] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.643971] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.643997] kthread+0x337/0x6f0 [ 12.644017] ? trace_preempt_on+0x20/0xc0 [ 12.644042] ? __pfx_kthread+0x10/0x10 [ 12.644062] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.644272] ? calculate_sigpending+0x7b/0xa0 [ 12.644298] ? __pfx_kthread+0x10/0x10 [ 12.644320] ret_from_fork+0x116/0x1d0 [ 12.644341] ? __pfx_kthread+0x10/0x10 [ 12.644361] ret_from_fork_asm+0x1a/0x30 [ 12.644393] </TASK> [ 12.644404] [ 12.661375] Allocated by task 196: [ 12.661624] kasan_save_stack+0x45/0x70 [ 12.661799] kasan_save_track+0x18/0x40 [ 12.661948] kasan_save_alloc_info+0x3b/0x50 [ 12.662364] __kasan_kmalloc+0xb7/0xc0 [ 12.662793] __kmalloc_cache_noprof+0x189/0x420 [ 12.663309] kmalloc_oob_memset_16+0xac/0x330 [ 12.663668] kunit_try_run_case+0x1a5/0x480 [ 12.663816] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.664100] kthread+0x337/0x6f0 [ 12.664397] ret_from_fork+0x116/0x1d0 [ 12.664776] ret_from_fork_asm+0x1a/0x30 [ 12.665205] [ 12.665369] The buggy address belongs to the object at ffff888102b79e00 [ 12.665369] which belongs to the cache kmalloc-128 of size 128 [ 12.666435] The buggy address is located 105 bytes inside of [ 12.666435] allocated 120-byte region [ffff888102b79e00, ffff888102b79e78) [ 12.667378] [ 12.667576] The buggy address belongs to the physical page: [ 12.668122] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b79 [ 12.668771] flags: 0x200000000000000(node=0|zone=2) [ 12.669119] page_type: f5(slab) [ 12.669246] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.669472] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.670122] page dumped because: kasan: bad access detected [ 12.670655] [ 12.670809] Memory state around the buggy address: [ 12.671246] ffff888102b79d00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.672029] ffff888102b79d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.672704] >ffff888102b79e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.672925] ^ [ 12.673135] ffff888102b79e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.673346] ffff888102b79f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.673623] ==================================================================