Date
May 15, 2025, 10:38 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.067998] ================================================================== [ 18.068056] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8 [ 18.068128] Write of size 8 at addr fff00000c68f1571 by task kunit_try_catch/176 [ 18.068229] [ 18.068269] CPU: 1 UID: 0 PID: 176 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250515 #1 PREEMPT [ 18.068352] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.068377] Hardware name: linux,dummy-virt (DT) [ 18.068407] Call trace: [ 18.068436] show_stack+0x20/0x38 (C) [ 18.068484] dump_stack_lvl+0x8c/0xd0 [ 18.068529] print_report+0x118/0x608 [ 18.068583] kasan_report+0xdc/0x128 [ 18.068635] kasan_check_range+0x100/0x1a8 [ 18.068682] __asan_memset+0x34/0x78 [ 18.068736] kmalloc_oob_memset_8+0x150/0x2f8 [ 18.068781] kunit_try_run_case+0x170/0x3f0 [ 18.068825] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.068883] kthread+0x328/0x630 [ 18.068927] ret_from_fork+0x10/0x20 [ 18.068977] [ 18.069001] Allocated by task 176: [ 18.069028] kasan_save_stack+0x3c/0x68 [ 18.069066] kasan_save_track+0x20/0x40 [ 18.069101] kasan_save_alloc_info+0x40/0x58 [ 18.069138] __kasan_kmalloc+0xd4/0xd8 [ 18.069972] __kmalloc_cache_noprof+0x15c/0x3c0 [ 18.070072] kmalloc_oob_memset_8+0xb0/0x2f8 [ 18.070110] kunit_try_run_case+0x170/0x3f0 [ 18.070943] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.071017] kthread+0x328/0x630 [ 18.071094] ret_from_fork+0x10/0x20 [ 18.071756] [ 18.071818] The buggy address belongs to the object at fff00000c68f1500 [ 18.071818] which belongs to the cache kmalloc-128 of size 128 [ 18.071948] The buggy address is located 113 bytes inside of [ 18.071948] allocated 120-byte region [fff00000c68f1500, fff00000c68f1578) [ 18.072029] [ 18.072052] The buggy address belongs to the physical page: [ 18.072434] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1068f1 [ 18.072492] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.072941] page_type: f5(slab) [ 18.073021] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 18.073281] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 18.073484] page dumped because: kasan: bad access detected [ 18.073750] [ 18.074093] Memory state around the buggy address: [ 18.074149] fff00000c68f1400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.074542] fff00000c68f1480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.074633] >fff00000c68f1500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 18.074736] ^ [ 18.074816] fff00000c68f1580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.075052] fff00000c68f1600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.075305] ==================================================================
[ 14.211778] ================================================================== [ 14.212207] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x166/0x330 [ 14.212757] Write of size 8 at addr ffff888102b48e71 by task kunit_try_catch/194 [ 14.213353] [ 14.213887] CPU: 0 UID: 0 PID: 194 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250515 #1 PREEMPT(voluntary) [ 14.213988] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.214012] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.214050] Call Trace: [ 14.214114] <TASK> [ 14.214147] dump_stack_lvl+0x73/0xb0 [ 14.214205] print_report+0xd1/0x650 [ 14.214264] ? __virt_addr_valid+0x1db/0x2d0 [ 14.214310] ? kmalloc_oob_memset_8+0x166/0x330 [ 14.214357] ? kasan_complete_mode_report_info+0x2a/0x200 [ 14.214382] ? kmalloc_oob_memset_8+0x166/0x330 [ 14.214406] kasan_report+0x141/0x180 [ 14.214430] ? kmalloc_oob_memset_8+0x166/0x330 [ 14.214472] kasan_check_range+0x10c/0x1c0 [ 14.214535] __asan_memset+0x27/0x50 [ 14.214567] kmalloc_oob_memset_8+0x166/0x330 [ 14.214603] ? __pfx_kmalloc_oob_memset_8+0x10/0x10 [ 14.214628] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 14.214652] ? trace_hardirqs_on+0x37/0xe0 [ 14.214677] ? __pfx_read_tsc+0x10/0x10 [ 14.214699] ? ktime_get_ts64+0x86/0x230 [ 14.214724] kunit_try_run_case+0x1a5/0x480 [ 14.214748] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.214771] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.214794] ? __kthread_parkme+0x82/0x180 [ 14.214814] ? preempt_count_sub+0x50/0x80 [ 14.214837] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.214860] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.214881] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.214903] kthread+0x337/0x6f0 [ 14.214921] ? trace_preempt_on+0x20/0xc0 [ 14.214942] ? __pfx_kthread+0x10/0x10 [ 14.214962] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.214981] ? calculate_sigpending+0x7b/0xa0 [ 14.215006] ? __pfx_kthread+0x10/0x10 [ 14.215027] ret_from_fork+0x116/0x1d0 [ 14.215044] ? __pfx_kthread+0x10/0x10 [ 14.215064] ret_from_fork_asm+0x1a/0x30 [ 14.215097] </TASK> [ 14.215110] [ 14.225521] Allocated by task 194: [ 14.225803] kasan_save_stack+0x45/0x70 [ 14.226077] kasan_save_track+0x18/0x40 [ 14.226296] kasan_save_alloc_info+0x3b/0x50 [ 14.226561] __kasan_kmalloc+0xb7/0xc0 [ 14.227296] __kmalloc_cache_noprof+0x189/0x420 [ 14.227714] kmalloc_oob_memset_8+0xac/0x330 [ 14.228027] kunit_try_run_case+0x1a5/0x480 [ 14.228347] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.228718] kthread+0x337/0x6f0 [ 14.228985] ret_from_fork+0x116/0x1d0 [ 14.229168] ret_from_fork_asm+0x1a/0x30 [ 14.229762] [ 14.229923] The buggy address belongs to the object at ffff888102b48e00 [ 14.229923] which belongs to the cache kmalloc-128 of size 128 [ 14.230581] The buggy address is located 113 bytes inside of [ 14.230581] allocated 120-byte region [ffff888102b48e00, ffff888102b48e78) [ 14.231741] [ 14.231909] The buggy address belongs to the physical page: [ 14.232119] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b48 [ 14.232708] flags: 0x200000000000000(node=0|zone=2) [ 14.233091] page_type: f5(slab) [ 14.233638] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 14.234635] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 14.235308] page dumped because: kasan: bad access detected [ 14.235708] [ 14.236158] Memory state around the buggy address: [ 14.236533] ffff888102b48d00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 14.236818] ffff888102b48d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.237156] >ffff888102b48e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 14.237522] ^ [ 14.238446] ffff888102b48e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.239039] ffff888102b48f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.239364] ==================================================================