makedumpfile does not create dmesg file in /var/crash on 5.10+ kernels

Bug #1921403 reported by Ioanna Alifieraki
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
makedumpfile (Debian)
Fix Released
Unknown
makedumpfile (Ubuntu)
Fix Released
Undecided
Ioanna Alifieraki
Focal
Fix Released
Medium
Ioanna Alifieraki
Hirsute
Fix Released
Medium
Ioanna Alifieraki

Bug Description

[IMPACT]
makedumpfile does not create the dmesg.<timestamp> in /var/crash.
This happens only on 5.10+ kernel because 5.10 kernel introduces a new
lockless ringbuffer.

This issue has been addressed upstream with commits :
[1] c617ec633392([PATCH 1/2] printk: add support for lockless ringbuffer)
[2] 44b073b7ec46([PATCH 2/2] printk: use committed/finalized state values)

[TEST CASE]

For testing a machine running focal with the 5.11 kernel is required.
Then trigger a crash.
After reboot make sure that dmesg.<timestamp> file is created in /var/crash/<timestamp>

[WHERE PROBLEMS COULD OCCUR]

Any problems would involve the dmesg file not created.

[Other]

[1] https://github.com/makedumpfile/makedumpfile/commit/c617ec63339222f3a44d73e36677a9acc8954ccd
[2] https://github.com/makedumpfile/makedumpfile/commit/44b073b7ec467aee0d7de381d455b8ace1199184

Changed in makedumpfile (Debian):
status: Unknown → New
Changed in makedumpfile (Ubuntu Hirsute):
assignee: nobody → Ioanna Alifieraki (joalif)
Changed in makedumpfile (Debian):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package makedumpfile - 1:1.6.8-4

---------------
makedumpfile (1:1.6.8-4) unstable; urgency=medium

  [ Ioanna Alifieraki ]
  * Fix failure of dmesg.<timestamp> creation on 5.10+ kernels.
    (Closes: #985896) (LP: #1921403).
  * Fix makedumpfile failure on arm64 with 5.4 kernels.
    (Closes: #986594) (LP: #1879214)

 -- dann frazier <email address hidden> Wed, 07 Apr 2021 16:32:38 -0600

Changed in makedumpfile (Ubuntu Hirsute):
status: New → Fix Released
Changed in makedumpfile (Ubuntu Focal):
status: New → In Progress
assignee: nobody → Ioanna Alifieraki (joalif)
tags: added: sts-sponsor-mfo
Changed in makedumpfile (Ubuntu Focal):
importance: Undecided → Medium
Changed in makedumpfile (Ubuntu Hirsute):
importance: Undecided → Medium
description: updated
description: updated
tags: added: sts
description: updated
Revision history for this message
Eric Desrochers (slashd) wrote :

@ioanna,

Does it maintain compatibility for release that could have both <= and >= 5.10 available ?

Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :

Hi Eric,

Answering this as I'm working on it now. :)

Yes, this has been considered and tested by Jo
in the other bug 1942784 comment 7.

Thanks for your attention to the bug/compatibility matrix.

Revision history for this message
Mauricio Faria de Oliveira (mfo) wrote :

Reviewed and uploaded to Focal. Thanks @joalif!
(debdiff in bug 1942784)

Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Ioanna, or anyone else affected,

Accepted makedumpfile into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/makedumpfile/1:1.6.7-1ubuntu2.3 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in makedumpfile (Ubuntu Focal):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-focal
Revision history for this message
Ioanna Alifieraki (joalif) wrote :

VERIFICATION FOCAL

Installed makedumpfile from proposed.
Testing on a Focal machine running 5.11 kernel.

# uname -rv
5.11.0-40-generic #44~20.04.1-Ubuntu SMP Wed Oct 20 19:04:34 UTC 2021

Trigger crash:
# echo 1 > /proc/sys/kernel/sysrq
# echo c > /proc/sysrq-trigger

After reboot contents of /var/crash :
/var/crash/202110271414# ls
dmesg.202110271414 dump.202110271414

dmesg file has been successfully created.

tags: added: verification-done verification-done-focal
removed: verification-needed verification-needed-focal
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package makedumpfile - 1:1.6.7-1ubuntu2.3

---------------
makedumpfile (1:1.6.7-1ubuntu2.3) focal; urgency=medium

  * makedumpfile falls back to cp with the 5.11 kernel (LP: #1942784)
    -d/p/0008-PATCH-Retrieve-MAX_PHYSMEM_BITS-from-vmcoreinfo.patch
  * makedumpfile doesn't create dmesg file on 5.10+ kernels (LP: #1921403)
    -d/p/0009-PATCH-1-2-printk-add-support-for-lockless-ringbuffer.patch
    -d/p/0010-PATCH-2-2-printk-use-committed-finalized-state-value.patch

 -- Ioanna Alifieraki <email address hidden> Mon, 18 Oct 2021 16:43:56 +0000

Changed in makedumpfile (Ubuntu Focal):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for makedumpfile has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.