summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2026-10-22 21:38:51 +0200
committerAndi Shyti <andi.shyti@kernel.org>2026-10-23 18:27:28 +0200
commitb7fd977fec0d3f2bdd4f13bb59949c817a365652 (patch)
treedd1600abb902df015412afec302675640f89015f /tools/lib/python
parent73dae605cad7921800677d982bfaeb81cc930dec (diff)
i2c: mt7621: fix copying uninitialized kernel stack with reduced page_len
When a page_len is less than 5 bytes in mtk_i2c_xfer, uninitialized kernel stack data is copied and written to REG_SM0D1_REG. Equally on the read part, an unnecessary read is done. Guard these extra copy/write and read for the page_len to fix leaking uninitialized stack memory. Fixes: d04913ec5f89 ("i2c: mt7621: Add MediaTek MT7621/7628/7688 I2C driver") Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> Cc: <stable@vger.kernel.org> # v5.3+ Signed-off-by: Andi Shyti <andi.shyti@kernel.org> Link: https://patch.msgid.link/20261022193853.670625-1-ansuelsmth@gmail.com
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions