lkml.org 
[lkml]   [2000]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: kiobugs in 2.3.48
    Hi,

    On Thu, 2 Mar 2000 11:53:19 +0530 (IST), V Ganesh <ganesh@veritas.com>
    said:

    > we do
    > map = follow_page(ptr);
    > to convert the userspace vaddr to a struct page *. right ?

    Yes.

    > where is it converted to a kernel virtual address ?

    There is a one-to-one equivalence between kernel addresses and struct
    page *s.

    > then we do
    > map = get_page_map(map, ptr);
    > and now we pass this to get_page_map() which promptly returns 0,

    Yikes. Yes, somebody snuck a completely bogus patch into 2.3.48. The
    _only_ reason vaddr should be used in get_page_map() is to act as an
    argument to ZERO_PAGE() for architectures in which the zero page is
    cache-coloured.

    This bug is not present in the patch I sent out last week. I'll submit
    the fixes to Linus shortly.

    --Stephen

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

    \
     
     \ /
      Last update: 2005-03-22 13:56    [W:0.020 / U:150.772 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site