Date
May 12, 2025, 6:12 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.583704] ================================================================== [ 18.584416] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 18.585158] Write of size 16 at addr fff00000c59b8500 by task kunit_try_catch/155 [ 18.585871] [ 18.586210] CPU: 1 UID: 0 PID: 155 Comm: kunit_try_catch Tainted: G B N 6.14.7-rc1 #1 [ 18.586432] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.586497] Hardware name: linux,dummy-virt (DT) [ 18.586569] Call trace: [ 18.586623] show_stack+0x20/0x38 (C) [ 18.586808] dump_stack_lvl+0x8c/0xd0 [ 18.586915] print_report+0x118/0x608 [ 18.587027] kasan_report+0xdc/0x128 [ 18.587129] __asan_report_store16_noabort+0x20/0x30 [ 18.587218] kmalloc_oob_16+0x3a0/0x3f8 [ 18.587305] kunit_try_run_case+0x170/0x3f0 [ 18.587393] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.587458] kthread+0x318/0x620 [ 18.587509] ret_from_fork+0x10/0x20 [ 18.587564] [ 18.592320] Allocated by task 155: [ 18.592717] kasan_save_stack+0x3c/0x68 [ 18.593270] kasan_save_track+0x20/0x40 [ 18.593751] kasan_save_alloc_info+0x40/0x58 [ 18.594260] __kasan_kmalloc+0xd4/0xd8 [ 18.594791] __kmalloc_cache_noprof+0x15c/0x3c0 [ 18.595265] kmalloc_oob_16+0xb4/0x3f8 [ 18.595590] kunit_try_run_case+0x170/0x3f0 [ 18.596042] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.596599] kthread+0x318/0x620 [ 18.596909] ret_from_fork+0x10/0x20 [ 18.597389] [ 18.597707] The buggy address belongs to the object at fff00000c59b8500 [ 18.597707] which belongs to the cache kmalloc-16 of size 16 [ 18.599224] The buggy address is located 0 bytes inside of [ 18.599224] allocated 13-byte region [fff00000c59b8500, fff00000c59b850d) [ 18.600207] [ 18.600498] The buggy address belongs to the physical page: [ 18.601050] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1059b8 [ 18.601774] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.602437] page_type: f5(slab) [ 18.602957] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 18.603836] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 18.604504] page dumped because: kasan: bad access detected [ 18.605016] [ 18.605258] Memory state around the buggy address: [ 18.605688] fff00000c59b8400: fa fb fc fc 00 03 fc fc 00 03 fc fc 00 00 fc fc [ 18.606223] fff00000c59b8480: fa fb fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 18.607800] >fff00000c59b8500: 00 05 fc fc 00 00 fc fc fc fc fc fc fc fc fc fc [ 18.608430] ^ [ 18.608832] fff00000c59b8580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.609446] fff00000c59b8600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.610073] ==================================================================
[ 12.382815] ================================================================== [ 12.384157] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x454/0x4a0 [ 12.384894] Write of size 16 at addr ffff888101a9cfa0 by task kunit_try_catch/174 [ 12.385664] [ 12.385890] CPU: 1 UID: 0 PID: 174 Comm: kunit_try_catch Tainted: G B N 6.14.7-rc1 #1 [ 12.385963] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.385976] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.385998] Call Trace: [ 12.386023] <TASK> [ 12.386054] dump_stack_lvl+0x73/0xb0 [ 12.386089] print_report+0xd1/0x650 [ 12.386111] ? __virt_addr_valid+0x1db/0x2d0 [ 12.386135] ? kmalloc_oob_16+0x454/0x4a0 [ 12.386155] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.386180] ? kmalloc_oob_16+0x454/0x4a0 [ 12.386200] kasan_report+0x140/0x180 [ 12.386221] ? kmalloc_oob_16+0x454/0x4a0 [ 12.386244] __asan_report_store16_noabort+0x1b/0x30 [ 12.386267] kmalloc_oob_16+0x454/0x4a0 [ 12.386287] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 12.386308] ? __schedule+0xce8/0x2840 [ 12.386334] ? __pfx_read_tsc+0x10/0x10 [ 12.386356] ? ktime_get_ts64+0x86/0x230 [ 12.386382] kunit_try_run_case+0x1a6/0x480 [ 12.386406] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.386426] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 12.386447] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.386471] ? __kthread_parkme+0x82/0x160 [ 12.386494] ? preempt_count_sub+0x50/0x80 [ 12.386520] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.386542] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.386567] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.386592] kthread+0x324/0x6e0 [ 12.386612] ? trace_preempt_on+0x20/0xc0 [ 12.386637] ? __pfx_kthread+0x10/0x10 [ 12.386658] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.386680] ? calculate_sigpending+0x7b/0xa0 [ 12.386702] ? __pfx_kthread+0x10/0x10 [ 12.386723] ret_from_fork+0x41/0x80 [ 12.386742] ? __pfx_kthread+0x10/0x10 [ 12.386763] ret_from_fork_asm+0x1a/0x30 [ 12.386796] </TASK> [ 12.386807] [ 12.397589] Allocated by task 174: [ 12.397771] kasan_save_stack+0x45/0x70 [ 12.397982] kasan_save_track+0x18/0x40 [ 12.398503] kasan_save_alloc_info+0x3b/0x50 [ 12.398807] __kasan_kmalloc+0xb7/0xc0 [ 12.399174] __kmalloc_cache_noprof+0x18a/0x420 [ 12.399595] kmalloc_oob_16+0xa9/0x4a0 [ 12.399783] kunit_try_run_case+0x1a6/0x480 [ 12.399992] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.400531] kthread+0x324/0x6e0 [ 12.400792] ret_from_fork+0x41/0x80 [ 12.401144] ret_from_fork_asm+0x1a/0x30 [ 12.401332] [ 12.401428] The buggy address belongs to the object at ffff888101a9cfa0 [ 12.401428] which belongs to the cache kmalloc-16 of size 16 [ 12.401953] The buggy address is located 0 bytes inside of [ 12.401953] allocated 13-byte region [ffff888101a9cfa0, ffff888101a9cfad) [ 12.403007] [ 12.403259] The buggy address belongs to the physical page: [ 12.403626] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101a9c [ 12.404154] flags: 0x200000000000000(node=0|zone=2) [ 12.404481] page_type: f5(slab) [ 12.404629] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 12.404980] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 12.405695] page dumped because: kasan: bad access detected [ 12.406076] [ 12.406178] Memory state around the buggy address: [ 12.406602] ffff888101a9ce80: 00 04 fc fc 00 00 fc fc fa fb fc fc fa fb fc fc [ 12.407107] ffff888101a9cf00: fa fb fc fc fa fb fc fc fa fb fc fc 00 05 fc fc [ 12.407402] >ffff888101a9cf80: fa fb fc fc 00 05 fc fc 00 00 fc fc fc fc fc fc [ 12.407877] ^ [ 12.408398] ffff888101a9d000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.408919] ffff888101a9d080: 00 fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 [ 12.409385] ==================================================================