]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sunrpc: fix loop in gss seqno cache
authorNikhil Jha <njha@janestreet.com>
Wed, 11 Jun 2025 19:46:39 +0000 (15:46 -0400)
committerAnna Schumaker <anna.schumaker@oracle.com>
Mon, 23 Jun 2025 15:01:15 +0000 (11:01 -0400)
commit9c19b3315cef8b62d2c037616a66b4446b966f6d
tree7def50a2b29f3cf4cc2ae33cd691259de050e5c8
parent86731a2a651e58953fc949573895f2fa6d456841
sunrpc: fix loop in gss seqno cache

There was a silly bug in the initial implementation where a loop
variable was not incremented. This commit increments the loop variable.

This bug is somewhat tricky to catch because it can only happen on loops
of two or more. If it is hit, it locks up a kernel thread in an infinite
loop.

Signed-off-by: Nikhil Jha <njha@janestreet.com>
Tested-by: Nikhil Jha <njha@janestreet.com>
Fixes: 08d6ee6d8a10 ("sunrpc: implement rfc2203 rpcsec_gss seqnum cache")
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
net/sunrpc/auth_gss/auth_gss.c