Date
June 2, 2025, 2:13 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.774519] ================================================================== [ 18.775490] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x150/0x2f8 [ 18.776430] Write of size 2 at addr fff00000c5a72a77 by task kunit_try_catch/162 [ 18.777496] [ 18.777945] CPU: 1 UID: 0 PID: 162 Comm: kunit_try_catch Tainted: G B N 6.14.10-rc1 #1 [ 18.778456] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.778528] Hardware name: linux,dummy-virt (DT) [ 18.778571] Call trace: [ 18.778600] show_stack+0x20/0x38 (C) [ 18.778668] dump_stack_lvl+0x8c/0xd0 [ 18.778722] print_report+0x118/0x608 [ 18.778774] kasan_report+0xdc/0x128 [ 18.778823] kasan_check_range+0x100/0x1a8 [ 18.778871] __asan_memset+0x34/0x78 [ 18.778918] kmalloc_oob_memset_2+0x150/0x2f8 [ 18.778967] kunit_try_run_case+0x170/0x3f0 [ 18.779017] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.779071] kthread+0x318/0x620 [ 18.779119] ret_from_fork+0x10/0x20 [ 18.779207] [ 18.785919] Allocated by task 162: [ 18.786650] kasan_save_stack+0x3c/0x68 [ 18.786941] kasan_save_track+0x20/0x40 [ 18.787406] kasan_save_alloc_info+0x40/0x58 [ 18.787743] __kasan_kmalloc+0xd4/0xd8 [ 18.788065] __kmalloc_cache_noprof+0x16c/0x3c0 [ 18.788593] kmalloc_oob_memset_2+0xb0/0x2f8 [ 18.788969] kunit_try_run_case+0x170/0x3f0 [ 18.789448] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.789915] kthread+0x318/0x620 [ 18.790634] ret_from_fork+0x10/0x20 [ 18.791058] [ 18.791345] The buggy address belongs to the object at fff00000c5a72a00 [ 18.791345] which belongs to the cache kmalloc-128 of size 128 [ 18.792175] The buggy address is located 119 bytes inside of [ 18.792175] allocated 120-byte region [fff00000c5a72a00, fff00000c5a72a78) [ 18.792980] [ 18.793268] The buggy address belongs to the physical page: [ 18.793779] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105a72 [ 18.794889] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.795304] page_type: f5(slab) [ 18.795674] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 18.796404] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 18.797122] page dumped because: kasan: bad access detected [ 18.797675] [ 18.797930] Memory state around the buggy address: [ 18.798650] fff00000c5a72900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.799206] fff00000c5a72980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.799774] >fff00000c5a72a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 18.800353] ^ [ 18.800900] fff00000c5a72a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.801541] fff00000c5a72b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.802396] ==================================================================
[ 12.766947] ================================================================== [ 12.767472] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x167/0x330 [ 12.767719] Write of size 2 at addr ffff888102a2c077 by task kunit_try_catch/180 [ 12.767942] [ 12.768034] CPU: 0 UID: 0 PID: 180 Comm: kunit_try_catch Tainted: G B N 6.14.10-rc1 #1 [ 12.768071] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.768082] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.768101] Call Trace: [ 12.768114] <TASK> [ 12.768128] dump_stack_lvl+0x73/0xb0 [ 12.768155] print_report+0xd1/0x650 [ 12.768179] ? __virt_addr_valid+0x1db/0x2d0 [ 12.768205] ? kmalloc_oob_memset_2+0x167/0x330 [ 12.768228] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.768255] ? kmalloc_oob_memset_2+0x167/0x330 [ 12.768279] kasan_report+0x140/0x180 [ 12.768302] ? kmalloc_oob_memset_2+0x167/0x330 [ 12.768330] kasan_check_range+0x10c/0x1c0 [ 12.768355] __asan_memset+0x27/0x50 [ 12.768380] kmalloc_oob_memset_2+0x167/0x330 [ 12.768404] ? __pfx_kmalloc_oob_memset_2+0x10/0x10 [ 12.768428] ? __schedule+0xce8/0x2840 [ 12.768454] ? __pfx_read_tsc+0x10/0x10 [ 12.768477] ? ktime_get_ts64+0x86/0x230 [ 12.768506] kunit_try_run_case+0x1a6/0x480 [ 12.768531] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.768554] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 12.768580] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.768606] ? __kthread_parkme+0x82/0x160 [ 12.768630] ? preempt_count_sub+0x50/0x80 [ 12.768657] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.768682] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.768710] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.768738] kthread+0x324/0x6e0 [ 12.768761] ? trace_preempt_on+0x20/0xc0 [ 12.768786] ? __pfx_kthread+0x10/0x10 [ 12.768810] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.768834] ? calculate_sigpending+0x7b/0xa0 [ 12.768858] ? __pfx_kthread+0x10/0x10 [ 12.768883] ret_from_fork+0x41/0x80 [ 12.768904] ? __pfx_kthread+0x10/0x10 [ 12.768929] ret_from_fork_asm+0x1a/0x30 [ 12.768962] </TASK> [ 12.768972] [ 12.781860] Allocated by task 180: [ 12.782334] kasan_save_stack+0x45/0x70 [ 12.782757] kasan_save_track+0x18/0x40 [ 12.783388] kasan_save_alloc_info+0x3b/0x50 [ 12.783547] __kasan_kmalloc+0xb7/0xc0 [ 12.784088] __kmalloc_cache_noprof+0x18a/0x420 [ 12.784614] kmalloc_oob_memset_2+0xad/0x330 [ 12.785013] kunit_try_run_case+0x1a6/0x480 [ 12.785178] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.785355] kthread+0x324/0x6e0 [ 12.785476] ret_from_fork+0x41/0x80 [ 12.786038] ret_from_fork_asm+0x1a/0x30 [ 12.786495] [ 12.786666] The buggy address belongs to the object at ffff888102a2c000 [ 12.786666] which belongs to the cache kmalloc-128 of size 128 [ 12.787976] The buggy address is located 119 bytes inside of [ 12.787976] allocated 120-byte region [ffff888102a2c000, ffff888102a2c078) [ 12.789221] [ 12.789299] The buggy address belongs to the physical page: [ 12.789474] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a2c [ 12.790292] flags: 0x200000000000000(node=0|zone=2) [ 12.790780] page_type: f5(slab) [ 12.791143] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.791872] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.792241] page dumped because: kasan: bad access detected [ 12.792413] [ 12.792483] Memory state around the buggy address: [ 12.793004] ffff888102a2bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.793699] ffff888102a2bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.794508] >ffff888102a2c000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.795014] ^ [ 12.795250] ffff888102a2c080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.795465] ffff888102a2c100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.795971] ==================================================================