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>