Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux: Update kmsg issue 1055 #1061

Merged
merged 4 commits into from
Dec 18, 2023

Conversation

eve-mem
Copy link
Contributor

@eve-mem eve-mem commented Dec 14, 2023

Hello 👋

This PR makes changes to the linux kmsg plugin as discussed in issue #1055

This does not fix #1055 completely for @4n6-fl as there is a related dwarf2json issue that also needs fixing volatilityfoundation/dwarf2json#49

It allows KmsgFiveTen to work on kernels that have KALSR KASLR.

Before it wasn't possible to use kmsg on this sample:

$ python vol.py -f v6.1.15.dmp linux.kmsg
Volatility 3 Framework 2.5.2
Progress:  100.00               Stacking attempts finished
facility        level   timestamp       caller  line


Volatility was unable to read a requested page:
Page error 0xffff82253380 in layer layer_name (Page Fault at entry 0x0 in table page table)

        * Memory smear during acquisition (try re-acquiring if possible)
        * An intentionally invalid page lookup (operating system protection)
        * A bug in the plugin/volatility3 (re-run with -vvv and file a bug)

No further results will be produced

However with the changes it now shows the output as expected:

$ python vol.py -f v6.1.15.dmp linux.kmsg
Volatility 3 Framework 2.5.2
Progress:  100.00               Stacking attempts finished
facility        level   timestamp       caller  line

kern    notice  0.000000        Task(0) Linux version 6.1.15-vol (root@deb10) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #1 SMP PREEMPT_DYNAMIC Sat Mar 11 14:59:42 EST 2023
kern    info    0.000000        Task(0) Command line: BOOT_IMAGE=/boot/vmlinuz-6.1.15-vol root=UUID=c46e3962-8fa4-4620-af46-dfff4bb49610 ro quiet splash resume=UUID=9ede18ae-c5a0-4e05-992b-04786c06c80e
kern    info    0.000000        Task(0) x86/fpu: x87 FPU will use FXSAVE
kern    info    0.000000        Task(0) signal: max sigframe size: 1440
kern    info    0.000000        Task(0) BIOS-provided physical RAM map:
kern    info    0.000000        Task(0) BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
kern    info    0.000000        Task(0) BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
kern    info    0.000000        Task(0) BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
kern    info    0.000000        Task(0) BIOS-e820: [mem 0x0000000000100000-0x00000000bffd9fff] usable
kern    info    0.000000        Task(0) BIOS-e820: [mem 0x00000000bffda000-0x00000000bfffffff] reserved
kern    info    0.000000        Task(0) BIOS-e820: [mem 0x00000000feffc000-0x00000000feffffff] reserved
kern    info    0.000000        Task(0) BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved
kern    info    0.000000        Task(0) BIOS-e820: [mem 0x0000000100000000-0x000000013fffffff] usable
kern    info    0.000000        Task(0) NX (Execute Disable) protection: active
kern    info    0.000000        Task(0) SMBIOS 2.8 present.
kern    info    0.000000        Task(0) DMI: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.0-0-gd239552ce722-prebuilt.qemu.org 04/01/2014
kern    info    0.000000        Task(0) Hypervisor detected: KVM
kern    info    0.000000        Task(0) kvm-clock: Using msrs 4b564d01 and 4b564d00
kern    info    0.000001        Task(0) kvm-clock: using sched offset of 118876718327327 cycles
<snip>

@gcmoreira
Copy link
Contributor

@ikelos this looks good to me

@eve-mem eve-mem closed this Dec 18, 2023
@eve-mem eve-mem reopened this Dec 18, 2023
@gcmoreira
Copy link
Contributor

@eve-mem you can mark this as ready for review

@eve-mem eve-mem marked this pull request as ready for review December 18, 2023 18:28
Copy link
Member

@ikelos ikelos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, sounds good, thanks for the review @gcmoreira !

@ikelos ikelos merged commit 18e5d7a into volatilityfoundation:develop Dec 18, 2023
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

linux.kmsg.Kmsg returning Page error
3 participants