kernel - Vet b_cmd in swap_pager_strategy().
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 14 Feb 2018 19:53:40 +0000 (11:53 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 14 Feb 2018 19:53:40 +0000 (11:53 -0800)
commit00639b5df9c853cf6136257b6c6db6739c3ba189
treef7d7857d916231e765dff72db675672d7cbcabf0
parent8319957b9f679319761213e5c0e28293afd26e34
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.
sys/kern/vfs_bio.c
sys/vm/swap_pager.c