All sorts of places in the ELF loading code assume that filesz <=
memsz, so check that explicitly up front.
Reported by: Jane Smith <thebugfixers@pm.me> (via D57785)
Differential D58542
kld: Reject kernel modules with PT_LOAD segments where filesz > memsz Authored by jhb on Jul 29 2026, 7:23 PM. Tags None Referenced Files
Details All sorts of places in the ELF loading code assume that filesz <= Reported by: Jane Smith <thebugfixers@pm.me> (via D57785)
Diff Detail
Event TimelineComment Actions I just used their email address for Reported by because given (a) the lack of history with the project (b) no trace of them existing anywhere else online (c) the low-quality suspicious nature of the patches (d) the name being one of *the* quintessential placeholders, I am suspicious as to whether it's their real name. Comment Actions It might indeed be a placeholder (though who knows for anyone's name unless you've met them in person really), but it's already present in the author field of various other commits in src (including one misspelling as Jana): > git log --author thebugfixers --format="%h %an <%ae>" 9724f3f89749 Jane Smith <thebugfixers@pm.me> be23edc1e402 Jana Smith <thebugfixers@pm.me> 635ad6f2ec97 Jane Smith <thebugfixers@pm.me> |