[lkml]   [1996]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: "Exception at ..." with 2.1.9 and 2.1.10 kernels

> Sorry, I'm still not buying that. Getname comes from linux/fs/namei.c. In
> the code, it says that it is copying from user-space to kernel-space for
> "efficiency." Exactly how is this a user problem? User code doesn't know
> about kernel space.

But the kernel knows about userspace.

> I still say something's goofy.

Goofy lusercode. For example look into sys_open, the open(2) syscall and
look what would happen if you pass bad parameters, for example a NULL
pointer: the kernel passes this pointer to getname().

Or even easier, write a program that passes a NULL pointer
to open(2)/read(2)/write(2) etc. What happens? You get one of these
nice messages.

Btw, some days ago someone posted a long and quite good article about
this topic which describes in detail how the new way to access user space


 \ /
  Last update: 2005-03-22 13:37    [W:0.132 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site