Date
July 9, 2025, 12:11 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 19.643911] ================================================================== [ 19.643975] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 19.644180] Write of size 16 at addr fff00000c6390100 by task kunit_try_catch/167 [ 19.644257] [ 19.644301] CPU: 1 UID: 0 PID: 167 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 19.644388] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.644436] Hardware name: linux,dummy-virt (DT) [ 19.644474] Call trace: [ 19.644502] show_stack+0x20/0x38 (C) [ 19.644559] dump_stack_lvl+0x8c/0xd0 [ 19.644615] print_report+0x118/0x608 [ 19.644671] kasan_report+0xdc/0x128 [ 19.644756] __asan_report_store16_noabort+0x20/0x30 [ 19.644808] kmalloc_oob_16+0x3a0/0x3f8 [ 19.644853] kunit_try_run_case+0x170/0x3f0 [ 19.645131] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.645325] kthread+0x328/0x630 [ 19.645371] ret_from_fork+0x10/0x20 [ 19.645431] [ 19.645449] Allocated by task 167: [ 19.645477] kasan_save_stack+0x3c/0x68 [ 19.645517] kasan_save_track+0x20/0x40 [ 19.645554] kasan_save_alloc_info+0x40/0x58 [ 19.645594] __kasan_kmalloc+0xd4/0xd8 [ 19.645630] __kmalloc_cache_noprof+0x16c/0x3c0 [ 19.645667] kmalloc_oob_16+0xb4/0x3f8 [ 19.645871] kunit_try_run_case+0x170/0x3f0 [ 19.645918] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.645960] kthread+0x328/0x630 [ 19.646030] ret_from_fork+0x10/0x20 [ 19.646079] [ 19.646118] The buggy address belongs to the object at fff00000c6390100 [ 19.646118] which belongs to the cache kmalloc-16 of size 16 [ 19.646207] The buggy address is located 0 bytes inside of [ 19.646207] allocated 13-byte region [fff00000c6390100, fff00000c639010d) [ 19.646292] [ 19.646317] The buggy address belongs to the physical page: [ 19.646423] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106390 [ 19.646507] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.646555] page_type: f5(slab) [ 19.646889] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 19.646977] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 19.647113] page dumped because: kasan: bad access detected [ 19.647173] [ 19.647234] Memory state around the buggy address: [ 19.647297] fff00000c6390000: 00 02 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 19.647417] fff00000c6390080: fa fb fc fc fa fb fc fc 00 04 fc fc fa fb fc fc [ 19.647472] >fff00000c6390100: 00 05 fc fc 00 00 fc fc fc fc fc fc fc fc fc fc [ 19.647526] ^ [ 19.647649] fff00000c6390180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.647724] fff00000c6390200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.647763] ==================================================================
[ 12.582064] ================================================================== [ 12.582502] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 12.582744] Write of size 16 at addr ffff888101e0ec80 by task kunit_try_catch/183 [ 12.583630] [ 12.583837] CPU: 1 UID: 0 PID: 183 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 12.583885] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.583896] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.583917] Call Trace: [ 12.583941] <TASK> [ 12.583959] dump_stack_lvl+0x73/0xb0 [ 12.583993] print_report+0xd1/0x650 [ 12.584016] ? __virt_addr_valid+0x1db/0x2d0 [ 12.584039] ? kmalloc_oob_16+0x452/0x4a0 [ 12.584060] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.584083] ? kmalloc_oob_16+0x452/0x4a0 [ 12.584103] kasan_report+0x141/0x180 [ 12.584124] ? kmalloc_oob_16+0x452/0x4a0 [ 12.584149] __asan_report_store16_noabort+0x1b/0x30 [ 12.584174] kmalloc_oob_16+0x452/0x4a0 [ 12.584194] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 12.584216] ? __schedule+0x10cc/0x2b60 [ 12.584238] ? __pfx_read_tsc+0x10/0x10 [ 12.584472] ? ktime_get_ts64+0x86/0x230 [ 12.584506] kunit_try_run_case+0x1a5/0x480 [ 12.584532] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.584555] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.584626] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.584650] ? __kthread_parkme+0x82/0x180 [ 12.584671] ? preempt_count_sub+0x50/0x80 [ 12.584697] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.584724] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.584750] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.584775] kthread+0x337/0x6f0 [ 12.584794] ? trace_preempt_on+0x20/0xc0 [ 12.584818] ? __pfx_kthread+0x10/0x10 [ 12.584839] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.584860] ? calculate_sigpending+0x7b/0xa0 [ 12.584884] ? __pfx_kthread+0x10/0x10 [ 12.584905] ret_from_fork+0x116/0x1d0 [ 12.584934] ? __pfx_kthread+0x10/0x10 [ 12.584955] ret_from_fork_asm+0x1a/0x30 [ 12.584987] </TASK> [ 12.584998] [ 12.599621] Allocated by task 183: [ 12.599802] kasan_save_stack+0x45/0x70 [ 12.599997] kasan_save_track+0x18/0x40 [ 12.600179] kasan_save_alloc_info+0x3b/0x50 [ 12.600766] __kasan_kmalloc+0xb7/0xc0 [ 12.600938] __kmalloc_cache_noprof+0x189/0x420 [ 12.601368] kmalloc_oob_16+0xa8/0x4a0 [ 12.601543] kunit_try_run_case+0x1a5/0x480 [ 12.601899] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.602307] kthread+0x337/0x6f0 [ 12.602596] ret_from_fork+0x116/0x1d0 [ 12.602962] ret_from_fork_asm+0x1a/0x30 [ 12.603162] [ 12.603383] The buggy address belongs to the object at ffff888101e0ec80 [ 12.603383] which belongs to the cache kmalloc-16 of size 16 [ 12.604027] The buggy address is located 0 bytes inside of [ 12.604027] allocated 13-byte region [ffff888101e0ec80, ffff888101e0ec8d) [ 12.604705] [ 12.604883] The buggy address belongs to the physical page: [ 12.605350] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101e0e [ 12.605792] flags: 0x200000000000000(node=0|zone=2) [ 12.606027] page_type: f5(slab) [ 12.606164] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 12.606723] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 12.607150] page dumped because: kasan: bad access detected [ 12.607523] [ 12.607600] Memory state around the buggy address: [ 12.607997] ffff888101e0eb80: 00 04 fc fc 00 04 fc fc 00 01 fc fc 00 01 fc fc [ 12.608475] ffff888101e0ec00: 00 04 fc fc 00 04 fc fc 00 05 fc fc fa fb fc fc [ 12.608772] >ffff888101e0ec80: 00 05 fc fc 00 00 fc fc fc fc fc fc fc fc fc fc [ 12.609093] ^ [ 12.609254] ffff888101e0ed00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.609812] ffff888101e0ed80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.610135] ==================================================================