- Notifications
You must be signed in to change notification settings - Fork5.1k
Commit54ab748
committed
Fix reuse-after-free hazard in dead_items_reset
In similar vein to commitccc8194, a reset instance of a sharedmemory TID store happened to occupy the same private memory as the oldone for the entry point, since the chunk freed after the last roundof index vacuuming was put on the context's freelist. The failureto update the vacrel->dead_items pointer was evident by nudging thesystem to allocate memory in a different area. This was not discoveredat the time of the earlier commit since our regression tests didn'tcover multiple index passes with parallel vacuum.Backpatch to v17, when TidStore came in.Author: Kevin Oommen Anish <kevin.o@zohocorp.com>Reviewed-by: Richard Guo <guofenglinux@gmail.com>Tested-by: Richard Guo <guofenglinux@gmail.com>Discussion:https://postgr.es/m/199a07cbdfc.7a1c4aac25838.1675074408277594551%40zohocorp.comBackpatch-through: 171 parent605bfb7 commit54ab748
1 file changed
+2
-0
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3567 | 3567 |
| |
3568 | 3568 |
| |
3569 | 3569 |
| |
| 3570 | + | |
| 3571 | + | |
3570 | 3572 |
| |
3571 | 3573 |
| |
3572 | 3574 |
| |
|
0 commit comments
Comments
(0)