From: Sasha Levin <sashal@kernel.org>
To: vladimir.oltean@nxp.com, horms@kernel.org, kuba@kernel.org
Cc: Sasha Levin <sashal@kernel.org>,
stable@vger.kernel.org, Rajani Kantha <681739313@139.com>
Subject: Re: [PATCH 5.15.y] net: dsa: sja1105: fix kasan out-of-bounds warning in sja1105_table_delete_entry()
Date: Mon, 25 May 2026 11:33:04 -0400 [thread overview]
Message-ID: <20260525152512.agent5-0001@kernel.org> (raw)
In-Reply-To: <20260525031840.5358-1-681739313@139.com>
On Mon, May 25, 2026 at 11:18:40AM +0800, Rajani Kantha wrote:
> From: Vladimir Oltean <vladimir.oltean@nxp.com>
>
> [ Upstream commit 5f2b28b79d2d1946ee36ad8b3dc0066f73c90481 ]
>
> There are actually 2 problems:
> - deleting the last element doesn't require the memmove of elements
> [i + 1, end) over it. Actually, element i+1 is out of bounds.
> - The memmove itself should move size - i - 1 elements, because the last
> element is out of bounds.
Queued for 5.15, and also picked to 5.10 since the Fixes: commit is
present there too.
--
Thanks,
Sasha
prev parent reply other threads:[~2026-05-25 15:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-25 3:18 [PATCH 5.15.y] net: dsa: sja1105: fix kasan out-of-bounds warning in sja1105_table_delete_entry() Rajani Kantha
2026-05-25 15:33 ` Sasha Levin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260525152512.agent5-0001@kernel.org \
--to=sashal@kernel.org \
--cc=681739313@139.com \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=stable@vger.kernel.org \
--cc=vladimir.oltean@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.