include/linux/ipv6.h, struct ipv6_devconf leaks to userspace
Subsystems (2)
Found by make O="$header_dir" headers_install_all in 2.6.26:
struct ipv6_devconf contains conditional members, guarded by CONFIG_*.
Please move the struct into #ifdef __KERNEL__
Olaf
David Miller
maintainerFrom: Olaf Hering <[email protected]>
Date: Mon, 21 Jul 2008 14:34:30 +0200
Quoted 6 lines
Found by make O="$header_dir"
headers_install_allin 2.6.26:struct
ipv6_devconfcontains conditional members, guarded by CONFIG_*.Please move the struct into #ifdef
__KERNEL__
I've applied the following patch, let me know if it doesn't fix the problem.
Thanks.
ipv6: __KERNEL__ ifdef struct ipv6_devconf
Based upon a report by Olaf Hering.
Signed-off-by David S. Miller <[email protected]>
--- include/linux/ipv6.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
include/linux/ipv6.h +2 -0
@@ -123,6 +123,7 @@ struct ipv6hdr {struct in6_addr daddr; }; +#ifdef __KERNEL__/* * This structure contains configuration options per IPv6 link. */
@@ -167,6 +168,7 @@ struct ipv6_devconf {__s32 accept_dad;void *sysctl; }; +#endif /* index values for the variables in ipv6_devconf */ enum {
Signature · 1 line
1.5.6.4.433.g09651