Skip to content

Commit

Permalink
kmsan: don't unpoison memory in do_read_cache_page()
Browse files Browse the repository at this point in the history
Looks like returning initialized values from READ_ONCE_NOCHECK
supersedes it.
  • Loading branch information
ramosian-glider committed Oct 30, 2019
1 parent 4f02cb4 commit 6f88939
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mm/filemap.c
Expand Up @@ -2812,8 +2812,6 @@ static struct page *do_read_cache_page(struct address_space *mapping,
page = wait_on_page_read(page);
if (IS_ERR(page))
return page;
/* Assume all pages in page cache are initialized. */
kmsan_unpoison_shadow(page_address(page), PAGE_SIZE);
goto out;
}
if (PageUptodate(page))
Expand Down

0 comments on commit 6f88939

Please sign in to comment.