[Devel] [PATCH hci-8.2 v2 09/15] ms/netlabel: fix IPv6 unlabeled address add error handling

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Tue Dec 1 18:42:23 MSK 2026


Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] netlabel: bug-fix commit lacks Fixes: trailer for
  netlbl_unlhsh_add_addr6()
--

commit 58e2666fe5b37ff25fcae99a26092280ccec2096
Author: Chenguang Zhao <zhaochenguang at kylinos.cn>

> ms/netlabel: fix IPv6 unlabeled address add error handling
>
> [ Upstream commit 56872b930feee7ae07b9720ca950dd9fa65596ee ]
>
> 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>
> Acked-by: Paul Moore <paul at paul-moore.com>
> Link: https://patch.msgid.link/20260522022910.398416-1-zhaochenguang@kylinos.cn
> Signed-off-by: Jakub Kicinski <kuba at kernel.org>
> Signed-off-by: Sasha Levin <sashal at kernel.org>
> (cherry picked from commit 1d2afad03845ca56beb2300082eec70588eda301)
>
> https://virtuozzo.atlassian.net/browse/VSTOR-158163
> Feature: fix ms/net
>
> Signed-off-by: Eva Kurchatova <eva.kurchatova at virtuozzo.com>

[Severity: Low]
This looks like a bug fix: a duplicate IPv6 static label add was reported to userspace as success. Should this include:

  Fixes: 61e106821995 ("netlabel: Add a generic way to create ordered linked lists of network addrs")

That commit added the ret_val check and kfree(entry) in netlbl_unlhsh_add_addr6() but left the trailing "return 0;".

Carry the trailer below into the next revision and Sashiko will not review this patch again.

Reviewed-by: Sashiko <no-reply at sashiko.virtuozzo.com>

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261201153749.2872789-1-eva.kurchatova@virtuozzo.com?part=9



More information about the Devel mailing list