Date
June 17, 2025, 3:40 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 21.737150] ================================================================== [ 21.737628] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x150/0x300 [ 21.737905] Write of size 4 at addr fff00000c794b275 by task kunit_try_catch/176 [ 21.738161] [ 21.738368] CPU: 0 UID: 0 PID: 176 Comm: kunit_try_catch Tainted: G B N 6.15.3-rc1 #1 PREEMPT [ 21.738620] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.738671] Hardware name: linux,dummy-virt (DT) [ 21.739137] Call trace: [ 21.740776] show_stack+0x20/0x38 (C) [ 21.740955] dump_stack_lvl+0x8c/0xd0 [ 21.741057] print_report+0x118/0x608 [ 21.741152] kasan_report+0xdc/0x128 [ 21.741234] kasan_check_range+0x100/0x1a8 [ 21.742475] __asan_memset+0x34/0x78 [ 21.742619] kmalloc_oob_memset_4+0x150/0x300 [ 21.742722] kunit_try_run_case+0x170/0x3f0 [ 21.742862] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.742984] kthread+0x328/0x630 [ 21.743089] ret_from_fork+0x10/0x20 [ 21.743197] [ 21.743240] Allocated by task 176: [ 21.743305] kasan_save_stack+0x3c/0x68 [ 21.743395] kasan_save_track+0x20/0x40 [ 21.743473] kasan_save_alloc_info+0x40/0x58 [ 21.743559] __kasan_kmalloc+0xd4/0xd8 [ 21.743638] __kmalloc_cache_noprof+0x16c/0x3c0 [ 21.743919] kmalloc_oob_memset_4+0xb0/0x300 [ 21.744021] kunit_try_run_case+0x170/0x3f0 [ 21.744558] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.744678] kthread+0x328/0x630 [ 21.745439] ret_from_fork+0x10/0x20 [ 21.745528] [ 21.745631] The buggy address belongs to the object at fff00000c794b200 [ 21.745631] which belongs to the cache kmalloc-128 of size 128 [ 21.745772] The buggy address is located 117 bytes inside of [ 21.745772] allocated 120-byte region [fff00000c794b200, fff00000c794b278) [ 21.745904] [ 21.745952] The buggy address belongs to the physical page: [ 21.746190] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10794b [ 21.746318] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 21.746422] page_type: f5(slab) [ 21.746513] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 21.746618] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 21.746705] page dumped because: kasan: bad access detected [ 21.746778] [ 21.746814] Memory state around the buggy address: [ 21.746882] fff00000c794b100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.746978] fff00000c794b180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.747068] >fff00000c794b200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 21.747145] ^ [ 21.747230] fff00000c794b280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.747320] fff00000c794b300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.747398] ==================================================================
[ 19.333920] ================================================================== [ 19.334917] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x166/0x330 [ 19.335685] Write of size 4 at addr ffff888102ed7275 by task kunit_try_catch/194 [ 19.336266] [ 19.337066] CPU: 1 UID: 0 PID: 194 Comm: kunit_try_catch Tainted: G B N 6.15.3-rc1 #1 PREEMPT(voluntary) [ 19.337185] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.337219] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 19.337266] Call Trace: [ 19.337371] <TASK> [ 19.337446] dump_stack_lvl+0x73/0xb0 [ 19.337535] print_report+0xd1/0x650 [ 19.337614] ? __virt_addr_valid+0x1db/0x2d0 [ 19.337690] ? kmalloc_oob_memset_4+0x166/0x330 [ 19.337760] ? kasan_complete_mode_report_info+0x2a/0x200 [ 19.337880] ? kmalloc_oob_memset_4+0x166/0x330 [ 19.337995] kasan_report+0x141/0x180 [ 19.338087] ? kmalloc_oob_memset_4+0x166/0x330 [ 19.338176] kasan_check_range+0x10c/0x1c0 [ 19.338245] __asan_memset+0x27/0x50 [ 19.338336] kmalloc_oob_memset_4+0x166/0x330 [ 19.338414] ? __pfx_kmalloc_oob_memset_4+0x10/0x10 [ 19.338488] ? __schedule+0x10cc/0x2b60 [ 19.338578] ? __pfx_read_tsc+0x10/0x10 [ 19.338650] ? ktime_get_ts64+0x86/0x230 [ 19.338714] kunit_try_run_case+0x1a5/0x480 [ 19.338755] ? __pfx_kunit_try_run_case+0x10/0x10 [ 19.338789] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 19.338824] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 19.338858] ? __kthread_parkme+0x82/0x180 [ 19.338891] ? preempt_count_sub+0x50/0x80 [ 19.338928] ? __pfx_kunit_try_run_case+0x10/0x10 [ 19.339008] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 19.339092] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 19.339138] kthread+0x337/0x6f0 [ 19.339162] ? trace_preempt_on+0x20/0xc0 [ 19.339197] ? __pfx_kthread+0x10/0x10 [ 19.339221] ? _raw_spin_unlock_irq+0x47/0x80 [ 19.339251] ? calculate_sigpending+0x7b/0xa0 [ 19.339281] ? __pfx_kthread+0x10/0x10 [ 19.339347] ret_from_fork+0x41/0x80 [ 19.339382] ? __pfx_kthread+0x10/0x10 [ 19.339408] ret_from_fork_asm+0x1a/0x30 [ 19.339451] </TASK> [ 19.339466] [ 19.360200] Allocated by task 194: [ 19.360712] kasan_save_stack+0x45/0x70 [ 19.361608] kasan_save_track+0x18/0x40 [ 19.362163] kasan_save_alloc_info+0x3b/0x50 [ 19.362641] __kasan_kmalloc+0xb7/0xc0 [ 19.363239] __kmalloc_cache_noprof+0x189/0x420 [ 19.363713] kmalloc_oob_memset_4+0xac/0x330 [ 19.364495] kunit_try_run_case+0x1a5/0x480 [ 19.365418] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 19.365843] kthread+0x337/0x6f0 [ 19.366333] ret_from_fork+0x41/0x80 [ 19.366786] ret_from_fork_asm+0x1a/0x30 [ 19.367257] [ 19.367465] The buggy address belongs to the object at ffff888102ed7200 [ 19.367465] which belongs to the cache kmalloc-128 of size 128 [ 19.368914] The buggy address is located 117 bytes inside of [ 19.368914] allocated 120-byte region [ffff888102ed7200, ffff888102ed7278) [ 19.370550] [ 19.370714] The buggy address belongs to the physical page: [ 19.371424] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102ed7 [ 19.372406] flags: 0x200000000000000(node=0|zone=2) [ 19.372921] page_type: f5(slab) [ 19.373641] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 19.374591] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 19.375161] page dumped because: kasan: bad access detected [ 19.375960] [ 19.376164] Memory state around the buggy address: [ 19.376898] ffff888102ed7100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.377547] ffff888102ed7180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.378592] >ffff888102ed7200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 19.379511] ^ [ 19.380207] ffff888102ed7280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.380987] ffff888102ed7300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.381814] ==================================================================