Date
June 17, 2025, 6:35 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.603106] ================================================================== [ 16.603169] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x40c/0x488 [ 16.603252] Write of size 1 at addr fff00000c748a478 by task kunit_try_catch/151 [ 16.603304] [ 16.603367] CPU: 1 UID: 0 PID: 151 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250617 #1 PREEMPT [ 16.603466] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.603493] Hardware name: linux,dummy-virt (DT) [ 16.603558] Call trace: [ 16.603598] show_stack+0x20/0x38 (C) [ 16.603650] dump_stack_lvl+0x8c/0xd0 [ 16.603699] print_report+0x118/0x608 [ 16.603752] kasan_report+0xdc/0x128 [ 16.604035] __asan_report_store1_noabort+0x20/0x30 [ 16.604104] kmalloc_track_caller_oob_right+0x40c/0x488 [ 16.604198] kunit_try_run_case+0x170/0x3f0 [ 16.604253] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.604371] kthread+0x328/0x630 [ 16.604415] ret_from_fork+0x10/0x20 [ 16.604484] [ 16.604502] Allocated by task 151: [ 16.604560] kasan_save_stack+0x3c/0x68 [ 16.604639] kasan_save_track+0x20/0x40 [ 16.604696] kasan_save_alloc_info+0x40/0x58 [ 16.604734] __kasan_kmalloc+0xd4/0xd8 [ 16.604770] __kmalloc_node_track_caller_noprof+0x194/0x4b8 [ 16.604831] kmalloc_track_caller_oob_right+0xa8/0x488 [ 16.604873] kunit_try_run_case+0x170/0x3f0 [ 16.605041] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.605238] kthread+0x328/0x630 [ 16.605304] ret_from_fork+0x10/0x20 [ 16.605385] [ 16.605424] The buggy address belongs to the object at fff00000c748a400 [ 16.605424] which belongs to the cache kmalloc-128 of size 128 [ 16.605511] The buggy address is located 0 bytes to the right of [ 16.605511] allocated 120-byte region [fff00000c748a400, fff00000c748a478) [ 16.605606] [ 16.605675] The buggy address belongs to the physical page: [ 16.605711] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10748a [ 16.605786] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.605838] page_type: f5(slab) [ 16.605882] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 16.605961] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.606020] page dumped because: kasan: bad access detected [ 16.606090] [ 16.606110] Memory state around the buggy address: [ 16.606141] fff00000c748a300: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.606195] fff00000c748a380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.606237] >fff00000c748a400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.606274] ^ [ 16.606315] fff00000c748a480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.606356] fff00000c748a500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.606667] ================================================================== [ 16.607732] ================================================================== [ 16.607798] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x418/0x488 [ 16.607851] Write of size 1 at addr fff00000c748a578 by task kunit_try_catch/151 [ 16.607908] [ 16.607951] CPU: 1 UID: 0 PID: 151 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250617 #1 PREEMPT [ 16.608037] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.608073] Hardware name: linux,dummy-virt (DT) [ 16.608105] Call trace: [ 16.608135] show_stack+0x20/0x38 (C) [ 16.608184] dump_stack_lvl+0x8c/0xd0 [ 16.608232] print_report+0x118/0x608 [ 16.608278] kasan_report+0xdc/0x128 [ 16.608336] __asan_report_store1_noabort+0x20/0x30 [ 16.608393] kmalloc_track_caller_oob_right+0x418/0x488 [ 16.608448] kunit_try_run_case+0x170/0x3f0 [ 16.608500] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.608553] kthread+0x328/0x630 [ 16.608595] ret_from_fork+0x10/0x20 [ 16.608642] [ 16.608669] Allocated by task 151: [ 16.608697] kasan_save_stack+0x3c/0x68 [ 16.608737] kasan_save_track+0x20/0x40 [ 16.608774] kasan_save_alloc_info+0x40/0x58 [ 16.608819] __kasan_kmalloc+0xd4/0xd8 [ 16.608863] __kmalloc_node_track_caller_noprof+0x194/0x4b8 [ 16.608907] kmalloc_track_caller_oob_right+0x184/0x488 [ 16.608959] kunit_try_run_case+0x170/0x3f0 [ 16.608995] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.609037] kthread+0x328/0x630 [ 16.609068] ret_from_fork+0x10/0x20 [ 16.609103] [ 16.609121] The buggy address belongs to the object at fff00000c748a500 [ 16.609121] which belongs to the cache kmalloc-128 of size 128 [ 16.609176] The buggy address is located 0 bytes to the right of [ 16.609176] allocated 120-byte region [fff00000c748a500, fff00000c748a578) [ 16.609238] [ 16.609257] The buggy address belongs to the physical page: [ 16.609314] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10748a [ 16.609820] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.609887] page_type: f5(slab) [ 16.609939] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 16.610009] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.610147] page dumped because: kasan: bad access detected [ 16.610229] [ 16.610280] Memory state around the buggy address: [ 16.610330] fff00000c748a400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.610400] fff00000c748a480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.610452] >fff00000c748a500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.610527] ^ [ 16.610594] fff00000c748a580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.610635] fff00000c748a600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.610672] ==================================================================
[ 16.828102] ================================================================== [ 16.828935] BUG: KASAN: slab-out-of-bounds in kmalloc_track_caller_oob_right+0x4c8/0x520 [ 16.829991] Write of size 1 at addr ffff888103393878 by task kunit_try_catch/169 [ 16.831183] [ 16.831868] CPU: 0 UID: 0 PID: 169 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250617 #1 PREEMPT(voluntary) [ 16.831995] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.832032] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.832088] Call Trace: [ 16.832127] <TASK> [ 16.832178] dump_stack_lvl+0x73/0xb0 [ 16.832312] print_report+0xd1/0x650 [ 16.832388] ? __virt_addr_valid+0x1db/0x2d0 [ 16.832499] ? kmalloc_track_caller_oob_right+0x4c8/0x520 [ 16.832575] ? kasan_complete_mode_report_info+0x2a/0x200 [ 16.832609] ? kmalloc_track_caller_oob_right+0x4c8/0x520 [ 16.832645] kasan_report+0x141/0x180 [ 16.832675] ? kmalloc_track_caller_oob_right+0x4c8/0x520 [ 16.832715] __asan_report_store1_noabort+0x1b/0x30 [ 16.832752] kmalloc_track_caller_oob_right+0x4c8/0x520 [ 16.832786] ? __pfx_kmalloc_track_caller_oob_right+0x10/0x10 [ 16.832821] ? __schedule+0x10cc/0x2b60 [ 16.832884] ? __pfx_read_tsc+0x10/0x10 [ 16.832918] ? ktime_get_ts64+0x86/0x230 [ 16.832951] kunit_try_run_case+0x1a5/0x480 [ 16.832987] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.833017] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.833047] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.833082] ? __kthread_parkme+0x82/0x180 [ 16.833110] ? preempt_count_sub+0x50/0x80 [ 16.833140] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.833172] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.833202] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.833272] kthread+0x337/0x6f0 [ 16.833344] ? trace_preempt_on+0x20/0xc0 [ 16.833402] ? __pfx_kthread+0x10/0x10 [ 16.833432] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.833464] ? calculate_sigpending+0x7b/0xa0 [ 16.833498] ? __pfx_kthread+0x10/0x10 [ 16.833526] ret_from_fork+0x116/0x1d0 [ 16.833551] ? __pfx_kthread+0x10/0x10 [ 16.833579] ret_from_fork_asm+0x1a/0x30 [ 16.833621] </TASK> [ 16.833636] [ 16.852416] Allocated by task 169: [ 16.852729] kasan_save_stack+0x45/0x70 [ 16.853532] kasan_save_track+0x18/0x40 [ 16.854142] kasan_save_alloc_info+0x3b/0x50 [ 16.854863] __kasan_kmalloc+0xb7/0xc0 [ 16.855223] __kmalloc_node_track_caller_noprof+0x1cb/0x500 [ 16.855679] kmalloc_track_caller_oob_right+0x99/0x520 [ 16.856452] kunit_try_run_case+0x1a5/0x480 [ 16.856878] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.857346] kthread+0x337/0x6f0 [ 16.857686] ret_from_fork+0x116/0x1d0 [ 16.858511] ret_from_fork_asm+0x1a/0x30 [ 16.858980] [ 16.859186] The buggy address belongs to the object at ffff888103393800 [ 16.859186] which belongs to the cache kmalloc-128 of size 128 [ 16.860628] The buggy address is located 0 bytes to the right of [ 16.860628] allocated 120-byte region [ffff888103393800, ffff888103393878) [ 16.861928] [ 16.862166] The buggy address belongs to the physical page: [ 16.862865] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103393 [ 16.863701] flags: 0x200000000000000(node=0|zone=2) [ 16.864156] page_type: f5(slab) [ 16.864802] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 16.865678] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 16.866475] page dumped because: kasan: bad access detected [ 16.866864] [ 16.867155] Memory state around the buggy address: [ 16.868468] ffff888103393700: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 16.868968] ffff888103393780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.869527] >ffff888103393800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 16.870333] ^ [ 16.871323] ffff888103393880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.872072] ffff888103393900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.872817] ==================================================================