[Kernel-packages] [Bug 1931497] Re: Patch To Fix Bug in the Linux Block Layer Responsible For Merging BIOs

2021-09-07 Thread Launchpad Bug Tracker
This bug was fixed in the package linux - 5.11.0-34.36

---
linux (5.11.0-34.36) hirsute; urgency=medium

  * hirsute/linux: 5.11.0-34.36 -proposed tracker (LP: #1941766)

  * Server boot failure after adding checks for ACPI IRQ override (LP: #1941657)
- Revert "ACPI: resources: Add checks for ACPI IRQ override"

linux (5.11.0-33.35) hirsute; urgency=medium

  * hirsute/linux: 5.11.0-33.35 -proposed tracker (LP: #1940101)

  * libvirtd fails to create VM (LP: #1940107)
- sched: Stop PF_NO_SETAFFINITY from being inherited by various init system
  threads

linux (5.11.0-32.34) hirsute; urgency=medium

  * hirsute/linux: 5.11.0-32.34 -proposed tracker (LP: #1939769)

  * Packaging resync (LP: #1786013)
- debian/dkms-versions -- update from kernel-versions (main/2021.08.16)

  * CVE-2021-3656
- SAUCE: KVM: nSVM: always intercept VMLOAD/VMSAVE when nested

  * CVE-2021-3653
- SAUCE: KVM: nSVM: avoid picking up unsupported bits from L2 in int_ctl

  * [regression] USB device is not detected during boot (LP: #1939638)
- SAUCE: Revert "usb: core: reduce power-on-good delay time of root hub"

  * Support builtin revoked certificates (LP: #1932029)
- [Packaging] build canonical-revoked-certs.pem from branch/arch certs
- [Packaging] Revoke 2012 UEFI signing certificate as built-in
- [Config] Configure CONFIG_SYSTEM_REVOCATION_KEYS with revoked keys

  * Support importing mokx keys into revocation list from the mok table
(LP: #1928679)
- SAUCE: integrity: add informational messages when revoking certs

  * Support importing mokx keys into revocation list from the mok table
(LP: #1928679) // CVE-2020-26541 when certificates are revoked via
MokListXRT.
- SAUCE: integrity: Load mokx certs from the EFI MOK config table

  * Include product_sku info to modalias (LP: #1938143)
- firmware/dmi: Include product_sku info to modalias

  * Fix Ethernet not working by hotplug - RTL8106E (LP: #1930645)
- net: phy: rename PHY_IGNORE_INTERRUPT to PHY_MAC_INTERRUPT
- SAUCE: r8169: Use PHY_POLL when RTL8106E enable ASPM

  * [SRU][H/OEM-5.10/OEM-5.13/U] Fix system hang after unplug tbt dock
(LP: #1938689)
- SAUCE: igc: fix page fault when thunderbolt is unplugged

  * [Regression] Audio card [8086:9d71] not detected after upgrade from linux
5.4 to 5.8 (LP: #1915117)
- [Config] set CONFIG_SND_SOC_INTEL_SKYLAKE_HDAUDIO_CODEC to y

  * Backlight (screen brightness) on Lenovo P14s AMD Gen2 inop (LP: #1934557)
- drm/amdgpu/display: only enable aux backlight control for OLED panels

  * Touchpad not working with ASUS TUF F15 (LP: #1937056)
- pinctrl: tigerlake: Fix GPIO mapping for newer version of software

  * dev_forward_skb: do not scrub skb mark within the same name space
(LP: #1935040)
- dev_forward_skb: do not scrub skb mark within the same name space

  * Fix display output on HP hybrid GFX laptops (LP: #1936296)
- drm/i915: Invoke another _DSM to enable MUX on HP Workstation laptops

  * [SRU][OEM-5.10/H] UBUNTU: SAUCE: Fix backlight control on Samsung 16727
panel (LP: #1930527)
- SAUCE: drm/i915: Force DPCD backlight mode for Samsung 16727 panel

  * XPS 9510 (TGL) Screen Brightness could not be changed (LP: #1933566)
- SAUCE: drm/i915: Force DPCD backlight mode for Dell XPS 9510(TGL)

  * [21.10 FEAT] KVM: Provide a secure guest indication (LP: #1933173)
- s390/uv: add prot virt guest/host indication files
- s390/uv: fix prot virt host indication compilation

  * Skip rtcpie test in kselftests/timers if the default RTC device does not
exist (LP: #1937991)
- selftests: timers: rtcpie: skip test if default RTC device does not exist

  * On TGL platforms screen shows garbage when browsing website by scrolling
mouse (LP: #1926579)
- drm/i915/display: Disable PSR2 if TGL Display stepping is B1 from A0

  * USB Type-C hotplug event not handled properly in TGL-H system during s2idle
(LP: #1931072)
- drm/i915/gen9_bc: Introduce HPD pin mappings for TGP PCH + CML combos
- drm/i915: Force a TypeC PHY disconnect during suspend/shutdown

  * NIC unavailable after suspend to RAM (LP: #1931301)
- SAUCE: Revert "ethernet: alx: fix order of calls on resume"

  * Make Intel GPUs choose YCbCr420 encoding automatically when required for 4k
60Hz output  (LP: #1934489)
- drm/i915: Use intel_hdmi_port_clock() more
- drm/i915/display: New function to avoid duplicate code in upcomming
- drm/i915/display: Restructure output format computation for better
  expandability
- drm/i915/display: Use YCbCr420 as fallback when RGB fails

  * Hirsute update: upstream stable patchset 2021-07-28 (LP: #1938340)
- Bluetooth: hci_qca: fix potential GPF
- Bluetooth: btqca: Don't modify firmware contents in-place
- Bluetooth: Remove spurious error message
- ALSA: usb-audio: fix rate on Ozone Z90 USB headset
- ALSA: usb-audio: Fix OOB access at proc output

[Kernel-packages] [Bug 1931497] Re: Patch To Fix Bug in the Linux Block Layer Responsible For Merging BIOs

2021-09-07 Thread Launchpad Bug Tracker
This bug was fixed in the package linux - 5.4.0-84.94

---
linux (5.4.0-84.94) focal; urgency=medium

  * focal/linux: 5.4.0-84.94 -proposed tracker (LP: #1941767)

  * Server boot failure after adding checks for ACPI IRQ override (LP: #1941657)
- Revert "ACPI: resources: Add checks for ACPI IRQ override"

linux (5.4.0-83.93) focal; urgency=medium

  * focal/linux: 5.4.0-83.93 -proposed tracker (LP: #1940159)

  * fails to launch linux L2 guests on AMD (LP: #1940134) // CVE-2021-3653
- KVM: nSVM: avoid picking up unsupported bits from L2 in int_ctl
  (CVE-2021-3653)

  * fails to launch linux L2 guests on AMD (LP: #1940134)
- SAUCE: Revert "UBUNTU: SAUCE: KVM: nSVM: avoid picking up unsupported bits
  from L2 in int_ctl"

linux (5.4.0-82.92) focal; urgency=medium

  * focal/linux: 5.4.0-82.92 -proposed tracker (LP: #1939799)

  * Packaging resync (LP: #1786013)
- debian/dkms-versions -- update from kernel-versions (main/2021.08.16)

  * CVE-2021-3656
- SAUCE: KVM: nSVM: always intercept VMLOAD/VMSAVE when nested

  * CVE-2021-3653
- SAUCE: KVM: nSVM: avoid picking up unsupported bits from L2 in int_ctl

  * [regression] USB device is not detected during boot (LP: #1939638)
- SAUCE: Revert "usb: core: reduce power-on-good delay time of root hub"

  * dev_forward_skb: do not scrub skb mark within the same name space
(LP: #1935040)
- dev_forward_skb: do not scrub skb mark within the same name space

  * XPS 9510 (TGL) Screen Brightness could not be changed (LP: #1933566)
- SAUCE: drm/i915: Force DPCD backlight mode for Dell XPS 9510(TGL)

  * Acer Aspire 5 sound driver issues (LP: #1930188)
- ALSA: hda/realtek: headphone and mic don't work on an Acer laptop

  * Sony Dualshock 4 usb dongle crashes the whole system (LP: #1935846)
- HID: sony: Workaround for DS4 dongle hotplug kernel crash.

  * [21.10 FEAT] KVM: Provide a secure guest indication (LP: #1933173)
- s390/uv: add prot virt guest/host indication files
- s390/uv: fix prot virt host indication compilation

  * Skip rtcpie test in kselftests/timers if the default RTC device does not
exist (LP: #1937991)
- selftests: timers: rtcpie: skip test if default RTC device does not exist

  * Focal update: v5.4.133 upstream stable release (LP: #1938713)
- drm/mxsfb: Don't select DRM_KMS_FB_HELPER
- drm/zte: Don't select DRM_KMS_FB_HELPER
- drm/amd/amdgpu/sriov disable all ip hw status by default
- drm/vc4: fix argument ordering in vc4_crtc_get_margins()
- net: pch_gbe: Use proper accessors to BE data in pch_ptp_match()
- drm/amd/display: fix use_max_lb flag for 420 pixel formats
- hugetlb: clear huge pte during flush function on mips platform
- atm: iphase: fix possible use-after-free in ia_module_exit()
- mISDN: fix possible use-after-free in HFC_cleanup()
- atm: nicstar: Fix possible use-after-free in nicstar_cleanup()
- net: Treat __napi_schedule_irqoff() as __napi_schedule() on PREEMPT_RT
- drm/mediatek: Fix PM reference leak in mtk_crtc_ddp_hw_init()
- reiserfs: add check for invalid 1st journal block
- drm/virtio: Fix double free on probe failure
- drm/sched: Avoid data corruptions
- udf: Fix NULL pointer dereference in udf_symlink function
- e100: handle eeprom as little endian
- igb: handle vlan types with checker enabled
- drm/bridge: cdns: Fix PM reference leak in cdns_dsi_transfer()
- clk: renesas: r8a77995: Add ZA2 clock
- clk: tegra: Ensure that PLLU configuration is applied properly
- ipv6: use prandom_u32() for ID generation
- RDMA/cxgb4: Fix missing error code in create_qp()
- dm space maps: don't reset space map allocation cursor when committing
- pinctrl: mcp23s08: fix race condition in irq handler
- ice: set the value of global config lock timeout longer
- virtio_net: Remove BUG() to avoid machine dead
- net: bcmgenet: check return value after calling platform_get_resource()
- net: mvpp2: check return value after calling platform_get_resource()
- net: micrel: check return value after calling platform_get_resource()
- drm/amd/display: Update scaling settings on modeset
- drm/amd/display: Release MST resources on switch from MST to SST
- drm/amd/display: Set DISPCLK_MAX_ERRDET_CYCLES to 7
- drm/amdkfd: use allowed domain for vmbo validation
- fjes: check return value after calling platform_get_resource()
- selinux: use __GFP_NOWARN with GFP_NOWAIT in the AVC
- r8169: avoid link-up interrupt issue on RTL8106e if user enables ASPM
- drm/amd/display: Verify Gamma & Degamma LUT sizes in 
amdgpu_dm_atomic_check
- xfrm: Fix error reporting in xfrm_state_construct.
- wlcore/wl12xx: Fix wl12xx get_mac error if device is in ELP
- wl1251: Fix possible buffer overflow in wl1251_cmd_scan
- cw1200: add missing MODULE_DEVICE_TABLE
- bpf: Fix up register-based shifts in interpreter to silence KUBSAN
- 

[Kernel-packages] [Bug 1931497] Re: Patch To Fix Bug in the Linux Block Layer Responsible For Merging BIOs

2021-08-18 Thread Launchpad Bug Tracker
This bug was fixed in the package linux-azure - 5.11.0-1013.14+21.10.1

---
linux-azure (5.11.0-1013.14+21.10.1) impish; urgency=medium

  * impish/linux-azure: 5.11.0-1013.14+21.10.1 -proposed tracker (LP:
#1936483)

  * Packaging resync (LP: #1786013)
- update dkms package versions

  [ Ubuntu: 5.11.0-1013.14 ]

  * hirsute/linux-azure: 5.11.0-1013.14 -proposed tracker (LP: #1936485)
  * linux-azure: Ensure the latest linux-image-sgx is installed with the 5.11
kernels (LP: #1937846)
- [Packaging] Install the linux-base-sgx version for upstream SGX
  * Packaging resync (LP: #1786013)
- update dkms package versions
  * large_dir in ext4 broken (LP: #1933074)
- SAUCE: ext4: fix directory index node split corruption
  * Add l2tp.sh in net from ubuntu_kernel_selftests back (LP: #1934293)
- Revert "UBUNTU: SAUCE: selftests/net -- disable l2tp.sh test"
  * icmp_redirect.sh in net from ubuntu_kernel_selftests failed on F-OEM-5.6 /
F-OEM-5.10 / F-OEM-5.13 / F / G / H (LP: #1880645)
- selftests: icmp_redirect: support expected failures
  * Mute/mic LEDs no function on some HP platfroms (LP: #1934878)
- ALSA: hda/realtek: fix mute/micmute LEDs for HP ProBook 450 G8
- ALSA: hda/realtek: fix mute/micmute LEDs for HP ProBook 445 G8
- ALSA: hda/realtek: fix mute/micmute LEDs for HP ProBook 630 G8
  * [SRU][OEM-5.10/H] Fix HDMI output issue on Intel TGL GPU (LP: #1934864)
- drm/i915: Fix HAS_LSPCON macro for platforms between GEN9 and GEN10
  * mute/micmute LEDs no function on HP EliteBook 830 G8 Notebook PC
(LP: #1934239)
- ALSA: hda/realtek: fix mute/micmute LEDs for HP EliteBook 830 G8 Notebook 
PC
  * ubuntu-host driver lacks lseek ops (LP: #1934110)
- ubuntu-host: add generic lseek op
  * ubuntu_kernel_selftests ftrace fails on arm64 F / aws-5.8 / amd64 F
azure-5.8 (LP: #1927749)
- selftests/ftrace: fix event-no-pid on 1-core machine
  * Hirsute update: upstream stable patchset 2021-06-29 (LP: #1934012)
- proc: Track /proc/$pid/attr/ opener mm_struct
- ASoC: max98088: fix ni clock divider calculation
- ASoC: amd: fix for pcm_read() error
- spi: Fix spi device unregister flow
- spi: spi-zynq-qspi: Fix stack violation bug
- bpf: Forbid trampoline attach for functions with variable arguments
- net/nfc/rawsock.c: fix a permission check bug
- usb: cdns3: Fix runtime PM imbalance on error
- ASoC: Intel: bytcr_rt5640: Add quirk for the Glavey TM800A550L tablet
- ASoC: Intel: bytcr_rt5640: Add quirk for the Lenovo Miix 3-830 tablet
- vfio-ccw: Reset FSM state to IDLE inside FSM
- vfio-ccw: Serialize FSM IDLE state with I/O completion
- ASoC: sti-sas: add missing MODULE_DEVICE_TABLE
- spi: sprd: Add missing MODULE_DEVICE_TABLE
- usb: chipidea: udc: assign interrupt number to USB gadget structure
- isdn: mISDN: netjet: Fix crash in nj_probe:
- bonding: init notify_work earlier to avoid uninitialized use
- netlink: disable IRQs for netlink_lock_table()
- net: mdiobus: get rid of a BUG_ON()
- cgroup: disable controllers at parse time
- wq: handle VM suspension in stall detection
- net/qla3xxx: fix schedule while atomic in ql_sem_spinlock
- RDS tcp loopback connection can hang
- net:sfc: fix non-freed irq in legacy irq mode
- scsi: bnx2fc: Return failure if io_req is already in ABTS processing
- scsi: vmw_pvscsi: Set correct residual data length
- scsi: hisi_sas: Drop free_irq() of devm_request_irq() allocated irq
- scsi: target: qla2xxx: Wait for stop_phase1 at WWN removal
- net: macb: ensure the device is available before accessing GEMGXL control
  registers
- net: appletalk: cops: Fix data race in cops_probe1
- net: dsa: microchip: enable phy errata workaround on 9567
- nvme-fabrics: decode host pathing error for connect
- MIPS: Fix kernel hang under FUNCTION_GRAPH_TRACER and PREEMPT_TRACER
- dm verity: fix require_signatures module_param permissions
- bnx2x: Fix missing error code in bnx2x_iov_init_one()
- nvme-tcp: remove incorrect Kconfig dep in BLK_DEV_NVME
- nvmet: fix false keep-alive timeout when a controller is torn down
- powerpc/fsl: set fsl,i2c-erratum-a004447 flag for P2041 i2c controllers
- powerpc/fsl: set fsl,i2c-erratum-a004447 flag for P1010 i2c controllers
- spi: Don't have controller clean up spi device before driver unbind
- spi: Cleanup on failure of initial setup
- i2c: mpc: Make use of i2c_recover_bus()
- i2c: mpc: implement erratum A-004447 workaround
- ALSA: seq: Fix race of snd_seq_timer_open()
- ALSA: firewire-lib: fix the context to call snd_pcm_stop_xrun()
- spi: bcm2835: Fix out-of-bounds access with more than 4 slaves
- Revert "ACPI: sleep: Put the FACS table after using it"
- drm: Fix use-after-free read in drm_getunique()
- drm: Lock pointer access in drm_master_release()
- perf/x86/intel/uncore: Fix M2M event 

[Kernel-packages] [Bug 1931497] Re: Patch To Fix Bug in the Linux Block Layer Responsible For Merging BIOs

2021-07-29 Thread Tim Gardner
** Changed in: linux (Ubuntu Focal)
   Status: In Progress => Fix Committed

** Changed in: linux (Ubuntu Groovy)
   Status: In Progress => Won't Fix

** Changed in: linux (Ubuntu Hirsute)
   Status: In Progress => Fix Committed

** Changed in: linux (Ubuntu Impish)
   Status: In Progress => Fix Released

** Changed in: linux (Ubuntu Focal)
 Assignee: (unassigned) => Tim Gardner (timg-tpi)

** Changed in: linux (Ubuntu Hirsute)
 Assignee: (unassigned) => Tim Gardner (timg-tpi)

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

Title:
  Patch To Fix Bug in the Linux Block Layer Responsible For  Merging
  BIOs

Status in linux package in Ubuntu:
  Fix Released
Status in linux-azure package in Ubuntu:
  New
Status in linux source package in Focal:
  Fix Committed
Status in linux-azure source package in Focal:
  Fix Released
Status in linux source package in Groovy:
  Won't Fix
Status in linux-azure source package in Groovy:
  Fix Released
Status in linux source package in Hirsute:
  Fix Committed
Status in linux-azure source package in Hirsute:
  Fix Released
Status in linux source package in Impish:
  Fix Released
Status in linux-azure source package in Impish:
  New

Bug description:
  [Impact]

  There is a bug in the Linux block layer responsible for merging BIOs
  that go across the page boundary. This bug was introduced in Linux 5.1
  when the block layer BIO page tracking is enhanced to support multiple
  pages.

  Without this patch, data corruption can occur.  The change to the
  kernel block layer in Linux 5.1 changes the way multiple pages are
  merged to a single block I/O descriptor, and how contiguous block I/O
  descriptors are merged with previous descriptors.

  If contiguous block I/O requests cross a page boundary of 4k, defined
  by the hv_storvsc driver, the new block merge process can create two
  pages of block I/O requests (the latter page with an offset) that
  refer to the same physical sector on disk. This page list is then
  assembled for the SCSI generic driver.

  In the above scenario, when the block I/O request sizes are 512 bytes,
  the Azure LIS driver (hv_storvsc module) is not able to correctly
  parse the page array from the SCSI generic driver due to this bug in
  Linux block layer and creates a potential overflow of offset I/O
  requests and corruption of data on disk.

  Mitigation of data loss is proven with filesystems with block size 4k.
  When block I/O requests are of sizes 4k or multiples of 4k, they are
  the page aligned in the memory and are not affected by the block I/O
  merging algorithm introduced in Linux 5.1. Most modern file systems
  use 4k I/O block size by default, thus mitigating this problem.

  An upstream patch fixes this bug: commit
  c9c9762d4d44dcb1b2ba90cfb4122dc11ceebf31 ("block: return the correct
  bvec when checking for gaps")

  Please include this patch in any supported kernels that are 5.1 or
  later.

  [Test Plan]

  stress-ng --sequential 8 --class io -t 5m --times

  [Where problems could occur]

  Different incorrect pages could be wriiten to disk.

  [Other Info]

  This patch has already been released in all [FGHI] Azure kernels.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1931497/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1931497] Re: Patch To Fix Bug in the Linux Block Layer Responsible For Merging BIOs

2021-07-20 Thread Launchpad Bug Tracker
This bug was fixed in the package linux-azure - 5.11.0-1012.13

---
linux-azure (5.11.0-1012.13) hirsute; urgency=medium

  [ Ubuntu: 5.11.0-25.27 ]

  * CVE-2021-33909
- SAUCE: seq_file: Disallow extremely large seq buffer allocations

linux-azure (5.11.0-1011.11) hirsute; urgency=medium

  * hirsute/linux-azure: 5.11.0-1011.11 -proposed tracker (LP: #1934056)

  [ Ubuntu: 5.11.0-24.25 ]

  * test_pmtu_vti4_link_add_mtu() test from net/pmtu.sh in
ubuntu_kernel_selftests cannot finish properly on 5.11 and 5.8
(LP: #1933969)
- ip6_gre: proper dev_{hold|put} in ndo_[un]init methods
- sit: proper dev_{hold|put} in ndo_[un]init methods
- ip6_tunnel: sit: proper dev_{hold|put} in ndo_[un]init methods
- ipv6: remove extra dev_hold() for fallback tunnels

linux-azure (5.11.0-1010.10) hirsute; urgency=medium

  * hirsute/linux-azure: 5.11.0-1010.10 -proposed tracker (LP: #1932401)

  * Patch To Fix Bug in the Linux Block Layer Responsible For  Merging BIOs
(LP: #1931497)
- block: return the correct bvec when checking for gaps

  [ Ubuntu: 5.11.0-23.24 ]

  * hirsute/linux: 5.11.0-23.24 -proposed tracker (LP: #1932420)
  * Packaging resync (LP: #1786013)
- [Packaging] resync getabis
- [Packaging] update helper scripts
- update dkms package versions
  * Disable hv-kvp-daemon.service on certain instance types (LP: #1932081)
- [Packaging]: Add kernel command line condition to hv-kvp-daemon service
  * Add support for IO functions of AAEON devices (LP: #1929504)
- ODM: mfd: Add support for IO functions of AAEON devices
- ODM: gpio: add driver for AAEON devices
- ODM: watchdog: add driver for AAEON devices
- ODM: hwmon: add driver for AAEON devices
- ODM: leds: add driver for AAEON devices
- ODM: [Config] update config for AAEON devices
  * Add support for selective build of special drivers (LP: #1912789)
- [Packaging] Add support for ODM drivers
- [Packaging] Turn on ODM support for amd64
- [Packaging] Fix ODM support in actual build
- [Packaging] Fix ODM DRIVERS Kconfig
  * Mute/Mic mute LEDs and right speaker are not work on HP platforms
(LP: #1932055)
- ALSA: hda/realtek: fix mute/micmute LEDs and speaker for HP Elite 
Dragonfly
  G2
- ALSA: hda/realtek: fix mute/micmute LEDs and speaker for HP EliteBook x360
  1040 G8
- ALSA: hda/realtek: fix mute/micmute LEDs for HP EliteBook 840 Aero G8
- ALSA: hda/realtek: fix mute/micmute LEDs for HP ZBook Power G8
  * SD card initialization on insertion fails (LP: #1929444)
- misc: rtsx: separate aspm mode into MODE_REG and MODE_CFG
  * Fix non-working GPU on Some HP desktops (LP: #1931147)
- PCI: Coalesce host bridge contiguous apertures
  * CirrusLogic: The default input volume is "0%" on Dell Warlock (LP: #1929803)
- ALSA: hda/cirrus: Set Initial DMIC volume to -26 dB
  * Mic-mute/mute LEDs not work on some HP platforms (LP: #1930707)
- ALSA: hda/realtek: fix mute/micmute LEDs for HP 855 G8
- ALSA: hda/realtek: fix mute/micmute LEDs and speaker for HP Zbook G8
- ALSA: hda/realtek: fix mute/micmute LEDs and speaker for HP Zbook Fury 15 
G8
- ALSA: hda/realtek: fix mute/micmute LEDs and speaker for HP Zbook Fury 17 
G8
  * [UBUNTU 21.04] tools/kvm_stat: Add restart delay (LP: #1921870)
- [Packaging] install kvm_stat systemd service
  * Fix ICL PCH no picture after S3 (LP: #1930582)
- drm/i915/icp+: Use icp_hpd_irq_setup() instead of spt_hpd_irq_setup()
  * Hirsute update: v5.11.22 upstream stable release (LP: #1931292)
- KEYS: trusted: Fix memory leak on object td
- tpm: fix error return code in tpm2_get_cc_attrs_tbl()
- tpm, tpm_tis: Extend locality handling to TPM2 in tpm_tis_gen_interrupt()
- tpm, tpm_tis: Reserve locality in tpm_tis_resume()
- KVM: SVM: Make sure GHCB is mapped before updating
- KVM: x86/mmu: Remove the defunct update_pte() paging hook
- KVM/VMX: Invoke NMI non-IST entry instead of IST entry
- ACPI: PM: Add ACPI ID of Alder Lake Fan
- PM: runtime: Fix unpaired parent child_count for force_resume
- cpufreq: intel_pstate: Use HWP if enabled by platform firmware
- kvm: Cap halt polling at kvm->max_halt_poll_ns
- ath11k: fix thermal temperature read
- ALSA: usb-audio: Add Pioneer DJM-850 to quirks-table
- fs: dlm: fix debugfs dump
- fs: dlm: fix mark setting deadlock
- fs: dlm: add errno handling to check callback
- fs: dlm: add check if dlm is currently running
- fs: dlm: change allocation limits
- fs: dlm: check on minimum msglen size
- fs: dlm: flush swork on shutdown
- fs: dlm: add shutdown hook
- tipc: convert dest node's address to network order
- ASoC: Intel: bytcr_rt5640: Enable jack-detect support on Asus T100TAF
- net/mlx5e: Use net_prefetchw instead of prefetchw in MPWQE TX datapath
- net: stmmac: Set FIFO sizes for ipq806x
- ASoC: rsnd: core: Check convert rate in rsnd_hw_params
 

[Kernel-packages] [Bug 1931497] Re: Patch To Fix Bug in the Linux Block Layer Responsible For Merging BIOs

2021-07-20 Thread Launchpad Bug Tracker
This bug was fixed in the package linux-azure - 5.8.0-1039.42

---
linux-azure (5.8.0-1039.42) groovy; urgency=medium

  [ Ubuntu: 5.8.0-63.71 ]

  * Possible io_uring regression with QEMU on Ubuntu's kernel (LP: #1935017)
- SAUCE: Revert "block: don't ignore REQ_NOWAIT for direct IO"

  [ Ubuntu: 5.8.0-62.70 ]

  * CVE-2021-33909
- SAUCE: seq_file: Disallow extremely large seq buffer allocations

linux-azure (5.8.0-1038.40) groovy; urgency=medium

  * groovy/linux-azure: 5.8.0-1038.40 -proposed tracker (LP: #1934082)

  [ Ubuntu: 5.8.0-61.68 ]

  * test_pmtu_vti4_link_add_mtu() test from net/pmtu.sh in
ubuntu_kernel_selftests cannot finish properly on 5.11 and 5.8
(LP: #1933969)
- ip6_gre: proper dev_{hold|put} in ndo_[un]init methods
- sit: proper dev_{hold|put} in ndo_[un]init methods
- ip6_tunnel: sit: proper dev_{hold|put} in ndo_[un]init methods
- ipv6: remove extra dev_hold() for fallback tunnels

linux-azure (5.8.0-1037.39) groovy; urgency=medium

  * groovy/linux-azure: 5.8.0-1037.39 -proposed tracker (LP: #1932428)

  * Patch To Fix Bug in the Linux Block Layer Responsible For  Merging BIOs
(LP: #1931497)
- block: return the correct bvec when checking for gaps

  [ Ubuntu: 5.8.0-60.67 ]

  * groovy/linux: 5.8.0-60.67 -proposed tracker (LP: #1932438)
  * Packaging resync (LP: #1786013)
- [Packaging] resync getabis
- [Packaging] update helper scripts
- update dkms package versions
  * Add support for IO functions of AAEON devices (LP: #1929504)
- ODM: mfd: Add support for IO functions of AAEON devices
- ODM: gpio: add driver for AAEON devices
- ODM: watchdog: add driver for AAEON devices
- ODM: hwmon: add driver for AAEON devices
- ODM: leds: add driver for AAEON devices
- ODM: [Config] update config for AAEON devices
  * Add support for selective build of special drivers (LP: #1912789)
- [Packaging] Add support for ODM drivers
- [Packaging] Turn on ODM support for amd64
- [Packaging] Fix ODM support in actual build
  * Upstream v5.9 introduced 'module' patches that removed exported symbols
(LP: #1932065)
- SAUCE: Revert "modules: inherit TAINT_PROPRIETARY_MODULE"
- SAUCE: Revert "modules: return licensing information from find_symbol"
- SAUCE: Revert "modules: rename the licence field in struct symsearch to
  license"
- SAUCE: Revert "modules: unexport __module_address"
- SAUCE: Revert "modules: unexport __module_text_address"
- SAUCE: Revert "modules: mark each_symbol_section static"
- SAUCE: Revert "modules: mark find_symbol static"
- SAUCE: Revert "modules: mark ref_module static"
  * Disable hv-kvp-daemon.service on certain instance types (LP: #1932081)
- [Packaging]: Add kernel command line condition to hv-kvp-daemon service
  * Groovy update: upstream stable patchset 2021-06-10 (LP: #1931637)
- KEYS: trusted: Fix memory leak on object td
- tpm: fix error return code in tpm2_get_cc_attrs_tbl()
- tpm, tpm_tis: Extend locality handling to TPM2 in tpm_tis_gen_interrupt()
- tpm, tpm_tis: Reserve locality in tpm_tis_resume()
- KVM: x86/mmu: Remove the defunct update_pte() paging hook
- PM: runtime: Fix unpaired parent child_count for force_resume
- kvm: Cap halt polling at kvm->max_halt_poll_ns
- ath11k: fix thermal temperature read
- fs: dlm: fix debugfs dump
- tipc: convert dest node's address to network order
- ASoC: Intel: bytcr_rt5640: Enable jack-detect support on Asus T100TAF
- net: stmmac: Set FIFO sizes for ipq806x
- ASoC: rsnd: core: Check convert rate in rsnd_hw_params
- Bluetooth: Fix incorrect status handling in LE PHY UPDATE event
- i2c: bail out early when RDWR parameters are wrong
- ALSA: hdsp: don't disable if not enabled
- ALSA: hdspm: don't disable if not enabled
- ALSA: rme9652: don't disable if not enabled
- ALSA: bebob: enable to deliver MIDI messages for multiple ports
- Bluetooth: Set CONF_NOT_COMPLETE as l2cap_chan default
- Bluetooth: initialize skb_queue_head at l2cap_chan_create()
- net/sched: cls_flower: use ntohs for struct flow_dissector_key_ports
- net: bridge: when suppression is enabled exclude RARP packets
- Bluetooth: check for zapped sk before connecting
- powerpc/32: Statically initialise first emergency context
- net: hns3: remediate a potential overflow risk of bd_num_list
- ip6_vti: proper dev_{hold|put} in ndo_[un]init methods
- ASoC: Intel: bytcr_rt5640: Add quirk for the Chuwi Hi8 tablet
- ice: handle increasing Tx or Rx ring sizes
- Bluetooth: btusb: Enable quirk boolean flag for Mediatek Chip.
- i2c: Add I2C_AQ_NO_REP_START adapter quirk
- MIPS: Loongson64: Use _CACHE_UNCACHED instead of 
_CACHE_UNCACHED_ACCELERATED
- coresight: Do not scan for graph if none is present
- IB/hfi1: Correct oversized ring allocation
- mac80211: clear the beacon's CRC after channel switch

[Kernel-packages] [Bug 1931497] Re: Patch To Fix Bug in the Linux Block Layer Responsible For Merging BIOs

2021-07-20 Thread Launchpad Bug Tracker
This bug was fixed in the package linux-azure - 5.4.0-1055.57

---
linux-azure (5.4.0-1055.57) focal; urgency=medium

  [ Ubuntu: 5.4.0-80.90 ]

  * CVE-2021-33909
- SAUCE: seq_file: Disallow extremely large seq buffer allocations

linux-azure (5.4.0-1054.56) focal; urgency=medium

  * focal/linux-azure: 5.4.0-1054.56 -proposed tracker (LP: #1935858)

  * linux-azure CIFS DFS oops (LP: #1935833)
- cifs: get rid of unused parameter in reconn_setup_dfs_targets()
- cifs: handle empty list of targets in cifs_reconnect()

linux-azure (5.4.0-1053.55) focal; urgency=medium

  * focal/linux-azure: 5.4.0-1053.55 -proposed tracker (LP: #1934321)

  [ Ubuntu: 5.4.0-79.88 ]

  * focal/linux: 5.4.0-79.88 -proposed tracker (LP: #1934343)
  * lxd exec fails (LP: #1934187)
- SAUCE: Revert "proc: Check /proc/$pid/attr/ writes against file opener"

linux-azure (5.4.0-1052.54) focal; urgency=medium

  * focal/linux-azure: 5.4.0-1052.54 -proposed tracker (LP: #1932456)

  * Patch To Fix Bug in the Linux Block Layer Responsible For  Merging BIOs
(LP: #1931497)
- block: return the correct bvec when checking for gaps

  [ Ubuntu: 5.4.0-78.87 ]

  * focal/linux: 5.4.0-78.87 -proposed tracker (LP: #1932478)
  * Packaging resync (LP: #1786013)
- [Packaging] resync getabis
- [Packaging] update helper scripts
- update dkms package versions
  * Disable hv-kvp-daemon.service on certain instance types (LP: #1932081)
- [Packaging]: Add kernel command line condition to hv-kvp-daemon service
  * QLogic Direct-Connect host can't discover SCSI-FC or NVMe/FC devices
(LP: #1860724)
- scsi: qla2xxx: Serialize fc_port alloc in N2N
- scsi: qla2xxx: Set Nport ID for N2N
- scsi: qla2xxx: Fix point-to-point (N2N) device discovery issue
- scsi: qla2xxx: Fix N2N and NVMe connect retry failure
  * [SRU] Add support for E810 NIC to Ice Driver in Focal (LP: #1912511)
- ice: add additional E810 device id
  * Focal update: v5.4.124 upstream stable release (LP: #1931166)
- ALSA: hda/realtek: Headphone volume is controlled by Front mixer
- ALSA: usb-audio: scarlett2: Fix device hang with ehci-pci
- ALSA: usb-audio: scarlett2: Improve driver startup messages
- cifs: set server->cipher_type to AES-128-CCM for SMB3.0
- NFSv4: Fix a NULL pointer dereference in pnfs_mark_matching_lsegs_return()
- iommu/vt-d: Fix sysfs leak in alloc_iommu()
- perf intel-pt: Fix sample instruction bytes
- perf intel-pt: Fix transaction abort handling
- perf scripts python: exported-sql-viewer.py: Fix copy to clipboard from 
Top
  Calls by elapsed Time report
- perf scripts python: exported-sql-viewer.py: Fix Array TypeError
- perf scripts python: exported-sql-viewer.py: Fix warning display
- proc: Check /proc/$pid/attr/ writes against file opener
- net: hso: fix control-request directions
- ath10k: Validate first subframe of A-MSDU before processing the list
- dm snapshot: properly fix a crash when an origin has no snapshots
- drm/amdgpu/vcn1: add cancel_delayed_work_sync before power gate
- drm/amdgpu/vcn2.0: add cancel_delayed_work_sync before power gate
- drm/amdgpu/vcn2.5: add cancel_delayed_work_sync before power gate
- selftests/gpio: Use TEST_GEN_PROGS_EXTENDED
- selftests/gpio: Move include of lib.mk up
- selftests/gpio: Fix build when source tree is read only
- kgdb: fix gcc-11 warnings harder
- Documentation: seccomp: Fix user notification documentation
- serial: core: fix suspicious security_locked_down() call
- misc/uss720: fix memory leak in uss720_probe
- thunderbolt: dma_port: Fix NVM read buffer bounds and offset issue
- mei: request autosuspend after sending rx flow control
- staging: iio: cdc: ad7746: avoid overwrite of num_channels
- iio: gyro: fxas21002c: balance runtime power in error path
- iio: adc: ad7768-1: Fix too small buffer passed to
  iio_push_to_buffers_with_timestamp()
- iio: adc: ad7124: Fix missbalanced regulator enable / disable on error.
- iio: adc: ad7124: Fix potential overflow due to non sequential channel
  numbers
- iio: adc: ad7793: Add missing error code in ad7793_setup()
- serial: 8250_pci: Add support for new HPE serial device
- serial: 8250_pci: handle FL_NOIRQ board flag
- USB: trancevibrator: fix control-request direction
- USB: usbfs: Don't WARN about excessively large memory allocations
- serial: tegra: Fix a mask operation that is always true
- serial: sh-sci: Fix off-by-one error in FIFO threshold register setting
- serial: rp2: use 'request_firmware' instead of 'request_firmware_nowait'
- USB: serial: ti_usb_3410_5052: add startech.com device id
- USB: serial: option: add Telit LE910-S1 compositions 0x7010, 0x7011
- USB: serial: ftdi_sio: add IDs for IDS GmbH Products
- USB: serial: pl2303: add device id for ADLINK ND-6530 GC
- thermal/drivers/intel: Initialize RW 

[Kernel-packages] [Bug 1931497] Re: Patch To Fix Bug in the Linux Block Layer Responsible For Merging BIOs

2021-07-19 Thread Tim Gardner
No regressions have been detected. Marking verification done.

** Tags removed: verification-needed-focal verification-needed-groovy 
verification-needed-hirsute
** Tags added: verification-done-focal verification-done-groovy 
verification-done-hirsute

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

Title:
  Patch To Fix Bug in the Linux Block Layer Responsible For  Merging
  BIOs

Status in linux package in Ubuntu:
  In Progress
Status in linux-azure package in Ubuntu:
  New
Status in linux source package in Focal:
  In Progress
Status in linux-azure source package in Focal:
  Fix Committed
Status in linux source package in Groovy:
  In Progress
Status in linux-azure source package in Groovy:
  Fix Committed
Status in linux source package in Hirsute:
  In Progress
Status in linux-azure source package in Hirsute:
  Fix Committed
Status in linux source package in Impish:
  In Progress
Status in linux-azure source package in Impish:
  New

Bug description:
  [Impact]

  There is a bug in the Linux block layer responsible for merging BIOs
  that go across the page boundary. This bug was introduced in Linux 5.1
  when the block layer BIO page tracking is enhanced to support multiple
  pages.

  Without this patch, data corruption can occur.  The change to the
  kernel block layer in Linux 5.1 changes the way multiple pages are
  merged to a single block I/O descriptor, and how contiguous block I/O
  descriptors are merged with previous descriptors.

  If contiguous block I/O requests cross a page boundary of 4k, defined
  by the hv_storvsc driver, the new block merge process can create two
  pages of block I/O requests (the latter page with an offset) that
  refer to the same physical sector on disk. This page list is then
  assembled for the SCSI generic driver.

  In the above scenario, when the block I/O request sizes are 512 bytes,
  the Azure LIS driver (hv_storvsc module) is not able to correctly
  parse the page array from the SCSI generic driver due to this bug in
  Linux block layer and creates a potential overflow of offset I/O
  requests and corruption of data on disk.

  Mitigation of data loss is proven with filesystems with block size 4k.
  When block I/O requests are of sizes 4k or multiples of 4k, they are
  the page aligned in the memory and are not affected by the block I/O
  merging algorithm introduced in Linux 5.1. Most modern file systems
  use 4k I/O block size by default, thus mitigating this problem.

  An upstream patch fixes this bug: commit
  c9c9762d4d44dcb1b2ba90cfb4122dc11ceebf31 ("block: return the correct
  bvec when checking for gaps")

  Please include this patch in any supported kernels that are 5.1 or
  later.

  [Test Plan]

  stress-ng --sequential 8 --class io -t 5m --times

  [Where problems could occur]

  Different incorrect pages could be wriiten to disk.

  [Other Info]

  This patch has already been released in all [FGHI] Azure kernels.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1931497/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1931497] Re: Patch To Fix Bug in the Linux Block Layer Responsible For Merging BIOs

2021-07-12 Thread Ubuntu Kernel Bot
This bug is awaiting verification that the kernel in -proposed solves
the problem. Please test the kernel and update this bug with the
results. If the problem is solved, change the tag 'verification-needed-
focal' to 'verification-done-focal'. If the problem still exists, change
the tag 'verification-needed-focal' to 'verification-failed-focal'.

If verification is not done by 5 working days from today, this fix will
be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how
to enable and use -proposed. Thank you!


** Tags added: verification-needed-focal

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

Title:
  Patch To Fix Bug in the Linux Block Layer Responsible For  Merging
  BIOs

Status in linux package in Ubuntu:
  In Progress
Status in linux-azure package in Ubuntu:
  New
Status in linux source package in Focal:
  In Progress
Status in linux-azure source package in Focal:
  Fix Committed
Status in linux source package in Groovy:
  In Progress
Status in linux-azure source package in Groovy:
  Fix Committed
Status in linux source package in Hirsute:
  In Progress
Status in linux-azure source package in Hirsute:
  Fix Committed
Status in linux source package in Impish:
  In Progress
Status in linux-azure source package in Impish:
  New

Bug description:
  [Impact]

  There is a bug in the Linux block layer responsible for merging BIOs
  that go across the page boundary. This bug was introduced in Linux 5.1
  when the block layer BIO page tracking is enhanced to support multiple
  pages.

  Without this patch, data corruption can occur.  The change to the
  kernel block layer in Linux 5.1 changes the way multiple pages are
  merged to a single block I/O descriptor, and how contiguous block I/O
  descriptors are merged with previous descriptors.

  If contiguous block I/O requests cross a page boundary of 4k, defined
  by the hv_storvsc driver, the new block merge process can create two
  pages of block I/O requests (the latter page with an offset) that
  refer to the same physical sector on disk. This page list is then
  assembled for the SCSI generic driver.

  In the above scenario, when the block I/O request sizes are 512 bytes,
  the Azure LIS driver (hv_storvsc module) is not able to correctly
  parse the page array from the SCSI generic driver due to this bug in
  Linux block layer and creates a potential overflow of offset I/O
  requests and corruption of data on disk.

  Mitigation of data loss is proven with filesystems with block size 4k.
  When block I/O requests are of sizes 4k or multiples of 4k, they are
  the page aligned in the memory and are not affected by the block I/O
  merging algorithm introduced in Linux 5.1. Most modern file systems
  use 4k I/O block size by default, thus mitigating this problem.

  An upstream patch fixes this bug: commit
  c9c9762d4d44dcb1b2ba90cfb4122dc11ceebf31 ("block: return the correct
  bvec when checking for gaps")

  Please include this patch in any supported kernels that are 5.1 or
  later.

  [Test Plan]

  stress-ng --sequential 8 --class io -t 5m --times

  [Where problems could occur]

  Different incorrect pages could be wriiten to disk.

  [Other Info]

  This patch has already been released in all [FGHI] Azure kernels.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1931497/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1931497] Re: Patch To Fix Bug in the Linux Block Layer Responsible For Merging BIOs

2021-07-06 Thread Tim Gardner
** Description changed:

+ [Impact]
+ 
  There is a bug in the Linux block layer responsible for merging BIOs
  that go across the page boundary. This bug was introduced in Linux 5.1
  when the block layer BIO page tracking is enhanced to support multiple
  pages.
  
  Without this patch, data corruption can occur.  The change to the kernel
  block layer in Linux 5.1 changes the way multiple pages are merged to a
  single block I/O descriptor, and how contiguous block I/O descriptors
  are merged with previous descriptors.
  
  If contiguous block I/O requests cross a page boundary of 4k, defined by
  the hv_storvsc driver, the new block merge process can create two pages
  of block I/O requests (the latter page with an offset) that refer to the
  same physical sector on disk. This page list is then assembled for the
  SCSI generic driver.
  
  In the above scenario, when the block I/O request sizes are 512 bytes,
  the Azure LIS driver (hv_storvsc module) is not able to correctly parse
  the page array from the SCSI generic driver due to this bug in Linux
  block layer and creates a potential overflow of offset I/O requests and
  corruption of data on disk.
  
  Mitigation of data loss is proven with filesystems with block size 4k.
  When block I/O requests are of sizes 4k or multiples of 4k, they are the
  page aligned in the memory and are not affected by the block I/O merging
  algorithm introduced in Linux 5.1. Most modern file systems use 4k I/O
  block size by default, thus mitigating this problem.
  
- We have submitted a patch to Linux mainline kernel to fix this:
- 
- https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-
- block.git/commit/?h=for-next=c9c9762d4d44dcb1b2ba90cfb4122dc11ceebf31
- 
- c9c9762d4d44 ("block: return the correct bvec when checking for gaps")
+ An upstream patch fixes this bug: commit
+ c9c9762d4d44dcb1b2ba90cfb4122dc11ceebf31 ("block: return the correct
+ bvec when checking for gaps")
  
  Please include this patch in any supported kernels that are 5.1 or
  later.
+ 
+ [Test Plan]
+ 
+ stress-ng --sequential 8 --class io -t 5m --times
+ 
+ [Where problems could occur]
+ 
+ Different incorrect pages could be wriiten to disk.
+ 
+ [Other Info]
+ 
+ This patch has already been released in all [FGHI] Azure kernels.

** Also affects: linux (Ubuntu)
   Importance: Undecided
   Status: New

** Changed in: linux (Ubuntu Focal)
   Importance: Undecided => Medium

** Changed in: linux (Ubuntu Focal)
   Status: New => In Progress

** Changed in: linux (Ubuntu Groovy)
   Importance: Undecided => Medium

** Changed in: linux (Ubuntu Groovy)
   Status: New => In Progress

** Changed in: linux (Ubuntu Hirsute)
   Importance: Undecided => Medium

** Changed in: linux (Ubuntu Hirsute)
   Status: New => In Progress

** Changed in: linux (Ubuntu Impish)
   Importance: Undecided => Medium

** Changed in: linux (Ubuntu Impish)
   Status: New => In Progress

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

Title:
  Patch To Fix Bug in the Linux Block Layer Responsible For  Merging
  BIOs

Status in linux package in Ubuntu:
  In Progress
Status in linux-azure package in Ubuntu:
  New
Status in linux source package in Focal:
  In Progress
Status in linux-azure source package in Focal:
  Fix Committed
Status in linux source package in Groovy:
  In Progress
Status in linux-azure source package in Groovy:
  Fix Committed
Status in linux source package in Hirsute:
  In Progress
Status in linux-azure source package in Hirsute:
  Fix Committed
Status in linux source package in Impish:
  In Progress
Status in linux-azure source package in Impish:
  New

Bug description:
  [Impact]

  There is a bug in the Linux block layer responsible for merging BIOs
  that go across the page boundary. This bug was introduced in Linux 5.1
  when the block layer BIO page tracking is enhanced to support multiple
  pages.

  Without this patch, data corruption can occur.  The change to the
  kernel block layer in Linux 5.1 changes the way multiple pages are
  merged to a single block I/O descriptor, and how contiguous block I/O
  descriptors are merged with previous descriptors.

  If contiguous block I/O requests cross a page boundary of 4k, defined
  by the hv_storvsc driver, the new block merge process can create two
  pages of block I/O requests (the latter page with an offset) that
  refer to the same physical sector on disk. This page list is then
  assembled for the SCSI generic driver.

  In the above scenario, when the block I/O request sizes are 512 bytes,
  the Azure LIS driver (hv_storvsc module) is not able to correctly
  parse the page array from the SCSI generic driver due to this bug in
  Linux block layer and creates a potential overflow of offset I/O
  requests and corruption of data on disk.

  Mitigation of data loss is proven with filesystems with block 

[Kernel-packages] [Bug 1931497] Re: Patch To Fix Bug in the Linux Block Layer Responsible For Merging BIOs

2021-06-26 Thread Ubuntu Kernel Bot
This bug is awaiting verification that the kernel in -proposed solves
the problem. Please test the kernel and update this bug with the
results. If the problem is solved, change the tag 'verification-needed-
hirsute' to 'verification-done-hirsute'. If the problem still exists,
change the tag 'verification-needed-hirsute' to 'verification-failed-
hirsute'.

If verification is not done by 5 working days from today, this fix will
be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how
to enable and use -proposed. Thank you!


** Tags added: verification-needed-hirsute

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

Title:
  Patch To Fix Bug in the Linux Block Layer Responsible For  Merging
  BIOs

Status in linux-azure package in Ubuntu:
  New
Status in linux-azure source package in Focal:
  Fix Committed
Status in linux-azure source package in Groovy:
  Fix Committed
Status in linux-azure source package in Hirsute:
  Fix Committed
Status in linux-azure source package in Impish:
  New

Bug description:
  There is a bug in the Linux block layer responsible for merging BIOs
  that go across the page boundary. This bug was introduced in Linux 5.1
  when the block layer BIO page tracking is enhanced to support multiple
  pages.

  Without this patch, data corruption can occur.  The change to the
  kernel block layer in Linux 5.1 changes the way multiple pages are
  merged to a single block I/O descriptor, and how contiguous block I/O
  descriptors are merged with previous descriptors.

  If contiguous block I/O requests cross a page boundary of 4k, defined
  by the hv_storvsc driver, the new block merge process can create two
  pages of block I/O requests (the latter page with an offset) that
  refer to the same physical sector on disk. This page list is then
  assembled for the SCSI generic driver.

  In the above scenario, when the block I/O request sizes are 512 bytes,
  the Azure LIS driver (hv_storvsc module) is not able to correctly
  parse the page array from the SCSI generic driver due to this bug in
  Linux block layer and creates a potential overflow of offset I/O
  requests and corruption of data on disk.

  Mitigation of data loss is proven with filesystems with block size 4k.
  When block I/O requests are of sizes 4k or multiples of 4k, they are
  the page aligned in the memory and are not affected by the block I/O
  merging algorithm introduced in Linux 5.1. Most modern file systems
  use 4k I/O block size by default, thus mitigating this problem.

  We have submitted a patch to Linux mainline kernel to fix this:

  https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-
  block.git/commit/?h=for-
  next=c9c9762d4d44dcb1b2ba90cfb4122dc11ceebf31

  c9c9762d4d44 ("block: return the correct bvec when checking for gaps")

  Please include this patch in any supported kernels that are 5.1 or
  later.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-azure/+bug/1931497/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1931497] Re: Patch To Fix Bug in the Linux Block Layer Responsible For Merging BIOs

2021-06-25 Thread Ubuntu Kernel Bot
This bug is awaiting verification that the kernel in -proposed solves
the problem. Please test the kernel and update this bug with the
results. If the problem is solved, change the tag 'verification-needed-
groovy' to 'verification-done-groovy'. If the problem still exists,
change the tag 'verification-needed-groovy' to 'verification-failed-
groovy'.

If verification is not done by 5 working days from today, this fix will
be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how
to enable and use -proposed. Thank you!


** Tags added: verification-needed-groovy

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

Title:
  Patch To Fix Bug in the Linux Block Layer Responsible For  Merging
  BIOs

Status in linux-azure package in Ubuntu:
  New
Status in linux-azure source package in Focal:
  Fix Committed
Status in linux-azure source package in Groovy:
  Fix Committed
Status in linux-azure source package in Hirsute:
  Fix Committed
Status in linux-azure source package in Impish:
  New

Bug description:
  There is a bug in the Linux block layer responsible for merging BIOs
  that go across the page boundary. This bug was introduced in Linux 5.1
  when the block layer BIO page tracking is enhanced to support multiple
  pages.

  Without this patch, data corruption can occur.  The change to the
  kernel block layer in Linux 5.1 changes the way multiple pages are
  merged to a single block I/O descriptor, and how contiguous block I/O
  descriptors are merged with previous descriptors.

  If contiguous block I/O requests cross a page boundary of 4k, defined
  by the hv_storvsc driver, the new block merge process can create two
  pages of block I/O requests (the latter page with an offset) that
  refer to the same physical sector on disk. This page list is then
  assembled for the SCSI generic driver.

  In the above scenario, when the block I/O request sizes are 512 bytes,
  the Azure LIS driver (hv_storvsc module) is not able to correctly
  parse the page array from the SCSI generic driver due to this bug in
  Linux block layer and creates a potential overflow of offset I/O
  requests and corruption of data on disk.

  Mitigation of data loss is proven with filesystems with block size 4k.
  When block I/O requests are of sizes 4k or multiples of 4k, they are
  the page aligned in the memory and are not affected by the block I/O
  merging algorithm introduced in Linux 5.1. Most modern file systems
  use 4k I/O block size by default, thus mitigating this problem.

  We have submitted a patch to Linux mainline kernel to fix this:

  https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-
  block.git/commit/?h=for-
  next=c9c9762d4d44dcb1b2ba90cfb4122dc11ceebf31

  c9c9762d4d44 ("block: return the correct bvec when checking for gaps")

  Please include this patch in any supported kernels that are 5.1 or
  later.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-azure/+bug/1931497/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1931497] Re: Patch To Fix Bug in the Linux Block Layer Responsible For Merging BIOs

2021-06-23 Thread Tim Gardner
** Changed in: linux-azure (Ubuntu Hirsute)
   Status: In Progress => Fix Committed

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

Title:
  Patch To Fix Bug in the Linux Block Layer Responsible For  Merging
  BIOs

Status in linux-azure package in Ubuntu:
  New
Status in linux-azure source package in Focal:
  Fix Committed
Status in linux-azure source package in Groovy:
  Fix Committed
Status in linux-azure source package in Hirsute:
  Fix Committed
Status in linux-azure source package in Impish:
  New

Bug description:
  There is a bug in the Linux block layer responsible for merging BIOs
  that go across the page boundary. This bug was introduced in Linux 5.1
  when the block layer BIO page tracking is enhanced to support multiple
  pages.

  Without this patch, data corruption can occur.  The change to the
  kernel block layer in Linux 5.1 changes the way multiple pages are
  merged to a single block I/O descriptor, and how contiguous block I/O
  descriptors are merged with previous descriptors.

  If contiguous block I/O requests cross a page boundary of 4k, defined
  by the hv_storvsc driver, the new block merge process can create two
  pages of block I/O requests (the latter page with an offset) that
  refer to the same physical sector on disk. This page list is then
  assembled for the SCSI generic driver.

  In the above scenario, when the block I/O request sizes are 512 bytes,
  the Azure LIS driver (hv_storvsc module) is not able to correctly
  parse the page array from the SCSI generic driver due to this bug in
  Linux block layer and creates a potential overflow of offset I/O
  requests and corruption of data on disk.

  Mitigation of data loss is proven with filesystems with block size 4k.
  When block I/O requests are of sizes 4k or multiples of 4k, they are
  the page aligned in the memory and are not affected by the block I/O
  merging algorithm introduced in Linux 5.1. Most modern file systems
  use 4k I/O block size by default, thus mitigating this problem.

  We have submitted a patch to Linux mainline kernel to fix this:

  https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-
  block.git/commit/?h=for-
  next=c9c9762d4d44dcb1b2ba90cfb4122dc11ceebf31

  c9c9762d4d44 ("block: return the correct bvec when checking for gaps")

  Please include this patch in any supported kernels that are 5.1 or
  later.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-azure/+bug/1931497/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1931497] Re: Patch To Fix Bug in the Linux Block Layer Responsible For Merging BIOs

2021-06-23 Thread Tim Gardner
** Changed in: linux-azure (Ubuntu Groovy)
   Status: In Progress => Fix Committed

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

Title:
  Patch To Fix Bug in the Linux Block Layer Responsible For  Merging
  BIOs

Status in linux-azure package in Ubuntu:
  New
Status in linux-azure source package in Focal:
  Fix Committed
Status in linux-azure source package in Groovy:
  Fix Committed
Status in linux-azure source package in Hirsute:
  In Progress
Status in linux-azure source package in Impish:
  New

Bug description:
  There is a bug in the Linux block layer responsible for merging BIOs
  that go across the page boundary. This bug was introduced in Linux 5.1
  when the block layer BIO page tracking is enhanced to support multiple
  pages.

  Without this patch, data corruption can occur.  The change to the
  kernel block layer in Linux 5.1 changes the way multiple pages are
  merged to a single block I/O descriptor, and how contiguous block I/O
  descriptors are merged with previous descriptors.

  If contiguous block I/O requests cross a page boundary of 4k, defined
  by the hv_storvsc driver, the new block merge process can create two
  pages of block I/O requests (the latter page with an offset) that
  refer to the same physical sector on disk. This page list is then
  assembled for the SCSI generic driver.

  In the above scenario, when the block I/O request sizes are 512 bytes,
  the Azure LIS driver (hv_storvsc module) is not able to correctly
  parse the page array from the SCSI generic driver due to this bug in
  Linux block layer and creates a potential overflow of offset I/O
  requests and corruption of data on disk.

  Mitigation of data loss is proven with filesystems with block size 4k.
  When block I/O requests are of sizes 4k or multiples of 4k, they are
  the page aligned in the memory and are not affected by the block I/O
  merging algorithm introduced in Linux 5.1. Most modern file systems
  use 4k I/O block size by default, thus mitigating this problem.

  We have submitted a patch to Linux mainline kernel to fix this:

  https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-
  block.git/commit/?h=for-
  next=c9c9762d4d44dcb1b2ba90cfb4122dc11ceebf31

  c9c9762d4d44 ("block: return the correct bvec when checking for gaps")

  Please include this patch in any supported kernels that are 5.1 or
  later.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-azure/+bug/1931497/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1931497] Re: Patch To Fix Bug in the Linux Block Layer Responsible For Merging BIOs

2021-06-23 Thread Tim Gardner
** Changed in: linux-azure (Ubuntu Focal)
   Status: In Progress => Fix Committed

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

Title:
  Patch To Fix Bug in the Linux Block Layer Responsible For  Merging
  BIOs

Status in linux-azure package in Ubuntu:
  New
Status in linux-azure source package in Focal:
  Fix Committed
Status in linux-azure source package in Groovy:
  In Progress
Status in linux-azure source package in Hirsute:
  In Progress
Status in linux-azure source package in Impish:
  New

Bug description:
  There is a bug in the Linux block layer responsible for merging BIOs
  that go across the page boundary. This bug was introduced in Linux 5.1
  when the block layer BIO page tracking is enhanced to support multiple
  pages.

  Without this patch, data corruption can occur.  The change to the
  kernel block layer in Linux 5.1 changes the way multiple pages are
  merged to a single block I/O descriptor, and how contiguous block I/O
  descriptors are merged with previous descriptors.

  If contiguous block I/O requests cross a page boundary of 4k, defined
  by the hv_storvsc driver, the new block merge process can create two
  pages of block I/O requests (the latter page with an offset) that
  refer to the same physical sector on disk. This page list is then
  assembled for the SCSI generic driver.

  In the above scenario, when the block I/O request sizes are 512 bytes,
  the Azure LIS driver (hv_storvsc module) is not able to correctly
  parse the page array from the SCSI generic driver due to this bug in
  Linux block layer and creates a potential overflow of offset I/O
  requests and corruption of data on disk.

  Mitigation of data loss is proven with filesystems with block size 4k.
  When block I/O requests are of sizes 4k or multiples of 4k, they are
  the page aligned in the memory and are not affected by the block I/O
  merging algorithm introduced in Linux 5.1. Most modern file systems
  use 4k I/O block size by default, thus mitigating this problem.

  We have submitted a patch to Linux mainline kernel to fix this:

  https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-
  block.git/commit/?h=for-
  next=c9c9762d4d44dcb1b2ba90cfb4122dc11ceebf31

  c9c9762d4d44 ("block: return the correct bvec when checking for gaps")

  Please include this patch in any supported kernels that are 5.1 or
  later.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-azure/+bug/1931497/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1931497] Re: Patch To Fix Bug in the Linux Block Layer Responsible For Merging BIOs

2021-06-22 Thread Stefan Bader
** Changed in: linux-azure (Ubuntu Focal)
   Importance: Undecided => Medium

** Changed in: linux-azure (Ubuntu Groovy)
   Importance: Undecided => Medium

** Changed in: linux-azure (Ubuntu Hirsute)
   Importance: Undecided => Medium

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

Title:
  Patch To Fix Bug in the Linux Block Layer Responsible For  Merging
  BIOs

Status in linux-azure package in Ubuntu:
  New
Status in linux-azure source package in Focal:
  In Progress
Status in linux-azure source package in Groovy:
  In Progress
Status in linux-azure source package in Hirsute:
  In Progress
Status in linux-azure source package in Impish:
  New

Bug description:
  There is a bug in the Linux block layer responsible for merging BIOs
  that go across the page boundary. This bug was introduced in Linux 5.1
  when the block layer BIO page tracking is enhanced to support multiple
  pages.

  Without this patch, data corruption can occur.  The change to the
  kernel block layer in Linux 5.1 changes the way multiple pages are
  merged to a single block I/O descriptor, and how contiguous block I/O
  descriptors are merged with previous descriptors.

  If contiguous block I/O requests cross a page boundary of 4k, defined
  by the hv_storvsc driver, the new block merge process can create two
  pages of block I/O requests (the latter page with an offset) that
  refer to the same physical sector on disk. This page list is then
  assembled for the SCSI generic driver.

  In the above scenario, when the block I/O request sizes are 512 bytes,
  the Azure LIS driver (hv_storvsc module) is not able to correctly
  parse the page array from the SCSI generic driver due to this bug in
  Linux block layer and creates a potential overflow of offset I/O
  requests and corruption of data on disk.

  Mitigation of data loss is proven with filesystems with block size 4k.
  When block I/O requests are of sizes 4k or multiples of 4k, they are
  the page aligned in the memory and are not affected by the block I/O
  merging algorithm introduced in Linux 5.1. Most modern file systems
  use 4k I/O block size by default, thus mitigating this problem.

  We have submitted a patch to Linux mainline kernel to fix this:

  https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-
  block.git/commit/?h=for-
  next=c9c9762d4d44dcb1b2ba90cfb4122dc11ceebf31

  c9c9762d4d44 ("block: return the correct bvec when checking for gaps")

  Please include this patch in any supported kernels that are 5.1 or
  later.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-azure/+bug/1931497/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1931497] Re: Patch To Fix Bug in the Linux Block Layer Responsible For Merging BIOs

2021-06-21 Thread Tim Gardner
Test kernels at https://kernel.ubuntu.com/~rtg/azure-bvec-lp1931497/

Also at https://launchpad.net/~timg-tpi/+archive/ubuntu/azure-bvec-
lp1931497

** Changed in: linux-azure (Ubuntu Focal)
   Status: New => In Progress

** Changed in: linux-azure (Ubuntu Groovy)
   Status: New => In Progress

** Changed in: linux-azure (Ubuntu Hirsute)
   Status: New => In Progress

** Changed in: linux-azure (Ubuntu Groovy)
 Assignee: (unassigned) => Tim Gardner (timg-tpi)

** Changed in: linux-azure (Ubuntu Hirsute)
 Assignee: (unassigned) => Tim Gardner (timg-tpi)

** Changed in: linux-azure (Ubuntu Impish)
 Assignee: (unassigned) => Tim Gardner (timg-tpi)

** Tags added: bot-stop-nagging

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

Title:
  Patch To Fix Bug in the Linux Block Layer Responsible For  Merging
  BIOs

Status in linux-azure package in Ubuntu:
  New
Status in linux-azure source package in Focal:
  In Progress
Status in linux-azure source package in Groovy:
  In Progress
Status in linux-azure source package in Hirsute:
  In Progress
Status in linux-azure source package in Impish:
  New

Bug description:
  There is a bug in the Linux block layer responsible for merging BIOs
  that go across the page boundary. This bug was introduced in Linux 5.1
  when the block layer BIO page tracking is enhanced to support multiple
  pages.

  Without this patch, data corruption can occur.  The change to the
  kernel block layer in Linux 5.1 changes the way multiple pages are
  merged to a single block I/O descriptor, and how contiguous block I/O
  descriptors are merged with previous descriptors.

  If contiguous block I/O requests cross a page boundary of 4k, defined
  by the hv_storvsc driver, the new block merge process can create two
  pages of block I/O requests (the latter page with an offset) that
  refer to the same physical sector on disk. This page list is then
  assembled for the SCSI generic driver.

  In the above scenario, when the block I/O request sizes are 512 bytes,
  the Azure LIS driver (hv_storvsc module) is not able to correctly
  parse the page array from the SCSI generic driver due to this bug in
  Linux block layer and creates a potential overflow of offset I/O
  requests and corruption of data on disk.

  Mitigation of data loss is proven with filesystems with block size 4k.
  When block I/O requests are of sizes 4k or multiples of 4k, they are
  the page aligned in the memory and are not affected by the block I/O
  merging algorithm introduced in Linux 5.1. Most modern file systems
  use 4k I/O block size by default, thus mitigating this problem.

  We have submitted a patch to Linux mainline kernel to fix this:

  https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-
  block.git/commit/?h=for-
  next=c9c9762d4d44dcb1b2ba90cfb4122dc11ceebf31

  c9c9762d4d44 ("block: return the correct bvec when checking for gaps")

  Please include this patch in any supported kernels that are 5.1 or
  later.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-azure/+bug/1931497/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1931497] Re: Patch To Fix Bug in the Linux Block Layer Responsible For Merging BIOs

2021-06-10 Thread Tim Gardner
** Also affects: linux-azure (Ubuntu Impish)
   Importance: Undecided
   Status: New

** Also affects: linux-azure (Ubuntu Focal)
   Importance: Undecided
   Status: New

** Also affects: linux-azure (Ubuntu Hirsute)
   Importance: Undecided
   Status: New

** Also affects: linux-azure (Ubuntu Groovy)
   Importance: Undecided
   Status: New

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

Title:
  Patch To Fix Bug in the Linux Block Layer Responsible For  Merging
  BIOs

Status in linux-azure package in Ubuntu:
  New
Status in linux-azure source package in Focal:
  New
Status in linux-azure source package in Groovy:
  New
Status in linux-azure source package in Hirsute:
  New
Status in linux-azure source package in Impish:
  New

Bug description:
  There is a bug in the Linux block layer responsible for merging BIOs
  that go across the page boundary. This bug was introduced in Linux 5.1
  when the block layer BIO page tracking is enhanced to support multiple
  pages.

  Without this patch, data corruption can occur.  The change to the
  kernel block layer in Linux 5.1 changes the way multiple pages are
  merged to a single block I/O descriptor, and how contiguous block I/O
  descriptors are merged with previous descriptors.

  If contiguous block I/O requests cross a page boundary of 4k, defined
  by the hv_storvsc driver, the new block merge process can create two
  pages of block I/O requests (the latter page with an offset) that
  refer to the same physical sector on disk. This page list is then
  assembled for the SCSI generic driver.

  In the above scenario, when the block I/O request sizes are 512 bytes,
  the Azure LIS driver (hv_storvsc module) is not able to correctly
  parse the page array from the SCSI generic driver due to this bug in
  Linux block layer and creates a potential overflow of offset I/O
  requests and corruption of data on disk.

  Mitigation of data loss is proven with filesystems with block size 4k.
  When block I/O requests are of sizes 4k or multiples of 4k, they are
  the page aligned in the memory and are not affected by the block I/O
  merging algorithm introduced in Linux 5.1. Most modern file systems
  use 4k I/O block size by default, thus mitigating this problem.

  We have submitted a patch to Linux mainline kernel to fix this:

  https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-
  block.git/commit/?h=for-
  next=c9c9762d4d44dcb1b2ba90cfb4122dc11ceebf31

  c9c9762d4d44 ("block: return the correct bvec when checking for gaps")

  Please include this patch in any supported kernels that are 5.1 or
  later.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-azure/+bug/1931497/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1931497] Re: Patch To Fix Bug in the Linux Block Layer Responsible For Merging BIOs

2021-06-09 Thread Joseph Salisbury
** Description changed:

  There is a bug in the Linux block layer responsible for merging BIOs
  that go across the page boundary. This bug was introduced in Linux 5.1
  when the block layer BIO page tracking is enhanced to support multiple
  pages.
  
  Without this patch, data corruption can occur.  The change to the kernel
  block layer in Linux 5.1 changes the way multiple pages are merged to a
  single block I/O descriptor, and how contiguous block I/O descriptors
  are merged with previous descriptors.
  
  If contiguous block I/O requests cross a page boundary of 4k, defined by
  the hv_storvsc driver, the new block merge process can create two pages
  of block I/O requests (the latter page with an offset) that refer to the
  same physical sector on disk. This page list is then assembled for the
  SCSI generic driver.
  
  In the above scenario, when the block I/O request sizes are 512 bytes,
  the Azure LIS driver (hv_storvsc module) is not able to correctly parse
  the page array from the SCSI generic driver due to this bug in Linux
  block layer and creates a potential overflow of offset I/O requests and
  corruption of data on disk.
  
  Mitigation of data loss is proven with filesystems with block size 4k.
  When block I/O requests are of sizes 4k or multiples of 4k, they are the
  page aligned in the memory and are not affected by the block I/O merging
  algorithm introduced in Linux 5.1. Most modern file systems use 4k I/O
  block size by default, thus mitigating this problem.
  
  We have submitted a patch to Linux mainline kernel to fix this:
  
- https://patchwork.kernel.org/project/linux-
- block/patch/1623094445-22332-1-git-send-email-lon...@linuxonhyperv.com/
+ https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-
+ block.git/commit/?h=for-next=c9c9762d4d44dcb1b2ba90cfb4122dc11ceebf31
  
  c9c9762d4d44 ("block: return the correct bvec when checking for gaps")
  
  Please include this patch in any supported kernels that are 5.1 or
  later.

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

Title:
  Patch To Fix Bug in the Linux Block Layer Responsible For  Merging
  BIOs

Status in linux-azure package in Ubuntu:
  New

Bug description:
  There is a bug in the Linux block layer responsible for merging BIOs
  that go across the page boundary. This bug was introduced in Linux 5.1
  when the block layer BIO page tracking is enhanced to support multiple
  pages.

  Without this patch, data corruption can occur.  The change to the
  kernel block layer in Linux 5.1 changes the way multiple pages are
  merged to a single block I/O descriptor, and how contiguous block I/O
  descriptors are merged with previous descriptors.

  If contiguous block I/O requests cross a page boundary of 4k, defined
  by the hv_storvsc driver, the new block merge process can create two
  pages of block I/O requests (the latter page with an offset) that
  refer to the same physical sector on disk. This page list is then
  assembled for the SCSI generic driver.

  In the above scenario, when the block I/O request sizes are 512 bytes,
  the Azure LIS driver (hv_storvsc module) is not able to correctly
  parse the page array from the SCSI generic driver due to this bug in
  Linux block layer and creates a potential overflow of offset I/O
  requests and corruption of data on disk.

  Mitigation of data loss is proven with filesystems with block size 4k.
  When block I/O requests are of sizes 4k or multiples of 4k, they are
  the page aligned in the memory and are not affected by the block I/O
  merging algorithm introduced in Linux 5.1. Most modern file systems
  use 4k I/O block size by default, thus mitigating this problem.

  We have submitted a patch to Linux mainline kernel to fix this:

  https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-
  block.git/commit/?h=for-
  next=c9c9762d4d44dcb1b2ba90cfb4122dc11ceebf31

  c9c9762d4d44 ("block: return the correct bvec when checking for gaps")

  Please include this patch in any supported kernels that are 5.1 or
  later.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-azure/+bug/1931497/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp