Hi Jun, (I'm a bit confused about which version of this series I should be looking at. I have a v4, and two v4-resends, all of which are different. Please only mark something as 'resend' if it is exactly the same!)
On 22/08/18 10:54, Jun Yao wrote: > The set_init_mm_pgd() is reimplemented using assembly in order to > avoid being instrumented by kasan. There are some tidier ways of fixing this. The kasan init code is also C code that is run before kasan is initialized. Kbuild is told not to let KASAN touch it with 'KASAN_SANITISE_filename.o := n'. But, in this case you're only calling into C code from pre-kasan head.S so you can use the same helper to set init_mm.pgd. I don't think this is worth the effort, we can just do the store in assembly. (more in patch 3). Thanks, James