Skip to content
Commit 8aad5ca9 authored by Chuck Lever's avatar Chuck Lever Committed by Phil Elwell
Browse files

SUNRPC: Fix loop termination condition in gss_free_in_token_pages()

commit 4a77c3de upstream.

The in_token->pages[] array is not NULL terminated. This results in
the following KASAN splat:

  KASAN: maybe wild-memory-access in range [0x04a2013400000008-0x04a201340000000f]

Fixes: bafa6b4d

 ("SUNRPC: Fix gss_free_in_token_pages()")
Reviewed-by: default avatarBenjamin Coddington <bcodding@redhat.com>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a57b1a2b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment