Date
July 2, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.166012] ================================================================== [ 18.166075] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x150/0x300 [ 18.166139] Write of size 4 at addr fff00000c706f175 by task kunit_try_catch/174 [ 18.166515] [ 18.166560] CPU: 0 UID: 0 PID: 174 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 18.166726] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.166803] Hardware name: linux,dummy-virt (DT) [ 18.166847] Call trace: [ 18.166929] show_stack+0x20/0x38 (C) [ 18.166985] dump_stack_lvl+0x8c/0xd0 [ 18.167069] print_report+0x118/0x608 [ 18.167124] kasan_report+0xdc/0x128 [ 18.167169] kasan_check_range+0x100/0x1a8 [ 18.167220] __asan_memset+0x34/0x78 [ 18.167634] kmalloc_oob_memset_4+0x150/0x300 [ 18.167704] kunit_try_run_case+0x170/0x3f0 [ 18.167770] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.167863] kthread+0x328/0x630 [ 18.168070] ret_from_fork+0x10/0x20 [ 18.168132] [ 18.168151] Allocated by task 174: [ 18.168178] kasan_save_stack+0x3c/0x68 [ 18.168373] kasan_save_track+0x20/0x40 [ 18.168423] kasan_save_alloc_info+0x40/0x58 [ 18.168462] __kasan_kmalloc+0xd4/0xd8 [ 18.168500] __kmalloc_cache_noprof+0x16c/0x3c0 [ 18.168538] kmalloc_oob_memset_4+0xb0/0x300 [ 18.168585] kunit_try_run_case+0x170/0x3f0 [ 18.168621] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.168665] kthread+0x328/0x630 [ 18.168696] ret_from_fork+0x10/0x20 [ 18.169274] [ 18.169320] The buggy address belongs to the object at fff00000c706f100 [ 18.169320] which belongs to the cache kmalloc-128 of size 128 [ 18.169428] The buggy address is located 117 bytes inside of [ 18.169428] allocated 120-byte region [fff00000c706f100, fff00000c706f178) [ 18.169612] [ 18.169640] The buggy address belongs to the physical page: [ 18.169740] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10706f [ 18.169849] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.169914] page_type: f5(slab) [ 18.169952] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 18.170152] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 18.170328] page dumped because: kasan: bad access detected [ 18.170400] [ 18.170497] Memory state around the buggy address: [ 18.170594] fff00000c706f000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.170671] fff00000c706f080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.170806] >fff00000c706f100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 18.170886] ^ [ 18.170931] fff00000c706f180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.171168] fff00000c706f200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.171367] ==================================================================
[ 11.494437] ================================================================== [ 11.494928] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x166/0x330 [ 11.495163] Write of size 4 at addr ffff888103109a75 by task kunit_try_catch/193 [ 11.495397] [ 11.495484] CPU: 0 UID: 0 PID: 193 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 11.495527] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.495538] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.495557] Call Trace: [ 11.495568] <TASK> [ 11.495585] dump_stack_lvl+0x73/0xb0 [ 11.495612] print_report+0xd1/0x650 [ 11.495634] ? __virt_addr_valid+0x1db/0x2d0 [ 11.495657] ? kmalloc_oob_memset_4+0x166/0x330 [ 11.495676] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.495702] ? kmalloc_oob_memset_4+0x166/0x330 [ 11.495722] kasan_report+0x141/0x180 [ 11.495742] ? kmalloc_oob_memset_4+0x166/0x330 [ 11.495767] kasan_check_range+0x10c/0x1c0 [ 11.495789] __asan_memset+0x27/0x50 [ 11.495807] kmalloc_oob_memset_4+0x166/0x330 [ 11.495828] ? __pfx_kmalloc_oob_memset_4+0x10/0x10 [ 11.495849] ? __schedule+0x10cc/0x2b60 [ 11.495870] ? __pfx_read_tsc+0x10/0x10 [ 11.495890] ? ktime_get_ts64+0x86/0x230 [ 11.495913] kunit_try_run_case+0x1a5/0x480 [ 11.495937] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.495957] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.495979] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.495999] ? __kthread_parkme+0x82/0x180 [ 11.496019] ? preempt_count_sub+0x50/0x80 [ 11.496042] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.496064] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.496085] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.496106] kthread+0x337/0x6f0 [ 11.496124] ? trace_preempt_on+0x20/0xc0 [ 11.496146] ? __pfx_kthread+0x10/0x10 [ 11.496166] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.496185] ? calculate_sigpending+0x7b/0xa0 [ 11.496208] ? __pfx_kthread+0x10/0x10 [ 11.496227] ret_from_fork+0x116/0x1d0 [ 11.496244] ? __pfx_kthread+0x10/0x10 [ 11.496263] ret_from_fork_asm+0x1a/0x30 [ 11.496293] </TASK> [ 11.496303] [ 11.505248] Allocated by task 193: [ 11.505448] kasan_save_stack+0x45/0x70 [ 11.505677] kasan_save_track+0x18/0x40 [ 11.506115] kasan_save_alloc_info+0x3b/0x50 [ 11.506391] __kasan_kmalloc+0xb7/0xc0 [ 11.506592] __kmalloc_cache_noprof+0x189/0x420 [ 11.506868] kmalloc_oob_memset_4+0xac/0x330 [ 11.507062] kunit_try_run_case+0x1a5/0x480 [ 11.507262] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.507447] kthread+0x337/0x6f0 [ 11.507689] ret_from_fork+0x116/0x1d0 [ 11.507882] ret_from_fork_asm+0x1a/0x30 [ 11.508094] [ 11.508183] The buggy address belongs to the object at ffff888103109a00 [ 11.508183] which belongs to the cache kmalloc-128 of size 128 [ 11.508878] The buggy address is located 117 bytes inside of [ 11.508878] allocated 120-byte region [ffff888103109a00, ffff888103109a78) [ 11.509397] [ 11.509494] The buggy address belongs to the physical page: [ 11.509783] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103109 [ 11.510070] flags: 0x200000000000000(node=0|zone=2) [ 11.510305] page_type: f5(slab) [ 11.510487] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 11.510921] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 11.511149] page dumped because: kasan: bad access detected [ 11.511318] [ 11.511399] Memory state around the buggy address: [ 11.511623] ffff888103109900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 11.512001] ffff888103109980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.512421] >ffff888103109a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 11.512972] ^ [ 11.513221] ffff888103109a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.513451] ffff888103109b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.514058] ==================================================================