Block patches for 6.1-rc3
Hi Peter,
Let me prefix this by saying that it's me, Max. I've changed my name and email address. I understand freeze may not be the best of times for this, but it looks like I can no longer send mails from the mreitz@ address for now (only receive them).
I've tried to create and sign the tag as Max, so I hope this pull request won't run into any issues from that perspective.
(For the future, I'll create a new key and hope signing it with my old key will make it sufficiently trustworthy...)
The following changes since commit 632eda54043d6f26ff87dac16233e14b4708b967:
Merge remote-tracking branch 'remotes/bonzini-gitlab/tags/for-upstream' into staging (2021-08-09 11:04:27 +0100)
are available in the Git repository at:
https://github.com/XanClic/qemu.git tags/pull-block-2021-08-09
for you to fetch changes up to a6d2bb25cf945cd16f29a575055c6f1a1f9cf6c9:
tests: filter out TLS distinguished name in certificate checks (2021-08-09 17:32:43 +0200)
----------------------------------------------------------------
Block patches for 6.1-rc3:
- Build fix for FUSE block exports
- iotest 233 fix
----------------------------------------------------------------
Daniel P. Berrangé (1):
tests: filter out TLS distinguished name in certificate checks
Fabrice Fontaine (1):
block/export/fuse.c: fix musl build
block/export/fuse.c | 8 ++++++-- tests/qemu-iotests/233 | 2 +- tests/qemu-iotests/233.out | 4 ++-- tests/qemu-iotests/common.filter | 5 +++++ 4 files changed, 14 insertions(+), 5 deletions(-)
Signature · 1 line
2.31.1
[PULL 1/2] block/export/fuse.c: fix musl build
From: Fabrice Fontaine <[email protected]>
Fix the following build failure on musl raised since version 6.0.0 and
https://gitlab.com/qemu-project/qemu/-/commit/4ca37a96a75aafe7a37ba51ab1912b09b7190a6b
because musl does not define FALLOC_FL_ZERO_RANGE:
../block/export/fuse.c: In function 'fuse_fallocate':../block/export/fuse.c:563:23: error: 'FALLOC_FL_ZERO_RANGE' undeclared (first use in this function)
563 | } else if (mode & FALLOC_FL_ZERO_RANGE) {
| ^~~~~~~~~~~~~~~~~~~~Fixes:
- http://autobuild.buildroot.org/results/b96e3d364fd1f8bbfb18904a742e73327d308f64
Message-Id: <[email protected]>
--- block/export/fuse.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
block/export/fuse.c +6 -2
@@ -635,7 +635,9 @@ static void fuse_fallocate(fuse_req_t req, fuse_ino_t inode, int mode, offset += size; length -= size; }while (ret ==0 && length >0 ); - }else if (mode &FALLOC_FL_ZERO_RANGE ) { + } +#ifdef CONFIG_FALLOCATE_ZERO_RANGE + else if (mode & FALLOC_FL_ZERO_RANGE) {if (!(mode &FALLOC_FL_KEEP_SIZE ) && offset + length > blk_len) {/* No need for zeroes, we are going to write them ourselves */ ret = fuse_do_truncate(exp, offset + length, false,
@@ -654,7 +656,9 @@ static void fuse_fallocate(fuse_req_t req, fuse_ino_t inode, int mode, offset += size; length -= size; }while (ret ==0 && length >0 ); - }else if (!mode) { + } +#endif /* CONFIG_FALLOCATE_ZERO_RANGE */ + else if (!mode) {/* We can only fallocate at the EOF with a truncate */ if (offset < blk_len) {fuse_reply_err (req,EOPNOTSUPP );
Signature · 1 line
2.31.1
[PULL 2/2] tests: filter out TLS distinguished name in certificate checks
In reply to Hanna ReitzFrom: Daniel P. Berrangé <[email protected]>
The version of GNUTLS in Fedora 34 has changed the order in which encodes fields when generating new TLS certificates. This in turn changes the order seen when querying the distinguished name. This ultimately breaks the expected output in the NBD TLS iotests. We don't need to be comparing the exact distinguished name text for the purpose of the test though, so it is fine to filter it out.
Message-Id: <[email protected]>
--- tests/qemu-iotests/233 | 2 +- tests/qemu-iotests/233.out | 4 ++-- tests/qemu-iotests/common.filter | 5 +++++ 3 files changed, 8 insertions(+), 3 deletions(-)
tests/qemu-iotests/233 +1 -1
@@ -148,7 +148,7 @@ $QEMU_IMG info --image-opts \ echo echo "== final server log ==" -cat "$TEST_DIR/server.log" +cat "$TEST_DIR/server.log" | _filter_authz_check_tls rm -f "$TEST_DIR/server.log" # success, all done
tests/qemu-iotests/233.out +2 -2
@@ -65,6 +65,6 @@ qemu-img: Could not open 'driver=nbd,host=127.0.0.1,port=PORT,tls-creds=tls0': F == final server log == qemu-nbd: option negotiation failed: Verify failed: No certificate was found. qemu-nbd: option negotiation failed: Verify failed: No certificate was found. -qemu-nbd: option negotiation failed: TLS x509 authz check for CN=localhost,O=Cthulhu Dark Lord Enterprises client1,L=R'lyeh,C=South Pacific is denied -qemu-nbd: option negotiation failed: TLS x509 authz check for CN=localhost,O=Cthulhu Dark Lord Enterprises client3,L=R'lyeh,C=South Pacific is denied +qemu-nbd: option negotiation failed: TLS x509 authz check for DISTINGUISHED-NAME is denied +qemu-nbd: option negotiation failed: TLS x509 authz check for DISTINGUISHED-NAME is denied *** done
tests/qemu-iotests/common.filter +5 -0
@@ -332,5 +332,10 @@ for fname in fnames: sys.stdout.write(result)' } +_filter_authz_check_tls() +{ + $SED -e 's/TLS x509 authz check for .* is denied/TLS x509 authz check for DISTINGUISHED-NAME is denied/' +} + # make sure this script returns success true
Signature · 1 line
2.31.1
Quoted 8 lines · Hanna Reitz
Hi Peter,
Let me prefix this by saying that it's me, Max. I've changed my name and email address. I understand freeze may not be the best of times for this, but it looks like I can no longer send mails from the mreitz@ address for now (only receive them).
Quoted 5 lines
I've tried to create and sign the tag as Max, so I hope this pull request won't run into any issues from that perspective.
(For the future, I'll create a new key and hope signing it with my old key will make it sufficiently trustworthy...)
Yep, that's fine. This pullreq is going through OK (will send the usual applied/errors email once the builds have completed). I'm happy to treat signed-by-old-key as trusted enough. (In fact we already are working basically on trust-on-first-use for new keys, but if you're OK with signing your new key with the old one that does simplify things a bit.)
Do you plan to send a patch to MAINTAINERS ? It has some mreitz@redhat lines in it currently.
thanks
-- PMM
Quoted 11 lines · Peter Maydell
Quoted 10 lines · Hanna Reitz
Hi Peter,
Let me prefix this by saying that it's me, Max. I've changed my name and email address. I understand freeze may not be the best of times for this, but it looks like I can no longer send mails from the mreitz@ address for now (only receive them).
I've tried to create and sign the tag as Max, so I hope this pull request won't run into any issues from that perspective.
Quoted 8 lines
Quoted 2 lines
(For the future, I'll create a new key and hope signing it with my old key will make it sufficiently trustworthy...)
Yep, that's fine. This pullreq is going through OK (will send the usual applied/errors email once the builds have completed). I'm happy to treat signed-by-old-key as trusted enough. (In fact we already are working basically on trust-on-first-use for new keys, but if you're OK with signing your new key with the old one that does simplify things a bit.)
Great!
Quoted 2 lines
Do you plan to send a patch to
MAINTAINERS? It has some mreitz@redhat lines in it currently.
Yes, I do.
Hanna
Peter Maydell
AppliedQuoted 23 lines · Hanna Reitz
Hi Peter,
Let me prefix this by saying that it's me, Max. I've changed my name and email address. I understand freeze may not be the best of times for this, but it looks like I can no longer send mails from the mreitz@ address for now (only receive them).
I've tried to create and sign the tag as Max, so I hope this pull request won't run into any issues from that perspective.
(For the future, I'll create a new key and hope signing it with my old key will make it sufficiently trustworthy...)
The following changes since commit
632eda54043d6f26ff87dac16233e14b4708b967:Merge remote-tracking branch 'remotes/bonzini-gitlab/tags/for-upstream' into staging (2021-08-09 11:04:27 +0100)
are available in the Git repository at:
https://github.com/XanClic/qemu.git tags/pull-block-2021-08-09
Quoted 9 lines
for you to fetch changes up to
a6d2bb25cf945cd16f29a575055c6f1a1f9cf6c9:tests: filter out TLS distinguished name in certificate checks (2021-08-09 17:32:43 +0200)
----------------------------------------------------------------
Block patches for 6.1-rc3:
- Build fix for FUSE block exports
- iotest 233 fix
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/6.1
for any user-visible changes.
-- PMM