summary refs log tree commit diff stats
path: root/mailinglist/output_launchpad/1893010
diff options
context:
space:
mode:
authorChristian Krinitsin <mail@krinitsin.com>2025-05-30 14:51:13 +0000
committerChristian Krinitsin <mail@krinitsin.com>2025-05-30 14:51:13 +0000
commit225caa38269323af1bfc2daadff5ec8bd930747f (patch)
treee0a5fefde9ee100ba6f32fb36de6707490e4164e /mailinglist/output_launchpad/1893010
parent904141bfb8d5385b75eb3b7afec1dcda89af65a7 (diff)
downloademulator-bug-study-225caa38269323af1bfc2daadff5ec8bd930747f.tar.gz
emulator-bug-study-225caa38269323af1bfc2daadff5ec8bd930747f.zip
add mailinglist scraper results
Diffstat (limited to 'mailinglist/output_launchpad/1893010')
-rw-r--r--mailinglist/output_launchpad/189301025
1 files changed, 25 insertions, 0 deletions
diff --git a/mailinglist/output_launchpad/1893010 b/mailinglist/output_launchpad/1893010
new file mode 100644
index 00000000..0383b6e9
--- /dev/null
+++ b/mailinglist/output_launchpad/1893010
@@ -0,0 +1,25 @@
+qemu linux-user doesn't support OFD fcntl locks
+
+"Open file description locks (non-POSIX)", as they are described in fcntl(2) man page, aren't supported by qemu-user  and attempting to use those results in EINVAL. I'm on Gentoo with latest QEMU version currently available (5.0.0-r2), and trying to emulate ppc64 and s390x on x86_64.
+
+Looking at linux-user/syscall.c, I'm guessing the issue is in (at least) `target_to_host_fcntl_cmd` where switch reaches the default clause as there're no cases for F_OFD_SETLK / F_OFD_SETLKW / F_OFD_GETLK.
+
+The attached patch fixes the issue for me.
+
+New patch version: fix target_to_host_fcntl_cmd mapping, avoid do_fcntl code duplication.
+
+Please check qemu-5.1.0.
+
+This has been fixed by:
+
+  2d92c6827ca0 ("linux-user: implement OFD locks")
+  https://git.qemu.org/?p=qemu.git;a=commitdiff;h=2d92c6827ca0
+
+perhaps you can send a patch to the qemu-devel ML to add the strace part.
+
+Thanks, the changes in 5.1.0 seem to work indeed.
+
+> perhaps you can send a patch to the qemu-devel ML to add the strace part
+
+Done.
+