Recent changes to sysctl.h breaks glibc

From: Martin Schlemmer (azarah@gentoo.org)
Date: Sun May 18 2003 - 15:21:56 EST


Hi

Some recent changes to include/linux/sysctl.h breaks glibc.

Problem is that __sysctl_args have been modified to use '__user',
but that is only defined if __KERNEL__ is defined, because that
is the only time compiler.h is included.

------------------------------------------------
--- linux-2.5.69-bk2/include/linux/sysctl.h 2003-05-05
01:53:31.000000000 +0200
+++ linux-2.5.69-bk12/include/linux/sysctl.h 2003-05-18
22:12:39.000000000 +0200
@@ -36,11 +36,11 @@
                                    member of a struct __sysctl_args to have? */
 
 struct __sysctl_args {
- int *name;
+ int __user *name;
         int nlen;
- void *oldval;
- size_t *oldlenp;
- void *newval;
+ void __user *oldval;
+ size_t __user *oldlenp;
+ void __user *newval;
         size_t newlen;
         unsigned long __unused[4];
 };
--------------------------------------------------
 
Question: Is this expected behaviour ?

Thanks,

-- 

Martin Schlemmer


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri May 23 2003 - 22:00:31 EST