Date
Nov. 27, 2024, 3:37 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 50.802507] ================================================================== [ 50.803609] BUG: KASAN: slab-out-of-bounds in memchr+0x78/0x88 [ 50.804446] Read of size 1 at addr fff00000c613b298 by task kunit_try_catch/244 [ 50.805149] [ 50.805549] CPU: 1 UID: 0 PID: 244 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241127 #1 [ 50.806778] Tainted: [B]=BAD_PAGE, [N]=TEST [ 50.807584] Hardware name: linux,dummy-virt (DT) [ 50.808243] Call trace: [ 50.808654] show_stack+0x20/0x38 (C) [ 50.809736] dump_stack_lvl+0x8c/0xd0 [ 50.810319] print_report+0x118/0x5e0 [ 50.810867] kasan_report+0xc8/0x118 [ 50.811394] __asan_report_load1_noabort+0x20/0x30 [ 50.812127] memchr+0x78/0x88 [ 50.812718] kasan_memchr+0x148/0x2d8 [ 50.813213] kunit_try_run_case+0x14c/0x3d0 [ 50.813946] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 50.814704] kthread+0x24c/0x2d0 [ 50.815530] ret_from_fork+0x10/0x20 [ 50.816144] [ 50.816473] Allocated by task 244: [ 50.817025] kasan_save_stack+0x3c/0x68 [ 50.817898] kasan_save_track+0x20/0x40 [ 50.818580] kasan_save_alloc_info+0x40/0x58 [ 50.819121] __kasan_kmalloc+0xd4/0xd8 [ 50.819637] __kmalloc_cache_noprof+0x15c/0x3c0 [ 50.820342] kasan_memchr+0xb0/0x2d8 [ 50.820977] kunit_try_run_case+0x14c/0x3d0 [ 50.822084] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 50.822968] kthread+0x24c/0x2d0 [ 50.823742] ret_from_fork+0x10/0x20 [ 50.824547] [ 50.824926] The buggy address belongs to the object at fff00000c613b280 [ 50.824926] which belongs to the cache kmalloc-32 of size 32 [ 50.826781] The buggy address is located 0 bytes to the right of [ 50.826781] allocated 24-byte region [fff00000c613b280, fff00000c613b298) [ 50.828339] [ 50.828692] The buggy address belongs to the physical page: [ 50.829875] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10613b [ 50.830873] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 50.831714] page_type: f5(slab) [ 50.832186] raw: 0bfffe0000000000 fff00000c0001780 dead000000000122 0000000000000000 [ 50.833377] raw: 0000000000000000 0000000080400040 00000001f5000000 0000000000000000 [ 50.834436] page dumped because: kasan: bad access detected [ 50.835270] [ 50.835610] Memory state around the buggy address: [ 50.836556] fff00000c613b180: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 50.837812] fff00000c613b200: 00 00 00 fc fc fc fc fc 00 00 07 fc fc fc fc fc [ 50.838779] >fff00000c613b280: 00 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc [ 50.839637] ^ [ 50.840192] fff00000c613b300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 50.841102] fff00000c613b380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 50.842620] ==================================================================
[ 28.179804] ================================================================== [ 28.180918] BUG: KASAN: slab-out-of-bounds in memchr+0x79/0x90 [ 28.181503] Read of size 1 at addr ffff888101ab97d8 by task kunit_try_catch/263 [ 28.183149] [ 28.183569] CPU: 1 UID: 0 PID: 263 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241127 #1 [ 28.185568] Tainted: [B]=BAD_PAGE, [N]=TEST [ 28.186881] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 28.188233] Call Trace: [ 28.188486] <TASK> [ 28.188679] dump_stack_lvl+0x73/0xb0 [ 28.189665] print_report+0xd1/0x640 [ 28.190462] ? __virt_addr_valid+0x1db/0x2d0 [ 28.190782] ? kasan_complete_mode_report_info+0x2a/0x200 [ 28.191916] kasan_report+0x102/0x140 [ 28.192256] ? memchr+0x79/0x90 [ 28.193378] ? memchr+0x79/0x90 [ 28.193746] __asan_report_load1_noabort+0x18/0x20 [ 28.194212] memchr+0x79/0x90 [ 28.195093] kasan_memchr+0x163/0x320 [ 28.195789] ? __pfx_kasan_memchr+0x10/0x10 [ 28.196571] ? __schedule+0xc3e/0x2790 [ 28.196856] ? __pfx_read_tsc+0x10/0x10 [ 28.197729] ? ktime_get_ts64+0x84/0x230 [ 28.198535] kunit_try_run_case+0x1b3/0x490 [ 28.198928] ? __pfx_kunit_try_run_case+0x10/0x10 [ 28.199908] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 28.200511] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 28.201753] ? __kthread_parkme+0x82/0x160 [ 28.202191] ? preempt_count_sub+0x50/0x80 [ 28.203072] ? __pfx_kunit_try_run_case+0x10/0x10 [ 28.203753] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 28.204789] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 28.206294] kthread+0x257/0x310 [ 28.207390] ? __pfx_kthread+0x10/0x10 [ 28.207798] ret_from_fork+0x41/0x80 [ 28.208740] ? __pfx_kthread+0x10/0x10 [ 28.209042] ret_from_fork_asm+0x1a/0x30 [ 28.209959] </TASK> [ 28.210260] [ 28.210595] Allocated by task 263: [ 28.210979] kasan_save_stack+0x3d/0x60 [ 28.211472] kasan_save_track+0x18/0x40 [ 28.212168] kasan_save_alloc_info+0x3b/0x50 [ 28.212553] __kasan_kmalloc+0xb7/0xc0 [ 28.213190] __kmalloc_cache_noprof+0x184/0x410 [ 28.213619] kasan_memchr+0xad/0x320 [ 28.214036] kunit_try_run_case+0x1b3/0x490 [ 28.214703] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 28.215248] kthread+0x257/0x310 [ 28.215859] ret_from_fork+0x41/0x80 [ 28.216152] ret_from_fork_asm+0x1a/0x30 [ 28.216751] [ 28.217295] The buggy address belongs to the object at ffff888101ab97c0 [ 28.217295] which belongs to the cache kmalloc-32 of size 32 [ 28.218065] The buggy address is located 0 bytes to the right of [ 28.218065] allocated 24-byte region [ffff888101ab97c0, ffff888101ab97d8) [ 28.219675] [ 28.219895] The buggy address belongs to the physical page: [ 28.220479] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101ab9 [ 28.221393] flags: 0x200000000000000(node=0|zone=2) [ 28.221715] page_type: f5(slab) [ 28.222230] raw: 0200000000000000 ffff888100041780 dead000000000122 0000000000000000 [ 28.223120] raw: 0000000000000000 0000000080400040 00000001f5000000 0000000000000000 [ 28.224269] page dumped because: kasan: bad access detected [ 28.224654] [ 28.224866] Memory state around the buggy address: [ 28.225548] ffff888101ab9680: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 28.226380] ffff888101ab9700: fa fb fb fb fc fc fc fc 00 00 00 fc fc fc fc fc [ 28.227346] >ffff888101ab9780: 00 00 07 fc fc fc fc fc 00 00 00 fc fc fc fc fc [ 28.228245] ^ [ 28.228703] ffff888101ab9800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.229468] ffff888101ab9880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.230427] ==================================================================