Re:How I Found a 20-Year-Old Linux Kernel Bug
by jjnoakes on Wednesday June 14, 2017 @07:37PM
(#14556865)
A static analyzer with sufficient inter-procedural analysis (i.e. across the user/kernel boundary) could certainly see the type of the allocated structure in userspace, and flag the kernel read of a larger type.
proposed patch here:
https://bugzilla.kernel.org/attachment.cgi?id=256997&action=...