https://github.com/google/kmsan
Revision fe0c7259dc74e56536d6cc3f3761a73693d2e287 authored by Alexander Potapenko on 12 December 2019, 15:44:59 UTC, committed by Alexander Potapenko on 24 September 2021, 14:36:22 UTC
Insert KMSAN hooks that make the necessary bookkeeping changes:
 - poison page shadow and origins in alloc_pages()/free_page();
 - clear page shadow and origins in clear_page(), copy_user_highpage();
 - copy page metadata in copy_highpage(), wp_page_copy();
 - handle vmap()/vunmap()/iounmap();

Signed-off-by: Alexander Potapenko <glider@google.com>
Link: https://linux-review.googlesource.com/id/I08e2eed033c47fc754155fe8b2e8cbfd24577075

---

This patch was previously called "kmsan: call KMSAN hooks where needed"

v2:
 - dropped call to kmsan_handle_vprintk, updated comment in printk.c

v3:
 - put KMSAN_INIT_VALUE on a separate line in vprintk_store()
 - dropped call to kmsan_handle_i2c_transfer()
 - minor style fixes

v4:
 - split mm-unrelated bits to other patches as requested by Andrey
   Konovalov
 - dropped changes to mm/compaction.c
 - use kmsan_unpoison_shadow in page_64.h and highmem.h

v6:
 - switch to eager metadata allocation
 - switch to new KMSAN memory mapping/unmapping API that matches mm/vmalloc.c
 - use new poisoning API names
 - revert mm/ioremap.c
1 parent edaab30
History
Tip revision: fe0c7259dc74e56536d6cc3f3761a73693d2e287 authored by Alexander Potapenko on 12 December 2019, 15:44:59 UTC
kmsan: mm: maintain KMSAN metadata for page operations
Tip revision: fe0c725
File Mode Size
Documentation
LICENSES
arch
block
certs
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.clang-format -rw-r--r-- 16.6 KB
.cocciconfig -rw-r--r-- 59 bytes
.config.example -rw-r--r-- 148.6 KB
.config.extended -rw-r--r-- 133.2 KB
.get_maintainer.ignore -rw-r--r-- 71 bytes
.gitattributes -rw-r--r-- 62 bytes
.gitignore -rw-r--r-- 1.9 KB
.mailmap -rw-r--r-- 19.8 KB
COPYING -rw-r--r-- 496 bytes
CREDITS -rw-r--r-- 98.6 KB
Kbuild -rw-r--r-- 1.3 KB
Kconfig -rw-r--r-- 555 bytes
MAINTAINERS -rw-r--r-- 605.7 KB
Makefile -rw-r--r-- 64.1 KB
README -rw-r--r-- 727 bytes
README.md -rw-r--r-- 1.9 KB
SECURITY.md -rw-r--r-- 283 bytes

README.md

back to top