Date
July 20, 2025, 8:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.250000] ================================================================== [ 15.250215] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x150/0x2f8 [ 15.250268] Write of size 16 at addr fff00000c6094e69 by task kunit_try_catch/179 [ 15.250357] [ 15.250406] CPU: 1 UID: 0 PID: 179 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.250645] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.250789] Hardware name: linux,dummy-virt (DT) [ 15.250838] Call trace: [ 15.250967] show_stack+0x20/0x38 (C) [ 15.251042] dump_stack_lvl+0x8c/0xd0 [ 15.251095] print_report+0x118/0x5d0 [ 15.251180] kasan_report+0xdc/0x128 [ 15.251239] kasan_check_range+0x100/0x1a8 [ 15.251286] __asan_memset+0x34/0x78 [ 15.251358] kmalloc_oob_memset_16+0x150/0x2f8 [ 15.251404] kunit_try_run_case+0x170/0x3f0 [ 15.251449] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.251499] kthread+0x328/0x630 [ 15.251540] ret_from_fork+0x10/0x20 [ 15.251602] [ 15.251631] Allocated by task 179: [ 15.251659] kasan_save_stack+0x3c/0x68 [ 15.251707] kasan_save_track+0x20/0x40 [ 15.251745] kasan_save_alloc_info+0x40/0x58 [ 15.251784] __kasan_kmalloc+0xd4/0xd8 [ 15.251819] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.251858] kmalloc_oob_memset_16+0xb0/0x2f8 [ 15.251894] kunit_try_run_case+0x170/0x3f0 [ 15.251930] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.251972] kthread+0x328/0x630 [ 15.252003] ret_from_fork+0x10/0x20 [ 15.252044] [ 15.252072] The buggy address belongs to the object at fff00000c6094e00 [ 15.252072] which belongs to the cache kmalloc-128 of size 128 [ 15.252132] The buggy address is located 105 bytes inside of [ 15.252132] allocated 120-byte region [fff00000c6094e00, fff00000c6094e78) [ 15.252320] [ 15.252373] The buggy address belongs to the physical page: [ 15.252485] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106094 [ 15.252544] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.252589] page_type: f5(slab) [ 15.252625] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 15.252999] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 15.253281] page dumped because: kasan: bad access detected [ 15.253340] [ 15.253405] Memory state around the buggy address: [ 15.253526] fff00000c6094d00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 15.253583] fff00000c6094d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.253625] >fff00000c6094e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 15.253942] ^ [ 15.254005] fff00000c6094e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.254226] fff00000c6094f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.254480] ==================================================================
[ 13.105607] ================================================================== [ 13.106215] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x166/0x330 [ 13.106460] Write of size 16 at addr ffff8881029df769 by task kunit_try_catch/196 [ 13.106705] [ 13.106795] CPU: 1 UID: 0 PID: 196 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 13.106839] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.106851] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.106872] Call Trace: [ 13.106883] <TASK> [ 13.106899] dump_stack_lvl+0x73/0xb0 [ 13.106929] print_report+0xd1/0x610 [ 13.106952] ? __virt_addr_valid+0x1db/0x2d0 [ 13.106975] ? kmalloc_oob_memset_16+0x166/0x330 [ 13.106996] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.107018] ? kmalloc_oob_memset_16+0x166/0x330 [ 13.107040] kasan_report+0x141/0x180 [ 13.107061] ? kmalloc_oob_memset_16+0x166/0x330 [ 13.107087] kasan_check_range+0x10c/0x1c0 [ 13.107110] __asan_memset+0x27/0x50 [ 13.107129] kmalloc_oob_memset_16+0x166/0x330 [ 13.107151] ? __pfx_kmalloc_oob_memset_16+0x10/0x10 [ 13.107174] ? __schedule+0x10c6/0x2b60 [ 13.107196] ? __pfx_read_tsc+0x10/0x10 [ 13.107218] ? ktime_get_ts64+0x86/0x230 [ 13.107242] kunit_try_run_case+0x1a5/0x480 [ 13.107267] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.107289] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.107313] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.107336] ? __kthread_parkme+0x82/0x180 [ 13.107358] ? preempt_count_sub+0x50/0x80 [ 13.107381] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.107404] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.107427] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.107450] kthread+0x337/0x6f0 [ 13.107877] ? trace_preempt_on+0x20/0xc0 [ 13.107931] ? __pfx_kthread+0x10/0x10 [ 13.108207] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.108233] ? calculate_sigpending+0x7b/0xa0 [ 13.108273] ? __pfx_kthread+0x10/0x10 [ 13.108295] ret_from_fork+0x116/0x1d0 [ 13.108315] ? __pfx_kthread+0x10/0x10 [ 13.108336] ret_from_fork_asm+0x1a/0x30 [ 13.108366] </TASK> [ 13.108377] [ 13.122250] Allocated by task 196: [ 13.122396] kasan_save_stack+0x45/0x70 [ 13.122715] kasan_save_track+0x18/0x40 [ 13.123199] kasan_save_alloc_info+0x3b/0x50 [ 13.123565] __kasan_kmalloc+0xb7/0xc0 [ 13.123912] __kmalloc_cache_noprof+0x189/0x420 [ 13.124352] kmalloc_oob_memset_16+0xac/0x330 [ 13.124683] kunit_try_run_case+0x1a5/0x480 [ 13.124936] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.125145] kthread+0x337/0x6f0 [ 13.125325] ret_from_fork+0x116/0x1d0 [ 13.125524] ret_from_fork_asm+0x1a/0x30 [ 13.125730] [ 13.126164] The buggy address belongs to the object at ffff8881029df700 [ 13.126164] which belongs to the cache kmalloc-128 of size 128 [ 13.126933] The buggy address is located 105 bytes inside of [ 13.126933] allocated 120-byte region [ffff8881029df700, ffff8881029df778) [ 13.127605] [ 13.127715] The buggy address belongs to the physical page: [ 13.127950] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029df [ 13.128313] flags: 0x200000000000000(node=0|zone=2) [ 13.128553] page_type: f5(slab) [ 13.128716] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 13.129486] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 13.129944] page dumped because: kasan: bad access detected [ 13.130232] [ 13.130517] Memory state around the buggy address: [ 13.130732] ffff8881029df600: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 13.131243] ffff8881029df680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.131656] >ffff8881029df700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 13.132092] ^ [ 13.132543] ffff8881029df780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.133000] ffff8881029df800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.133542] ==================================================================