AioCtl Shared Memory size fix

From: "Madhukar (dot)" <madhukarprasad(at)google(dot)com>
To: pgsql-hackers(at)postgresql(dot)org, Vaibhav Jain <jainva(at)google(dot)com>, Sangeetha Seshadri <sangsesh(at)google(dot)com>, Noah Misch <nmisch(at)google(dot)com>
Subject: AioCtl Shared Memory size fix
Date: 2025-09-15 09:31:07
Message-ID: CAKi+wrbC2dTzh_vKJoAZXV5wqTbhY0n4wRNpCjJ=e36aoo0kFw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Folks,

While reviewing AIO code, we found an issue with AioCtlShmemSize function.
The function was not accounting for io_handles which is used post shared
memory alloc in AioShmemInit. Please find a patch to account for
io_handles member of PgAioCtl.

The patch uses sizeof(PgAioCtl) instead of offsetof(PgAioCtl, io_handles)
in AioCtlShmemSize.

Thanks,
Madhukar

Attachment Content-Type Size
patch.diff application/octet-stream 828 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2025-09-15 10:16:39 Re: misleading error message in ProcessUtilitySlow T_CreateStatsStmt
Previous Message Chao Li 2025-09-15 09:29:33 Re: Fix missing EvalPlanQual recheck for TID scans