Date
July 5, 2025, 5:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.050559] ================================================================== [ 18.050647] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 18.050711] Write of size 1 at addr fff00000c65d5f00 by task kunit_try_catch/144 [ 18.050986] [ 18.051116] CPU: 1 UID: 0 PID: 144 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 18.051260] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.051368] Hardware name: linux,dummy-virt (DT) [ 18.051460] Call trace: [ 18.051488] show_stack+0x20/0x38 (C) [ 18.051535] dump_stack_lvl+0x8c/0xd0 [ 18.051601] print_report+0x118/0x608 [ 18.051646] kasan_report+0xdc/0x128 [ 18.051712] __asan_report_store1_noabort+0x20/0x30 [ 18.051758] kmalloc_big_oob_right+0x2a4/0x2f0 [ 18.051986] kunit_try_run_case+0x170/0x3f0 [ 18.052417] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.052734] kthread+0x328/0x630 [ 18.052830] ret_from_fork+0x10/0x20 [ 18.052930] [ 18.052999] Allocated by task 144: [ 18.053070] kasan_save_stack+0x3c/0x68 [ 18.053186] kasan_save_track+0x20/0x40 [ 18.053223] kasan_save_alloc_info+0x40/0x58 [ 18.053281] __kasan_kmalloc+0xd4/0xd8 [ 18.053540] __kmalloc_cache_noprof+0x16c/0x3c0 [ 18.053622] kmalloc_big_oob_right+0xb8/0x2f0 [ 18.053670] kunit_try_run_case+0x170/0x3f0 [ 18.053773] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.053869] kthread+0x328/0x630 [ 18.053902] ret_from_fork+0x10/0x20 [ 18.053937] [ 18.053956] The buggy address belongs to the object at fff00000c65d4000 [ 18.053956] which belongs to the cache kmalloc-8k of size 8192 [ 18.054012] The buggy address is located 0 bytes to the right of [ 18.054012] allocated 7936-byte region [fff00000c65d4000, fff00000c65d5f00) [ 18.054257] [ 18.054315] The buggy address belongs to the physical page: [ 18.054346] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065d0 [ 18.054408] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 18.054462] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 18.054512] page_type: f5(slab) [ 18.054548] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 18.054595] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 18.054642] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 18.054688] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 18.054734] head: 0bfffe0000000003 ffffc1ffc3197401 00000000ffffffff 00000000ffffffff [ 18.054812] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 18.054850] page dumped because: kasan: bad access detected [ 18.055045] [ 18.055065] Memory state around the buggy address: [ 18.055097] fff00000c65d5e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.055138] fff00000c65d5e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.055178] >fff00000c65d5f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.055213] ^ [ 18.055240] fff00000c65d5f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.055280] fff00000c65d6000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.055494] ==================================================================
[ 11.047200] ================================================================== [ 11.049109] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370 [ 11.049758] Write of size 1 at addr ffff888102a9df00 by task kunit_try_catch/162 [ 11.050883] [ 11.050989] CPU: 1 UID: 0 PID: 162 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 11.051039] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.051052] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.051077] Call Trace: [ 11.051091] <TASK> [ 11.051109] dump_stack_lvl+0x73/0xb0 [ 11.051139] print_report+0xd1/0x650 [ 11.051162] ? __virt_addr_valid+0x1db/0x2d0 [ 11.051185] ? kmalloc_big_oob_right+0x316/0x370 [ 11.051207] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.051229] ? kmalloc_big_oob_right+0x316/0x370 [ 11.051251] kasan_report+0x141/0x180 [ 11.051272] ? kmalloc_big_oob_right+0x316/0x370 [ 11.051299] __asan_report_store1_noabort+0x1b/0x30 [ 11.051320] kmalloc_big_oob_right+0x316/0x370 [ 11.051342] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 11.051365] ? __schedule+0x10cc/0x2b60 [ 11.051387] ? __pfx_read_tsc+0x10/0x10 [ 11.051408] ? ktime_get_ts64+0x86/0x230 [ 11.051432] kunit_try_run_case+0x1a5/0x480 [ 11.051561] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.051588] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.051612] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.051635] ? __kthread_parkme+0x82/0x180 [ 11.051655] ? preempt_count_sub+0x50/0x80 [ 11.051753] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.051779] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.051801] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.051824] kthread+0x337/0x6f0 [ 11.051843] ? trace_preempt_on+0x20/0xc0 [ 11.051867] ? __pfx_kthread+0x10/0x10 [ 11.051887] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.051907] ? calculate_sigpending+0x7b/0xa0 [ 11.051931] ? __pfx_kthread+0x10/0x10 [ 11.051952] ret_from_fork+0x116/0x1d0 [ 11.051970] ? __pfx_kthread+0x10/0x10 [ 11.051990] ret_from_fork_asm+0x1a/0x30 [ 11.052020] </TASK> [ 11.052032] [ 11.063007] Allocated by task 162: [ 11.063540] kasan_save_stack+0x45/0x70 [ 11.063741] kasan_save_track+0x18/0x40 [ 11.063975] kasan_save_alloc_info+0x3b/0x50 [ 11.064476] __kasan_kmalloc+0xb7/0xc0 [ 11.064700] __kmalloc_cache_noprof+0x189/0x420 [ 11.064913] kmalloc_big_oob_right+0xa9/0x370 [ 11.065296] kunit_try_run_case+0x1a5/0x480 [ 11.065608] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.065967] kthread+0x337/0x6f0 [ 11.066098] ret_from_fork+0x116/0x1d0 [ 11.066654] ret_from_fork_asm+0x1a/0x30 [ 11.066916] [ 11.066992] The buggy address belongs to the object at ffff888102a9c000 [ 11.066992] which belongs to the cache kmalloc-8k of size 8192 [ 11.067849] The buggy address is located 0 bytes to the right of [ 11.067849] allocated 7936-byte region [ffff888102a9c000, ffff888102a9df00) [ 11.068714] [ 11.068842] The buggy address belongs to the physical page: [ 11.069128] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a98 [ 11.069708] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 11.070089] flags: 0x200000000000040(head|node=0|zone=2) [ 11.070399] page_type: f5(slab) [ 11.071010] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 11.071261] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 11.071521] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 11.072068] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 11.072439] head: 0200000000000003 ffffea00040aa601 00000000ffffffff 00000000ffffffff [ 11.072957] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 11.073226] page dumped because: kasan: bad access detected [ 11.073693] [ 11.073917] Memory state around the buggy address: [ 11.074134] ffff888102a9de00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.074629] ffff888102a9de80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.074900] >ffff888102a9df00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.075356] ^ [ 11.075709] ffff888102a9df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.076081] ffff888102a9e000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.076547] ==================================================================