[Devel] [PATCH hci-8.2 v2 14/15] ms/cipso: fix optlen corruption in cipso_v4_delopt()

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Tue Dec 1 18:45:27 MSK 2026


Thank you for your contribution! Sashiko AI review found 3 potential
issues to consider:
- [High] cipso: author Signed-off-by uses single-word name 'Qihang'
- [High] cipso: maintainer Signed-off-by has non-routable email address
- [Low] cipso: commit message cites two different upstream SHAs
--

commit 4341b16c3e5e02ec9bf9137ae56977c316d8fba1
Author: Qihang <q.h.hack.winter at gmail.com>

ms/cipso: fix optlen corruption in cipso_v4_delopt()

This backport computes the new option length in cipso_v4_delopt() from the intact options before the CIPSO option is moved out. Previously the length was recomputed from stale tail bytes after the move. It then subtracts the CIPSO length and fills the padding with IPOPT_END.

> ms/cipso: fix optlen corruption in cipso_v4_delopt()
>
> [ Upstream commit 1f1f8e8c5176234fa31858cd25f2e9b88aac0a45 ]
>
> cipso_v4_delopt() recomputes the option length by walking the option
> buffer after the CIPSO option has been moved out.  The walk then reads
> the stale bytes at the tail of the buffer as option data, and a crafted
> setsockopt(IP_OPTIONS) buffer can make it treat one of them as an option
> length, increasing opt->opt.optlen beyond the valid option data.
>
> [ ... ]
>
> Assisted-by: LLM
> Fixes: 014ab19a69c32 ("selinux: Set socket NetLabel based on connection endpoint")
> Cc: stable at vger.kernel.org
> Signed-off-by: Qihang <q.h.hack.winter at gmail.com>

[Severity: High]
Is "Qihang" the author's full real name? The sign-off is a single word and the address looks like a handle. The DCO needs a real, identifiable name, so please confirm it or use the full name from the upstream commit.

> Acked-by: Paul Moore <paul at paul-moore.com>
> Signed-off-by: Dave Miller <davem at davem-thinkpadp1gen8.ibmlond.csb>

[Severity: High]
Can this address be correct? The .csb domain is not routable, and the identity differs from the upstream "David S. Miller <davem at davemloft.net>". It looks like a local git identity picked up during the cherry-pick. Could the trailer be restored to the upstream identity?

> Signed-off-by: Sasha Levin <sashal at kernel.org>
> (cherry picked from commit 699141380f7f249b7ee594198d9bea6bcd4862ea)

[Severity: Low]
Which SHA is the mainline commit? The header says "Upstream commit 1f1f8e8c5176..." but the trailer says "cherry picked from commit 699141380f7f...". Both cannot name the same change, so one of them should be corrected or the difference explained.

The Fixes: SHA is also 13 characters. The usual form is the 12-character abbreviation:

  Fixes: 014ab19a69c3 ("selinux: Set socket NetLabel based on connection endpoint")

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



More information about the Devel mailing list