Date
May 26, 2025, 9:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.928123] ================================================================== [ 16.928257] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 16.928798] Write of size 1 at addr fff00000c78e1f00 by task kunit_try_catch/144 [ 16.928905] [ 16.928977] CPU: 0 UID: 0 PID: 144 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7-next-20250526 #1 PREEMPT [ 16.929148] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.929201] Hardware name: linux,dummy-virt (DT) [ 16.929462] Call trace: [ 16.929530] show_stack+0x20/0x38 (C) [ 16.929658] dump_stack_lvl+0x8c/0xd0 [ 16.929766] print_report+0x118/0x608 [ 16.929884] kasan_report+0xdc/0x128 [ 16.929987] __asan_report_store1_noabort+0x20/0x30 [ 16.930095] kmalloc_big_oob_right+0x2a4/0x2f0 [ 16.930189] kunit_try_run_case+0x170/0x3f0 [ 16.930477] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.930591] kthread+0x328/0x630 [ 16.930679] ret_from_fork+0x10/0x20 [ 16.930795] [ 16.930996] Allocated by task 144: [ 16.931077] kasan_save_stack+0x3c/0x68 [ 16.931231] kasan_save_track+0x20/0x40 [ 16.931302] kasan_save_alloc_info+0x40/0x58 [ 16.931488] __kasan_kmalloc+0xd4/0xd8 [ 16.932065] __kmalloc_cache_noprof+0x15c/0x3c0 [ 16.932225] kmalloc_big_oob_right+0xb8/0x2f0 [ 16.932375] kunit_try_run_case+0x170/0x3f0 [ 16.932732] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.932830] kthread+0x328/0x630 [ 16.933164] ret_from_fork+0x10/0x20 [ 16.933877] [ 16.934080] The buggy address belongs to the object at fff00000c78e0000 [ 16.934080] which belongs to the cache kmalloc-8k of size 8192 [ 16.934484] The buggy address is located 0 bytes to the right of [ 16.934484] allocated 7936-byte region [fff00000c78e0000, fff00000c78e1f00) [ 16.935058] [ 16.935117] The buggy address belongs to the physical page: [ 16.935178] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078e0 [ 16.935296] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 16.935393] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 16.935706] page_type: f5(slab) [ 16.935807] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 16.935917] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 16.936024] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 16.936127] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 16.936355] head: 0bfffe0000000003 ffffc1ffc31e3801 00000000ffffffff 00000000ffffffff [ 16.936546] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 16.936679] page dumped because: kasan: bad access detected [ 16.936778] [ 16.936848] Memory state around the buggy address: [ 16.936930] fff00000c78e1e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.937026] fff00000c78e1e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.937123] >fff00000c78e1f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.937209] ^ [ 16.937276] fff00000c78e1f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.937414] fff00000c78e2000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.937499] ==================================================================
[ 10.458862] ================================================================== [ 10.459516] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370 [ 10.459859] Write of size 1 at addr ffff888101d75f00 by task kunit_try_catch/162 [ 10.460494] [ 10.460616] CPU: 1 UID: 0 PID: 162 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc7-next-20250526 #1 PREEMPT(voluntary) [ 10.460663] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.460675] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.460696] Call Trace: [ 10.460708] <TASK> [ 10.460723] dump_stack_lvl+0x73/0xb0 [ 10.460750] print_report+0xd1/0x650 [ 10.460773] ? __virt_addr_valid+0x1db/0x2d0 [ 10.460796] ? kmalloc_big_oob_right+0x316/0x370 [ 10.460817] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.460839] ? kmalloc_big_oob_right+0x316/0x370 [ 10.460861] kasan_report+0x141/0x180 [ 10.460883] ? kmalloc_big_oob_right+0x316/0x370 [ 10.460909] __asan_report_store1_noabort+0x1b/0x30 [ 10.460929] kmalloc_big_oob_right+0x316/0x370 [ 10.460951] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 10.460974] ? __schedule+0x10cc/0x2b60 [ 10.460997] ? __pfx_read_tsc+0x10/0x10 [ 10.461032] ? ktime_get_ts64+0x86/0x230 [ 10.461057] kunit_try_run_case+0x1a5/0x480 [ 10.461079] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.461097] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.461122] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.461145] ? __kthread_parkme+0x82/0x180 [ 10.461165] ? preempt_count_sub+0x50/0x80 [ 10.461188] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.461209] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.461232] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.461264] kthread+0x337/0x6f0 [ 10.461282] ? trace_preempt_on+0x20/0xc0 [ 10.461305] ? __pfx_kthread+0x10/0x10 [ 10.461325] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.461347] ? calculate_sigpending+0x7b/0xa0 [ 10.461370] ? __pfx_kthread+0x10/0x10 [ 10.461399] ret_from_fork+0x116/0x1d0 [ 10.461417] ? __pfx_kthread+0x10/0x10 [ 10.461436] ret_from_fork_asm+0x1a/0x30 [ 10.461466] </TASK> [ 10.461476] [ 10.468361] Allocated by task 162: [ 10.468514] kasan_save_stack+0x45/0x70 [ 10.468721] kasan_save_track+0x18/0x40 [ 10.469039] kasan_save_alloc_info+0x3b/0x50 [ 10.469255] __kasan_kmalloc+0xb7/0xc0 [ 10.469477] __kmalloc_cache_noprof+0x189/0x420 [ 10.469708] kmalloc_big_oob_right+0xa9/0x370 [ 10.470240] kunit_try_run_case+0x1a5/0x480 [ 10.470474] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.470696] kthread+0x337/0x6f0 [ 10.470854] ret_from_fork+0x116/0x1d0 [ 10.471021] ret_from_fork_asm+0x1a/0x30 [ 10.471161] [ 10.471231] The buggy address belongs to the object at ffff888101d74000 [ 10.471231] which belongs to the cache kmalloc-8k of size 8192 [ 10.471887] The buggy address is located 0 bytes to the right of [ 10.471887] allocated 7936-byte region [ffff888101d74000, ffff888101d75f00) [ 10.472400] [ 10.472499] The buggy address belongs to the physical page: [ 10.472782] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101d70 [ 10.473153] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 10.473464] flags: 0x200000000000040(head|node=0|zone=2) [ 10.473642] page_type: f5(slab) [ 10.473810] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 10.474176] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 10.474493] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 10.474897] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 10.475399] head: 0200000000000003 ffffea0004075c01 00000000ffffffff 00000000ffffffff [ 10.475698] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 10.475968] page dumped because: kasan: bad access detected [ 10.476416] [ 10.476516] Memory state around the buggy address: [ 10.476746] ffff888101d75e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.476966] ffff888101d75e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.477183] >ffff888101d75f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.477807] ^ [ 10.477977] ffff888101d75f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.478219] ffff888101d76000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.478443] ==================================================================