Date
July 9, 2025, 2:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.954957] ================================================================== [ 16.955025] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 16.955081] Write of size 16 at addr fff00000c3f1d700 by task kunit_try_catch/166 [ 16.955150] [ 16.955533] CPU: 0 UID: 0 PID: 166 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 16.955862] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.955906] Hardware name: linux,dummy-virt (DT) [ 16.956006] Call trace: [ 16.956039] show_stack+0x20/0x38 (C) [ 16.956185] dump_stack_lvl+0x8c/0xd0 [ 16.956240] print_report+0x118/0x608 [ 16.956366] kasan_report+0xdc/0x128 [ 16.957198] __asan_report_store16_noabort+0x20/0x30 [ 16.957278] kmalloc_oob_16+0x3a0/0x3f8 [ 16.957447] kunit_try_run_case+0x170/0x3f0 [ 16.957518] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.957823] kthread+0x328/0x630 [ 16.958167] ret_from_fork+0x10/0x20 [ 16.958354] [ 16.958377] Allocated by task 166: [ 16.958407] kasan_save_stack+0x3c/0x68 [ 16.958450] kasan_save_track+0x20/0x40 [ 16.958488] kasan_save_alloc_info+0x40/0x58 [ 16.958984] __kasan_kmalloc+0xd4/0xd8 [ 16.959073] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.959228] kmalloc_oob_16+0xb4/0x3f8 [ 16.959286] kunit_try_run_case+0x170/0x3f0 [ 16.959414] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.959492] kthread+0x328/0x630 [ 16.959702] ret_from_fork+0x10/0x20 [ 16.959856] [ 16.959962] The buggy address belongs to the object at fff00000c3f1d700 [ 16.959962] which belongs to the cache kmalloc-16 of size 16 [ 16.961192] The buggy address is located 0 bytes inside of [ 16.961192] allocated 13-byte region [fff00000c3f1d700, fff00000c3f1d70d) [ 16.961450] [ 16.961672] The buggy address belongs to the physical page: [ 16.961989] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103f1d [ 16.962146] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.962460] page_type: f5(slab) [ 16.962516] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 16.962573] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 16.962615] page dumped because: kasan: bad access detected [ 16.962645] [ 16.962662] Memory state around the buggy address: [ 16.962695] fff00000c3f1d600: 00 00 fc fc 00 00 fc fc 00 00 fc fc 00 02 fc fc [ 16.963104] fff00000c3f1d680: 00 02 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 16.963202] >fff00000c3f1d700: 00 05 fc fc 00 00 fc fc fc fc fc fc fc fc fc fc [ 16.963247] ^ [ 16.963281] fff00000c3f1d780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.963326] fff00000c3f1d800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.963403] ==================================================================
[ 12.754326] ================================================================== [ 12.754788] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 12.755175] Write of size 16 at addr ffff888102434580 by task kunit_try_catch/183 [ 12.755471] [ 12.755587] CPU: 0 UID: 0 PID: 183 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.755644] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.755655] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.755675] Call Trace: [ 12.755686] <TASK> [ 12.755702] dump_stack_lvl+0x73/0xb0 [ 12.755730] print_report+0xd1/0x650 [ 12.755752] ? __virt_addr_valid+0x1db/0x2d0 [ 12.755775] ? kmalloc_oob_16+0x452/0x4a0 [ 12.755815] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.755854] ? kmalloc_oob_16+0x452/0x4a0 [ 12.755875] kasan_report+0x141/0x180 [ 12.755897] ? kmalloc_oob_16+0x452/0x4a0 [ 12.755922] __asan_report_store16_noabort+0x1b/0x30 [ 12.755949] kmalloc_oob_16+0x452/0x4a0 [ 12.755970] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 12.755994] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 12.756018] kunit_try_run_case+0x1a5/0x480 [ 12.756042] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.756064] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.756089] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.756112] ? __kthread_parkme+0x82/0x180 [ 12.756133] ? preempt_count_sub+0x50/0x80 [ 12.756158] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.756182] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.756206] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.756232] kthread+0x337/0x6f0 [ 12.756250] ? trace_preempt_on+0x20/0xc0 [ 12.756273] ? __pfx_kthread+0x10/0x10 [ 12.756292] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.756313] ? calculate_sigpending+0x7b/0xa0 [ 12.756337] ? __pfx_kthread+0x10/0x10 [ 12.756357] ret_from_fork+0x116/0x1d0 [ 12.756375] ? __pfx_kthread+0x10/0x10 [ 12.756395] ret_from_fork_asm+0x1a/0x30 [ 12.756424] </TASK> [ 12.756434] [ 12.763414] Allocated by task 183: [ 12.763605] kasan_save_stack+0x45/0x70 [ 12.763858] kasan_save_track+0x18/0x40 [ 12.764052] kasan_save_alloc_info+0x3b/0x50 [ 12.764263] __kasan_kmalloc+0xb7/0xc0 [ 12.764431] __kmalloc_cache_noprof+0x189/0x420 [ 12.764623] kmalloc_oob_16+0xa8/0x4a0 [ 12.764755] kunit_try_run_case+0x1a5/0x480 [ 12.764962] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.765522] kthread+0x337/0x6f0 [ 12.765697] ret_from_fork+0x116/0x1d0 [ 12.765929] ret_from_fork_asm+0x1a/0x30 [ 12.766100] [ 12.766172] The buggy address belongs to the object at ffff888102434580 [ 12.766172] which belongs to the cache kmalloc-16 of size 16 [ 12.766637] The buggy address is located 0 bytes inside of [ 12.766637] allocated 13-byte region [ffff888102434580, ffff88810243458d) [ 12.767187] [ 12.767281] The buggy address belongs to the physical page: [ 12.767553] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102434 [ 12.767825] flags: 0x200000000000000(node=0|zone=2) [ 12.768062] page_type: f5(slab) [ 12.768281] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 12.768588] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 12.768861] page dumped because: kasan: bad access detected [ 12.769218] [ 12.769309] Memory state around the buggy address: [ 12.769465] ffff888102434480: 00 01 fc fc 00 01 fc fc 00 04 fc fc 00 04 fc fc [ 12.769690] ffff888102434500: fa fb fc fc fa fb fc fc fa fb fc fc 00 05 fc fc [ 12.769919] >ffff888102434580: 00 05 fc fc 00 00 fc fc fc fc fc fc fc fc fc fc [ 12.770536] ^ [ 12.770715] ffff888102434600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.771119] ffff888102434680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.771327] ==================================================================