Re: [PATCH v2] kcsan: Fix encoding masks and regain address bit

2020-11-06 Thread Boqun Feng
On Fri, Nov 06, 2020 at 10:34:56AM +0100, Marco Elver wrote: > The watchpoint encoding masks for size and address were off-by-one bit > each, with the size mask using 1 unnecessary bit and the address mask > missing 1 bit. However, due to the way the size is shifted into the > encoded watchpoint,

[PATCH v2] kcsan: Fix encoding masks and regain address bit

2020-11-06 Thread Marco Elver
The watchpoint encoding masks for size and address were off-by-one bit each, with the size mask using 1 unnecessary bit and the address mask missing 1 bit. However, due to the way the size is shifted into the encoded watchpoint, we were effectively wasting and never using the extra bit. For