Re: [PATCH] fpga: dfl: afu: prevent read-only region mappings from becoming writable

From: bo cao

Date: Sun Nov 08 2026 - 22:04:23 EST


Please consider this patch withdrawn: Abdifatah Suruur's patch
already covers it, and his v2 was posted to linux-fpga on Oct 23,
six days before my posting.

To be clear about where this came from: it is not taken from
Suruur's patch. I run an AI-agent-assisted audit of mmap/mprotect
permission handling, and it independently flagged afu_mmap() as
leaving VM_MAYWRITE set on regions without DFL_PORT_REGION_WRITE,
and drafted the fix. Two fixes of the same one-line issue, citing
the same precedent commits of this pattern, necessarily read alike
-- but I understand that from your side the result is
indistinguishable from a copy, and the concern is legitimate.

The pre-send duplicate check in my tooling queries lore.kernel.org,
which is behind an anti-bot challenge, so it returned nothing and
the overlap with Suruur's live thread slipped through. I should
not have relied on it alone. I'm sorry for the noise.

Going forward I will manually search the list archive (marc.info,
openwall mirrors) before sending anything, and I will write the
changelog and comments by hand, so that what reaches you reflects
my own understanding of the change. Where my audit finds an issue
that an existing thread already covers, I will comment on that
thread instead of sending a duplicate.

Apologies,
Bo Cao