Date
Nov. 22, 2024, 6:35 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 32.295349] ================================================================== [ 32.297275] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 32.298586] Write of size 1 at addr fff00000c1615f00 by task kunit_try_catch/133 [ 32.299899] [ 32.300230] CPU: 0 UID: 0 PID: 133 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241122 #1 [ 32.302559] Tainted: [B]=BAD_PAGE, [N]=TEST [ 32.303107] Hardware name: linux,dummy-virt (DT) [ 32.303777] Call trace: [ 32.304167] show_stack+0x20/0x38 (C) [ 32.305542] dump_stack_lvl+0x8c/0xd0 [ 32.306404] print_report+0x118/0x5e0 [ 32.307048] kasan_report+0xc8/0x118 [ 32.307892] __asan_report_store1_noabort+0x20/0x30 [ 32.308813] kmalloc_big_oob_right+0x2a4/0x2f0 [ 32.309702] kunit_try_run_case+0x14c/0x3d0 [ 32.310639] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.311628] kthread+0x24c/0x2d0 [ 32.312368] ret_from_fork+0x10/0x20 [ 32.313427] [ 32.313696] Allocated by task 133: [ 32.314071] kasan_save_stack+0x3c/0x68 [ 32.315379] kasan_save_track+0x20/0x40 [ 32.316196] kasan_save_alloc_info+0x40/0x58 [ 32.317402] __kasan_kmalloc+0xd4/0xd8 [ 32.318196] __kmalloc_cache_noprof+0x15c/0x3c8 [ 32.318803] kmalloc_big_oob_right+0xb8/0x2f0 [ 32.319375] kunit_try_run_case+0x14c/0x3d0 [ 32.320332] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.322093] kthread+0x24c/0x2d0 [ 32.322677] ret_from_fork+0x10/0x20 [ 32.323127] [ 32.323611] The buggy address belongs to the object at fff00000c1614000 [ 32.323611] which belongs to the cache kmalloc-8k of size 8192 [ 32.325847] The buggy address is located 0 bytes to the right of [ 32.325847] allocated 7936-byte region [fff00000c1614000, fff00000c1615f00) [ 32.327276] [ 32.327635] The buggy address belongs to the physical page: [ 32.328340] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101610 [ 32.330231] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 32.331188] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 32.332138] page_type: f5(slab) [ 32.332831] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 32.334922] raw: 0000000000000000 0000000080020002 00000001f5000000 0000000000000000 [ 32.335869] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 32.337303] head: 0000000000000000 0000000080020002 00000001f5000000 0000000000000000 [ 32.339042] head: 0bfffe0000000003 ffffc1ffc3058401 ffffffffffffffff 0000000000000000 [ 32.340253] head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 [ 32.341834] page dumped because: kasan: bad access detected [ 32.342780] [ 32.343192] Memory state around the buggy address: [ 32.344187] fff00000c1615e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 32.345254] fff00000c1615e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 32.346607] >fff00000c1615f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.347921] ^ [ 32.349091] fff00000c1615f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.350297] fff00000c1616000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.351157] ==================================================================
[ 23.964162] ================================================================== [ 23.965348] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x318/0x370 [ 23.966492] Write of size 1 at addr ffff888102b75f00 by task kunit_try_catch/152 [ 23.967234] [ 23.967515] CPU: 1 UID: 0 PID: 152 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241122 #1 [ 23.968076] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.968548] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.970290] Call Trace: [ 23.970602] <TASK> [ 23.971168] dump_stack_lvl+0x73/0xb0 [ 23.972073] print_report+0xd1/0x640 [ 23.972713] ? __virt_addr_valid+0x1db/0x2d0 [ 23.973387] ? kasan_complete_mode_report_info+0x2a/0x200 [ 23.974297] kasan_report+0x102/0x140 [ 23.974643] ? kmalloc_big_oob_right+0x318/0x370 [ 23.975484] ? kmalloc_big_oob_right+0x318/0x370 [ 23.976200] __asan_report_store1_noabort+0x1b/0x30 [ 23.977046] kmalloc_big_oob_right+0x318/0x370 [ 23.978008] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 23.978467] ? __schedule+0xc3e/0x2790 [ 23.978889] ? __pfx_read_tsc+0x10/0x10 [ 23.980221] ? ktime_get_ts64+0x84/0x230 [ 23.981124] kunit_try_run_case+0x1b3/0x490 [ 23.982082] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.982610] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 23.983133] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.983557] ? __kthread_parkme+0x82/0x160 [ 23.983980] ? preempt_count_sub+0x50/0x80 [ 23.984356] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.985617] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.986207] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.986708] kthread+0x257/0x310 [ 23.987752] ? __pfx_kthread+0x10/0x10 [ 23.988428] ret_from_fork+0x41/0x80 [ 23.989332] ? __pfx_kthread+0x10/0x10 [ 23.989702] ret_from_fork_asm+0x1a/0x30 [ 23.990339] </TASK> [ 23.990602] [ 23.990814] Allocated by task 152: [ 23.991183] kasan_save_stack+0x3d/0x60 [ 23.992577] kasan_save_track+0x18/0x40 [ 23.993103] kasan_save_alloc_info+0x3b/0x50 [ 23.993956] __kasan_kmalloc+0xb7/0xc0 [ 23.994423] __kmalloc_cache_noprof+0x184/0x410 [ 23.995055] kmalloc_big_oob_right+0xaa/0x370 [ 23.995595] kunit_try_run_case+0x1b3/0x490 [ 23.996199] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.996806] kthread+0x257/0x310 [ 23.997202] ret_from_fork+0x41/0x80 [ 23.997611] ret_from_fork_asm+0x1a/0x30 [ 23.998191] [ 23.998372] The buggy address belongs to the object at ffff888102b74000 [ 23.998372] which belongs to the cache kmalloc-8k of size 8192 [ 23.999319] The buggy address is located 0 bytes to the right of [ 23.999319] allocated 7936-byte region [ffff888102b74000, ffff888102b75f00) [ 24.001033] [ 24.001290] The buggy address belongs to the physical page: [ 24.001935] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b70 [ 24.003169] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 24.004108] flags: 0x200000000000040(head|node=0|zone=2) [ 24.004859] page_type: f5(slab) [ 24.005532] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 24.005964] raw: 0000000000000000 0000000080020002 00000001f5000000 0000000000000000 [ 24.006504] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 24.006955] head: 0000000000000000 0000000080020002 00000001f5000000 0000000000000000 [ 24.007478] head: 0200000000000003 ffffea00040adc01 ffffffffffffffff 0000000000000000 [ 24.008419] head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 [ 24.009173] page dumped because: kasan: bad access detected [ 24.009497] [ 24.009645] Memory state around the buggy address: [ 24.010308] ffff888102b75e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.010933] ffff888102b75e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.011361] >ffff888102b75f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.012041] ^ [ 24.012535] ffff888102b75f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.013447] ffff888102b76000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.014055] ==================================================================