Public bug reported:

Every boot involving LVM+VDO, the kernel emits a warning and a stack
trace:

  ------------[ cut here ]------------
  Unexpected gfp: 0x4000 (__GFP_RETRY_MAYFAIL). Fixing up to gfp: 0x2dc0 
(GFP_KERNEL|__GFP_ZERO|__GFP_NOWARN). Fix your code!
  WARNING: mm/vmalloc.c:3953 at __vmalloc_noprof+0x74/0x90, CPU#6: lvm/3081
  Call Trace:
   vdo_allocate_memory+0xfa/0x2d0 [dm_vdo]
   vdo_make+0x222/0x510 [dm_vdo]
   vdo_initialize+0x1ac/0x2c0 [dm_vdo]
   construct_new_vdo+0xcf/0x170 [dm_vdo]
   vdo_ctr+0x178/0x190 [dm_vdo]
   dm_table_add_target+0x198/0x3d0
   populate_table+0xa2/0xf0
   table_load+0xd5/0x240
   ctl_ioctl+0x1dc/0x3b0

After searching, this looks like a known upstream regression related to commit
07003531e03c ("mm/vmalloc: warn on invalid vmalloc gfp flags") which began
rejecting gfp flags outside GFP_VMALLOC_SUPPORTED. The allocation continues,
so VDO does work on my system, less any hidden consequence from changes in 
allocation semantics.

There appears to be an upstream fix.
Mikulas Patocka posted "[PATCH] mm: allow __GFP_RETRY_MAYFAIL in vmalloc",
adding the flag to GFP_VMALLOC_SUPPORTED, carrying:

  Fixes: 07003531e03c ("mm/vmalloc: warn on invalid vmalloc gfp flags")
  Cc: [email protected] # v6.19

Thread: http://www.mail-archive.com/dm-
[email protected]/msg08641.html

To reproduce, create a logical volume with VDO on 26.04 and activate it, either 
at boot or via
vgchange -ay VGNAME. The warning appears once per activation in dmesg.

Not present on 6.17.0-41-generic. Two boot logs immediately before this machine
upgraded to 26.04 do not have the trace. The machine went from 6.17.0-41-generic
to 7.0.0-29-generic.

Please bring the fix into 26.04

ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: linux-image-7.0.0-29-generic 7.0.0-29.29
ProcVersionSignature: Ubuntu 7.0.0-29.29-generic 7.0.12
Uname: Linux 7.0.0-29-generic x86_64
ApportVersion: 2.34.1-0ubuntu0.1
Architecture: amd64
AudioDevicesInUse:
 USER        PID ACCESS COMMAND
 /dev/snd/controlC1:  sjunot     6551 F.... wireplumber
 /dev/snd/controlC0:  sjunot     6551 F.... wireplumber
 /dev/snd/seq:        sjunot     6540 F.... pipewire
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Mon Aug 17 19:06:06 2026
InstallationDate: Installed on 2026-04-01 (139 days ago)
InstallationMedia: Ubuntu 25.10 "Questing Quokka" - Release amd64 (20251007)
IwDevWlo1Link: Not connected.
MachineType: Gigabyte Technology Co., Ltd. B550M AORUS ELITE AX
ProcFB: 0 amdgpudrmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-7.0.0-29-generic 
root=/dev/mapper/vg--root--new-vdo--root--new ro log_buf_len=8M 
amdgpu.ppfeaturemask=0xfff7ffff systemd.log_target=kmsg 
rd.shutdown.timeout.umount=30s systemd.crash_shell=1 mitigations=off 
crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No 
PulseAudio daemon running, or not running as session daemon.
SourcePackage: linux
UpgradeStatus: Upgraded to resolute on 2026-08-18 (0 days ago)
dmi.bios.date: 10/28/2025
dmi.bios.release: 5.17
dmi.bios.vendor: American Megatrends International, LLC.
dmi.bios.version: F7
dmi.board.asset.tag: Default string
dmi.board.name: B550M AORUS ELITE AX
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.asset.tag: Default string
dmi.chassis.type: 3
dmi.chassis.vendor: Default string
dmi.chassis.version: Default string
dmi.modalias: 
dmi:bvnAmericanMegatrendsInternational,LLC.:bvrF7:bd10/28/2025:br5.17:svnGigabyteTechnologyCo.,Ltd.:pnB550MAORUSELITEAX:pvrDefaultstring-CF:rvnGigabyteTechnologyCo.,Ltd.:rnB550MAORUSELITEAX:rvrx.x:cvnDefaultstring:ct3:cvrDefaultstring:skuDefaultstring:pfaB550MB:
dmi.product.family: B550 MB
dmi.product.name: B550M AORUS ELITE AX
dmi.product.sku: Default string
dmi.product.version: Default string-CF
dmi.sys.vendor: Gigabyte Technology Co., Ltd.

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug resolute wayland-session

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2163712

Title:
  dm-vdo triggers "Unexpected gfp: __GFP_RETRY_MAYFAIL" vmalloc warning
  on every VDO activation under 7.0.0-29-generic

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to