[PATCH net] calipso: unlock rcu before returning -EAFNOSUPPORT
Kuniyuki Iwashima
kuni1840 at gmail.com
Wed Jun 4 15:59:42 UTC 2025
From: Eric Dumazet <edumazet at google.com>
Date: Wed, 4 Jun 2025 13:38:26 +0000
> syzbot reported that a recent patch forgot to unlock rcu
> in the error path.
>
> Adopt the convention that netlbl_conn_setattr() is already using.
>
> Fixes: 6e9f2df1c550 ("calipso: Don't call calipso functions for AF_INET sk.")
> Reported-by: syzbot <syzkaller at googlegroups.com>
> Signed-off-by: Eric Dumazet <edumazet at google.com>
> Cc: Kuniyuki Iwashima <kuniyu at amazon.com>
> Acked-by: Paul Moore <paul at paul-moore.com>
> Cc: linux-security-module at vger.kernel.org
Thanks for cathcing this!
Reviewed-by Kuniyuki Iwashima <kuni1840 at gmail.com>
More information about the Linux-security-module-archive
mailing list