agora inbox for pgsql-committers@postgresql.orghelp / color / mirror / Atom feed
pgsql: Zero-fill private_data when attaching an injection point 3+ messages / 1 participants [nested] [flat]
* pgsql: Zero-fill private_data when attaching an injection point @ 2026-04-10 02:17 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 3+ messages in thread From: Michael Paquier @ 2026-04-10 02:17 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Zero-fill private_data when attaching an injection point InjectionPointAttach() did not initialize the private_data buffer of the shared memory entry before (perhaps partially) overwriting it. When the private data is set to NULL by the caler, the buffer was left uninitialized. If set, it could have stale contents. The buffer is initialized to zero, so as the contents recorded when a point is attached are deterministic. Author: Sami Imseih <samimseih@gmail.com> Discussion: https://postgr.es/m/CAA5RZ0tsGHu2h6YLnVu4HiK05q+gTE_9WVUAqihW2LSscAYS-g@mail.gmail.com Backpatch-through: 17 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/5b5bf51e435304b2043db46b65455747de2af1f5 Modified Files -------------- src/backend/utils/misc/injection_point.c | 1 + 1 file changed, 1 insertion(+) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Zero-fill private_data when attaching an injection point @ 2026-04-10 02:17 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 3+ messages in thread From: Michael Paquier @ 2026-04-10 02:17 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Zero-fill private_data when attaching an injection point InjectionPointAttach() did not initialize the private_data buffer of the shared memory entry before (perhaps partially) overwriting it. When the private data is set to NULL by the caler, the buffer was left uninitialized. If set, it could have stale contents. The buffer is initialized to zero, so as the contents recorded when a point is attached are deterministic. Author: Sami Imseih <samimseih@gmail.com> Discussion: https://postgr.es/m/CAA5RZ0tsGHu2h6YLnVu4HiK05q+gTE_9WVUAqihW2LSscAYS-g@mail.gmail.com Backpatch-through: 17 Branch ------ REL_17_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/492c386b4df465df8ebb9347e1579ad1b96bf41a Modified Files -------------- src/backend/utils/misc/injection_point.c | 1 + 1 file changed, 1 insertion(+) ^ permalink raw reply [nested|flat] 3+ messages in thread
* pgsql: Zero-fill private_data when attaching an injection point @ 2026-04-10 02:17 Michael Paquier <michael@paquier.xyz> 0 siblings, 0 replies; 3+ messages in thread From: Michael Paquier @ 2026-04-10 02:17 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Zero-fill private_data when attaching an injection point InjectionPointAttach() did not initialize the private_data buffer of the shared memory entry before (perhaps partially) overwriting it. When the private data is set to NULL by the caler, the buffer was left uninitialized. If set, it could have stale contents. The buffer is initialized to zero, so as the contents recorded when a point is attached are deterministic. Author: Sami Imseih <samimseih@gmail.com> Discussion: https://postgr.es/m/CAA5RZ0tsGHu2h6YLnVu4HiK05q+gTE_9WVUAqihW2LSscAYS-g@mail.gmail.com Backpatch-through: 17 Branch ------ REL_18_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/35f41b29ff1dedf172552adb1a7fab124518eadc Modified Files -------------- src/backend/utils/misc/injection_point.c | 1 + 1 file changed, 1 insertion(+) ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2026-04-10 02:17 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2026-04-10 02:17 pgsql: Zero-fill private_data when attaching an injection point Michael Paquier <michael@paquier.xyz> 2026-04-10 02:17 pgsql: Zero-fill private_data when attaching an injection point Michael Paquier <michael@paquier.xyz> 2026-04-10 02:17 pgsql: Zero-fill private_data when attaching an injection point Michael Paquier <michael@paquier.xyz>
This inbox is served by agora; see mirroring instructions for how to clone and mirror all data and code used for this inbox