mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: "barebox@lists.infradead.org" <barebox@lists.infradead.org>
Subject: [PSA] Linux < v6.0.12 may cause issues with barebox' boot /mnt/nfs
Date: Wed, 14 Dec 2022 17:51:18 +0100	[thread overview]
Message-ID: <40f32646-376f-41b0-406c-903ad20a0652@pengutronix.de> (raw)

Hi,

just ran into this myself today, so I figured I post a heads up:

Between v6.0-rc6 and v6.0.12, boot /mnt/nfs in barebox may result in
the kernel hanging due to the kernel NFS server replying with corrupted
data. This didn't affect all clients, but some barebox and QEMU configurations
manage to run into it.

This issue has been fixed with ac8db824ead0 ("NFSD: Fix reads with a
non-zero offset that don't end on a page boundary"), which is part of
v6.1-rc7 and v6.0.12.

If boot /mnt/nfs hangs for you, consider using boot net instead, which
will use TFTP in barebox and NFS in Linux, which should work around this
bug. Alternatively cp /mnt/nfs/boot/zImage / and boot from ramfs.

Or deploy a kernel with above change applied. Debian unstable currently
ships 6.0.0-0.deb11.2-amd64, which is affected.

Cheers,
Ahmad

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



                 reply	other threads:[~2022-12-14 16:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=40f32646-376f-41b0-406c-903ad20a0652@pengutronix.de \
    --to=a.fatoum@pengutronix.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