pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Add sentinel_ok() check to BumpCheck(). 4+ messages / 1 participants [nested] [flat]
* pgsql: Add sentinel_ok() check to BumpCheck(). @ 2026-10-16 04:59 David Rowley <drowley@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: David Rowley @ 2026-10-16 04:59 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Add sentinel_ok() check to BumpCheck(). Effectively an oversight in 29f6a959cf. The code went to the trouble of doing set_sentinel() but no code ever checked it was still set during BumpCheck(). Since bump context types are used in a handful of places, it very much makes sense to backpatch this to where bump.c was added so we can more easily discover any memory stomping bugs. Reported-by: shihao zhong <zhong950419@gmail.com> Author: David Rowley <dgrowleyml@gmail.com> Discussion: https://postgr.es/m/CAGRkXqQxTCthDEnw_10OEGLVNMUeyE4So-K29jmn9nAkxtr1ow@mail.gmail.com Backpatch-through: 17 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/3c157ad116715aba84d3fb828a91aeaad002f92a Modified Files -------------- src/backend/utils/mmgr/bump.c | 4 ++++ 1 file changed, 4 insertions(+) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Add sentinel_ok() check to BumpCheck(). @ 2026-10-16 04:59 David Rowley <drowley@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: David Rowley @ 2026-10-16 04:59 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Add sentinel_ok() check to BumpCheck(). Effectively an oversight in 29f6a959cf. The code went to the trouble of doing set_sentinel() but no code ever checked it was still set during BumpCheck(). Since bump context types are used in a handful of places, it very much makes sense to backpatch this to where bump.c was added so we can more easily discover any memory stomping bugs. Reported-by: shihao zhong <zhong950419@gmail.com> Author: David Rowley <dgrowleyml@gmail.com> Discussion: https://postgr.es/m/CAGRkXqQxTCthDEnw_10OEGLVNMUeyE4So-K29jmn9nAkxtr1ow@mail.gmail.com Backpatch-through: 17 Branch ------ REL_19_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/e391c0f983f74f7364708255df330c0d357fb4e5 Modified Files -------------- src/backend/utils/mmgr/bump.c | 4 ++++ 1 file changed, 4 insertions(+) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Add sentinel_ok() check to BumpCheck(). @ 2026-10-16 05:00 David Rowley <drowley@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: David Rowley @ 2026-10-16 05:00 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Add sentinel_ok() check to BumpCheck(). Effectively an oversight in 29f6a959cf. The code went to the trouble of doing set_sentinel() but no code ever checked it was still set during BumpCheck(). Since bump context types are used in a handful of places, it very much makes sense to backpatch this to where bump.c was added so we can more easily discover any memory stomping bugs. Reported-by: shihao zhong <zhong950419@gmail.com> Author: David Rowley <dgrowleyml@gmail.com> Discussion: https://postgr.es/m/CAGRkXqQxTCthDEnw_10OEGLVNMUeyE4So-K29jmn9nAkxtr1ow@mail.gmail.com Backpatch-through: 17 Branch ------ REL_18_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/773164824353fbb023cec7f3deb11d6b5c6c06b8 Modified Files -------------- src/backend/utils/mmgr/bump.c | 4 ++++ 1 file changed, 4 insertions(+) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Add sentinel_ok() check to BumpCheck(). @ 2026-10-16 05:01 David Rowley <drowley@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: David Rowley @ 2026-10-16 05:01 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Add sentinel_ok() check to BumpCheck(). Effectively an oversight in 29f6a959cf. The code went to the trouble of doing set_sentinel() but no code ever checked it was still set during BumpCheck(). Since bump context types are used in a handful of places, it very much makes sense to backpatch this to where bump.c was added so we can more easily discover any memory stomping bugs. Reported-by: shihao zhong <zhong950419@gmail.com> Author: David Rowley <dgrowleyml@gmail.com> Discussion: https://postgr.es/m/CAGRkXqQxTCthDEnw_10OEGLVNMUeyE4So-K29jmn9nAkxtr1ow@mail.gmail.com Backpatch-through: 17 Branch ------ REL_17_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/86848d19bdbbf0daac6ca1b92a8885179cae8db5 Modified Files -------------- src/backend/utils/mmgr/bump.c | 4 ++++ 1 file changed, 4 insertions(+) ^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2026-10-16 05:01 UTC | newest] Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2026-10-16 04:59 pgsql: Add sentinel_ok() check to BumpCheck(). David Rowley <drowley@postgresql.org> 2026-10-16 04:59 pgsql: Add sentinel_ok() check to BumpCheck(). David Rowley <drowley@postgresql.org> 2026-10-16 05:00 pgsql: Add sentinel_ok() check to BumpCheck(). David Rowley <drowley@postgresql.org> 2026-10-16 05:01 pgsql: Add sentinel_ok() check to BumpCheck(). David Rowley <drowley@postgresql.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox