Re: [PATCH 1/1] sunrpc: Use "%*phN" to dprintk() a cookie
From: Chuck Lever
Date: Mon Jun 08 2026 - 20:35:08 EST
From: Chuck Lever <chuck.lever@xxxxxxxxxx>
On Mon, 08 Jun 2026 22:20:42 +0100, David Laight wrote:
> Simplifies the code and removes a 'not obviously bounded' strcpy().
>
> Delete the local function nlmdbg_cookie2a() that did the equivalent.
>
> There is no need to worry about cookie->len being more than
> NLM_MAXCOOKIELEN (32), the buffer holding it is only that long.
> The existing length checks must pre-date this code being added in 2.4.26.
>
> [...]
Applied to nfsd-testing, thanks!
[1/1] lockd: Use "%*phN" to dprintk() a cookie
commit: 926ef0ef7994232faab29e6b13270d5c88b058f3
--
Chuck Lever <chuck.lever@xxxxxxxxxx>