Re: Linux-2.2.15: access_ok

From: Thomas Sailer (sailer@ife.ee.ethz.ch)
Date: Fri May 19 2000 - 07:05:07 EDT

  • Next message: Keith Owens: "Re: [patch] Re: 2.3.99-pre8 oddity (please CC: me)"

    Thomas Sailer wrote:
    >
    > Can anyone give me a hint why
    > access_ok(VERIFY_WRITE, 0xbffff784, 2)
    > fails on 2.2.15/x86 ?
    >
    > CONFIG_X86_WP_WORKS_OK=y

    Found out. The length parameter was a 16bit
    quantity, which the __range_ok macro treated
    as 32bit quantity with the high half being garbage.

    Alan, how about adding an explicit cast in __range_ok
    like in 2.3.? That would make access_ok less fragile.

    Tom

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



    This archive was generated by hypermail 2b29 : Fri May 19 2000 - 07:07:00 EDT