Skip to content
  • Ralf Baechle's avatar
    [MIPS] Fix aliasing bug in copy_user_highpage, take 2. · 985c30ef
    Ralf Baechle authored
    Turns out b868868a
    
      wasn't quite right.
    When called for a page that isn't marked dirty it would artificially
    create an alias instead of doing the obvious thing and access the page
    via KSEG0.
    
    The same issue also exists in copy_to_user_page and copy_from_user_page
    which was causing the machine to die under rare circumstances for example
    when running ps if the BUG_ON() assertion added by the earlier fix was
    getting triggered.
    
    Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
    985c30ef