From: Richard Palethorpe <rpalethorpe@suse.de>
To: Ian Wienand <iwienand@redhat.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v2] kernel/device-drivers/zram/zram01.sh : don't fill from /dev/zero
Date: Thu, 14 Sep 2023 08:37:46 +0100 [thread overview]
Message-ID: <87msxpgmf4.fsf@suse.de> (raw)
In-Reply-To: <ZQI14xCNkc4wjpC2@fedora19.localdomain>
Hello,
Ian Wienand <iwienand@redhat.com> writes:
> On Wed, Sep 13, 2023 at 03:35:18PM +0100, Richard Palethorpe wrote:
>> I would suggest just using sync, but Petr originally suggested using a
>> wait loop. Then reported that the bug was still reproducible with the
>> loop:
>>
>> https://lore.kernel.org/linux-block/Y3s+Czg8sBsGYO+1@pevik/
>>
>> Then said it wasn't reproducible. The problem is that if using a loop
>> doesn't solve it then possibly the VFAT meta-data doesn't get written to
>> disk in the absence of any pressure.
>>
>> So instead I'd suggest resurrecting Petr's original patch or at least
>> his approach. If we merge that and still see failures then maybe it's
>> worth investigating more with tracing/debugging.
>
> I do not think the original patch [1] is the correct solution in light
> of the further investigation that has happened after it was proposed.
>
> [2] is about the clearest explaination I can come up with, other than
> the patch description and comments added in the v2 patch [3]. I am of
> the opinion that to be useful these tests need to explicitly make sure
> they are not just writing data that can be de-duplicated. I do not
> believe the the intent of these tests was to have the only data
> managed by the disk a very small amount of file-system metadata.
>
> Sorry to sound like a broken record, but I spent some time
> investigating the paths taken with [2] and confirming the stats that
> were coming out were not due to some kernel issue, but it really was
> that the backing area had no pages allocated to it at all.
>
> Looping on a sync might make the test pass in more cases, but I hope
> we can agree the idea is to make the test better, not just pass so we
> can continue to ignore it.
We don't want to remove coverage of ZRAM_SAME! A bug in ZRAM_SAME is a
potential expoit or data-corruption.
If you want to change the test you have to show where ZRAM_SAME is being
covered instead.
It's not that I think ZRAM_SAME is any more or less important than the
true compression path. It's that if we never allow coverage to be
swapped out or removed, then we systematically increase coverage.
>
> -i
>
> [1] https://lore.kernel.org/linux-block/20221107191136.18048-2-pvorel@suse.cz/
> [2] https://lore.kernel.org/linux-block/ZNB2kORYiKdl3vSq@fedora19.localdomain/
> [3] https://lore.kernel.org/ltp/ZPpOuK9lyWr2wZWI@fedora19.localdomain/T/#m1e037003252012ac115e57285a926db77380897f
--
Thank you,
Richard.
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2023-09-14 9:00 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-03 1:51 [LTP] [PATCH] kernel/device-drivers/zram/zram01.sh : add a sync Ian Wienand
2023-08-03 10:52 ` Cyril Hrubis
2023-08-03 10:59 ` Martin Doucha
2023-08-03 11:02 ` Cyril Hrubis
2023-08-03 12:32 ` Ian Wienand
2023-08-08 3:56 ` [LTP] [PATCH v2] kernel/device-drivers/zram/zram01.sh : don't fill from /dev/zero Ian Wienand
2023-08-30 8:20 ` Richard Palethorpe
2023-09-07 6:46 ` Ian Wienand
2023-09-07 8:26 ` Richard Palethorpe
2023-09-08 1:58 ` Ian Wienand
2023-09-07 10:18 ` Martin Doucha
2023-09-07 22:29 ` Ian Wienand
2023-09-08 9:21 ` Martin Doucha
2023-09-12 1:03 ` Ian Wienand
2023-09-13 14:35 ` Richard Palethorpe
2023-09-13 22:21 ` Ian Wienand
2023-09-14 7:37 ` Richard Palethorpe [this message]
2023-09-14 11:04 ` Ian Wienand
2023-09-18 8:24 ` Richard Palethorpe
2023-09-21 1:17 ` Ian Wienand
2023-09-21 9:34 ` Richard Palethorpe
2023-09-21 1:12 ` [LTP] [PATCH v3] kernel/device-drivers/zram/zram01.sh : fill with compressible data Ian Wienand
2023-11-22 11:24 ` Richard Palethorpe
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=87msxpgmf4.fsf@suse.de \
--to=rpalethorpe@suse.de \
--cc=iwienand@redhat.com \
--cc=ltp@lists.linux.it \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox