mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: "Florian Otte" <fotte@uni-osnabrueck.de>
To: barebox@lists.infradead.org
Subject: Bufferoverflow on eMMC partition handling
Date: Mon, 02 Sep 2024 11:36:11 +0200	[thread overview]
Message-ID: <a0f3-66d58700-13-45dc9e00@205549251> (raw)

Hi Everyone.

I tried to use all general purpose partitions on an eMMC storage device and ran into some trouble. In ./include/mci.h the number of partitions is limited to 6, but there might be 7 partitions. This results in a buffer overflow or access out of bound and causes a nasty bootloop when all general purpose-partitions are used. I created a simple patch and appended it to this mail.

Kind regards
fotte




             reply	other threads:[~2024-09-02  9:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-02  9:36 Florian Otte [this message]
2024-09-02  9:37 Florian Otte
2024-09-03 11:35 ` Sascha Hauer
2024-09-03 11:38 ` Sascha Hauer
     [not found]   ` <8f55-66daa100-d-4fcf7800@71062216>
2024-09-06 10:43     ` Sascha Hauer
2024-09-11  8:28 ` Sascha Hauer

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=a0f3-66d58700-13-45dc9e00@205549251 \
    --to=fotte@uni-osnabrueck.de \
    --cc=barebox@lists.infradead.org \
    /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