1. 10 8月, 2021 4 次提交
  2. 30 6月, 2021 1 次提交
  3. 14 4月, 2021 2 次提交
    • C
      SUNRPC: Remove trace_xprt_transmit_queued · 6cf23783
      Chuck Lever 提交于
      This tracepoint can crash when dereferencing snd_task because
      when some transports connect, they put a cookie in that field
      instead of a pointer to an rpc_task.
      
      BUG: KASAN: use-after-free in trace_event_raw_event_xprt_writelock_event+0x141/0x18e [sunrpc]
      Read of size 2 at addr ffff8881a83bd3a0 by task git/331872
      
      CPU: 11 PID: 331872 Comm: git Tainted: G S                5.12.0-rc2-00007-g3ab6e585a7f9 #1453
      Hardware name: Supermicro SYS-6028R-T/X10DRi, BIOS 1.1a 10/16/2015
      Call Trace:
       dump_stack+0x9c/0xcf
       print_address_description.constprop.0+0x18/0x239
       kasan_report+0x174/0x1b0
       trace_event_raw_event_xprt_writelock_event+0x141/0x18e [sunrpc]
       xprt_prepare_transmit+0x8e/0xc1 [sunrpc]
       call_transmit+0x4d/0xc6 [sunrpc]
      
      Fixes: 9ce07ae5 ("SUNRPC: Replace dprintk() call site in xprt_prepare_transmit")
      Signed-off-by: NChuck Lever <chuck.lever@oracle.com>
      Signed-off-by: NTrond Myklebust <trond.myklebust@hammerspace.com>
      6cf23783
    • C
      SUNRPC: Add tracepoint that fires when an RPC is retransmitted · e936a597
      Chuck Lever 提交于
      A separate tracepoint can be left enabled all the time to capture
      rare but important retransmission events. So for example:
      
      kworker/u26:3-568   [009]   156.967933: xprt_retransmit:      task:44093@5 xid=0xa25dbc79 nfsv3 WRITE ntrans=2
      
      Or, for example, enable all nfs and nfs4 tracepoints, and set up a
      trigger to disable tracing when xprt_retransmit fires to capture
      everything that leads up to it.
      Signed-off-by: NChuck Lever <chuck.lever@oracle.com>
      Signed-off-by: NTrond Myklebust <trond.myklebust@hammerspace.com>
      e936a597
  4. 23 3月, 2021 1 次提交
  5. 25 1月, 2021 1 次提交
  6. 13 1月, 2021 1 次提交
    • C
      SUNRPC: Move the svc_xdr_recvfrom tracepoint again · 5f39d271
      Chuck Lever 提交于
      Commit 156708ad ("SUNRPC: Move the svc_xdr_recvfrom()
      tracepoint") tried to capture the correct XID in the trace record,
      but this line in svc_recv:
      
      	rqstp->rq_xid = svc_getu32(&rqstp->rq_arg.head[0]);
      
      alters the size of rq_arg.head[0].iov_len. The tracepoint records
      the correct XID but an incorrect value for the length of the
      xdr_buf's head.
      
      To keep the trace callsites simple, I've created two trace classes.
      One assumes the xdr_buf contains a full RPC message, and the XID
      can be extracted from it. The other assumes the contents of the
      xdr_buf are arbitrary, and the xid will be provided by the caller.
      
      Currently there is only one user of each class, but I expect we will
      need a few more tracepoints using each class as time goes on.
      Signed-off-by: NChuck Lever <chuck.lever@oracle.com>
      5f39d271
  7. 01 12月, 2020 1 次提交
  8. 13 11月, 2020 1 次提交
  9. 06 11月, 2020 1 次提交
  10. 21 9月, 2020 14 次提交
  11. 27 7月, 2020 1 次提交
  12. 12 6月, 2020 7 次提交
  13. 21 5月, 2020 5 次提交