[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [qemu/qemu] a4ad4a: linux-user: Handle short reads in mma
From: |
Richard Henderson |
Subject: |
[Qemu-commits] [qemu/qemu] a4ad4a: linux-user: Handle short reads in mmap_h_gt_g |
Date: |
Wed, 21 Aug 2024 05:08:40 +0000 (UTC) |
Branch: refs/heads/master
Home: https://github.com/qemu/qemu
Commit: a4ad4a9d98f7fbde806f07da21e69f39e134cdf1
https://github.com/qemu/qemu/commit/a4ad4a9d98f7fbde806f07da21e69f39e134cdf1
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2024-08-21 (Wed, 21 Aug 2024)
Changed paths:
M linux-user/mmap.c
Log Message:
-----------
linux-user: Handle short reads in mmap_h_gt_g
In particular, if an image has a large bss, we can hit
EOF before reading all host_len bytes of the mapping.
Create a helper, mmap_pread to handle the job for both
the larger block in mmap_h_gt_g itself, as well as the
smaller block in mmap_frag.
Cc: qemu-stable@nongnu.org
Fixes: eb5027ac618 ("linux-user: Split out mmap_h_gt_g")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2504
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20240820050848.165253-2-richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Commit: 5b73b248a16dab43b74c4d2dbe4f589e109fdc85
https://github.com/qemu/qemu/commit/5b73b248a16dab43b74c4d2dbe4f589e109fdc85
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2024-08-21 (Wed, 21 Aug 2024)
Changed paths:
M bsd-user/mmap.c
Log Message:
-----------
bsd-user: Handle short reads in mmap_h_gt_g
In particular, if an image has a large bss, we can hit EOF before reading
all bytes of the mapping. Mirror the similar change to linux-user.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20240820050848.165253-3-richard.henderson@linaro.org>
Commit: 266d6dddbd85286e64004499f6f8f6fad15e5521
https://github.com/qemu/qemu/commit/266d6dddbd85286e64004499f6f8f6fad15e5521
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2024-08-21 (Wed, 21 Aug 2024)
Changed paths:
M target/i386/tcg/translate.c
Log Message:
-----------
target/i386: Split out gen_prepare_val_nz
Split out the TCG_COND_TSTEQ logic from gen_prepare_eflags_z,
and use it for CC_OP_BMILG* as well. Prepare for requiring
both zero and non-zero senses.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20240801075845.573075-2-richard.henderson@linaro.org>
Commit: 83a3a20e59fa4b1add714bb4062af0d144b67ab7
https://github.com/qemu/qemu/commit/83a3a20e59fa4b1add714bb4062af0d144b67ab7
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2024-08-21 (Wed, 21 Aug 2024)
Changed paths:
M target/i386/cpu.h
M target/i386/tcg/cc_helper.c
M target/i386/tcg/cc_helper_template.h.inc
M target/i386/tcg/emit.c.inc
M target/i386/tcg/translate.c
M tests/tcg/x86_64/Makefile.target
A tests/tcg/x86_64/test-2175.c
Log Message:
-----------
target/i386: Fix carry flag for BLSI
BLSI has inverted semantics for C as compared to the other two
BMI1 instructions, BLSMSK and BLSR. Introduce CC_OP_BLSI* for
this purpose.
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2175
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20240801075845.573075-3-richard.henderson@linaro.org>
Commit: ded1db48c9f9b35f6d9569e53503e2b345f6d44e
https://github.com/qemu/qemu/commit/ded1db48c9f9b35f6d9569e53503e2b345f6d44e
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2024-08-21 (Wed, 21 Aug 2024)
Changed paths:
M target/i386/tcg/seg_helper.c
Log Message:
-----------
target/i386: Fix tss access size in switch_tss_ra
The two limit_max variables represent size - 1, just like the
encoding in the GDT, thus the 'old' access was off by one.
Access the minimal size of the new tss: the complete tss contains
the iopb, which may be a larger block than the access api expects,
and irrelevant because the iopb is not accessed during the
switch itself.
Fixes: 8b131065080a ("target/i386/tcg: use X86Access for TSS access")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2511
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20240819074052.207783-1-richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Commit: f36538b86b9baab4ff255e4c97a396a5e4723727
https://github.com/qemu/qemu/commit/f36538b86b9baab4ff255e4c97a396a5e4723727
Author: Richard Henderson <richard.henderson@linaro.org>
Date: 2024-08-21 (Wed, 21 Aug 2024)
Changed paths:
M bsd-user/mmap.c
M linux-user/mmap.c
M target/i386/cpu.h
M target/i386/tcg/cc_helper.c
M target/i386/tcg/cc_helper_template.h.inc
M target/i386/tcg/emit.c.inc
M target/i386/tcg/seg_helper.c
M target/i386/tcg/translate.c
M tests/tcg/x86_64/Makefile.target
A tests/tcg/x86_64/test-2175.c
Log Message:
-----------
Merge tag 'pull-misc-20240821' of https://gitlab.com/rth7680/qemu into staging
target/i386: Fix carry flag for BLSI
target/i386: Fix tss access size in switch_tss_ra
linux-user: Handle short reads in mmap_h_gt_g
bsd-user: Handle short reads in mmap_h_gt_g
# -----BEGIN PGP SIGNATURE-----
#
# iQFRBAABCgA7FiEEekgeeIaLTbaoWgXAZN846K9+IV8FAmbFTzUdHHJpY2hhcmQu
# aGVuZGVyc29uQGxpbmFyby5vcmcACgkQZN846K9+IV/9+Qf9GiXgmZU51Rk9LaNz
# zlaUPIJy/ER+lCpkaeIqMzJ3EysuWa5tZFOrg21rqmfMr19AIuPSRmCFXuwkF6s+
# DnCiToloM/EvczmVQALE/KhOOm0dwvoAwSFBFTCPfg/IKjb9OcOWHGJVSgFV/1u6
# vrTqUc6xny6QhMjTuVWziE/VAH0V9wRjToii2qN9k/5e2oF1hzDGjHx7T9d//4j5
# hbRyzH0luexvob7JCpxHDELlarkoyR5a7cJQHTj0VTfmR5g6yEMLn+z7ocBcUF09
# pJzcRu2BHUYjzQgV6wqdj5aw8N26c+e8pm1XIA8S1CwBnLRnkuuCKKD7I0tdYvFA
# VgDntQ==
# =XyeR
# -----END PGP SIGNATURE-----
# gpg: Signature made Wed 21 Aug 2024 12:21:41 PM AEST
# gpg: using RSA key 7A481E78868B4DB6A85A05C064DF38E8AF7E215F
# gpg: issuer "richard.henderson@linaro.org"
# gpg: Good signature from "Richard Henderson <richard.henderson@linaro.org>"
[ultimate]
* tag 'pull-misc-20240821' of https://gitlab.com/rth7680/qemu:
target/i386: Fix tss access size in switch_tss_ra
target/i386: Fix carry flag for BLSI
target/i386: Split out gen_prepare_val_nz
bsd-user: Handle short reads in mmap_h_gt_g
linux-user: Handle short reads in mmap_h_gt_g
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Compare: https://github.com/qemu/qemu/compare/4220ebde107c...f36538b86b9b
To unsubscribe from these emails, change your notification settings at
https://github.com/qemu/qemu/settings/notifications