atomic copy_from_user?

From: Albert Cahalan (albert_at_users.sf.net)
Date: 12/22/03

  • Next message: Albert Chin-A-Young: "PROBLEM: <i386 2.4.22 OOPS running Mozilla>"
    To: linux-kernel mailing list <linux-kernel@vger.kernel.org>
    Date:	21 Dec 2003 19:48:20 -0500
    
    

    Surely I'm not the only one wanting such a beast...?

    >From some naughty place in the code where might_sleep
    would trigger, I'd like to read from user memory.
    I'll pretty much assume that mlockall() has been
    called. Suppose that "current" is correct as well.
    I'd just use a pointer directly, except that:

    a. it isn't OK for the 4g/4g feature, s390, or sparc64
    b. it causes the "sparse" type checker to complain
    c. it will oops or worse if the user screwed up

    If the page is swapped out, I want a failed copy.

    -
    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: Albert Chin-A-Young: "PROBLEM: <i386 2.4.22 OOPS running Mozilla>"

    Relevant Pages

    • Re: atomic copy_from_user?
      ... > From some naughty place in the code where might_sleep ... > would trigger, I'd like to read from user memory. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: atomic copy_from_user?
      ... >> would trigger, I'd like to read from user memory. ... >> I'll pretty much assume that mlockall() has been ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: atomic copy_from_user?
      ... > Surely I'm not the only one wanting such a beast...? ... I sure as hell hope you are. ... I'd like to read from user memory. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Where did the ELF spec go? (SCO website?)
      ... >> user memory? ... > You have it backward. ... The SVR4/i386 ELF ABI specification is requiring ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [Lhms-devel] Re: [PATCH 1/9] add defrag flags
      ... > I presume you will be back up to 21 bits, ... something that is not user memory. ... If there is a consensus from multiple people for me to go rename the flag ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)