Date
Nov. 22, 2024, 6:35 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 37.048363] ================================================================== [ 37.049878] BUG: KASAN: slab-out-of-bounds in memchr+0x78/0x88 [ 37.051892] Read of size 1 at addr fff00000c6a4c318 by task kunit_try_catch/244 [ 37.053256] [ 37.053634] CPU: 1 UID: 0 PID: 244 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241122 #1 [ 37.054924] Tainted: [B]=BAD_PAGE, [N]=TEST [ 37.055644] Hardware name: linux,dummy-virt (DT) [ 37.056263] Call trace: [ 37.056701] show_stack+0x20/0x38 (C) [ 37.057375] dump_stack_lvl+0x8c/0xd0 [ 37.058587] print_report+0x118/0x5e0 [ 37.059082] kasan_report+0xc8/0x118 [ 37.059792] __asan_report_load1_noabort+0x20/0x30 [ 37.060397] memchr+0x78/0x88 [ 37.060920] kasan_memchr+0x148/0x2d8 [ 37.061808] kunit_try_run_case+0x14c/0x3d0 [ 37.062996] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 37.063934] kthread+0x24c/0x2d0 [ 37.064718] ret_from_fork+0x10/0x20 [ 37.065616] [ 37.066097] Allocated by task 244: [ 37.066763] kasan_save_stack+0x3c/0x68 [ 37.067400] kasan_save_track+0x20/0x40 [ 37.069036] kasan_save_alloc_info+0x40/0x58 [ 37.069665] __kasan_kmalloc+0xd4/0xd8 [ 37.070231] __kmalloc_cache_noprof+0x15c/0x3c8 [ 37.070800] kasan_memchr+0xb0/0x2d8 [ 37.071429] kunit_try_run_case+0x14c/0x3d0 [ 37.072055] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 37.073925] kthread+0x24c/0x2d0 [ 37.074521] ret_from_fork+0x10/0x20 [ 37.075006] [ 37.075381] The buggy address belongs to the object at fff00000c6a4c300 [ 37.075381] which belongs to the cache kmalloc-32 of size 32 [ 37.076971] The buggy address is located 0 bytes to the right of [ 37.076971] allocated 24-byte region [fff00000c6a4c300, fff00000c6a4c318) [ 37.078277] [ 37.078766] The buggy address belongs to the physical page: [ 37.079897] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106a4c [ 37.081358] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 37.082049] page_type: f5(slab) [ 37.082659] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 37.083969] raw: 0000000000000000 0000000080400040 00000001f5000000 0000000000000000 [ 37.085327] page dumped because: kasan: bad access detected [ 37.086316] [ 37.086632] Memory state around the buggy address: [ 37.087423] fff00000c6a4c200: fa fb fb fb fc fc fc fc 00 00 07 fc fc fc fc fc [ 37.089387] fff00000c6a4c280: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 37.091171] >fff00000c6a4c300: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 37.094230] ^ [ 37.095143] fff00000c6a4c380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 37.098116] fff00000c6a4c400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 37.098792] ==================================================================
[ 27.995155] ================================================================== [ 27.996425] BUG: KASAN: slab-out-of-bounds in memchr+0x79/0x90 [ 27.997180] Read of size 1 at addr ffff888102a18818 by task kunit_try_catch/263 [ 27.998045] [ 27.998311] CPU: 1 UID: 0 PID: 263 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241122 #1 [ 28.000119] Tainted: [B]=BAD_PAGE, [N]=TEST [ 28.001594] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 28.002288] Call Trace: [ 28.003195] <TASK> [ 28.003415] dump_stack_lvl+0x73/0xb0 [ 28.003675] print_report+0xd1/0x640 [ 28.004488] ? __virt_addr_valid+0x1db/0x2d0 [ 28.005396] ? kasan_complete_mode_report_info+0x2a/0x200 [ 28.006086] kasan_report+0x102/0x140 [ 28.006530] ? memchr+0x79/0x90 [ 28.006949] ? memchr+0x79/0x90 [ 28.007299] __asan_report_load1_noabort+0x18/0x20 [ 28.007624] memchr+0x79/0x90 [ 28.008323] kasan_memchr+0x163/0x320 [ 28.008802] ? __pfx_kasan_memchr+0x10/0x10 [ 28.009651] ? __schedule+0xc3e/0x2790 [ 28.010406] ? __pfx_read_tsc+0x10/0x10 [ 28.010759] ? ktime_get_ts64+0x84/0x230 [ 28.011261] kunit_try_run_case+0x1b3/0x490 [ 28.012250] ? __pfx_kunit_try_run_case+0x10/0x10 [ 28.012637] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 28.013782] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 28.014235] ? __kthread_parkme+0x82/0x160 [ 28.015028] ? preempt_count_sub+0x50/0x80 [ 28.015385] ? __pfx_kunit_try_run_case+0x10/0x10 [ 28.016129] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 28.016581] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 28.017538] kthread+0x257/0x310 [ 28.017874] ? __pfx_kthread+0x10/0x10 [ 28.018160] ret_from_fork+0x41/0x80 [ 28.018585] ? __pfx_kthread+0x10/0x10 [ 28.019353] ret_from_fork_asm+0x1a/0x30 [ 28.019838] </TASK> [ 28.020125] [ 28.020520] Allocated by task 263: [ 28.020844] kasan_save_stack+0x3d/0x60 [ 28.021316] kasan_save_track+0x18/0x40 [ 28.021883] kasan_save_alloc_info+0x3b/0x50 [ 28.022188] __kasan_kmalloc+0xb7/0xc0 [ 28.022445] __kmalloc_cache_noprof+0x184/0x410 [ 28.024282] kasan_memchr+0xad/0x320 [ 28.024658] kunit_try_run_case+0x1b3/0x490 [ 28.025419] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 28.026491] kthread+0x257/0x310 [ 28.026748] ret_from_fork+0x41/0x80 [ 28.027208] ret_from_fork_asm+0x1a/0x30 [ 28.027594] [ 28.028125] The buggy address belongs to the object at ffff888102a18800 [ 28.028125] which belongs to the cache kmalloc-32 of size 32 [ 28.029021] The buggy address is located 0 bytes to the right of [ 28.029021] allocated 24-byte region [ffff888102a18800, ffff888102a18818) [ 28.030325] [ 28.030585] The buggy address belongs to the physical page: [ 28.031580] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a18 [ 28.032504] flags: 0x200000000000000(node=0|zone=2) [ 28.033189] page_type: f5(slab) [ 28.033629] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 28.034341] raw: 0000000000000000 0000000080400040 00000001f5000000 0000000000000000 [ 28.035025] page dumped because: kasan: bad access detected [ 28.035715] [ 28.035918] Memory state around the buggy address: [ 28.036366] ffff888102a18700: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc [ 28.037434] ffff888102a18780: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 28.038327] >ffff888102a18800: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.039172] ^ [ 28.039628] ffff888102a18880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.040414] ffff888102a18900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.041161] ==================================================================