Skip to content
  • Linus Torvalds's avatar
    Merge branch 'KASAN-read_word_at_a_time' · 8e44e660
    Linus Torvalds authored
    Merge KASAN word-at-a-time fixups from Andrey Ryabinin.
    
    The word-at-a-time optimizations have caused headaches for KASAN, since
    the whole point is that we access byte streams in bigger chunks, and
    KASAN can be unhappy about the potential extra access at the end of the
    string.
    
    We used to have a horrible hack in dcache, and then people got
    complaints from the strscpy() case.  This fixes it all up properly, by
    adding an explicit helper for the "access byte stream one word at a
    time" case.
    
    * emailed patches from Andrey Ryabinin <aryabinin@virtuozzo.com>:
      fs: dcache: Revert "manually unpoison dname after allocation to shut up kasan's reports"
      fs/dcache: Use read_word_at_a_time() in dentry_string_cmp()
      lib/strscpy: Shut up KASAN false-positives in strscpy()
      compiler.h: Add read_word_at_a_time() function.
      compiler.h, kasan: Avoid duplicating __read_once_size_nocheck()
    8e44e660