On Fri, Jun 13, 2025 at 07:15:56PM +0000, marc.herbert@xxxxxxxxxxxxxxx wrote: > gcc -O0: Segmentation fault (core dumped) > gcc -O1: ptr is zero > gcc -O2: ptr is NOT zero!!! > gcc -O3: ptr is NOT zero!!! > gcc -Og: ptr is zero Btw, this is testing dereferences where the kernel code is doing pointer math. No one disagrees about dereferences after a check. regards, dan carpenter