Re: [PATCH][v2] x86/process: Return early if TIF_IO_BITMAP is set but no IO bitmap is assigned

From: Sohil Mehta

Date: Fri Jun 12 2026 - 10:34:44 EST


On 6/11/2026 10:49 PM, lirongqing wrote:
> From: Li RongQing <lirongqing@xxxxxxxxx>
>
> Outside the IOPL emulation path, the IO bitmap is always expected
> to be allocated when TIF_IO_BITMAP is set. The paranoid WARN_ON_ONCE()
> handles the case where the flag and the pointer got out of sync.
> In this rare scenario, return early instead of continuing and
> dereferencing a NULL pointer.
>
> [Sohil Mehta: rephrased commit message]
>

Never add handler comments for others. Such comments are only expected
to be added when someone who is handling your patch modifies it but
keeps the original authorship. You shouldn't add handler comments when
you are changing the patch as an author yourself.

> Reviewed-by: Sohil Mehta <sohil.mehta@xxxxxxxxx>
> Signed-off-by: Li RongQing <lirongqing@xxxxxxxxx>
> ---