Date
Nov. 20, 2024, 6:35 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 37.775874] ================================================================== [ 37.777892] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x33c/0x428 [ 37.778811] Read of size 1 at addr fff00000c65a40c8 by task kunit_try_catch/196 [ 37.779434] [ 37.779827] CPU: 0 UID: 0 PID: 196 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241120 #1 [ 37.780975] Tainted: [B]=BAD_PAGE, [N]=TEST [ 37.782147] Hardware name: linux,dummy-virt (DT) [ 37.782692] Call trace: [ 37.783104] show_stack+0x20/0x38 (C) [ 37.783682] dump_stack_lvl+0x8c/0xd0 [ 37.784285] print_report+0x118/0x5e0 [ 37.784831] kasan_report+0xc8/0x118 [ 37.785751] __asan_report_load1_noabort+0x20/0x30 [ 37.786607] kmem_cache_oob+0x33c/0x428 [ 37.787124] kunit_try_run_case+0x14c/0x3d0 [ 37.787813] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 37.788539] kthread+0x24c/0x2d0 [ 37.788973] ret_from_fork+0x10/0x20 [ 37.789491] [ 37.790033] Allocated by task 196: [ 37.790559] kasan_save_stack+0x3c/0x68 [ 37.791084] kasan_save_track+0x20/0x40 [ 37.791887] kasan_save_alloc_info+0x40/0x58 [ 37.792526] __kasan_slab_alloc+0xa8/0xb0 [ 37.793109] kmem_cache_alloc_noprof+0x108/0x3a0 [ 37.794213] kmem_cache_oob+0x12c/0x428 [ 37.794679] kunit_try_run_case+0x14c/0x3d0 [ 37.795274] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 37.795934] kthread+0x24c/0x2d0 [ 37.796477] ret_from_fork+0x10/0x20 [ 37.797010] [ 37.797615] The buggy address belongs to the object at fff00000c65a4000 [ 37.797615] which belongs to the cache test_cache of size 200 [ 37.798490] The buggy address is located 0 bytes to the right of [ 37.798490] allocated 200-byte region [fff00000c65a4000, fff00000c65a40c8) [ 37.799835] [ 37.800192] The buggy address belongs to the physical page: [ 37.800904] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065a4 [ 37.802373] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 37.803209] page_type: f5(slab) [ 37.803775] raw: 0bfffe0000000000 fff00000c1b21dc0 dead000000000122 0000000000000000 [ 37.804710] raw: 0000000000000000 00000000800f000f 00000001f5000000 0000000000000000 [ 37.805544] page dumped because: kasan: bad access detected [ 37.806640] [ 37.807005] Memory state around the buggy address: [ 37.807506] fff00000c65a3f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 37.808352] fff00000c65a4000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 37.809176] >fff00000c65a4080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 37.810236] ^ [ 37.810926] fff00000c65a4100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 37.811759] fff00000c65a4180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 37.812584] ==================================================================
[ 29.357669] ================================================================== [ 29.358774] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x404/0x530 [ 29.359923] Read of size 1 at addr ffff888101ace0c8 by task kunit_try_catch/214 [ 29.361187] [ 29.361503] CPU: 0 UID: 0 PID: 214 Comm: kunit_try_catch Tainted: G B N 6.12.0-next-20241120 #1 [ 29.362364] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.362866] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 29.363552] Call Trace: [ 29.363971] <TASK> [ 29.364373] dump_stack_lvl+0x73/0xb0 [ 29.364873] print_report+0xd1/0x640 [ 29.365381] ? __virt_addr_valid+0x1db/0x2d0 [ 29.365913] ? kasan_complete_mode_report_info+0x2a/0x200 [ 29.366535] kasan_report+0x102/0x140 [ 29.366995] ? kmem_cache_oob+0x404/0x530 [ 29.367320] ? kmem_cache_oob+0x404/0x530 [ 29.367767] __asan_report_load1_noabort+0x18/0x20 [ 29.368213] kmem_cache_oob+0x404/0x530 [ 29.368647] ? trace_hardirqs_on+0x37/0xe0 [ 29.369034] ? __pfx_kmem_cache_oob+0x10/0x10 [ 29.369798] ? finish_task_switch.isra.0+0x153/0x700 [ 29.370317] ? __switch_to+0x5d9/0xf60 [ 29.370876] ? __pfx_read_tsc+0x10/0x10 [ 29.371417] ? ktime_get_ts64+0x84/0x230 [ 29.371844] kunit_try_run_case+0x1b3/0x490 [ 29.372504] ? __pfx_kunit_try_run_case+0x10/0x10 [ 29.373033] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 29.373587] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 29.374343] ? __kthread_parkme+0x82/0x160 [ 29.374840] ? preempt_count_sub+0x50/0x80 [ 29.375477] ? __pfx_kunit_try_run_case+0x10/0x10 [ 29.375949] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 29.376955] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 29.377984] kthread+0x257/0x310 [ 29.378252] ? __pfx_kthread+0x10/0x10 [ 29.379399] ret_from_fork+0x41/0x80 [ 29.379715] ? __pfx_kthread+0x10/0x10 [ 29.380553] ret_from_fork_asm+0x1a/0x30 [ 29.381515] </TASK> [ 29.381832] [ 29.382406] Allocated by task 214: [ 29.382714] kasan_save_stack+0x3d/0x60 [ 29.383361] kasan_save_track+0x18/0x40 [ 29.383652] kasan_save_alloc_info+0x3b/0x50 [ 29.384362] __kasan_slab_alloc+0x91/0xa0 [ 29.384671] kmem_cache_alloc_noprof+0x11e/0x3f0 [ 29.385532] kmem_cache_oob+0x158/0x530 [ 29.385862] kunit_try_run_case+0x1b3/0x490 [ 29.387076] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 29.387439] kthread+0x257/0x310 [ 29.387877] ret_from_fork+0x41/0x80 [ 29.388202] ret_from_fork_asm+0x1a/0x30 [ 29.388655] [ 29.388862] The buggy address belongs to the object at ffff888101ace000 [ 29.388862] which belongs to the cache test_cache of size 200 [ 29.390085] The buggy address is located 0 bytes to the right of [ 29.390085] allocated 200-byte region [ffff888101ace000, ffff888101ace0c8) [ 29.391266] [ 29.391551] The buggy address belongs to the physical page: [ 29.392014] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101ace [ 29.393096] flags: 0x200000000000000(node=0|zone=2) [ 29.393845] page_type: f5(slab) [ 29.394310] raw: 0200000000000000 ffff888101627c80 dead000000000122 0000000000000000 [ 29.394985] raw: 0000000000000000 00000000800f000f 00000001f5000000 0000000000000000 [ 29.396769] page dumped because: kasan: bad access detected [ 29.397896] [ 29.398260] Memory state around the buggy address: [ 29.398838] ffff888101acdf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.400018] ffff888101ace000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.400747] >ffff888101ace080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 29.401801] ^ [ 29.402421] ffff888101ace100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.403268] ffff888101ace180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.403982] ==================================================================