SVNews r329215

NOTE: This service is experimental and subject to change! Use at your own risk!

2018-02-13 15:36:28 - r329215 by kib (Konstantin Belousov)

Complete list of files affected by revision r329215:

(Note: At the moment, these links point to ViewVC on They are probably slow. Do not overuse.)

  History   Contents   Diff   MODIFY   /head/sys/vm/vm_reserv.c  

Commit message:

Do not leak rv->psind in some specific situations.

Suppose that we have an object with a mapped superpage, and that all
pages in the superpages are held (by some driver). Additionally,
suppose that the object is terminated, e.g. because the only process
mapping it is exiting. Then the reservation is broken, but the pages
cannot be freed until later, when they are unheld. In this situation,
the reservation code cannot clean psind, since no pages are freed, and
the page is freed and then reused with invalid psind.

Clean psind on vm_reserv_break() to avoid the situation.

Reported and tested by: Slava Shwartsman
Reviewed by: markj
Sponsored by: Mellanox Technologies
MFC after: 1 week
Differential revision:


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 13 ms, 1 file printed. Current time is 2018-05-23 04:59:04. All times are in UTC/GMT.