git: kernel - Vet b_cmd in swap_pager_strategy().
Matthew Dillon
dillon at crater.dragonflybsd.org
Wed Feb 14 11:55:09 PST 2018
commit 00639b5df9c853cf6136257b6c6db6739c3ba189
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Wed Feb 14 11:53:40 2018 -0800
kernel - Vet b_cmd in swap_pager_strategy().
* swap_pager_strategy() needs to properly vet b_cmd. This doesn't fix
any bugs per-say, but is needed for robustness to ensure that the code
does not accidently corrupt the swapcache in a later evolution.
Summary of changes:
sys/kern/vfs_bio.c | 2 ++
sys/vm/swap_pager.c | 44 +++++++++++++++++++++++++++++++++-----------
2 files changed, 35 insertions(+), 11 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/00639b5df9c853cf6136257b6c6db6739c3ba189
--
DragonFly BSD source repository
More information about the Commits
mailing list