Commit b786caa
committed
NFSD: Insulate nfsd4_encode_secinfo() from page boundaries in the encode buffer
There's no guarantee that the pointer returned from
xdr_reserve_space() will still point to the correct reserved space
in the encode buffer after one or more intervening calls to
xdr_reserve_space(). It just happens to work with the current
implementation of xdr_reserve_space().
Reviewed-by: NeilBrown <neilb@suse.de>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>1 parent 825562b commit b786caa
1 file changed
Lines changed: 10 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4643 | 4643 | | |
4644 | 4644 | | |
4645 | 4645 | | |
4646 | | - | |
| 4646 | + | |
4647 | 4647 | | |
4648 | 4648 | | |
4649 | 4649 | | |
4650 | 4650 | | |
4651 | | - | |
4652 | | - | |
| 4651 | + | |
| 4652 | + | |
4653 | 4653 | | |
4654 | 4654 | | |
4655 | 4655 | | |
| |||
4671 | 4671 | | |
4672 | 4672 | | |
4673 | 4673 | | |
4674 | | - | |
4675 | | - | |
| 4674 | + | |
| 4675 | + | |
4676 | 4676 | | |
4677 | 4677 | | |
4678 | 4678 | | |
| |||
4682 | 4682 | | |
4683 | 4683 | | |
4684 | 4684 | | |
4685 | | - | |
| 4685 | + | |
| 4686 | + | |
| 4687 | + | |
4686 | 4688 | | |
4687 | 4689 | | |
4688 | 4690 | | |
| |||
4693 | 4695 | | |
4694 | 4696 | | |
4695 | 4697 | | |
4696 | | - | |
| 4698 | + | |
4697 | 4699 | | |
4698 | 4700 | | |
4699 | 4701 | | |
| |||
4703 | 4705 | | |
4704 | 4706 | | |
4705 | 4707 | | |
4706 | | - | |
| 4708 | + | |
4707 | 4709 | | |
4708 | 4710 | | |
4709 | 4711 | | |
| |||
0 commit comments