1. 03 3月, 2019 1 次提交
  2. 26 2月, 2019 1 次提交
  3. 21 2月, 2019 11 次提交
  4. 14 2月, 2019 1 次提交
    • C
      SUNRPC: Remove rpc_xprt::tsh_size · 067fb11b
      Chuck Lever 提交于
      tsh_size was added to accommodate transports that send a pre-amble
      before each RPC message. However, this assumes the pre-amble is
      fixed in size, which isn't true for some transports. That makes
      tsh_size not very generic.
      
      Also I'd like to make the estimation of RPC send and receive
      buffer sizes more precise. tsh_size doesn't currently appear to be
      accounted for at all by call_allocate.
      
      Therefore let's just remove the tsh_size concept, and make the only
      transports that have a non-zero tsh_size employ a direct approach.
      Signed-off-by: NChuck Lever <chuck.lever@oracle.com>
      Signed-off-by: NAnna Schumaker <Anna.Schumaker@Netapp.com>
      067fb11b
  5. 09 1月, 2019 1 次提交
  6. 03 1月, 2019 1 次提交
  7. 28 12月, 2018 1 次提交
  8. 20 12月, 2018 1 次提交
  9. 19 12月, 2018 2 次提交
  10. 05 12月, 2018 6 次提交
  11. 02 11月, 2018 1 次提交
  12. 19 10月, 2018 1 次提交
    • J
      sunrpc: safely reallow resvport min/max inversion · 826799e6
      J. Bruce Fields 提交于
      Commits ffb6ca33 and e08ea3a9 prevent setting xprt_min_resvport
      greater than xprt_max_resvport, but may also break simple code that sets
      one parameter then the other, if the new range does not overlap the old.
      
      Also it looks racy to me, unless there's some serialization I'm not
      seeing.  Granted it would probably require malicious privileged processes
      (unless there's a chance these might eventually be settable in unprivileged
      containers), but still it seems better not to let userspace panic the
      kernel.
      
      Simpler seems to be to allow setting the parameters to whatever you want
      but interpret xprt_min_resvport > xprt_max_resvport as the empty range.
      
      Fixes: ffb6ca33 "sunrpc: Prevent resvport min/max inversion..."
      Fixes: e08ea3a9 "sunrpc: Prevent rexvport min/max inversion..."
      Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
      Signed-off-by: NTrond Myklebust <trond.myklebust@hammerspace.com>
      826799e6
  13. 03 10月, 2018 2 次提交
  14. 01 10月, 2018 10 次提交