Commit 201cb20
committed
NFSD: Insulate nfsd4_encode_readlink() 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 26ea816 commit 201cb20
1 file changed
Lines changed: 10 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4450 | 4450 | | |
4451 | 4451 | | |
4452 | 4452 | | |
4453 | | - | |
| 4453 | + | |
4454 | 4454 | | |
4455 | | - | |
| 4455 | + | |
4456 | 4456 | | |
4457 | 4457 | | |
4458 | | - | |
4459 | | - | |
| 4458 | + | |
| 4459 | + | |
| 4460 | + | |
4460 | 4461 | | |
4461 | | - | |
4462 | 4462 | | |
| 4463 | + | |
| 4464 | + | |
4463 | 4465 | | |
4464 | 4466 | | |
4465 | 4467 | | |
4466 | | - | |
4467 | | - | |
4468 | | - | |
4469 | | - | |
4470 | | - | |
4471 | | - | |
4472 | 4468 | | |
4473 | 4469 | | |
4474 | 4470 | | |
| |||
4481 | 4477 | | |
4482 | 4478 | | |
4483 | 4479 | | |
4484 | | - | |
| 4480 | + | |
| 4481 | + | |
| 4482 | + | |
4485 | 4483 | | |
4486 | 4484 | | |
4487 | 4485 | | |
| |||
0 commit comments