Recent binutils releases and linux kernel 2.5.69+

Recent binutils releases and linux kernel 2.5.69+

Post by H. J. L » Fri, 30 May 2003 18:00:14



This is a kernel issue and should be fixed in kernel unless we want
to do something in <sys/sysctl.h>.

H.J.
---
--- include/linux/sysctl.h.user 2003-05-29 07:36:51.000000000 -0700

 #include <linux/types.h>
 #include <linux/list.h>

+#ifdefine __KERNEL__
+#undef __user
+#define __user
+#endif
+
 struct file;

 #define CTL_MAXNAME 10         /* how many path components do we allow in a



> > What is the problem? Does linux/sysctl.h include
> > linux/compiler.h?
> No it doesnt include it directly. It includes
> linux/kernel.h and linux/kernel.h does a trick like

> #ifdef __KERNEL__
> .......
> #include <linux/compiler.h>

> So we never get __user defined.

> > Does your compiler define __CHECKER__?

> No.

> Would it be too bad to a trick like

> #include <linux/version.h>
> #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,70)
> #define __user
> #endif

> What do you think?

> Regards,
> /ismail

> =====
> Microsoft Windows: made for the internet
> The Internet: made for UNIX

> __________________________________
> Do you Yahoo!?
> Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
> http://calendar.yahoo.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
 
 
 

Recent binutils releases and linux kernel 2.5.69+

Post by Christoph Hellwi » Fri, 30 May 2003 18:10:08



> This is a kernel issue and should be fixed in kernel unless we want
> to do something in <sys/sysctl.h>.

You should not include kernel headers from userspace.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

Recent binutils releases and linux kernel 2.5.69+

Post by cartm » Fri, 30 May 2003 18:30:18


Hi,


> > This is a kernel issue and should be fixed in kernel unless we want
> > to do something in <sys/sysctl.h>.

> You should not include kernel headers from userspace.

Old story I know but I dont think binutils would use kernel headers if it
doesnt need it.

Regards,
/ismail


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

Recent binutils releases and linux kernel 2.5.69+

Post by H. J. L » Fri, 30 May 2003 19:10:10



> Hi,

> > > This is a kernel issue and should be fixed in kernel unless we want
> > > to do something in <sys/sysctl.h>.

> > You should not include kernel headers from userspace.

> Old story I know but I dont think binutils would use kernel headers if it
> doesnt need it.

<sys/sysctl.h> includes <linux/sysctl.h>. That is what I meant by "do
something in <sys/sysctl.h>."

H.J.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

Recent binutils releases and linux kernel 2.5.69+

Post by Christoph Hellwi » Sat, 31 May 2003 10:50:13



> > > > This is a kernel issue and should be fixed in kernel unless we want
> > > > to do something in <sys/sysctl.h>.

> > > You should not include kernel headers from userspace.

> > Old story I know but I dont think binutils would use kernel headers if it
> > doesnt need it.

> <sys/sysctl.h> includes <linux/sysctl.h>. That is what I meant by "do
> something in <sys/sysctl.h>."

I know. and <linux/sysctl.h> is a kernel header libc shouldn't include.
So you want to do something to <sys/sysctl.h>, namely get rid of it's
depency on kernel headers.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

Recent binutils releases and linux kernel 2.5.69+

Post by cartm » Sat, 31 May 2003 11:50:11



Quote:> I know. and <linux/sysctl.h> is a kernel header libc shouldn't include.
> So you want to do something to <sys/sysctl.h>, namely get rid of it's
> depency on kernel headers.

Wouldn't this result in glibc-kernel inconsistency in headers?

Regards,
/ismail
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

Recent binutils releases and linux kernel 2.5.69+

Post by Christoph Hellwi » Sat, 31 May 2003 11:50:11




> > I know. and <linux/sysctl.h> is a kernel header libc shouldn't include.
> > So you want to do something to <sys/sysctl.h>, namely get rid of it's
> > depency on kernel headers.
> Wouldn't this result in glibc-kernel inconsistency in headers?

How so?  If the sysctl values change you're screwed anyway.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

Recent binutils releases and linux kernel 2.5.69+

Post by cartm » Sat, 31 May 2003 12:10:07



Quote:> How so?  If the sysctl values change you're screwed anyway.

Heh that was what I mean like what if glibc header and kernel header differs a
lot. Its bringing more harm than goodness but including linux/sysctl.h in
sys/sysctl.h makes two header synchronised.

Wondering what glibc guys think to solve this ? Ulrich Drepper or some other
glibc hacker make a comment please?

Regards,
/ismail
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. 2.5.69 - Nothing gets installed in /lib/modules/2.5.69/kernel

Hello,

I downloaded linux kernel 2.5.68 tarball, move 2.5.68 to 2.5.69,
patched it with patch-2.5.69 and then the latest cset. And after a
little struggle, got module-init-tools also installed. The "make
install" runs smoothly but no modules are installed under
/lib/modules/2.5.69/kernel.

I checked if modules are getting built. So I checked under fs/smbfs to
see if there were any .o files as I had selected smbfs to be built as
a module. But no .o files there.

Any indicators as to be what could be the problem?

I am running all this on Mandrake 9.1.

TIA,

Siddhartha

2. fftv 0.6.1 released

3. OSDL DBT-2 AS vs. Deadline 2.5.69-mm3 2.5.69-mm2

4. APPC/SNA socket implementation

5. USB mouse freezes under X - 2.5.69 and 2.5.69-mm*

6. Hostname

7. [2.5.69] kexec for 2.5.69 available

8. Need a decent encryption program, does this exist?

9. Problems with IDE CF in 2.5.69, 2.5.69-bk13

10. 2.5.69 - vsyscall DSO implementation require as/binutils >= 2.12

11. Kernel oops on boot with 2.5.69-mm{5,6}

12. New: [2.5.69-bk14] Unable to handle kernel null pointer

13. 12 potential leaks in kernel 2.5.69