Date
May 29, 2025, 7:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 21.034036] ================================================================== [ 21.034227] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 21.034435] Write of size 1 at addr fff00000c45adf00 by task kunit_try_catch/144 [ 21.034549] [ 21.034639] CPU: 0 UID: 0 PID: 144 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250529 #1 PREEMPT [ 21.035392] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.035467] Hardware name: linux,dummy-virt (DT) [ 21.035726] Call trace: [ 21.035789] show_stack+0x20/0x38 (C) [ 21.035951] dump_stack_lvl+0x8c/0xd0 [ 21.036114] print_report+0x118/0x608 [ 21.036293] kasan_report+0xdc/0x128 [ 21.036516] __asan_report_store1_noabort+0x20/0x30 [ 21.036702] kmalloc_big_oob_right+0x2a4/0x2f0 [ 21.037057] kunit_try_run_case+0x170/0x3f0 [ 21.037311] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.037513] kthread+0x328/0x630 [ 21.037635] ret_from_fork+0x10/0x20 [ 21.037952] [ 21.038004] Allocated by task 144: [ 21.038126] kasan_save_stack+0x3c/0x68 [ 21.038250] kasan_save_track+0x20/0x40 [ 21.038532] kasan_save_alloc_info+0x40/0x58 [ 21.038623] __kasan_kmalloc+0xd4/0xd8 [ 21.038714] __kmalloc_cache_noprof+0x15c/0x3c0 [ 21.038829] kmalloc_big_oob_right+0xb8/0x2f0 [ 21.038988] kunit_try_run_case+0x170/0x3f0 [ 21.039092] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.039248] kthread+0x328/0x630 [ 21.039537] ret_from_fork+0x10/0x20 [ 21.039684] [ 21.039902] The buggy address belongs to the object at fff00000c45ac000 [ 21.039902] which belongs to the cache kmalloc-8k of size 8192 [ 21.040116] The buggy address is located 0 bytes to the right of [ 21.040116] allocated 7936-byte region [fff00000c45ac000, fff00000c45adf00) [ 21.040323] [ 21.040378] The buggy address belongs to the physical page: [ 21.040671] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1045a8 [ 21.040807] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 21.040926] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 21.041063] page_type: f5(slab) [ 21.041155] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 21.041275] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 21.041412] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 21.041537] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 21.041660] head: 0bfffe0000000003 ffffc1ffc3116a01 00000000ffffffff 00000000ffffffff [ 21.041785] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 21.041925] page dumped because: kasan: bad access detected [ 21.042007] [ 21.042054] Memory state around the buggy address: [ 21.042134] fff00000c45ade00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.042245] fff00000c45ade80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.042353] >fff00000c45adf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.043083] ^ [ 21.043180] fff00000c45adf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.043275] fff00000c45ae000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.043346] ==================================================================
[ 10.364321] ================================================================== [ 10.365512] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370 [ 10.366702] Write of size 1 at addr ffff888102ab5f00 by task kunit_try_catch/161 [ 10.367260] [ 10.367377] CPU: 0 UID: 0 PID: 161 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250529 #1 PREEMPT(voluntary) [ 10.367692] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.367706] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.367728] Call Trace: [ 10.367742] <TASK> [ 10.367759] dump_stack_lvl+0x73/0xb0 [ 10.367789] print_report+0xd1/0x650 [ 10.367812] ? __virt_addr_valid+0x1db/0x2d0 [ 10.367836] ? kmalloc_big_oob_right+0x316/0x370 [ 10.367858] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.367880] ? kmalloc_big_oob_right+0x316/0x370 [ 10.367903] kasan_report+0x141/0x180 [ 10.367925] ? kmalloc_big_oob_right+0x316/0x370 [ 10.367952] __asan_report_store1_noabort+0x1b/0x30 [ 10.367972] kmalloc_big_oob_right+0x316/0x370 [ 10.367995] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 10.368018] ? __schedule+0x10cc/0x2b60 [ 10.368042] ? __pfx_read_tsc+0x10/0x10 [ 10.368063] ? ktime_get_ts64+0x86/0x230 [ 10.368087] kunit_try_run_case+0x1a5/0x480 [ 10.368109] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.368128] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.368152] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.368176] ? __kthread_parkme+0x82/0x180 [ 10.368196] ? preempt_count_sub+0x50/0x80 [ 10.368220] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.368240] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.368264] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.368289] kthread+0x337/0x6f0 [ 10.368308] ? trace_preempt_on+0x20/0xc0 [ 10.368331] ? __pfx_kthread+0x10/0x10 [ 10.368351] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.368373] ? calculate_sigpending+0x7b/0xa0 [ 10.368396] ? __pfx_kthread+0x10/0x10 [ 10.368418] ret_from_fork+0x116/0x1d0 [ 10.368435] ? __pfx_kthread+0x10/0x10 [ 10.368455] ret_from_fork_asm+0x1a/0x30 [ 10.368486] </TASK> [ 10.368497] [ 10.376964] Allocated by task 161: [ 10.377311] kasan_save_stack+0x45/0x70 [ 10.378286] kasan_save_track+0x18/0x40 [ 10.378453] kasan_save_alloc_info+0x3b/0x50 [ 10.378979] __kasan_kmalloc+0xb7/0xc0 [ 10.379289] __kmalloc_cache_noprof+0x189/0x420 [ 10.379663] kmalloc_big_oob_right+0xa9/0x370 [ 10.379998] kunit_try_run_case+0x1a5/0x480 [ 10.380326] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.380733] kthread+0x337/0x6f0 [ 10.381148] ret_from_fork+0x116/0x1d0 [ 10.381310] ret_from_fork_asm+0x1a/0x30 [ 10.381759] [ 10.381872] The buggy address belongs to the object at ffff888102ab4000 [ 10.381872] which belongs to the cache kmalloc-8k of size 8192 [ 10.383105] The buggy address is located 0 bytes to the right of [ 10.383105] allocated 7936-byte region [ffff888102ab4000, ffff888102ab5f00) [ 10.383738] [ 10.383994] The buggy address belongs to the physical page: [ 10.384213] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102ab0 [ 10.384544] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 10.385251] flags: 0x200000000000040(head|node=0|zone=2) [ 10.385475] page_type: f5(slab) [ 10.386198] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 10.386570] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 10.387114] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 10.387607] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 10.388130] head: 0200000000000003 ffffea00040aac01 00000000ffffffff 00000000ffffffff [ 10.388605] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 10.389131] page dumped because: kasan: bad access detected [ 10.389515] [ 10.389632] Memory state around the buggy address: [ 10.389915] ffff888102ab5e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.390188] ffff888102ab5e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.390525] >ffff888102ab5f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.391232] ^ [ 10.391399] ffff888102ab5f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.392151] ffff888102ab6000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.392481] ==================================================================