Total jobs: 94
Total errors: 23 (24.47%)
LAVA errors: 0 (0.00%)
Test errors: 18 (19.15%)
Job errors: 5 (5.32%)
Infra errors: 0 (0.00%)
Canceled jobs: 0 (0.00%)
Device type: qrb5165-rb5
Total jobs: 21
Total errors: 8 (38.10%)
Error type: Test
Error count: 8 (38.10%)
Error: No match for error type 'Test', message 'The network seems not available, as the ping command failed'
Count: 4 (19.05%)
IDs:
rb5-03:
6945012 6946075 6946281
rb5-06:
6946286
Error: No match for error type 'Test', message 'tradefed - adb device lost[74d67c95]'
Count: 1 (4.76%)
IDs:
rb5-03:
6946277
Error: No match for error type 'Test', message 'tradefed - adb device lost[4fc7b22]'
Count: 3 (14.29%)
IDs:
rb5-06:
6945008 6946051 6946200
Device type: dragonboard-845c
Total jobs: 66
Total errors: 14 (21.21%)
Error type: Test
Error count: 9 (13.64%)
Error: No match for error type 'Test', message 'The network seems not available, as the ping command failed'
Count: 5 (7.58%)
IDs:
db845c-01:
6945021
db845c-02:
6939029 6946341
db845c-06:
6939030 6939047
Error: No match for error type 'Test', message 'tradefed - adb device lost[1c0556e1]'
Count: 1 (1.52%)
IDs:
db845c-06:
6944165
Error: No match for error type 'Test', message 'lava-docker-test-shell timed out after 596 seconds'
Count: 1 (1.52%)
IDs:
db845c-01:
6939024
Error: No match for error type 'Test', message 'tradefed - adb device lost[db2a494d]'
Count: 1 (1.52%)
IDs:
db845c-02:
6939008
Error: No match for error type 'Test', message 'tradefed - adb device lost[371c4e67]'
Count: 1 (1.52%)
IDs:
db845c-07:
6939003
Error type: Job
Error count: 5 (7.58%)
Error: No match for error type 'Job', message 'Unable to run 'docker' 'run' '--rm' '--init' '--workdir=/lava-downloads' '--device=/dev/kvm' '--mount=type=bind,source=/var/lib/lava/dispatcher/tmp/6939046/downloads/common,destination=/lava-downloads' 'linaro/lava-android-postprocess:bulleye-2023.09.14-01' '/lava-downloads/postprocess.sh''
Count: 1 (1.52%)
IDs:
db845c-06:
6939046
Error: No match for error type 'Job', message 'Unable to run 'docker' 'run' '--rm' '--init' '--workdir=/lava-downloads' '--device=/dev/kvm' '--mount=type=bind,source=/var/lib/lava/dispatcher/tmp/6939045/downloads/common,destination=/lava-downloads' 'linaro/lava-android-postprocess:bulleye-2023.09.14-01' '/lava-downloads/postprocess.sh''
Count: 1 (1.52%)
IDs:
db845c-06:
6939045
Error: No match for error type 'Job', message 'Unable to run 'docker' 'run' '--rm' '--init' '--workdir=/lava-downloads' '--device=/dev/kvm' '--mount=type=bind,source=/var/lib/lava/dispatcher/tmp/6939044/downloads/common,destination=/lava-downloads' 'linaro/lava-android-postprocess:bulleye-2023.09.14-01' '/lava-downloads/postprocess.sh''
Count: 1 (1.52%)
IDs:
db845c-06:
6939044
Error: No match for error type 'Job', message 'Unable to run 'docker' 'run' '--rm' '--init' '--workdir=/lava-downloads' '--device=/dev/kvm' '--mount=type=bind,source=/var/lib/lava/dispatcher/tmp/6939043/downloads/common,destination=/lava-downloads' 'linaro/lava-android-postprocess:bulleye-2023.09.14-01' '/lava-downloads/postprocess.sh''
Count: 1 (1.52%)
IDs:
db845c-06:
6939043
Error: No match for error type 'Job', message 'Unable to run 'docker' 'run' '--rm' '--init' '--workdir=/lava-downloads' '--device=/dev/kvm' '--mount=type=bind,source=/var/lib/lava/dispatcher/tmp/6939042/downloads/common,destination=/lava-downloads' 'linaro/lava-android-postprocess:bulleye-2023.09.14-01' '/lava-downloads/postprocess.sh''
Count: 1 (1.52%)
IDs:
db845c-06:
6939042
Device type: juno-r2
Total jobs: 2
Total errors: 1 (50.00%)
Error type: Test
Error count: 1 (50.00%)
Error: lava-test-shell timed out
Count: 1 (50.00%)
IDs:
juno-r2-04:
6941579
Device type: x86
Total jobs: 2
Total errors: 0 (0.00%)
Device type: dragonboard-410c
Total jobs: 2
Total errors: 0 (0.00%)
Device type: e850-96
Total jobs: 1
Total errors: 0 (0.00%)
On Thu, Oct 12, 2023 at 06:04:30PM +0100, Lorenzo Stoakes wrote:
> In order for a F_SEAL_WRITE sealed memfd mapping to have an opportunity to
> clear VM_MAYWRITE, we must be able to invoke the appropriate vm_ops->mmap()
> handler to do so. We would otherwise fail the mapping_map_writable() check
> before we had the opportunity to avoid it.
>
> This patch moves this check after the call_mmap() invocation. Only memfd
> actively denies write access causing a potential failure here (in
> memfd_add_seals()), so there should be no impact on non-memfd cases.
>
> This patch makes the userland-visible change that MAP_SHARED, PROT_READ
> mappings of an F_SEAL_WRITE sealed memfd mapping will now succeed.
>
> There is a delicate situation with cleanup paths assuming that a writable
> mapping must have occurred in circumstances where it may now not have. In
> order to ensure we do not accidentally mark a writable file unwritable by
> mistake, we explicitly track whether we have a writable mapping and
> unmap only if we do.
>
> Link: https://bugzilla.kernel.org/show_bug.cgi?id=217238
> Signed-off-by: Lorenzo Stoakes <lstoakes(a)gmail.com>
> ---
> mm/mmap.c | 23 ++++++++++++++---------
> 1 file changed, 14 insertions(+), 9 deletions(-)
>
[snip]
Andrew, could you apply the following -fix patch to this? As a bug was
detected in the implementation [0] - I was being over-zealous in setting
the writable_file_mapping flag and had falsely assumed vma->vm_file == file
in all instances of the cleanup. The fix is to only set it in one place.
[0]: https://lore.kernel.org/all/CA+G9fYtL7wK-dE-Tnz4t-GWmQb50EPYa=TWGjpgYU2Z=oe…
----8<----
From 7feea6faada5b10a872c24755cc630220cba619a Mon Sep 17 00:00:00 2001
From: Lorenzo Stoakes <lstoakes(a)gmail.com>
Date: Mon, 16 Oct 2023 17:17:13 +0100
Subject: [PATCH] mm: perform the mapping_map_writable() check after
call_mmap()
Do not set writable_file_mapping in an instance where it is not appropriate
to do so.
Signed-off-by: Lorenzo Stoakes <lstoakes(a)gmail.com>
---
mm/mmap.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/mm/mmap.c b/mm/mmap.c
index 7f45a08e7973..8b57e42fd980 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -2923,10 +2923,8 @@ unsigned long mmap_region(struct file *file, unsigned long addr,
mm->map_count++;
if (vma->vm_file) {
i_mmap_lock_write(vma->vm_file->f_mapping);
- if (vma_is_shared_maywrite(vma)) {
+ if (vma_is_shared_maywrite(vma))
mapping_allow_writable(vma->vm_file->f_mapping);
- writable_file_mapping = true;
- }
flush_dcache_mmap_lock(vma->vm_file->f_mapping);
vma_interval_tree_insert(vma, &vma->vm_file->f_mapping->i_mmap);
--
2.42.0