Skip to content

Instantly share code, notes, and snippets.

@alexhulbert
Created July 4, 2026 01:55
Show Gist options
  • Select an option

  • Save alexhulbert/8600193abf24568b761bc919fbd092b1 to your computer and use it in GitHub Desktop.

Select an option

Save alexhulbert/8600193abf24568b761bc919fbd092b1 to your computer and use it in GitHub Desktop.
Kernel patch to dump TD HOB on boot
--- a/init/main.c
+++ b/init/main.c
@@ -1617,3 +1617,13 @@
integrity_load_keys();
}
+
+#define TD_HOB_ADDR 0x809000
+
+static int __init td_hob_dump(void)
+{
+ void *p = memremap(TD_HOB_ADDR, 0x2000, MEMREMAP_WB);
+
+ print_hex_dump(KERN_INFO, "td_hob ", DUMP_PREFIX_OFFSET, 16, 1, p, 0x2000, false);
+ memunmap(p);
+ return 0;
+}
+late_initcall(td_hob_dump);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment