]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fix kABI breakage from "unix: properly account for FDs passed over unix sockets"
authorDan Duval <dan.duval@oracle.com>
Tue, 17 May 2016 23:54:41 +0000 (19:54 -0400)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 26 May 2016 22:43:21 +0000 (15:43 -0700)
commitc057264c4ba7ddf9d775c013fcb1cecb910bf2b9
tree82434c3f636b4f9e4b5c9b8d4a645968d9e799e3
parentf529795c9154cf6751ba0006af75328e384e4a9a
fix kABI breakage from "unix: properly account for FDs passed over unix sockets"

Orabug: 23330739

Orabug: 23330739

Signed-off-by: Dan Duval <dan.duval@oracle.com>
Commit 67af13e958a0de5dc4191d31e96dcf4240ea96d2, "unix: properly account for FDs passed
over unix sockets", added an element "unix_inflight" to struct user_struct.  This broke
kABI.  Even worse, the element was added in the middle of the structure, changing the
offsets of all the other existing elements that ended up after "unix_inflight".

This commit wraps the new element in "#ifndef __GENKSYMS__" so that the kABI checker
won't see it.  It also moves the element to the end of the structure, so that existing
binary third-party modules won't be affected if they simply access existing elements
via pointers.  A search of the kernel source hints that this structure won't be accessed
via the expected kinds of third-party modules (e.g., drivers) at all, so this change
should be fairly safe
(cherry picked from commit b3f5d5cd4fa654c63389b683976f2df7b25b6ceb)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
include/linux/sched.h