Date
Dec. 6, 2024, 3:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 32.253445] ================================================================== [ 32.254470] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x33c/0x428 [ 32.255660] Read of size 1 at addr fff00000c67300c8 by task kunit_try_catch/196 [ 32.257233] [ 32.257713] CPU: 1 UID: 0 PID: 196 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241206 #1 [ 32.259258] Tainted: [B]=BAD_PAGE, [N]=TEST [ 32.259992] Hardware name: linux,dummy-virt (DT) [ 32.260489] Call trace: [ 32.261016] show_stack+0x20/0x38 (C) [ 32.261618] dump_stack_lvl+0x8c/0xd0 [ 32.262464] print_report+0x118/0x5e0 [ 32.263068] kasan_report+0xc8/0x118 [ 32.263639] __asan_report_load1_noabort+0x20/0x30 [ 32.264403] kmem_cache_oob+0x33c/0x428 [ 32.265039] kunit_try_run_case+0x14c/0x3d0 [ 32.265750] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.266842] kthread+0x24c/0x2d0 [ 32.267225] ret_from_fork+0x10/0x20 [ 32.268110] [ 32.268697] Allocated by task 196: [ 32.269233] kasan_save_stack+0x3c/0x68 [ 32.269807] kasan_save_track+0x20/0x40 [ 32.270885] kasan_save_alloc_info+0x40/0x58 [ 32.271551] __kasan_slab_alloc+0xa8/0xb0 [ 32.272172] kmem_cache_alloc_noprof+0x108/0x398 [ 32.272996] kmem_cache_oob+0x12c/0x428 [ 32.273632] kunit_try_run_case+0x14c/0x3d0 [ 32.274145] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.275384] kthread+0x24c/0x2d0 [ 32.276389] ret_from_fork+0x10/0x20 [ 32.276952] [ 32.277344] The buggy address belongs to the object at fff00000c6730000 [ 32.277344] which belongs to the cache test_cache of size 200 [ 32.278980] The buggy address is located 0 bytes to the right of [ 32.278980] allocated 200-byte region [fff00000c6730000, fff00000c67300c8) [ 32.280347] [ 32.280707] The buggy address belongs to the physical page: [ 32.281446] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106730 [ 32.282503] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 32.283357] page_type: f5(slab) [ 32.283979] raw: 0bfffe0000000000 fff00000c13fa3c0 dead000000000122 0000000000000000 [ 32.284845] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 32.285826] page dumped because: kasan: bad access detected [ 32.286444] [ 32.286971] Memory state around the buggy address: [ 32.287908] fff00000c672ff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 32.288798] fff00000c6730000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 32.289813] >fff00000c6730080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 32.290947] ^ [ 32.291616] fff00000c6730100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.292409] fff00000c6730180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 32.293293] ==================================================================
[ 25.008299] ================================================================== [ 25.009701] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x404/0x530 [ 25.010403] Read of size 1 at addr ffff8881024790c8 by task kunit_try_catch/215 [ 25.011205] [ 25.011527] CPU: 1 UID: 0 PID: 215 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241206 #1 [ 25.013194] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.013851] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.014699] Call Trace: [ 25.015290] <TASK> [ 25.015877] dump_stack_lvl+0x73/0xb0 [ 25.016577] print_report+0xd1/0x640 [ 25.016868] ? __virt_addr_valid+0x1db/0x2d0 [ 25.017306] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.018242] kasan_report+0x102/0x140 [ 25.018856] ? kmem_cache_oob+0x404/0x530 [ 25.019231] ? kmem_cache_oob+0x404/0x530 [ 25.019927] __asan_report_load1_noabort+0x18/0x20 [ 25.021063] kmem_cache_oob+0x404/0x530 [ 25.021767] ? trace_hardirqs_on+0x37/0xe0 [ 25.022612] ? __pfx_kmem_cache_oob+0x10/0x10 [ 25.023506] ? finish_task_switch.isra.0+0x153/0x700 [ 25.024244] ? __switch_to+0x5d9/0xf60 [ 25.025115] ? __pfx_read_tsc+0x10/0x10 [ 25.026023] ? ktime_get_ts64+0x86/0x230 [ 25.026878] kunit_try_run_case+0x1b3/0x490 [ 25.027278] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.028279] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 25.029275] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.029974] ? __kthread_parkme+0x82/0x160 [ 25.030642] ? preempt_count_sub+0x50/0x80 [ 25.031217] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.031983] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.033117] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.033605] kthread+0x257/0x310 [ 25.034073] ? __pfx_kthread+0x10/0x10 [ 25.034388] ret_from_fork+0x41/0x80 [ 25.034880] ? __pfx_kthread+0x10/0x10 [ 25.036551] ret_from_fork_asm+0x1a/0x30 [ 25.037537] </TASK> [ 25.037691] [ 25.037808] Allocated by task 215: [ 25.038021] kasan_save_stack+0x3d/0x60 [ 25.039500] kasan_save_track+0x18/0x40 [ 25.040073] kasan_save_alloc_info+0x3b/0x50 [ 25.040823] __kasan_slab_alloc+0x91/0xa0 [ 25.041330] kmem_cache_alloc_noprof+0x11e/0x3e0 [ 25.042197] kmem_cache_oob+0x158/0x530 [ 25.043094] kunit_try_run_case+0x1b3/0x490 [ 25.044536] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.046005] kthread+0x257/0x310 [ 25.046265] ret_from_fork+0x41/0x80 [ 25.046462] ret_from_fork_asm+0x1a/0x30 [ 25.048321] [ 25.048985] The buggy address belongs to the object at ffff888102479000 [ 25.048985] which belongs to the cache test_cache of size 200 [ 25.051077] The buggy address is located 0 bytes to the right of [ 25.051077] allocated 200-byte region [ffff888102479000, ffff8881024790c8) [ 25.052691] [ 25.052986] The buggy address belongs to the physical page: [ 25.054329] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102479 [ 25.055543] flags: 0x200000000000000(node=0|zone=2) [ 25.056242] page_type: f5(slab) [ 25.057461] raw: 0200000000000000 ffff888101116640 dead000000000122 0000000000000000 [ 25.059224] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 25.059867] page dumped because: kasan: bad access detected [ 25.060212] [ 25.060486] Memory state around the buggy address: [ 25.062061] ffff888102478f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.062717] ffff888102479000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.063875] >ffff888102479080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 25.064524] ^ [ 25.065539] ffff888102479100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.066280] ffff888102479180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.068408] ==================================================================