** Description changed:

- Environment:
- • OS: Ubuntu 26.10
- • Kernel version: 7.3.0-8-generic #8-Ubuntu SMP PREEMPT_DYNAMIC
- • Hardware: ASUS VivoBook X580GD Laptop (Intel i7-8750H / NVIDIA GTX 1050 
Mobile)
- • BIOS Version: X580GD.324 (01/27/2021)
+ [Impact]
  
- Description:
+ * fwupd ships a systemd-shutdown hook that runs `fwupdtool activate`
+     very late in shutdown. On some hardware this blocks until a hard
+     60-second I/O timeout, delaying every shutdown/reboot. This is
+     easily mistaken for a kernel/systemd hang (see this bug, originally
+     filed against linux).
  
- Since upgrading to the 7.x kernel series (around mid-July 2026), the system 
suffers from hang/timeout during every shutdown or reboot sequence.
- By removing quiet splash and enabling debug logging (loglevel=7 
systemd.log_level=debug systemd.log_target=console), the exact blocking point 
was captured on screen.
- Systemd-shutdown successfully unmounts all filesystems, deactivates encrypted 
swap wrappers (cryptswap), and detaches loop devices normally. However, it 
hangs immediately after forking the fwupd.shutdown script.
+ * This upload removes the fwupd.shutdown hook entirely
+     (data/fwupd.shutdown.in, its install rule, and the spec %files
+     entry). Delayed activation at shutdown is no longer recommended
+     upstream; devices are activated via the normal daemon/CLI paths
+     instead. Removing the hook removes the only code path that could
+     block shutdown.
  
- Steps to reproduce:
+ [Test Plan]
  
- 1. Boot Ubuntu 26.10 with kernel 7.3.0-8-generic.
- 2. Issue a shutdown or reboot command (sudo poweroff or sudo reboot).
- 3. The system clears userspace and unmounts drives instantly, but blocks for 
a while on the screen.
+ 1. Confirm /usr/lib/systemd/system-shutdown/fwupd.shutdown exists
+     before the update, and is gone after upgrading from -proposed.
+ 2. Reboot/shut down a few times and confirm no added delay.
+ 3. Confirm fwupdmgr get-devices/get-updates still work normally.
  
- Console Log Capture at Freeze Point:
+ Reporter syldeb35 already confirmed via a PPA build that the hang is
+ gone (comment #8).
  
- All filesystems, swaps, loop devices, MD devices and DM devices detached.
- Successfully forked off '(systemd-shutdown)' as PID 8667.
- About to execute /usr/lib/systemd/system-shutdown/fwupd.shutdown
- Successfully forked off '(exec-inner)' as PID 8668.
+ [Where problems could occur]
  
- [=== STUCK HERE  ===]
+ * A device relying on activation happening specifically at shutdown
+     (rather than next daemon start/boot, or explicit fwupdmgr activate)
+     would have that activation delayed by one cycle, not lost.
+ * Packaging: the hook file simply stops being shipped; no
+     maintainer-script logic depends on it.
+ * Low risk: this deletes a rarely-used, already-discouraged code path
+     with no changes to core daemon/plugin/activation logic.
  
- '/usr/lib/systemd/system-shutdown/fwupd.shutdown' succeeded.
- '(systemd-shutdown)' succeeded.
- Successfully forked off '(sd-sync)' as PID 8675.
- Syncing filesystems and block devices.
- ...
- Rebooting.
+ [Other Info]
  
- Root Cause & Workaround:
- 
- The block device and cryptographic layer shutdown sequences are
- completely cleared. The issue is a regression in the kernel's ability to
- handle late low-level UEFI NVRAM runtime writes (efivars) initiated by
- fwupd on this specific generation of ASUS motherboards. The kernel fails
- to respond to the subsystem call, triggering a hard 60-second I/O
- timeout before releasing the process.
- 
- Confirmed Workaround:
- 
- Disabling the executable bit or masking the systemd-shutdown hook completely 
resolves the issue, bringing the shutdown time back to under 3 seconds:
- sudo chmod -x /usr/lib/systemd/system-shutdown/fwupd.shutdown
- 
- ProblemType: Bug
- DistroRelease: Ubuntu 26.10
- Package: linux-image-7.3.0-8-generic 7.3.0-8.8
- ProcVersionSignature: Ubuntu 7.3.0-8.8-generic 7.3.0-rc5
- Uname: Linux 7.3.0-8-generic x86_64
- NonfreeKernelModules: nvidia_modeset nvidia
- ApportVersion: 2.36.0-0ubuntu1
- Architecture: amd64
- AudioDevicesInUse:
-  USER        PID ACCESS COMMAND
-  /dev/snd/controlC0:  sylvain    4240 F.... wireplumber
-  /dev/snd/seq:        sylvain    4223 F.... pipewire
- CasperMD5CheckResult: unknown
- CurrentDesktop: GNOME
- Date: Fri Oct  2 16:36:30 2026
- HibernationDevice: RESUME=/dev/mapper/cryptswap
- MachineType: ASUSTeK COMPUTER INC. VivoBook_ASUSLaptop X580GD_NX580GD
- ProcFB: 0 i915drmfb
- ProcKernelCmdLine: root=UUID=cfea31bb-ea51-446c-9fe2-39406bbd3db7 ro quiet 
splash rd.luks.name=f3500579-c528-474c-90f1-5c8ac7a3f086=cryptswap 
resume=/dev/mapper/cryptswap  hibernate=allow_locked_down 
initrd=boot\initrd.img-7.3.0-8-generic
- SourcePackage: linux
- UpgradeStatus: No upgrade log present (probably fresh install)
- dmi.bios.date: 01/27/2021
- dmi.bios.release: 5.13
- dmi.bios.vendor: American Megatrends Inc.
- dmi.bios.version: X580GD.324
- dmi.board.asset.tag: ATN12345678901234567
- dmi.board.name: X580GD
- dmi.board.vendor: ASUSTeK COMPUTER INC.
- dmi.board.version: 1.0
- dmi.chassis.asset.tag: No Asset Tag
- dmi.chassis.type: 10
- dmi.chassis.vendor: ASUSTeK COMPUTER INC.
- dmi.chassis.version: 1.0
- dmi.modalias: 
dmi:bvnAmericanMegatrendsInc.:bvrX580GD.324:bd01/27/2021:br5.13:svnASUSTeKCOMPUTERINC.:pnVivoBook_ASUSLaptopX580GD_NX580GD:pvr1.0:rvnASUSTeKCOMPUTERINC.:rnX580GD:rvr1.0:cvnASUSTeKCOMPUTERINC.:ct10:cvr1.0:sku:pfaVivoBook:
- dmi.product.family: VivoBook
- dmi.product.name: VivoBook_ASUSLaptop X580GD_NX580GD
- dmi.product.version: 1.0
- dmi.sys.vendor: ASUSTeK COMPUTER INC.
+ * Upstream fix: fwupd commit f295aead0 "Remove fwupd.shutdown delayed
+     activation".
+ * linux (Ubuntu) is Won't Fix — root cause and fix are in fwupd, not
+     the kernel.

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

Title:
  Regression: systemd-shutdown hangs for 60s at fwupd.shutdown hook
  under kernel 7.3 (ASUS X580GD)

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


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

Reply via email to