Re: 2.6.2-rc2-mm2

From: Arjan van de Ven (arjanv_at_redhat.com)
Date: 01/30/04

  • Next message: Adrian Bunk: "[2.4 patch] fix a agpgart_be.c compile warning"
    Date:	Fri, 30 Jan 2004 20:55:15 +0100
    To: Andrew Morton <akpm@osdl.org>
    
    
    

    On Fri, Jan 30, 2004 at 11:47:01AM -0800, Andrew Morton wrote:
    > Arjan van de Ven <arjanv@redhat.com> wrote:
    > >
    > >
    > > directly calling sys_ANYTHING sounds really wrong to me...
    > >
    >
    > It's a philosophical thing. Is a kernel thread like a user process which
    > happens to be running from the kernel or it is a piece of mainline kernel
    > code which happens to have its own execution context? I rather favour the
    > latter...
    >
    > In this case it looks like it will just happen to work, because
    > nfsd_setuser() is executed by nfsd, and kernel threads are allowed to do
    > copy_from_user() with the source in kernel memory. ick.

    I didn't imply illegal, just ick ;)

    
    

    -
    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/



  • Next message: Adrian Bunk: "[2.4 patch] fix a agpgart_be.c compile warning"

    Relevant Pages

    • Re: [PATCH] nfs lockd reclaimer: Convert to kthread API
      ... signals in kernel threads that used them without proposing any ... would it be appropriate to convert the user process to use ... This recovery job is currently the done by a kernel thread. ... become an issue until we start allowing unprivileged nfs mounts. ...
      (Linux-Kernel)
    • Re: tasklets vs. workqueues
      ... On Wed, 25 Feb 2004, George Anzinger wrote: ... Except that setscheduler is static in kernel/sched.c so one ... to create a SCHED_FIFO kernel thread from a module. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • (2.4 question) open_namei hangs
      ... I am trying to read the contents of a file from a kernel thread, ... int my_callback(void * buf, const char * name, int namlen, loff_t ... // Main daemon thread ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: x86-64 bad pmds in 2.6.11.6 II
      ... > I must confess, with all due respect to Andi, that I don't understand his ... the case of an kernel thread with lazy mm doing some memory access ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Delay in a tasklet.
      ... If the hardware can tolerate longer a longer or variable delays, ... processing around a kernel thread. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)