[Kernel-packages] [Bug 2038777] Re: UBSAN: array-index-out-of-bounds (drivers/net/hyperv/netvsc.c)

2024-02-27 Thread Leonardo Zambrano
** Also affects: linux-meta-azure-6.5 (Ubuntu)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-meta-azure-6.5 in Ubuntu.
https://bugs.launchpad.net/bugs/2038777

Title:
  UBSAN: array-index-out-of-bounds (drivers/net/hyperv/netvsc.c)

Status in linux package in Ubuntu:
  Expired
Status in linux-meta-azure-6.5 package in Ubuntu:
  New

Bug description:
  HiperV VM network problems

  [   19.259297] 

  [   19.259536] UBSAN: array-index-out-of-bounds in 
/build/linux-7dWMY3/linux-6.5.0/drivers/net/hyperv/netvsc.c:1445:41
  [   19.259715] index 1 is out of range for type 'vmtransfer_page_range [1]'
  [   19.259896] CPU: 1 PID: 1306 Comm: (udev-worker) Not tainted 
6.5.0-7-generic #7-Ubuntu
  [   19.259898] Hardware name: Microsoft Corporation Virtual Machine/Virtual 
Machine, BIOS Hyper-V UEFI Release v4.1 04/06/2022
  [   19.259899] Call Trace:
  [   19.259901]  
  [   19.259902]  dump_stack_lvl+0x48/0x70
  [   19.259908]  dump_stack+0x10/0x20
  [   19.259909]  __ubsan_handle_out_of_bounds+0xc6/0x110
  [   19.259912]  netvsc_receive+0x437/0x490 [hv_netvsc]
  [   19.259917]  netvsc_poll+0x176/0x4b0 [hv_netvsc]
  [   19.259921]  __napi_poll+0x30/0x1f0
  [   19.259924]  net_rx_action+0x181/0x2e0
  [   19.259925]  __do_softirq+0xd6/0x346
  [   19.259927]  ? _raw_spin_unlock+0xe/0x40
  [   19.259929]  __irq_exit_rcu+0x75/0xa0
  [   19.259932]  irq_exit_rcu+0xe/0x20
  [   19.259933]  sysvec_hyperv_callback+0x92/0xd0
  [   19.259935]  
  [   19.259935]  

  ProblemType: Bug
  DistroRelease: Ubuntu 23.10
  Package: ubuntu-release-upgrader-core 1:23.10.8
  ProcVersionSignature: Ubuntu 6.5.0-7.7-generic 6.5.3
  Uname: Linux 6.5.0-7-generic x86_64
  ApportVersion: 2.27.0-0ubuntu4
  Architecture: amd64
  CasperMD5CheckResult: pass
  CloudArchitecture: x86_64
  CloudID: none
  CloudName: none
  CloudPlatform: none
  CloudSubPlatform: config
  CrashDB: ubuntu
  Date: Sun Oct  8 23:09:45 2023
  InstallationDate: Installed on 2021-03-07 (945 days ago)
  InstallationMedia: Ubuntu-Server 20.04.2 LTS "Focal Fossa" - Release amd64 
(20210201.2)
  PackageArchitecture: all
  ProcEnviron:
   LANG=es_ES.UTF-8
   PATH=(custom, no user)
   SHELL=/bin/bash
   TERM=xterm
   XDG_RUNTIME_DIR=
  SourcePackage: ubuntu-release-upgrader
  Symptom: release-upgrade
  UpgradeStatus: Upgraded to mantic on 2023-10-08 (0 days ago)
  VarLogDistupgradeLspcitxt:
   
  VarLogDistupgradeXorgFixuplog:
   INFO:root:/usr/bin/do-release-upgrade running
   INFO:root:No xorg.conf, exiting
  --- 
  ProblemType: Bug
  AlsaDevices:
   total 0
   crw-rw 1 root audio 116,  1 oct  9 20:46 seq
   crw-rw 1 root audio 116, 33 oct  9 20:46 timer
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.27.0-0ubuntu5
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
  CRDA: N/A
  CasperMD5CheckResult: pass
  CloudArchitecture: x86_64
  CloudID: none
  CloudName: none
  CloudPlatform: none
  CloudSubPlatform: config
  DistroRelease: Ubuntu 23.10
  InstallationDate: Installed on 2021-03-07 (948 days ago)
  InstallationMedia: Ubuntu-Server 20.04.2 LTS "Focal Fossa" - Release amd64 
(20210201.2)
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  Lspci:
   
  Lspci-vt:
   
  Lsusb: Error: command ['lsusb'] failed with exit code 1:
  Lsusb-t:
   
  Lsusb-v: Error: command ['lsusb', '-v'] failed with exit code 1:
  MachineType: {report['dmi.sys.vendor']} {report['dmi.product.name']}
  Package: linux (not installed)
  PciMultimedia:
   
  ProcEnviron:
   LANG=es_ES.UTF-8
   PATH=(custom, no user)
   SHELL=/bin/bash
   TERM=xterm
   XDG_RUNTIME_DIR=
  ProcFB: 0 hyperv_drmdrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-6.5.0-9-generic 
root=/dev/mapper/ubuntu--vg-ubuntu--lv ro mitigations=off iommu=pt
  ProcVersionSignature: Ubuntu 6.5.0-9.9-generic 6.5.3
  PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No 
PulseAudio daemon running, or not running as session daemon.
  RelatedPackageVersions:
   linux-restricted-modules-6.5.0-9-generic N/A
   linux-backports-modules-6.5.0-9-generic  N/A
   linux-firmware   20230919.git3672ccab-0ubuntu2.1
  RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
  Tags: mantic
  Uname: Linux 6.5.0-9-generic x86_64
  UpgradeStatus: Upgraded to mantic on 2023-10-08 (2 days ago)
  UserGroups: N/A
  _MarkForUpload: True
  dmi.bios.date: 04/06/2022
  dmi.bios.release: 4.1
  dmi.bios.vendor: Microsoft Corporation
  dmi.bios.version: Hyper-V UEFI Release v4.1
  dmi.board.asset.tag: None
  dmi.board.name: Virtual Machine
  dmi.board.vendor: Microsoft Corporation
  dmi.board.version: Hyper-V UEFI Release v4.1
  

[Kernel-packages] [Bug 2038777] Re: UBSAN: array-index-out-of-bounds (drivers/net/hyperv/netvsc.c)

2024-02-27 Thread Leonardo Zambrano
Hi there,

Since package linux-image-azure now install linux-image-6.5.0-1015-azure
I suppose you will receive more reports about this.

After inspecting linux-6.5/include/linux/hyperv.h file from linux-image-
unsigned-6.5.0-1015-azure source package, I confirmed it does not have
patch "hv: hyperv.h: Replace one-element array with flexible-array
member" [1] applied since among others, that one was actually just
picked up for upstream 6.6 as per commit "[GIT PULL] Hyper-V commits for
6.6" [2].

Hopefully the relevant commit [1] can be applied to Ubuntu 6.5 kernel
soon.

[1] 
https://lore.kernel.org/all/1692160478-18469-1-git-send-email-ssen...@linux.microsoft.com/
[2] https://lore.kernel.org/lkml/ZPQTFyfzgvlp3QkW@liuwe-devbox-debian-v2/

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/2038777

Title:
  UBSAN: array-index-out-of-bounds (drivers/net/hyperv/netvsc.c)

Status in linux package in Ubuntu:
  Expired

Bug description:
  HiperV VM network problems

  [   19.259297] 

  [   19.259536] UBSAN: array-index-out-of-bounds in 
/build/linux-7dWMY3/linux-6.5.0/drivers/net/hyperv/netvsc.c:1445:41
  [   19.259715] index 1 is out of range for type 'vmtransfer_page_range [1]'
  [   19.259896] CPU: 1 PID: 1306 Comm: (udev-worker) Not tainted 
6.5.0-7-generic #7-Ubuntu
  [   19.259898] Hardware name: Microsoft Corporation Virtual Machine/Virtual 
Machine, BIOS Hyper-V UEFI Release v4.1 04/06/2022
  [   19.259899] Call Trace:
  [   19.259901]  
  [   19.259902]  dump_stack_lvl+0x48/0x70
  [   19.259908]  dump_stack+0x10/0x20
  [   19.259909]  __ubsan_handle_out_of_bounds+0xc6/0x110
  [   19.259912]  netvsc_receive+0x437/0x490 [hv_netvsc]
  [   19.259917]  netvsc_poll+0x176/0x4b0 [hv_netvsc]
  [   19.259921]  __napi_poll+0x30/0x1f0
  [   19.259924]  net_rx_action+0x181/0x2e0
  [   19.259925]  __do_softirq+0xd6/0x346
  [   19.259927]  ? _raw_spin_unlock+0xe/0x40
  [   19.259929]  __irq_exit_rcu+0x75/0xa0
  [   19.259932]  irq_exit_rcu+0xe/0x20
  [   19.259933]  sysvec_hyperv_callback+0x92/0xd0
  [   19.259935]  
  [   19.259935]  

  ProblemType: Bug
  DistroRelease: Ubuntu 23.10
  Package: ubuntu-release-upgrader-core 1:23.10.8
  ProcVersionSignature: Ubuntu 6.5.0-7.7-generic 6.5.3
  Uname: Linux 6.5.0-7-generic x86_64
  ApportVersion: 2.27.0-0ubuntu4
  Architecture: amd64
  CasperMD5CheckResult: pass
  CloudArchitecture: x86_64
  CloudID: none
  CloudName: none
  CloudPlatform: none
  CloudSubPlatform: config
  CrashDB: ubuntu
  Date: Sun Oct  8 23:09:45 2023
  InstallationDate: Installed on 2021-03-07 (945 days ago)
  InstallationMedia: Ubuntu-Server 20.04.2 LTS "Focal Fossa" - Release amd64 
(20210201.2)
  PackageArchitecture: all
  ProcEnviron:
   LANG=es_ES.UTF-8
   PATH=(custom, no user)
   SHELL=/bin/bash
   TERM=xterm
   XDG_RUNTIME_DIR=
  SourcePackage: ubuntu-release-upgrader
  Symptom: release-upgrade
  UpgradeStatus: Upgraded to mantic on 2023-10-08 (0 days ago)
  VarLogDistupgradeLspcitxt:
   
  VarLogDistupgradeXorgFixuplog:
   INFO:root:/usr/bin/do-release-upgrade running
   INFO:root:No xorg.conf, exiting
  --- 
  ProblemType: Bug
  AlsaDevices:
   total 0
   crw-rw 1 root audio 116,  1 oct  9 20:46 seq
   crw-rw 1 root audio 116, 33 oct  9 20:46 timer
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.27.0-0ubuntu5
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', 
'/dev/snd/timer'] failed with exit code 1:
  CRDA: N/A
  CasperMD5CheckResult: pass
  CloudArchitecture: x86_64
  CloudID: none
  CloudName: none
  CloudPlatform: none
  CloudSubPlatform: config
  DistroRelease: Ubuntu 23.10
  InstallationDate: Installed on 2021-03-07 (948 days ago)
  InstallationMedia: Ubuntu-Server 20.04.2 LTS "Focal Fossa" - Release amd64 
(20210201.2)
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  Lspci:
   
  Lspci-vt:
   
  Lsusb: Error: command ['lsusb'] failed with exit code 1:
  Lsusb-t:
   
  Lsusb-v: Error: command ['lsusb', '-v'] failed with exit code 1:
  MachineType: {report['dmi.sys.vendor']} {report['dmi.product.name']}
  Package: linux (not installed)
  PciMultimedia:
   
  ProcEnviron:
   LANG=es_ES.UTF-8
   PATH=(custom, no user)
   SHELL=/bin/bash
   TERM=xterm
   XDG_RUNTIME_DIR=
  ProcFB: 0 hyperv_drmdrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-6.5.0-9-generic 
root=/dev/mapper/ubuntu--vg-ubuntu--lv ro mitigations=off iommu=pt
  ProcVersionSignature: Ubuntu 6.5.0-9.9-generic 6.5.3
  PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No 
PulseAudio daemon running, or not running as session daemon.
  RelatedPackageVersions:
   linux-restricted-modules-6.5.0-9-generic N/A
   linux-backports-modules-6.5.0-9-generic  N/A