On Mon, Jun 21, 2021 at 03:39:45PM +0000, Qing Zhao wrote: > So, if “pattern value” is “0xFFFFFFFFFFFFFFFF”, then it’s a valid canonical > virtual memory address. However, for most OS, “0xFFFFFFFFFFFFFFFF” should be > not in user space. > > My question is, is “0xFFFFFFFFFFFFFFFFF” good for pointer? Or > “0xAAAAAAAAAAAAAAAA” better?
I think 0xFF repeating is fine for this version. Everything else is a "nice to have" for the pattern-init, IMO. :) -- Kees Cook