All of lore.kernel.org
 help / color / mirror / Atom feed
From: Babanpreet Singh <bbnpreetsingh@gmail.com>
To: Yoann Congal <yoann.congal@smile.fr>,
	openembedded-core@lists.openembedded.org
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>,
	"Daniel R . Slater" <daniel.slater@thermofisher.com>,
	Randy MacLeod <randy.macleod@windriver.com>,
	Babanpreet Singh <bbnpreetsingh@gmail.com>
Subject: Re: [scarthgap][PATCH] qemu: restore 64-bit file lock handling for 32-bit guests
Date: Thu,  1 Oct 2026 23:32:20 +0000	[thread overview]
Message-ID: <20261001233220.7-1-bbnpreetsingh@gmail.com> (raw)
In-Reply-To: <DL2XY8C5ZSTE.3K2H4I5KEF75F@smile.fr>

On Mon, 2026-08-31 at 09:12 +0200, Yoann Congal wrote:
> I don't understand how you can modify a 0002 by backporting 0001... Was
> Khem patch reverted? In that case, I think we better remove it and re-do
> the backport with non-reverted patches.

Fair, the trimmed 0002 is confusing. Nothing was reverted: Khem's patch
was never merged as such. What qemu took instead is two commits from
Michael Tokarev on 2024-08-29, both in 9.2.0:

  ac1bbe8ca46c linux-user/syscall.c: drop 64 suffix from flock64 &Co
  99174ce39e86 linux-user/syscall.c: eliminate other explicit LFS usages

The first covers the fcntl side without dropping the guest F_*LK64
cases the way the local patch does, which is the bug. The second is
line for line what was left of 0002 after my trim (truncate64, lseek64,
pread64, pwrite64). I only backported the first because it was enough
to fix the locks, and I agree that carrying half a local patch on top
of it is the wrong shape.

> Also, Khem's patch is merged now, can you fix the Upstream-status if we
> end up keeping it?

The Submitted link in 0002 points at a series that never landed, so I'd
rather not keep it. v2 follows in this thread: it drops 0002 and carries
both upstream commits as Backports. With both applied, syscall.c comes
out byte for byte the same as with the v1 stack, so the lock test
results from v1 still hold. qemu-native builds clean with it.

Thanks,
Baban


  reply	other threads:[~2026-10-01 23:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-02  3:10 [scarthgap][PATCH] qemu: restore 64-bit file lock handling for 32-bit guests Babanpreet Singh
2026-08-31  7:12 ` Yoann Congal
2026-10-01 23:32   ` Babanpreet Singh [this message]
2026-10-01 23:32   ` [scarthgap][PATCH v2] " Babanpreet Singh

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=20261001233220.7-1-bbnpreetsingh@gmail.com \
    --to=bbnpreetsingh@gmail.com \
    --cc=daniel.slater@thermofisher.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=randy.macleod@windriver.com \
    --cc=richard.purdie@linuxfoundation.org \
    --cc=yoann.congal@smile.fr \
    /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.