Date
June 2, 2025, 2:13 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.849637] ================================================================== [ 18.850298] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8 [ 18.851849] Write of size 8 at addr fff00000c5a72b71 by task kunit_try_catch/166 [ 18.852304] [ 18.852625] CPU: 1 UID: 0 PID: 166 Comm: kunit_try_catch Tainted: G B N 6.14.10-rc1 #1 [ 18.852731] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.852765] Hardware name: linux,dummy-virt (DT) [ 18.852831] Call trace: [ 18.852858] show_stack+0x20/0x38 (C) [ 18.852926] dump_stack_lvl+0x8c/0xd0 [ 18.852980] print_report+0x118/0x608 [ 18.853032] kasan_report+0xdc/0x128 [ 18.853082] kasan_check_range+0x100/0x1a8 [ 18.853130] __asan_memset+0x34/0x78 [ 18.853237] kmalloc_oob_memset_8+0x150/0x2f8 [ 18.853347] kunit_try_run_case+0x170/0x3f0 [ 18.853447] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.853588] kthread+0x318/0x620 [ 18.853712] ret_from_fork+0x10/0x20 [ 18.853840] [ 18.858022] Allocated by task 166: [ 18.858754] kasan_save_stack+0x3c/0x68 [ 18.859258] kasan_save_track+0x20/0x40 [ 18.859731] kasan_save_alloc_info+0x40/0x58 [ 18.860225] __kasan_kmalloc+0xd4/0xd8 [ 18.860677] __kmalloc_cache_noprof+0x16c/0x3c0 [ 18.861044] kmalloc_oob_memset_8+0xb0/0x2f8 [ 18.861551] kunit_try_run_case+0x170/0x3f0 [ 18.862039] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.862934] kthread+0x318/0x620 [ 18.863381] ret_from_fork+0x10/0x20 [ 18.863805] [ 18.864059] The buggy address belongs to the object at fff00000c5a72b00 [ 18.864059] which belongs to the cache kmalloc-128 of size 128 [ 18.864763] The buggy address is located 113 bytes inside of [ 18.864763] allocated 120-byte region [fff00000c5a72b00, fff00000c5a72b78) [ 18.865850] [ 18.866845] The buggy address belongs to the physical page: [ 18.867758] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105a72 [ 18.868439] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.868947] page_type: f5(slab) [ 18.869636] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 18.870386] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 18.871285] page dumped because: kasan: bad access detected [ 18.871699] [ 18.871925] Memory state around the buggy address: [ 18.872387] fff00000c5a72a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.872914] fff00000c5a72a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.873849] >fff00000c5a72b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 18.874677] ^ [ 18.875403] fff00000c5a72b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.876096] fff00000c5a72c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.876761] ==================================================================
[ 12.833104] ================================================================== [ 12.833569] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x167/0x330 [ 12.834428] Write of size 8 at addr ffff888101bd1a71 by task kunit_try_catch/184 [ 12.835162] [ 12.835471] CPU: 1 UID: 0 PID: 184 Comm: kunit_try_catch Tainted: G B N 6.14.10-rc1 #1 [ 12.835515] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.835526] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.835689] Call Trace: [ 12.835706] <TASK> [ 12.835723] dump_stack_lvl+0x73/0xb0 [ 12.835751] print_report+0xd1/0x650 [ 12.835772] ? __virt_addr_valid+0x1db/0x2d0 [ 12.835795] ? kmalloc_oob_memset_8+0x167/0x330 [ 12.835815] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.835839] ? kmalloc_oob_memset_8+0x167/0x330 [ 12.835859] kasan_report+0x140/0x180 [ 12.835880] ? kmalloc_oob_memset_8+0x167/0x330 [ 12.835904] kasan_check_range+0x10c/0x1c0 [ 12.835926] __asan_memset+0x27/0x50 [ 12.835947] kmalloc_oob_memset_8+0x167/0x330 [ 12.835968] ? __pfx_kmalloc_oob_memset_8+0x10/0x10 [ 12.835988] ? __schedule+0xce8/0x2840 [ 12.836010] ? __pfx_read_tsc+0x10/0x10 [ 12.836045] ? ktime_get_ts64+0x86/0x230 [ 12.836071] kunit_try_run_case+0x1a6/0x480 [ 12.836094] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.836114] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 12.836136] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.836159] ? __kthread_parkme+0x82/0x160 [ 12.836180] ? preempt_count_sub+0x50/0x80 [ 12.836204] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.836226] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.836251] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.836276] kthread+0x324/0x6e0 [ 12.836296] ? trace_preempt_on+0x20/0xc0 [ 12.836318] ? __pfx_kthread+0x10/0x10 [ 12.836339] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.836360] ? calculate_sigpending+0x7b/0xa0 [ 12.836381] ? __pfx_kthread+0x10/0x10 [ 12.836402] ret_from_fork+0x41/0x80 [ 12.836420] ? __pfx_kthread+0x10/0x10 [ 12.836441] ret_from_fork_asm+0x1a/0x30 [ 12.836470] </TASK> [ 12.836481] [ 12.848046] Allocated by task 184: [ 12.848173] kasan_save_stack+0x45/0x70 [ 12.848315] kasan_save_track+0x18/0x40 [ 12.848444] kasan_save_alloc_info+0x3b/0x50 [ 12.848663] __kasan_kmalloc+0xb7/0xc0 [ 12.848998] __kmalloc_cache_noprof+0x18a/0x420 [ 12.849407] kmalloc_oob_memset_8+0xad/0x330 [ 12.849805] kunit_try_run_case+0x1a6/0x480 [ 12.850237] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.850746] kthread+0x324/0x6e0 [ 12.851144] ret_from_fork+0x41/0x80 [ 12.851572] ret_from_fork_asm+0x1a/0x30 [ 12.852002] [ 12.852181] The buggy address belongs to the object at ffff888101bd1a00 [ 12.852181] which belongs to the cache kmalloc-128 of size 128 [ 12.852863] The buggy address is located 113 bytes inside of [ 12.852863] allocated 120-byte region [ffff888101bd1a00, ffff888101bd1a78) [ 12.853223] [ 12.853295] The buggy address belongs to the physical page: [ 12.853460] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101bd1 [ 12.854035] flags: 0x200000000000000(node=0|zone=2) [ 12.854462] page_type: f5(slab) [ 12.854793] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.855519] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.856286] page dumped because: kasan: bad access detected [ 12.856849] [ 12.857028] Memory state around the buggy address: [ 12.857463] ffff888101bd1900: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.858223] ffff888101bd1980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.858696] >ffff888101bd1a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.858905] ^ [ 12.859122] ffff888101bd1a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.859329] ffff888101bd1b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.859535] ==================================================================