From: Jason Gunthorpe <jgg@ziepe.ca>
To: Chuck Lever <chuck.lever@oracle.com>
Cc: Leon Romanovsky <leon@kernel.org>,
Linux NFS Mailing List <linux-nfs@vger.kernel.org>,
linux-rdma@vger.kernel.org
Subject: Re: [PATCH v1 3/3] svcrdma: Fix leak of svc_rdma_recv_ctxt objects
Date: Thu, 9 Apr 2020 14:47:50 -0300 [thread overview]
Message-ID: <20200409174750.GK11886@ziepe.ca> (raw)
In-Reply-To: <D3CFDCAA-589C-4B3F-B769-099BF775D098@oracle.com>
On Thu, Apr 09, 2020 at 10:33:32AM -0400, Chuck Lever wrote:
> Hi Leon-
>
> > On Apr 8, 2020, at 2:02 AM, Leon Romanovsky <leon@kernel.org> wrote:
> >
> > On Tue, Apr 07, 2020 at 03:11:06PM -0400, Chuck Lever wrote:
> >> Utilize the xpo_release_rqst transport method to ensure that each
> >> rqstp's svc_rdma_recv_ctxt object is released even when the server
> >> cannot return a Reply for that rqstp.
> >>
> >> Without this fix, each RPC whose Reply cannot be sent leaks one
> >> svc_rdma_recv_ctxt. This is a 2.5KB structure, a 4KB DMA-mapped
> >> Receive buffer, and any pages that might be part of the Reply
> >> message.
> >>
> >> The leak is infrequent unless the network fabric is unreliable or
> >> Kerberos is in use, as GSS sequence window overruns, which result
> >> in connection loss, are more common on fast transports.
> >>
> >> Fixes: 3a88092ee319 ("svcrdma: Preserve Receive buffer until ... ")
> >
> > Chuck,
> >
> > Can you please don't mangle the Fixes line?
>
> I've read e-mail from others that advocate this form of mangling
> instead of using commit message lines that are too long.
Really?
At least I won't accept Fixes lines that are not in the cannonical
format, I routinely fix these things in all sorts of ways, but I've
never seen someone shorten it with ...
> > A lot of automatization is relying on the fact that this line is canonical,
> > both in format and in the actual content.
>
> Understood, but checkpatch.pl does not complain about it. Perhaps,
> therefore, it is the automation that is not correct.
checkpatch.pl doesn't check Fixes lines for correctness, because it
doesn't have access to the git or something. This was talked about
too.. Stephen likes to check them as part of linux-next though.
However, checkpatch.pl does not complain for long lines on Fixes:
tags demanding they be shortened
> The commit ID is what automation should key off of. The short
> description is only for human consumption.
Right, so if the actual commit message isn't included so humans can
read it then what was the point of including anything?
Jason
next prev parent reply other threads:[~2020-04-09 17:47 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-07 19:10 [PATCH v1 0/3] NFS/RDMA server fixes for 5.7-rc Chuck Lever
2020-04-07 19:10 ` [PATCH v1 1/3] svcrdma: Fix trace point use-after-free race Chuck Lever
2020-04-07 19:11 ` [PATCH v1 2/3] SUNRPC: Remove naked ->xpo_release_rqst from svc_send() Chuck Lever
2020-04-07 19:11 ` [PATCH v1 3/3] svcrdma: Fix leak of svc_rdma_recv_ctxt objects Chuck Lever
2020-04-08 6:02 ` Leon Romanovsky
2020-04-09 14:33 ` Chuck Lever
2020-04-09 17:47 ` Jason Gunthorpe [this message]
2020-04-09 17:59 ` Chuck Lever
2020-04-13 19:29 ` J. Bruce Fields
2020-04-14 12:19 ` Jason Gunthorpe
2020-04-14 15:13 ` J. Bruce Fields
2020-04-14 15:20 ` Jason Gunthorpe
2020-04-14 16:17 ` J. Bruce Fields
2020-04-14 18:11 ` Leon Romanovsky
2020-04-14 18:15 ` Jason Gunthorpe
2020-04-16 19:05 ` Jason Gunthorpe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200409174750.GK11886@ziepe.ca \
--to=jgg@ziepe.ca \
--cc=chuck.lever@oracle.com \
--cc=leon@kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).