Date
Dec. 3, 2024, 11:38 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.303833] ================================================================== [ 29.305106] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 29.306048] Write of size 1 at addr fff00000c5f65f00 by task kunit_try_catch/133 [ 29.307070] [ 29.307409] CPU: 1 UID: 0 PID: 133 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241203 #1 [ 29.308822] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.309255] Hardware name: linux,dummy-virt (DT) [ 29.310890] Call trace: [ 29.311641] show_stack+0x20/0x38 (C) [ 29.312224] dump_stack_lvl+0x8c/0xd0 [ 29.312990] print_report+0x118/0x5e0 [ 29.313565] kasan_report+0xc8/0x118 [ 29.314230] __asan_report_store1_noabort+0x20/0x30 [ 29.314847] kmalloc_big_oob_right+0x2a4/0x2f0 [ 29.315725] kunit_try_run_case+0x14c/0x3d0 [ 29.316437] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.317233] kthread+0x24c/0x2d0 [ 29.317805] ret_from_fork+0x10/0x20 [ 29.318441] [ 29.318745] Allocated by task 133: [ 29.319625] kasan_save_stack+0x3c/0x68 [ 29.320195] kasan_save_track+0x20/0x40 [ 29.320762] kasan_save_alloc_info+0x40/0x58 [ 29.321429] __kasan_kmalloc+0xd4/0xd8 [ 29.321983] __kmalloc_cache_noprof+0x15c/0x3c0 [ 29.322685] kmalloc_big_oob_right+0xb8/0x2f0 [ 29.323641] kunit_try_run_case+0x14c/0x3d0 [ 29.324207] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.324972] kthread+0x24c/0x2d0 [ 29.325481] ret_from_fork+0x10/0x20 [ 29.326027] [ 29.326400] The buggy address belongs to the object at fff00000c5f64000 [ 29.326400] which belongs to the cache kmalloc-8k of size 8192 [ 29.328820] The buggy address is located 0 bytes to the right of [ 29.328820] allocated 7936-byte region [fff00000c5f64000, fff00000c5f65f00) [ 29.330898] [ 29.331368] The buggy address belongs to the physical page: [ 29.331983] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105f60 [ 29.333358] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 29.334241] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 29.335077] page_type: f5(slab) [ 29.335584] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 29.336741] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 29.337745] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 29.338818] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 29.340184] head: 0bfffe0000000003 ffffc1ffc317d801 ffffffffffffffff 0000000000000000 [ 29.341189] head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 [ 29.342171] page dumped because: kasan: bad access detected [ 29.343093] [ 29.343375] Memory state around the buggy address: [ 29.344153] fff00000c5f65e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.345013] fff00000c5f65e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.346313] >fff00000c5f65f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.347149] ^ [ 29.348184] fff00000c5f65f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.349585] fff00000c5f66000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.350447] ==================================================================
[ 24.928389] ================================================================== [ 24.929407] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x318/0x370 [ 24.930777] Write of size 1 at addr ffff88810226df00 by task kunit_try_catch/153 [ 24.932421] [ 24.932748] CPU: 1 UID: 0 PID: 153 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241203 #1 [ 24.933358] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.933929] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.935388] Call Trace: [ 24.935610] <TASK> [ 24.936351] dump_stack_lvl+0x73/0xb0 [ 24.936791] print_report+0xd1/0x640 [ 24.937373] ? __virt_addr_valid+0x1db/0x2d0 [ 24.937936] ? kasan_complete_mode_report_info+0x2a/0x200 [ 24.938525] kasan_report+0x102/0x140 [ 24.938889] ? kmalloc_big_oob_right+0x318/0x370 [ 24.939490] ? kmalloc_big_oob_right+0x318/0x370 [ 24.940080] __asan_report_store1_noabort+0x1b/0x30 [ 24.940372] kmalloc_big_oob_right+0x318/0x370 [ 24.940674] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 24.941149] ? __schedule+0xc3e/0x2790 [ 24.942207] ? __pfx_read_tsc+0x10/0x10 [ 24.942371] ? ktime_get_ts64+0x86/0x230 [ 24.942645] kunit_try_run_case+0x1b3/0x490 [ 24.943093] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.943446] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 24.943831] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.944733] ? __kthread_parkme+0x82/0x160 [ 24.945723] ? preempt_count_sub+0x50/0x80 [ 24.946206] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.946508] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.946849] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.947369] kthread+0x257/0x310 [ 24.947738] ? __pfx_kthread+0x10/0x10 [ 24.948265] ret_from_fork+0x41/0x80 [ 24.949369] ? __pfx_kthread+0x10/0x10 [ 24.949912] ret_from_fork_asm+0x1a/0x30 [ 24.950308] </TASK> [ 24.950608] [ 24.950920] Allocated by task 153: [ 24.951264] kasan_save_stack+0x3d/0x60 [ 24.951844] kasan_save_track+0x18/0x40 [ 24.952232] kasan_save_alloc_info+0x3b/0x50 [ 24.952577] __kasan_kmalloc+0xb7/0xc0 [ 24.953597] __kmalloc_cache_noprof+0x184/0x410 [ 24.954039] kmalloc_big_oob_right+0xaa/0x370 [ 24.954436] kunit_try_run_case+0x1b3/0x490 [ 24.954784] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.955520] kthread+0x257/0x310 [ 24.955992] ret_from_fork+0x41/0x80 [ 24.956344] ret_from_fork_asm+0x1a/0x30 [ 24.957481] [ 24.957852] The buggy address belongs to the object at ffff88810226c000 [ 24.957852] which belongs to the cache kmalloc-8k of size 8192 [ 24.958921] The buggy address is located 0 bytes to the right of [ 24.958921] allocated 7936-byte region [ffff88810226c000, ffff88810226df00) [ 24.959933] [ 24.960135] The buggy address belongs to the physical page: [ 24.960594] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102268 [ 24.961019] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 24.961651] flags: 0x200000000000040(head|node=0|zone=2) [ 24.962160] page_type: f5(slab) [ 24.962413] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 24.963869] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 24.964418] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 24.965180] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 24.965907] head: 0200000000000003 ffffea0004089a01 ffffffffffffffff 0000000000000000 [ 24.966522] head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 [ 24.967958] page dumped because: kasan: bad access detected [ 24.968800] [ 24.968939] Memory state around the buggy address: [ 24.969443] ffff88810226de00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.970608] ffff88810226de80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.971220] >ffff88810226df00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.972118] ^ [ 24.972387] ffff88810226df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.973215] ffff88810226e000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.974043] ==================================================================