AioCtl Shared Memory size fix
Madhukar . <madhukarprasad@google.com>
From: "Madhukar ." <madhukarprasad@google.com>
To: pgsql-hackers@postgresql.org, Vaibhav Jain <jainva@google.com>, Sangeetha Seshadri <sangsesh@google.com>, Noah Misch <nmisch@google.com>
Date: 2025-09-15T09:31:07Z
Lists: pgsql-hackers
Attachments
- patch.diff (application/octet-stream) patch
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
Commits
-
Fix shared memory calculation size of PgAioCtl
- dd74e599b8f6 18.0 landed
- 158c48303e8a 19 (unreleased) landed