Date
July 3, 2025, 3:13 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.252243] ================================================================== [ 15.252308] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 15.252387] Write of size 1 at addr fff00000c7839f00 by task kunit_try_catch/147 [ 15.252441] [ 15.252475] CPU: 1 UID: 0 PID: 147 Comm: kunit_try_catch Tainted: G B N 6.15.5-rc1 #1 PREEMPT [ 15.252557] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.252582] Hardware name: linux,dummy-virt (DT) [ 15.252628] Call trace: [ 15.252652] show_stack+0x20/0x38 (C) [ 15.252708] dump_stack_lvl+0x8c/0xd0 [ 15.252757] print_report+0x118/0x608 [ 15.252799] kasan_report+0xdc/0x128 [ 15.252841] __asan_report_store1_noabort+0x20/0x30 [ 15.252889] kmalloc_big_oob_right+0x2a4/0x2f0 [ 15.252957] kunit_try_run_case+0x170/0x3f0 [ 15.253280] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.253333] kthread+0x328/0x630 [ 15.254205] ret_from_fork+0x10/0x20 [ 15.254281] [ 15.254302] Allocated by task 147: [ 15.254331] kasan_save_stack+0x3c/0x68 [ 15.254370] kasan_save_track+0x20/0x40 [ 15.254405] kasan_save_alloc_info+0x40/0x58 [ 15.254611] __kasan_kmalloc+0xd4/0xd8 [ 15.255027] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.255393] kmalloc_big_oob_right+0xb8/0x2f0 [ 15.255477] kunit_try_run_case+0x170/0x3f0 [ 15.255548] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.255702] kthread+0x328/0x630 [ 15.255873] ret_from_fork+0x10/0x20 [ 15.256080] [ 15.256223] The buggy address belongs to the object at fff00000c7838000 [ 15.256223] which belongs to the cache kmalloc-8k of size 8192 [ 15.256322] The buggy address is located 0 bytes to the right of [ 15.256322] allocated 7936-byte region [fff00000c7838000, fff00000c7839f00) [ 15.256573] [ 15.256856] The buggy address belongs to the physical page: [ 15.257104] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107838 [ 15.257376] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 15.257440] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 15.257492] page_type: f5(slab) [ 15.257743] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 15.258032] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 15.258387] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 15.258530] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 15.258598] head: 0bfffe0000000003 ffffc1ffc31e0e01 00000000ffffffff 00000000ffffffff [ 15.258645] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 15.258957] page dumped because: kasan: bad access detected [ 15.259102] [ 15.259172] Memory state around the buggy address: [ 15.259520] fff00000c7839e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.259660] fff00000c7839e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.259813] >fff00000c7839f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.259852] ^ [ 15.259880] fff00000c7839f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.260296] fff00000c783a000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.260394] ==================================================================
[ 10.664630] ================================================================== [ 10.665334] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370 [ 10.665956] Write of size 1 at addr ffff888102a91f00 by task kunit_try_catch/163 [ 10.666442] [ 10.666531] CPU: 0 UID: 0 PID: 163 Comm: kunit_try_catch Tainted: G B N 6.15.5-rc1 #1 PREEMPT(voluntary) [ 10.666592] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.666604] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.666625] Call Trace: [ 10.666647] <TASK> [ 10.666662] dump_stack_lvl+0x73/0xb0 [ 10.666686] print_report+0xd1/0x650 [ 10.666708] ? __virt_addr_valid+0x1db/0x2d0 [ 10.666729] ? kmalloc_big_oob_right+0x316/0x370 [ 10.666751] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.666774] ? kmalloc_big_oob_right+0x316/0x370 [ 10.666796] kasan_report+0x141/0x180 [ 10.666893] ? kmalloc_big_oob_right+0x316/0x370 [ 10.666922] __asan_report_store1_noabort+0x1b/0x30 [ 10.666943] kmalloc_big_oob_right+0x316/0x370 [ 10.666966] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 10.666999] ? __schedule+0x10cc/0x2b60 [ 10.667021] ? __pfx_read_tsc+0x10/0x10 [ 10.667041] ? ktime_get_ts64+0x86/0x230 [ 10.667076] kunit_try_run_case+0x1a5/0x480 [ 10.667100] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.667121] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.667144] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.667168] ? __kthread_parkme+0x82/0x180 [ 10.667188] ? preempt_count_sub+0x50/0x80 [ 10.667213] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.667244] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.667267] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.667332] kthread+0x337/0x6f0 [ 10.667352] ? trace_preempt_on+0x20/0xc0 [ 10.667376] ? __pfx_kthread+0x10/0x10 [ 10.667395] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.667418] ? calculate_sigpending+0x7b/0xa0 [ 10.667439] ? __pfx_kthread+0x10/0x10 [ 10.667457] ret_from_fork+0x41/0x80 [ 10.667477] ? __pfx_kthread+0x10/0x10 [ 10.667495] ret_from_fork_asm+0x1a/0x30 [ 10.667527] </TASK> [ 10.667537] [ 10.681123] Allocated by task 163: [ 10.681271] kasan_save_stack+0x45/0x70 [ 10.681415] kasan_save_track+0x18/0x40 [ 10.681551] kasan_save_alloc_info+0x3b/0x50 [ 10.681856] __kasan_kmalloc+0xb7/0xc0 [ 10.682383] __kmalloc_cache_noprof+0x189/0x420 [ 10.682846] kmalloc_big_oob_right+0xa9/0x370 [ 10.683262] kunit_try_run_case+0x1a5/0x480 [ 10.683745] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.684248] kthread+0x337/0x6f0 [ 10.684777] ret_from_fork+0x41/0x80 [ 10.685171] ret_from_fork_asm+0x1a/0x30 [ 10.685734] [ 10.685983] The buggy address belongs to the object at ffff888102a90000 [ 10.685983] which belongs to the cache kmalloc-8k of size 8192 [ 10.686790] The buggy address is located 0 bytes to the right of [ 10.686790] allocated 7936-byte region [ffff888102a90000, ffff888102a91f00) [ 10.687784] [ 10.687863] The buggy address belongs to the physical page: [ 10.688040] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a90 [ 10.688429] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 10.688709] flags: 0x200000000000040(head|node=0|zone=2) [ 10.689064] page_type: f5(slab) [ 10.689226] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 10.689749] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 10.690135] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 10.690530] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 10.690966] head: 0200000000000003 ffffea00040aa401 00000000ffffffff 00000000ffffffff [ 10.691392] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 10.691796] page dumped because: kasan: bad access detected [ 10.692029] [ 10.692125] Memory state around the buggy address: [ 10.692358] ffff888102a91e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.692916] ffff888102a91e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.693270] >ffff888102a91f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.693521] ^ [ 10.693704] ffff888102a91f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.694113] ffff888102a92000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.694551] ==================================================================