Date
Dec. 6, 2024, 3:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 31.318964] ================================================================== [ 31.320252] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x150/0x2f8 [ 31.321164] Write of size 16 at addr fff00000c6779069 by task kunit_try_catch/167 [ 31.321916] [ 31.322342] CPU: 1 UID: 0 PID: 167 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241206 #1 [ 31.323556] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.323984] Hardware name: linux,dummy-virt (DT) [ 31.324682] Call trace: [ 31.325375] show_stack+0x20/0x38 (C) [ 31.326051] dump_stack_lvl+0x8c/0xd0 [ 31.326751] print_report+0x118/0x5e0 [ 31.327415] kasan_report+0xc8/0x118 [ 31.328634] kasan_check_range+0x100/0x1a8 [ 31.329148] __asan_memset+0x34/0x78 [ 31.329667] kmalloc_oob_memset_16+0x150/0x2f8 [ 31.331149] kunit_try_run_case+0x14c/0x3d0 [ 31.331995] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.332922] kthread+0x24c/0x2d0 [ 31.333495] ret_from_fork+0x10/0x20 [ 31.334387] [ 31.335362] Allocated by task 167: [ 31.336026] kasan_save_stack+0x3c/0x68 [ 31.336668] kasan_save_track+0x20/0x40 [ 31.337195] kasan_save_alloc_info+0x40/0x58 [ 31.337818] __kasan_kmalloc+0xd4/0xd8 [ 31.338645] __kmalloc_cache_noprof+0x15c/0x3c0 [ 31.339319] kmalloc_oob_memset_16+0xb0/0x2f8 [ 31.339963] kunit_try_run_case+0x14c/0x3d0 [ 31.340617] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.341234] kthread+0x24c/0x2d0 [ 31.341821] ret_from_fork+0x10/0x20 [ 31.342333] [ 31.343478] The buggy address belongs to the object at fff00000c6779000 [ 31.343478] which belongs to the cache kmalloc-128 of size 128 [ 31.344949] The buggy address is located 105 bytes inside of [ 31.344949] allocated 120-byte region [fff00000c6779000, fff00000c6779078) [ 31.346204] [ 31.347043] The buggy address belongs to the physical page: [ 31.347489] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106779 [ 31.348530] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 31.349311] page_type: f5(slab) [ 31.349828] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 31.351203] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 31.352146] page dumped because: kasan: bad access detected [ 31.352891] [ 31.353257] Memory state around the buggy address: [ 31.353935] fff00000c6778f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.355217] fff00000c6778f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.356039] >fff00000c6779000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 31.356894] ^ [ 31.357727] fff00000c6779080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.359395] fff00000c6779100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.360197] ================================================================== [ 31.265308] ================================================================== [ 31.266733] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x150/0x2f8 [ 31.268075] Write of size 8 at addr fff00000c6728f71 by task kunit_try_catch/165 [ 31.269637] [ 31.270136] CPU: 1 UID: 0 PID: 165 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241206 #1 [ 31.271702] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.272158] Hardware name: linux,dummy-virt (DT) [ 31.272842] Call trace: [ 31.273301] show_stack+0x20/0x38 (C) [ 31.273943] dump_stack_lvl+0x8c/0xd0 [ 31.274559] print_report+0x118/0x5e0 [ 31.275293] kasan_report+0xc8/0x118 [ 31.276780] kasan_check_range+0x100/0x1a8 [ 31.277443] __asan_memset+0x34/0x78 [ 31.278054] kmalloc_oob_memset_8+0x150/0x2f8 [ 31.279202] kunit_try_run_case+0x14c/0x3d0 [ 31.280040] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.280958] kthread+0x24c/0x2d0 [ 31.281562] ret_from_fork+0x10/0x20 [ 31.282606] [ 31.283023] Allocated by task 165: [ 31.283747] kasan_save_stack+0x3c/0x68 [ 31.284624] kasan_save_track+0x20/0x40 [ 31.285696] kasan_save_alloc_info+0x40/0x58 [ 31.286230] __kasan_kmalloc+0xd4/0xd8 [ 31.286874] __kmalloc_cache_noprof+0x15c/0x3c0 [ 31.287882] kmalloc_oob_memset_8+0xb0/0x2f8 [ 31.288616] kunit_try_run_case+0x14c/0x3d0 [ 31.289232] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.289962] kthread+0x24c/0x2d0 [ 31.290869] ret_from_fork+0x10/0x20 [ 31.291327] [ 31.291634] The buggy address belongs to the object at fff00000c6728f00 [ 31.291634] which belongs to the cache kmalloc-128 of size 128 [ 31.292186] The buggy address is located 113 bytes inside of [ 31.292186] allocated 120-byte region [fff00000c6728f00, fff00000c6728f78) [ 31.293129] [ 31.294010] The buggy address belongs to the physical page: [ 31.295490] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106728 [ 31.296435] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 31.297173] page_type: f5(slab) [ 31.297698] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 31.298578] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 31.299415] page dumped because: kasan: bad access detected [ 31.300608] [ 31.300944] Memory state around the buggy address: [ 31.301463] fff00000c6728e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc [ 31.303076] fff00000c6728e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.304095] >fff00000c6728f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 31.304854] ^ [ 31.305739] fff00000c6728f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.307069] fff00000c6729000: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 31.307892] ================================================================== [ 31.159691] ================================================================== [ 31.161033] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x150/0x2f8 [ 31.161963] Write of size 2 at addr fff00000c6702377 by task kunit_try_catch/161 [ 31.162640] [ 31.163052] CPU: 0 UID: 0 PID: 161 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241206 #1 [ 31.165050] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.165882] Hardware name: linux,dummy-virt (DT) [ 31.166839] Call trace: [ 31.167471] show_stack+0x20/0x38 (C) [ 31.168124] dump_stack_lvl+0x8c/0xd0 [ 31.168765] print_report+0x118/0x5e0 [ 31.169536] kasan_report+0xc8/0x118 [ 31.170084] kasan_check_range+0x100/0x1a8 [ 31.171041] __asan_memset+0x34/0x78 [ 31.171816] kmalloc_oob_memset_2+0x150/0x2f8 [ 31.172476] kunit_try_run_case+0x14c/0x3d0 [ 31.173210] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.174028] kthread+0x24c/0x2d0 [ 31.174922] ret_from_fork+0x10/0x20 [ 31.175548] [ 31.175895] Allocated by task 161: [ 31.176393] kasan_save_stack+0x3c/0x68 [ 31.177038] kasan_save_track+0x20/0x40 [ 31.177687] kasan_save_alloc_info+0x40/0x58 [ 31.178678] __kasan_kmalloc+0xd4/0xd8 [ 31.179345] __kmalloc_cache_noprof+0x15c/0x3c0 [ 31.179980] kmalloc_oob_memset_2+0xb0/0x2f8 [ 31.180685] kunit_try_run_case+0x14c/0x3d0 [ 31.181229] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.182008] kthread+0x24c/0x2d0 [ 31.182898] ret_from_fork+0x10/0x20 [ 31.184101] [ 31.184466] The buggy address belongs to the object at fff00000c6702300 [ 31.184466] which belongs to the cache kmalloc-128 of size 128 [ 31.186110] The buggy address is located 119 bytes inside of [ 31.186110] allocated 120-byte region [fff00000c6702300, fff00000c6702378) [ 31.187687] [ 31.188062] The buggy address belongs to the physical page: [ 31.188823] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106702 [ 31.189665] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 31.190884] page_type: f5(slab) [ 31.191447] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 31.192324] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 31.193147] page dumped because: kasan: bad access detected [ 31.193805] [ 31.194166] Memory state around the buggy address: [ 31.194846] fff00000c6702200: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.195762] fff00000c6702280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.196763] >fff00000c6702300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 31.197678] ^ [ 31.198762] fff00000c6702380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.199561] fff00000c6702400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.200345] ================================================================== [ 31.211771] ================================================================== [ 31.212895] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x150/0x300 [ 31.213833] Write of size 4 at addr fff00000c6728d75 by task kunit_try_catch/163 [ 31.215173] [ 31.216287] CPU: 1 UID: 0 PID: 163 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241206 #1 [ 31.217443] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.217925] Hardware name: linux,dummy-virt (DT) [ 31.218840] Call trace: [ 31.219194] show_stack+0x20/0x38 (C) [ 31.220080] dump_stack_lvl+0x8c/0xd0 [ 31.221005] print_report+0x118/0x5e0 [ 31.221946] kasan_report+0xc8/0x118 [ 31.222907] kasan_check_range+0x100/0x1a8 [ 31.223485] __asan_memset+0x34/0x78 [ 31.224137] kmalloc_oob_memset_4+0x150/0x300 [ 31.224708] kunit_try_run_case+0x14c/0x3d0 [ 31.225400] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.226139] kthread+0x24c/0x2d0 [ 31.226922] ret_from_fork+0x10/0x20 [ 31.227421] [ 31.228603] Allocated by task 163: [ 31.229191] kasan_save_stack+0x3c/0x68 [ 31.229763] kasan_save_track+0x20/0x40 [ 31.230784] kasan_save_alloc_info+0x40/0x58 [ 31.231467] __kasan_kmalloc+0xd4/0xd8 [ 31.232022] __kmalloc_cache_noprof+0x15c/0x3c0 [ 31.232656] kmalloc_oob_memset_4+0xb0/0x300 [ 31.233225] kunit_try_run_case+0x14c/0x3d0 [ 31.233847] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.234919] kthread+0x24c/0x2d0 [ 31.235537] ret_from_fork+0x10/0x20 [ 31.236555] [ 31.236854] The buggy address belongs to the object at fff00000c6728d00 [ 31.236854] which belongs to the cache kmalloc-128 of size 128 [ 31.238101] The buggy address is located 117 bytes inside of [ 31.238101] allocated 120-byte region [fff00000c6728d00, fff00000c6728d78) [ 31.239767] [ 31.240135] The buggy address belongs to the physical page: [ 31.240811] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106728 [ 31.241839] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 31.242770] page_type: f5(slab) [ 31.243352] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 31.244333] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 31.245758] page dumped because: kasan: bad access detected [ 31.246889] [ 31.247186] Memory state around the buggy address: [ 31.247691] fff00000c6728c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc [ 31.248905] fff00000c6728c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.249852] >fff00000c6728d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 31.250889] ^ [ 31.251634] fff00000c6728d80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.252561] fff00000c6728e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.253492] ==================================================================
[ 23.818150] ================================================================== [ 23.819184] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_8+0x167/0x330 [ 23.819728] Write of size 8 at addr ffff888102472b71 by task kunit_try_catch/184 [ 23.821436] [ 23.822420] CPU: 1 UID: 0 PID: 184 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241206 #1 [ 23.823997] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.824700] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.825372] Call Trace: [ 23.825841] <TASK> [ 23.826235] dump_stack_lvl+0x73/0xb0 [ 23.826963] print_report+0xd1/0x640 [ 23.827332] ? __virt_addr_valid+0x1db/0x2d0 [ 23.828029] ? kasan_complete_mode_report_info+0x2a/0x200 [ 23.829094] kasan_report+0x102/0x140 [ 23.829523] ? kmalloc_oob_memset_8+0x167/0x330 [ 23.830047] ? kmalloc_oob_memset_8+0x167/0x330 [ 23.830580] kasan_check_range+0x10c/0x1c0 [ 23.831291] __asan_memset+0x27/0x50 [ 23.831889] kmalloc_oob_memset_8+0x167/0x330 [ 23.832358] ? __pfx_kmalloc_oob_memset_8+0x10/0x10 [ 23.833152] ? __schedule+0xc70/0x27e0 [ 23.833821] ? __pfx_read_tsc+0x10/0x10 [ 23.834378] ? ktime_get_ts64+0x86/0x230 [ 23.835522] kunit_try_run_case+0x1b3/0x490 [ 23.836288] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.836974] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 23.837453] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.838198] ? __kthread_parkme+0x82/0x160 [ 23.838836] ? preempt_count_sub+0x50/0x80 [ 23.839419] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.840579] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.841144] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.841766] kthread+0x257/0x310 [ 23.842095] ? __pfx_kthread+0x10/0x10 [ 23.842570] ret_from_fork+0x41/0x80 [ 23.843355] ? __pfx_kthread+0x10/0x10 [ 23.843903] ret_from_fork_asm+0x1a/0x30 [ 23.844411] </TASK> [ 23.844789] [ 23.845065] Allocated by task 184: [ 23.845414] kasan_save_stack+0x3d/0x60 [ 23.846152] kasan_save_track+0x18/0x40 [ 23.847206] kasan_save_alloc_info+0x3b/0x50 [ 23.847999] __kasan_kmalloc+0xb7/0xc0 [ 23.848365] __kmalloc_cache_noprof+0x184/0x410 [ 23.849028] kmalloc_oob_memset_8+0xad/0x330 [ 23.849673] kunit_try_run_case+0x1b3/0x490 [ 23.850133] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.850907] kthread+0x257/0x310 [ 23.851287] ret_from_fork+0x41/0x80 [ 23.851758] ret_from_fork_asm+0x1a/0x30 [ 23.853011] [ 23.853471] The buggy address belongs to the object at ffff888102472b00 [ 23.853471] which belongs to the cache kmalloc-128 of size 128 [ 23.854609] The buggy address is located 113 bytes inside of [ 23.854609] allocated 120-byte region [ffff888102472b00, ffff888102472b78) [ 23.855681] [ 23.855895] The buggy address belongs to the physical page: [ 23.856456] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102472 [ 23.857375] flags: 0x200000000000000(node=0|zone=2) [ 23.858178] page_type: f5(slab) [ 23.859316] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 23.860146] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 23.860910] page dumped because: kasan: bad access detected [ 23.861685] [ 23.861892] Memory state around the buggy address: [ 23.862336] ffff888102472a00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.863194] ffff888102472a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.864501] >ffff888102472b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 23.865449] ^ [ 23.866166] ffff888102472b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.866870] ffff888102472c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.867460] ================================================================== [ 23.758399] ================================================================== [ 23.760237] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_4+0x167/0x330 [ 23.761108] Write of size 4 at addr ffff88810291cf75 by task kunit_try_catch/182 [ 23.762041] [ 23.762503] CPU: 0 UID: 0 PID: 182 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241206 #1 [ 23.764258] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.764801] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.765839] Call Trace: [ 23.766275] <TASK> [ 23.766568] dump_stack_lvl+0x73/0xb0 [ 23.767033] print_report+0xd1/0x640 [ 23.768245] ? __virt_addr_valid+0x1db/0x2d0 [ 23.768668] ? kasan_complete_mode_report_info+0x2a/0x200 [ 23.769623] kasan_report+0x102/0x140 [ 23.770434] ? kmalloc_oob_memset_4+0x167/0x330 [ 23.771111] ? kmalloc_oob_memset_4+0x167/0x330 [ 23.772111] kasan_check_range+0x10c/0x1c0 [ 23.772390] __asan_memset+0x27/0x50 [ 23.772630] kmalloc_oob_memset_4+0x167/0x330 [ 23.774110] ? __pfx_kmalloc_oob_memset_4+0x10/0x10 [ 23.775241] ? __schedule+0xc70/0x27e0 [ 23.775460] ? __pfx_read_tsc+0x10/0x10 [ 23.775647] ? ktime_get_ts64+0x86/0x230 [ 23.775840] kunit_try_run_case+0x1b3/0x490 [ 23.776778] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.778090] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 23.779467] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.780339] ? __kthread_parkme+0x82/0x160 [ 23.781205] ? preempt_count_sub+0x50/0x80 [ 23.781812] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.782212] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.782809] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.784099] kthread+0x257/0x310 [ 23.784811] ? __pfx_kthread+0x10/0x10 [ 23.785117] ret_from_fork+0x41/0x80 [ 23.785345] ? __pfx_kthread+0x10/0x10 [ 23.785537] ret_from_fork_asm+0x1a/0x30 [ 23.785743] </TASK> [ 23.785889] [ 23.786193] Allocated by task 182: [ 23.786887] kasan_save_stack+0x3d/0x60 [ 23.787647] kasan_save_track+0x18/0x40 [ 23.788510] kasan_save_alloc_info+0x3b/0x50 [ 23.789036] __kasan_kmalloc+0xb7/0xc0 [ 23.789985] __kmalloc_cache_noprof+0x184/0x410 [ 23.790734] kmalloc_oob_memset_4+0xad/0x330 [ 23.791456] kunit_try_run_case+0x1b3/0x490 [ 23.792208] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.793046] kthread+0x257/0x310 [ 23.793662] ret_from_fork+0x41/0x80 [ 23.794231] ret_from_fork_asm+0x1a/0x30 [ 23.794952] [ 23.795324] The buggy address belongs to the object at ffff88810291cf00 [ 23.795324] which belongs to the cache kmalloc-128 of size 128 [ 23.796999] The buggy address is located 117 bytes inside of [ 23.796999] allocated 120-byte region [ffff88810291cf00, ffff88810291cf78) [ 23.798263] [ 23.798487] The buggy address belongs to the physical page: [ 23.799070] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10291c [ 23.799927] flags: 0x200000000000000(node=0|zone=2) [ 23.800590] page_type: f5(slab) [ 23.801051] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 23.801767] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 23.803087] page dumped because: kasan: bad access detected [ 23.803570] [ 23.803732] Memory state around the buggy address: [ 23.804214] ffff88810291ce00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc [ 23.804966] ffff88810291ce80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.806223] >ffff88810291cf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 23.807032] ^ [ 23.807801] ffff88810291cf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.808422] ffff88810291d000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 23.809373] ================================================================== [ 23.875459] ================================================================== [ 23.877203] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_16+0x167/0x330 [ 23.877992] Write of size 16 at addr ffff888102472c69 by task kunit_try_catch/186 [ 23.879998] [ 23.880205] CPU: 1 UID: 0 PID: 186 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241206 #1 [ 23.882000] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.882462] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.884419] Call Trace: [ 23.884727] <TASK> [ 23.885059] dump_stack_lvl+0x73/0xb0 [ 23.886594] print_report+0xd1/0x640 [ 23.887043] ? __virt_addr_valid+0x1db/0x2d0 [ 23.888061] ? kasan_complete_mode_report_info+0x2a/0x200 [ 23.889171] kasan_report+0x102/0x140 [ 23.889581] ? kmalloc_oob_memset_16+0x167/0x330 [ 23.891030] ? kmalloc_oob_memset_16+0x167/0x330 [ 23.892465] kasan_check_range+0x10c/0x1c0 [ 23.893132] __asan_memset+0x27/0x50 [ 23.893742] kmalloc_oob_memset_16+0x167/0x330 [ 23.894248] ? __pfx_kmalloc_oob_memset_16+0x10/0x10 [ 23.894749] ? __schedule+0xc70/0x27e0 [ 23.896468] ? __pfx_read_tsc+0x10/0x10 [ 23.897322] ? ktime_get_ts64+0x86/0x230 [ 23.897831] kunit_try_run_case+0x1b3/0x490 [ 23.898221] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.899609] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 23.900110] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.900506] ? __kthread_parkme+0x82/0x160 [ 23.901276] ? preempt_count_sub+0x50/0x80 [ 23.902452] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.903148] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.904003] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.906213] kthread+0x257/0x310 [ 23.906564] ? __pfx_kthread+0x10/0x10 [ 23.907167] ret_from_fork+0x41/0x80 [ 23.907437] ? __pfx_kthread+0x10/0x10 [ 23.908017] ret_from_fork_asm+0x1a/0x30 [ 23.909443] </TASK> [ 23.909695] [ 23.910664] Allocated by task 186: [ 23.910967] kasan_save_stack+0x3d/0x60 [ 23.912047] kasan_save_track+0x18/0x40 [ 23.912503] kasan_save_alloc_info+0x3b/0x50 [ 23.913245] __kasan_kmalloc+0xb7/0xc0 [ 23.913568] __kmalloc_cache_noprof+0x184/0x410 [ 23.914582] kmalloc_oob_memset_16+0xad/0x330 [ 23.915133] kunit_try_run_case+0x1b3/0x490 [ 23.915489] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.916729] kthread+0x257/0x310 [ 23.917420] ret_from_fork+0x41/0x80 [ 23.918016] ret_from_fork_asm+0x1a/0x30 [ 23.918772] [ 23.918994] The buggy address belongs to the object at ffff888102472c00 [ 23.918994] which belongs to the cache kmalloc-128 of size 128 [ 23.920776] The buggy address is located 105 bytes inside of [ 23.920776] allocated 120-byte region [ffff888102472c00, ffff888102472c78) [ 23.922669] [ 23.922848] The buggy address belongs to the physical page: [ 23.923800] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102472 [ 23.924734] flags: 0x200000000000000(node=0|zone=2) [ 23.925072] page_type: f5(slab) [ 23.925792] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 23.926647] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 23.927364] page dumped because: kasan: bad access detected [ 23.927856] [ 23.928074] Memory state around the buggy address: [ 23.928529] ffff888102472b00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.930216] ffff888102472b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.931075] >ffff888102472c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 23.931989] ^ [ 23.932723] ffff888102472c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.933283] ffff888102472d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.934715] ================================================================== [ 23.697275] ================================================================== [ 23.698781] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x167/0x330 [ 23.699520] Write of size 2 at addr ffff888102472877 by task kunit_try_catch/180 [ 23.700296] [ 23.700488] CPU: 1 UID: 0 PID: 180 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc1-next-20241206 #1 [ 23.701194] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.701889] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.702970] Call Trace: [ 23.703221] <TASK> [ 23.703424] dump_stack_lvl+0x73/0xb0 [ 23.703732] print_report+0xd1/0x640 [ 23.705404] ? __virt_addr_valid+0x1db/0x2d0 [ 23.705954] ? kasan_complete_mode_report_info+0x2a/0x200 [ 23.707405] kasan_report+0x102/0x140 [ 23.707879] ? kmalloc_oob_memset_2+0x167/0x330 [ 23.708290] ? kmalloc_oob_memset_2+0x167/0x330 [ 23.708805] kasan_check_range+0x10c/0x1c0 [ 23.709224] __asan_memset+0x27/0x50 [ 23.710068] kmalloc_oob_memset_2+0x167/0x330 [ 23.710673] ? __pfx_kmalloc_oob_memset_2+0x10/0x10 [ 23.711745] ? __schedule+0xc70/0x27e0 [ 23.712852] ? __pfx_read_tsc+0x10/0x10 [ 23.713184] ? ktime_get_ts64+0x86/0x230 [ 23.713553] kunit_try_run_case+0x1b3/0x490 [ 23.715789] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.716563] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 23.716960] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.717567] ? __kthread_parkme+0x82/0x160 [ 23.718383] ? preempt_count_sub+0x50/0x80 [ 23.719523] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.720113] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.720819] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.721619] kthread+0x257/0x310 [ 23.722064] ? __pfx_kthread+0x10/0x10 [ 23.722436] ret_from_fork+0x41/0x80 [ 23.723110] ? __pfx_kthread+0x10/0x10 [ 23.724240] ret_from_fork_asm+0x1a/0x30 [ 23.725370] </TASK> [ 23.725711] [ 23.725889] Allocated by task 180: [ 23.726260] kasan_save_stack+0x3d/0x60 [ 23.726771] kasan_save_track+0x18/0x40 [ 23.727483] kasan_save_alloc_info+0x3b/0x50 [ 23.728035] __kasan_kmalloc+0xb7/0xc0 [ 23.728318] __kmalloc_cache_noprof+0x184/0x410 [ 23.728866] kmalloc_oob_memset_2+0xad/0x330 [ 23.729839] kunit_try_run_case+0x1b3/0x490 [ 23.730567] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.731354] kthread+0x257/0x310 [ 23.731905] ret_from_fork+0x41/0x80 [ 23.732469] ret_from_fork_asm+0x1a/0x30 [ 23.733132] [ 23.733379] The buggy address belongs to the object at ffff888102472800 [ 23.733379] which belongs to the cache kmalloc-128 of size 128 [ 23.735065] The buggy address is located 119 bytes inside of [ 23.735065] allocated 120-byte region [ffff888102472800, ffff888102472878) [ 23.738083] [ 23.738276] The buggy address belongs to the physical page: [ 23.738568] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102472 [ 23.738893] flags: 0x200000000000000(node=0|zone=2) [ 23.739200] page_type: f5(slab) [ 23.739452] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 23.740447] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 23.742237] page dumped because: kasan: bad access detected [ 23.742749] [ 23.743010] Memory state around the buggy address: [ 23.744409] ffff888102472700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 23.745423] ffff888102472780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.747044] >ffff888102472800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 23.747678] ^ [ 23.748003] ffff888102472880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.749350] ffff888102472900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.750093] ==================================================================