[lkml]   [2003]   [May]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [patch] cache flush bug in mm/filemap.c (all kernels >= 2.5.30(at least))

    On Tue, 27 May 2003, David S. Miller wrote:

    > The point I don't like about update_mmu_cache() is that it's called
    > _after_ set_pte(). Practically it's maybe not a problem right now, but
    > the cache synchronization should happen before set_pte().
    > update_mmu_cache() is specifically supposed to always occur before
    > anyone could try to use the mapping created.
    > If this is ever violated, it will be fixed because it is a BUG().

    set_pte() establishes the mapping, this means another cpu can get the pte
    and start reading the data e.g. into the instruction cache, but if that
    cpu still has dirty data in the data cache (e.g. a write() or a disk
    read), the following update_mmu_cache() might be too late.

    bye, Roman

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

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