Date
July 3, 2025, 6:13 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.517862] ================================================================== [ 16.518480] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 16.518798] Write of size 1 at addr fff00000c6625f00 by task kunit_try_catch/144 [ 16.518862] [ 16.519052] CPU: 0 UID: 0 PID: 144 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 16.519143] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.519169] Hardware name: linux,dummy-virt (DT) [ 16.519199] Call trace: [ 16.519245] show_stack+0x20/0x38 (C) [ 16.519322] dump_stack_lvl+0x8c/0xd0 [ 16.519366] print_report+0x118/0x608 [ 16.519542] kasan_report+0xdc/0x128 [ 16.519609] __asan_report_store1_noabort+0x20/0x30 [ 16.519781] kmalloc_big_oob_right+0x2a4/0x2f0 [ 16.519864] kunit_try_run_case+0x170/0x3f0 [ 16.519925] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.520118] kthread+0x328/0x630 [ 16.520174] ret_from_fork+0x10/0x20 [ 16.520557] [ 16.520726] Allocated by task 144: [ 16.520820] kasan_save_stack+0x3c/0x68 [ 16.520869] kasan_save_track+0x20/0x40 [ 16.520905] kasan_save_alloc_info+0x40/0x58 [ 16.520943] __kasan_kmalloc+0xd4/0xd8 [ 16.520997] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.521643] kmalloc_big_oob_right+0xb8/0x2f0 [ 16.521717] kunit_try_run_case+0x170/0x3f0 [ 16.521846] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.521901] kthread+0x328/0x630 [ 16.522110] ret_from_fork+0x10/0x20 [ 16.522308] [ 16.522407] The buggy address belongs to the object at fff00000c6624000 [ 16.522407] which belongs to the cache kmalloc-8k of size 8192 [ 16.522506] The buggy address is located 0 bytes to the right of [ 16.522506] allocated 7936-byte region [fff00000c6624000, fff00000c6625f00) [ 16.522728] [ 16.522807] The buggy address belongs to the physical page: [ 16.522886] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106620 [ 16.522941] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 16.523292] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 16.523404] page_type: f5(slab) [ 16.523448] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 16.523517] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 16.523991] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 16.524085] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 16.524393] head: 0bfffe0000000003 ffffc1ffc3198801 00000000ffffffff 00000000ffffffff [ 16.524576] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 16.524662] page dumped because: kasan: bad access detected [ 16.524701] [ 16.524719] Memory state around the buggy address: [ 16.524749] fff00000c6625e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.524791] fff00000c6625e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.524831] >fff00000c6625f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.524867] ^ [ 16.525026] fff00000c6625f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.525286] fff00000c6626000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.525385] ==================================================================
[ 10.930304] ================================================================== [ 10.931467] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370 [ 10.931716] Write of size 1 at addr ffff888102a35f00 by task kunit_try_catch/162 [ 10.931944] [ 10.932032] CPU: 1 UID: 0 PID: 162 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 10.932076] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.932087] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.932119] Call Trace: [ 10.932133] <TASK> [ 10.932149] dump_stack_lvl+0x73/0xb0 [ 10.932175] print_report+0xd1/0x650 [ 10.932198] ? __virt_addr_valid+0x1db/0x2d0 [ 10.932220] ? kmalloc_big_oob_right+0x316/0x370 [ 10.932240] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.932262] ? kmalloc_big_oob_right+0x316/0x370 [ 10.932284] kasan_report+0x141/0x180 [ 10.932305] ? kmalloc_big_oob_right+0x316/0x370 [ 10.932331] __asan_report_store1_noabort+0x1b/0x30 [ 10.932350] kmalloc_big_oob_right+0x316/0x370 [ 10.932371] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 10.932393] ? __schedule+0x10cc/0x2b60 [ 10.932414] ? __pfx_read_tsc+0x10/0x10 [ 10.932434] ? ktime_get_ts64+0x86/0x230 [ 10.932457] kunit_try_run_case+0x1a5/0x480 [ 10.932480] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.932500] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.932522] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.932543] ? __kthread_parkme+0x82/0x180 [ 10.932562] ? preempt_count_sub+0x50/0x80 [ 10.932584] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.932606] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.932627] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.932648] kthread+0x337/0x6f0 [ 10.932666] ? trace_preempt_on+0x20/0xc0 [ 10.932688] ? __pfx_kthread+0x10/0x10 [ 10.932708] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.932728] ? calculate_sigpending+0x7b/0xa0 [ 10.932749] ? __pfx_kthread+0x10/0x10 [ 10.932769] ret_from_fork+0x116/0x1d0 [ 10.932786] ? __pfx_kthread+0x10/0x10 [ 10.932805] ret_from_fork_asm+0x1a/0x30 [ 10.932834] </TASK> [ 10.932845] [ 10.948073] Allocated by task 162: [ 10.948548] kasan_save_stack+0x45/0x70 [ 10.948861] kasan_save_track+0x18/0x40 [ 10.949355] kasan_save_alloc_info+0x3b/0x50 [ 10.949559] __kasan_kmalloc+0xb7/0xc0 [ 10.949732] __kmalloc_cache_noprof+0x189/0x420 [ 10.949938] kmalloc_big_oob_right+0xa9/0x370 [ 10.950147] kunit_try_run_case+0x1a5/0x480 [ 10.950337] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.950561] kthread+0x337/0x6f0 [ 10.950716] ret_from_fork+0x116/0x1d0 [ 10.950888] ret_from_fork_asm+0x1a/0x30 [ 10.951063] [ 10.951866] The buggy address belongs to the object at ffff888102a34000 [ 10.951866] which belongs to the cache kmalloc-8k of size 8192 [ 10.952811] The buggy address is located 0 bytes to the right of [ 10.952811] allocated 7936-byte region [ffff888102a34000, ffff888102a35f00) [ 10.953909] [ 10.954154] The buggy address belongs to the physical page: [ 10.954692] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a30 [ 10.955418] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 10.955950] flags: 0x200000000000040(head|node=0|zone=2) [ 10.956435] page_type: f5(slab) [ 10.956699] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 10.957150] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 10.957728] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 10.958071] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 10.958713] head: 0200000000000003 ffffea00040a8c01 00000000ffffffff 00000000ffffffff [ 10.959245] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 10.960017] page dumped because: kasan: bad access detected [ 10.960533] [ 10.960769] Memory state around the buggy address: [ 10.961265] ffff888102a35e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.961579] ffff888102a35e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.961852] >ffff888102a35f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.962160] ^ [ 10.962421] ffff888102a35f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.962698] ffff888102a36000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.963079] ==================================================================