Date
March 19, 2025, 10:35 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 34.161965] ================================================================== [ 34.162148] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0 [ 34.162299] Write of size 128 at addr fff00000c6818700 by task kunit_try_catch/172 [ 34.162487] [ 34.162596] CPU: 1 UID: 0 PID: 172 Comm: kunit_try_catch Tainted: G B N 6.14.0-rc7-next-20250319 #1 PREEMPT [ 34.162877] Tainted: [B]=BAD_PAGE, [N]=TEST [ 34.162973] Hardware name: linux,dummy-virt (DT) [ 34.163093] Call trace: [ 34.163162] show_stack+0x20/0x38 (C) [ 34.163315] dump_stack_lvl+0x8c/0xd0 [ 34.163457] print_report+0x118/0x5f0 [ 34.163591] kasan_report+0xc8/0x118 [ 34.163729] kasan_check_range+0x100/0x1a8 [ 34.164468] __asan_memset+0x34/0x78 [ 34.164712] kmalloc_oob_in_memset+0x144/0x2d0 [ 34.164940] kunit_try_run_case+0x14c/0x3d0 [ 34.165299] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 34.165864] kthread+0x318/0x618 [ 34.166035] ret_from_fork+0x10/0x20 [ 34.166202] [ 34.166258] Allocated by task 172: [ 34.166343] kasan_save_stack+0x3c/0x68 [ 34.166643] kasan_save_track+0x20/0x40 [ 34.167254] kasan_save_alloc_info+0x40/0x58 [ 34.167594] __kasan_kmalloc+0xd4/0xd8 [ 34.167862] __kmalloc_cache_noprof+0x15c/0x3c0 [ 34.168307] kmalloc_oob_in_memset+0xb0/0x2d0 [ 34.168762] kunit_try_run_case+0x14c/0x3d0 [ 34.168922] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 34.169088] kthread+0x318/0x618 [ 34.169197] ret_from_fork+0x10/0x20 [ 34.169301] [ 34.169362] The buggy address belongs to the object at fff00000c6818700 [ 34.169362] which belongs to the cache kmalloc-128 of size 128 [ 34.169531] The buggy address is located 0 bytes inside of [ 34.169531] allocated 120-byte region [fff00000c6818700, fff00000c6818778) [ 34.170427] [ 34.170564] The buggy address belongs to the physical page: [ 34.170670] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106818 [ 34.170825] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 34.170984] page_type: f5(slab) [ 34.171118] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 34.171746] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 34.171971] page dumped because: kasan: bad access detected [ 34.172097] [ 34.172156] Memory state around the buggy address: [ 34.172402] fff00000c6818600: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.172510] fff00000c6818680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.172582] >fff00000c6818700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 34.172687] ^ [ 34.172818] fff00000c6818780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.173038] fff00000c6818800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.173376] ==================================================================
[ 21.797935] ================================================================== [ 21.799452] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x15f/0x320 [ 21.801016] Write of size 128 at addr ffff88810305a300 by task kunit_try_catch/191 [ 21.801624] [ 21.802580] CPU: 0 UID: 0 PID: 191 Comm: kunit_try_catch Tainted: G B N 6.14.0-rc7-next-20250319 #1 PREEMPT(voluntary) [ 21.802667] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.802695] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 21.802796] Call Trace: [ 21.802829] <TASK> [ 21.802863] dump_stack_lvl+0x73/0xb0 [ 21.802935] print_report+0xd1/0x660 [ 21.802971] ? __virt_addr_valid+0x1db/0x2d0 [ 21.803036] ? kasan_complete_mode_report_info+0x2a/0x200 [ 21.803072] kasan_report+0x104/0x140 [ 21.803101] ? kmalloc_oob_in_memset+0x15f/0x320 [ 21.803161] ? kmalloc_oob_in_memset+0x15f/0x320 [ 21.803201] kasan_check_range+0x10c/0x1c0 [ 21.803237] __asan_memset+0x27/0x50 [ 21.803266] kmalloc_oob_in_memset+0x15f/0x320 [ 21.803299] ? __pfx_kmalloc_oob_in_memset+0x10/0x10 [ 21.803332] ? __schedule+0xd46/0x29c0 [ 21.803363] ? __pfx_read_tsc+0x10/0x10 [ 21.803392] ? ktime_get_ts64+0x86/0x240 [ 21.803430] kunit_try_run_case+0x1b2/0x490 [ 21.803465] ? __pfx_kunit_try_run_case+0x10/0x10 [ 21.803496] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 21.803527] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 21.803557] ? __kthread_parkme+0x82/0x160 [ 21.803599] ? preempt_count_sub+0x50/0x80 [ 21.803653] ? __pfx_kunit_try_run_case+0x10/0x10 [ 21.803713] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 21.803802] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 21.803891] kthread+0x323/0x710 [ 21.803926] ? trace_preempt_on+0x20/0xc0 [ 21.803973] ? __pfx_kthread+0x10/0x10 [ 21.804004] ? _raw_spin_unlock_irq+0x47/0x80 [ 21.804034] ? calculate_sigpending+0x7b/0xa0 [ 21.804065] ? __pfx_kthread+0x10/0x10 [ 21.804097] ret_from_fork+0x41/0x80 [ 21.804151] ? __pfx_kthread+0x10/0x10 [ 21.804183] ret_from_fork_asm+0x1a/0x30 [ 21.804232] </TASK> [ 21.804247] [ 21.823172] Allocated by task 191: [ 21.823646] kasan_save_stack+0x3d/0x60 [ 21.824271] kasan_save_track+0x18/0x40 [ 21.824550] kasan_save_alloc_info+0x3b/0x50 [ 21.825290] __kasan_kmalloc+0xb7/0xc0 [ 21.826199] __kmalloc_cache_noprof+0x183/0x410 [ 21.826686] kmalloc_oob_in_memset+0xac/0x320 [ 21.827567] kunit_try_run_case+0x1b2/0x490 [ 21.828194] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 21.829057] kthread+0x323/0x710 [ 21.829391] ret_from_fork+0x41/0x80 [ 21.829814] ret_from_fork_asm+0x1a/0x30 [ 21.830943] [ 21.831294] The buggy address belongs to the object at ffff88810305a300 [ 21.831294] which belongs to the cache kmalloc-128 of size 128 [ 21.832609] The buggy address is located 0 bytes inside of [ 21.832609] allocated 120-byte region [ffff88810305a300, ffff88810305a378) [ 21.834462] [ 21.834817] The buggy address belongs to the physical page: [ 21.835367] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10305a [ 21.836388] flags: 0x200000000000000(node=0|zone=2) [ 21.837077] page_type: f5(slab) [ 21.837460] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 21.838538] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 21.839002] page dumped because: kasan: bad access detected [ 21.839404] [ 21.839653] Memory state around the buggy address: [ 21.840083] ffff88810305a200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.841154] ffff88810305a280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.841630] >ffff88810305a300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 21.843166] ^ [ 21.844072] ffff88810305a380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.844621] ffff88810305a400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.845501] ==================================================================