[net-next] netlabel: fix IPv6 unlabeled address add error handling

Paul Moore paul at paul-moore.com
Fri May 22 03:50:12 UTC 2026


On Thu, May 21, 2026 at 10:30 PM Chenguang Zhao
<zhaochenguang at kylinos.cn> wrote:
>
> netlbl_unlhsh_add_addr6() always returned zero after
> netlbl_af6list_add(), masking failures such as duplicate
> IPv6 static label entries.
>
> Signed-off-by: Chenguang Zhao <zhaochenguang at kylinos.cn>
> ---
>  net/netlabel/netlabel_unlabeled.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Nice catch, thanks!

Acked-by: Paul Moore <paul at paul-moore.com>

-- 
paul-moore.com



More information about the Linux-security-module-archive mailing list