mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: linux-kernel@vger.kernel.org, Chenxi Hou <ch395@njit.edu>
Cc: colin.i.king@gmail.com, linux-mtd@lists.infradead.org,
	richard@nod.at,  rk0006818@gmail.com, vigneshr@ti.com,
	Hui Peng <benquike@gmail.com>,
	 "Zhihao (Zephyr) Yao" <zhihao.yao@njit.edu>
Subject: Re: [PATCH] mtd: jedec_probe: fix shift-out-of-bounds UB in JEDEC ID masking
Date: Thu, 22 Jan 2026 15:08:58 +0100	[thread overview]
Message-ID: <176909093883.3112602.14114861213916444270.b4-ty@bootlin.com> (raw)
In-Reply-To: <20260122013250.19384-1-ch395@njit.edu>

On Wed, 21 Jan 2026 20:32:50 -0500, Chenxi Hou wrote:
> UBSAN reports shift-out-of-bounds in jedec_read_mfr() and jedec_read_id():
> 
>   UBSAN: shift-out-of-bounds in drivers/mtd/chips/jedec_probe.c:1924:13
>   shift exponent 32 is too large for 32-bit type 'int'
>   UBSAN: shift-out-of-bounds in drivers/mtd/chips/jedec_probe.c:1940:12
>   shift exponent 32 is too large for 32-bit type 'int'
> 
> [...]

Applied to mtd/next, thanks!

[1/1] mtd: jedec_probe: fix shift-out-of-bounds UB in JEDEC ID masking
      commit: 2b14660c1caf0b67adf99428a225f71ed653437d

Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).

Kind regards,
Miquèl


      reply	other threads:[~2026-01-22 14:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-22  1:32 Chenxi Hou
2026-01-22 14:08 ` Miquel Raynal [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=176909093883.3112602.14114861213916444270.b4-ty@bootlin.com \
    --to=miquel.raynal@bootlin.com \
    --cc=benquike@gmail.com \
    --cc=ch395@njit.edu \
    --cc=colin.i.king@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=richard@nod.at \
    --cc=rk0006818@gmail.com \
    --cc=vigneshr@ti.com \
    --cc=zhihao.yao@njit.edu \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®