Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-v86d: Commit

external/v86d


Commit MetaInfo

Revision234bd9126479c91f0e5ea59ae410306d36c8e5e9 (tree)
Time2015-10-20 16:17:47
AuthorMichał Januszewski <spock@gent...>
CommiterChih-Wei Huang

Log Message

Verify that netlink messages are coming from kernel.

Thanks to Nelson Elhage for reporting this problem.

Change Summary

Incremental Difference

--- a/v86.c
+++ b/v86.c
@@ -129,6 +129,11 @@ int main(int argc, char *argv[])
129129
130130 reply = (struct nlmsghdr *)buf;
131131
132+ /* Ignore requests coming from outside the kernel. */
133+ if (reply->nlmsg_pid != 0) {
134+ continue;
135+ }
136+
132137 switch (reply->nlmsg_type) {
133138 case NLMSG_ERROR:
134139 ulog(LOG_ERR, "Error message received.\n");
Show on old repository browser