Comment 23 for bug 2038777

Revision history for this message
Song Hyo Jin (xenoside) wrote :

I have the same error in hyper-v.
It is ubuntu 22.04 and below is the corresponding error part of dmesg.
It doesn't really prevent me from using it.

[ 4.589667] UBSAN: array-index-out-of-bounds in /build/linux-hwe-6.5-ZV1Qen/linux-hwe-6.5-6.5.0/drivers/net/hyperv/netvsc.c:1445:41
[ 4.589951] index 1 is out of range for type 'vmtransfer_page_range [1]'
[ 4.590211] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.5.0-18-generic #18~22.04.1-Ubuntu
[ 4.590216] Hardware name: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS 090008 12/07/2018
[ 4.590218] Call Trace:
[ 4.590220] <IRQ>
[ 4.590224] dump_stack_lvl+0x48/0x70
[ 4.590232] dump_stack+0x10/0x20
[ 4.590234] __ubsan_handle_out_of_bounds+0xc6/0x110
[ 4.590239] netvsc_receive+0x42f/0x480 [hv_netvsc]
[ 4.590247] netvsc_poll+0x176/0x4a0 [hv_netvsc]
[ 4.590252] ? srso_alias_return_thunk+0x5/0x7f
[ 4.590257] __napi_poll+0x33/0x1f0
[ 4.590261] net_rx_action+0x181/0x2e0
[ 4.590263] ? srso_alias_return_thunk+0x5/0x7f
[ 4.590265] ? srso_alias_return_thunk+0x5/0x7f
[ 4.590269] __do_softirq+0xdc/0x349
[ 4.590271] ? _raw_spin_unlock+0xe/0x40
[ 4.590273] ? srso_alias_return_thunk+0x5/0x7f
[ 4.590277] __irq_exit_rcu+0x75/0xa0
[ 4.590281] irq_exit_rcu+0xe/0x20
[ 4.590284] sysvec_hyperv_callback+0x92/0xd0
[ 4.590288] </IRQ>
[ 4.590289] <TASK>
[ 4.590290] asm_sysvec_hyperv_callback+0x1b/0x20
[ 4.590294] RIP: 0010:pv_native_safe_halt+0xb/0x10
[ 4.590297] Code: 0b 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 eb 07 0f 00 2d a9 20 2f 00 fb f4 <e9> 70 9b 01 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 55
[ 4.590299] RSP: 0018:ffffffff92403e20 EFLAGS: 00000246
[ 4.590301] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
[ 4.590303] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[ 4.590304] RBP: ffffffff92403e28 R08: 0000000000000000 R09: 0000000000000000
[ 4.590305] R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff9240fbc0
[ 4.590306] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[ 4.590310] ? default_idle+0x9/0x30
[ 4.590313] arch_cpu_idle+0x9/0x10
[ 4.590316] default_idle_call+0x2c/0xf0
[ 4.590318] cpuidle_idle_call+0x153/0x190
[ 4.590322] do_idle+0x82/0xf0
[ 4.590324] cpu_startup_entry+0x2a/0x30
[ 4.590326] rest_init+0xde/0x100
[ 4.590328] ? acpi_enable_subsystem+0xe6/0x2a0
[ 4.590331] ? static_key_disable+0x1f/0x30
[ 4.590336] arch_call_rest_init+0xe/0x30
[ 4.590339] start_kernel+0x34f/0x440
[ 4.590342] x86_64_start_reservations+0x18/0x30
[ 4.590346] x86_64_start_kernel+0xa4/0xe0
[ 4.590349] secondary_startup_64_no_verify+0x17e/0x18b
[ 4.590355] </TASK>
[ 4.590365] ================================================================================
[ 4.590631] ================================================================================
[ 4.590947] UBSAN: array-index-out-of-bounds in /build/linux-hwe-6.5-ZV1Qen/linux-hwe-6.5-6.5.0/drivers/net/hyperv/netvsc.c:1446:41
[ 4.591246] index 1 is out of range for type 'vmtransfer_page_range [1]'
[ 4.591509] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.5.0-18-generic #18~22.04.1-Ubuntu
[ 4.591514] Hardware name: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS 090008 12/07/2018
[ 4.591515] Call Trace:
[ 4.591517] <IRQ>
[ 4.591518] dump_stack_lvl+0x48/0x70
[ 4.591521] dump_stack+0x10/0x20
[ 4.591523] __ubsan_handle_out_of_bounds+0xc6/0x110
[ 4.591527] netvsc_receive+0x44a/0x480 [hv_netvsc]
[ 4.591534] netvsc_poll+0x176/0x4a0 [hv_netvsc]
[ 4.591538] ? srso_alias_return_thunk+0x5/0x7f
[ 4.591542] __napi_poll+0x33/0x1f0
[ 4.591544] net_rx_action+0x181/0x2e0
[ 4.591546] ? srso_alias_return_thunk+0x5/0x7f
[ 4.591549] ? srso_alias_return_thunk+0x5/0x7f
[ 4.591552] __do_softirq+0xdc/0x349
[ 4.591554] ? _raw_spin_unlock+0xe/0x40
[ 4.591595] ? srso_alias_return_thunk+0x5/0x7f
[ 4.591599] __irq_exit_rcu+0x75/0xa0
[ 4.591602] irq_exit_rcu+0xe/0x20
[ 4.591604] sysvec_hyperv_callback+0x92/0xd0
[ 4.591607] </IRQ>
[ 4.591608] <TASK>
[ 4.591609] asm_sysvec_hyperv_callback+0x1b/0x20
[ 4.591612] RIP: 0010:pv_native_safe_halt+0xb/0x10
[ 4.591614] Code: 0b 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 eb 07 0f 00 2d a9 20 2f 00 fb f4 <e9> 70 9b 01 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 55
[ 4.591616] RSP: 0018:ffffffff92403e20 EFLAGS: 00000246
[ 4.591618] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
[ 4.591619] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[ 4.591620] RBP: ffffffff92403e28 R08: 0000000000000000 R09: 0000000000000000
[ 4.591621] R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff9240fbc0
[ 4.591622] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[ 4.591626] ? default_idle+0x9/0x30
[ 4.591629] arch_cpu_idle+0x9/0x10
[ 4.591631] default_idle_call+0x2c/0xf0
[ 4.591634] cpuidle_idle_call+0x153/0x190
[ 4.591637] do_idle+0x82/0xf0
[ 4.591639] cpu_startup_entry+0x2a/0x30
[ 4.591641] rest_init+0xde/0x100
[ 4.591643] ? acpi_enable_subsystem+0xe6/0x2a0
[ 4.591645] ? static_key_disable+0x1f/0x30
[ 4.591648] arch_call_rest_init+0xe/0x30
[ 4.591651] start_kernel+0x34f/0x440
[ 4.591653] x86_64_start_reservations+0x18/0x30
[ 4.591656] x86_64_start_kernel+0xa4/0xe0
[ 4.591658] secondary_startup_64_no_verify+0x17e/0x18b
[ 4.591663] </TASK>