* [BUG BISECT next] Files cannot be opened after "fsverity: Move verity status check to fsverity_file_open"
@ 2018-12-11 14:15 Krzysztof Kozlowski
2018-12-11 17:41 ` Eric Biggers
2018-12-11 22:27 ` Theodore Y. Ts'o
0 siblings, 2 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2018-12-11 14:15 UTC (permalink / raw)
To: Chandan Rajendra, Theodore Ts'o, Andreas Dilger, Jaegeuk Kim,
Chao Yu, Eric Biggers, linux-ext4, linux-kernel,
linux-f2fs-devel, linux-fscrypt
Hi,
Bisect from today's next pointed me to:
commit 4de97efb578a094e8fbf279522d41eb9ece1e3e0
Author: Chandan Rajendra <chandan@linux.vnet.ibm.com>
Date: Sat Dec 8 12:21:43 2018 +0530
fsverity: Move verity status check to fsverity_file_open
as a reason of "Operation not supported" when reading any file from
mounted ext4fs (from SD card). Rootfs from nfsroot works but reading
from /home with ext4fs fails.
Mounts:
192.168.1.10:/srv/nfs/odroidhc1 on / type nfs4
(rw,relatime,vers=4.0,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.1.12,local_lock=none,addr=192.168.1.10)
/dev/mmcblk0p2 on /home type ext4 (rw,relatime)
Configuration:
1. Arch ARM Linux
2. exynos_defconfig
- All my Odroid boards (ARMv7, Exynos)
Systemd: v239, v238
3. All boards boot from TFTP with NFS root (NFSv4)
No specific errors in boot log:
https://krzk.eu/#/builders/21/builds/1034/steps/12/logs/serial0
Let me know if you need any more data.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [BUG BISECT next] Files cannot be opened after "fsverity: Move verity status check to fsverity_file_open"
2018-12-11 14:15 [BUG BISECT next] Files cannot be opened after "fsverity: Move verity status check to fsverity_file_open" Krzysztof Kozlowski
@ 2018-12-11 17:41 ` Eric Biggers
2018-12-12 4:11 ` Chandan Rajendra
2018-12-11 22:27 ` Theodore Y. Ts'o
1 sibling, 1 reply; 6+ messages in thread
From: Eric Biggers @ 2018-12-11 17:41 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Chandan Rajendra, Theodore Ts'o, Andreas Dilger, Jaegeuk Kim,
Chao Yu, linux-ext4, linux-kernel, linux-f2fs-devel,
linux-fscrypt
On Tue, Dec 11, 2018 at 03:15:53PM +0100, Krzysztof Kozlowski wrote:
> Hi,
>
> Bisect from today's next pointed me to:
> commit 4de97efb578a094e8fbf279522d41eb9ece1e3e0
> Author: Chandan Rajendra <chandan@linux.vnet.ibm.com>
> Date: Sat Dec 8 12:21:43 2018 +0530
> fsverity: Move verity status check to fsverity_file_open
>
> as a reason of "Operation not supported" when reading any file from
> mounted ext4fs (from SD card). Rootfs from nfsroot works but reading
> from /home with ext4fs fails.
>
> Mounts:
> 192.168.1.10:/srv/nfs/odroidhc1 on / type nfs4
> (rw,relatime,vers=4.0,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.1.12,local_lock=none,addr=192.168.1.10)
> /dev/mmcblk0p2 on /home type ext4 (rw,relatime)
>
> Configuration:
> 1. Arch ARM Linux
> 2. exynos_defconfig
> - All my Odroid boards (ARMv7, Exynos)
> Systemd: v239, v238
> 3. All boards boot from TFTP with NFS root (NFSv4)
> No specific errors in boot log:
> https://krzk.eu/#/builders/21/builds/1034/steps/12/logs/serial0
>
> Let me know if you need any more data.
>
> Best regards,
> Krzysztof
Thanks Krzysztof. Ted, this is the same bug I pointed out in my review of this
patch yesterday (https://patchwork.kernel.org/patch/10719197/#22371523). Can
you fix or revert the two broken patches? Thanks,
- Eric
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [BUG BISECT next] Files cannot be opened after "fsverity: Move verity status check to fsverity_file_open"
2018-12-11 14:15 [BUG BISECT next] Files cannot be opened after "fsverity: Move verity status check to fsverity_file_open" Krzysztof Kozlowski
2018-12-11 17:41 ` Eric Biggers
@ 2018-12-11 22:27 ` Theodore Y. Ts'o
2018-12-11 22:36 ` Eric Biggers
2018-12-12 2:55 ` Theodore Y. Ts'o
1 sibling, 2 replies; 6+ messages in thread
From: Theodore Y. Ts'o @ 2018-12-11 22:27 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Chandan Rajendra, Andreas Dilger, Jaegeuk Kim, Chao Yu,
Eric Biggers, linux-ext4, linux-kernel, linux-f2fs-devel,
linux-fscrypt
On Tue, Dec 11, 2018 at 03:15:53PM +0100, Krzysztof Kozlowski wrote:
> Hi,
>
> Bisect from today's next pointed me to:
> commit 4de97efb578a094e8fbf279522d41eb9ece1e3e0
> Author: Chandan Rajendra <chandan@linux.vnet.ibm.com>
> Date: Sat Dec 8 12:21:43 2018 +0530
> fsverity: Move verity status check to fsverity_file_open
>
> as a reason of "Operation not supported" when reading any file from
> mounted ext4fs (from SD card). Rootfs from nfsroot works but reading
> from /home with ext4fs fails.
Can you send me an compressed e2image of your sdcard?
e2image -Q /dev/mmcblk0p2 sdcard.qcow2
bzip2 -z sdcard.qcow2
Thanks!
- Ted
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [BUG BISECT next] Files cannot be opened after "fsverity: Move verity status check to fsverity_file_open"
2018-12-11 22:27 ` Theodore Y. Ts'o
@ 2018-12-11 22:36 ` Eric Biggers
2018-12-12 2:55 ` Theodore Y. Ts'o
1 sibling, 0 replies; 6+ messages in thread
From: Eric Biggers @ 2018-12-11 22:36 UTC (permalink / raw)
To: Theodore Y. Ts'o, Krzysztof Kozlowski, Chandan Rajendra,
Andreas Dilger, Jaegeuk Kim, Chao Yu, linux-ext4, linux-kernel,
linux-f2fs-devel, linux-fscrypt
On Tue, Dec 11, 2018 at 05:27:21PM -0500, Theodore Y. Ts'o wrote:
> On Tue, Dec 11, 2018 at 03:15:53PM +0100, Krzysztof Kozlowski wrote:
> > Hi,
> >
> > Bisect from today's next pointed me to:
> > commit 4de97efb578a094e8fbf279522d41eb9ece1e3e0
> > Author: Chandan Rajendra <chandan@linux.vnet.ibm.com>
> > Date: Sat Dec 8 12:21:43 2018 +0530
> > fsverity: Move verity status check to fsverity_file_open
> >
> > as a reason of "Operation not supported" when reading any file from
> > mounted ext4fs (from SD card). Rootfs from nfsroot works but reading
> > from /home with ext4fs fails.
>
> Can you send me an compressed e2image of your sdcard?
>
> e2image -Q /dev/mmcblk0p2 sdcard.qcow2
> bzip2 -z sdcard.qcow2
>
> Thanks!
>
> - Ted
I don't think that's necessary. Due to the bug, ext4_file_open() and
ext4_setattr() always return -EOPNOTSUPP when !CONFIG_FS_VERITY.
I'm working on a fixed version of the two patches to replace the ones currently
in the fscrypt tree. Will send out soon.
- Eric
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [BUG BISECT next] Files cannot be opened after "fsverity: Move verity status check to fsverity_file_open"
2018-12-11 22:27 ` Theodore Y. Ts'o
2018-12-11 22:36 ` Eric Biggers
@ 2018-12-12 2:55 ` Theodore Y. Ts'o
1 sibling, 0 replies; 6+ messages in thread
From: Theodore Y. Ts'o @ 2018-12-12 2:55 UTC (permalink / raw)
To: Krzysztof Kozlowski, Chandan Rajendra, Andreas Dilger,
Jaegeuk Kim, Chao Yu, Eric Biggers, linux-ext4, linux-kernel,
linux-f2fs-devel, linux-fscrypt
The fscrypt.git tree has been updated with for the problem. Apologies
for not testing the !CONFIG_FS_VERITY case.
- Ted
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [BUG BISECT next] Files cannot be opened after "fsverity: Move verity status check to fsverity_file_open"
2018-12-11 17:41 ` Eric Biggers
@ 2018-12-12 4:11 ` Chandan Rajendra
0 siblings, 0 replies; 6+ messages in thread
From: Chandan Rajendra @ 2018-12-12 4:11 UTC (permalink / raw)
To: Eric Biggers
Cc: Krzysztof Kozlowski, Theodore Ts'o, Andreas Dilger,
Jaegeuk Kim, Chao Yu, linux-ext4, linux-kernel, linux-f2fs-devel,
linux-fscrypt
On Tuesday, December 11, 2018 11:11:17 PM IST Eric Biggers wrote:
> On Tue, Dec 11, 2018 at 03:15:53PM +0100, Krzysztof Kozlowski wrote:
> > Hi,
> >
> > Bisect from today's next pointed me to:
> > commit 4de97efb578a094e8fbf279522d41eb9ece1e3e0
> > Author: Chandan Rajendra <chandan@linux.vnet.ibm.com>
> > Date: Sat Dec 8 12:21:43 2018 +0530
> > fsverity: Move verity status check to fsverity_file_open
> >
> > as a reason of "Operation not supported" when reading any file from
> > mounted ext4fs (from SD card). Rootfs from nfsroot works but reading
> > from /home with ext4fs fails.
> >
> > Mounts:
> > 192.168.1.10:/srv/nfs/odroidhc1 on / type nfs4
> > (rw,relatime,vers=4.0,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.1.12,local_lock=none,addr=192.168.1.10)
> > /dev/mmcblk0p2 on /home type ext4 (rw,relatime)
> >
> > Configuration:
> > 1. Arch ARM Linux
> > 2. exynos_defconfig
> > - All my Odroid boards (ARMv7, Exynos)
> > Systemd: v239, v238
> > 3. All boards boot from TFTP with NFS root (NFSv4)
> > No specific errors in boot log:
> > https://krzk.eu/#/builders/21/builds/1034/steps/12/logs/serial0
> >
> > Let me know if you need any more data.
> >
> > Best regards,
> > Krzysztof
>
> Thanks Krzysztof. Ted, this is the same bug I pointed out in my review of this
> patch yesterday (https://patchwork.kernel.org/patch/10719197/#22371523). Can
> you fix or revert the two broken patches? Thanks,
>
Hi,
I have sent version V4 of the patchset now. My plan was to include the fix for
"Kconfig recursive dependency" issue reported for IA64 architecture. But I
would need some more time to understand the problem and provide a correct
fix. Hence the V4 patchset was sent with a fix to only address the problem
reported in this mail.
--
chandan
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-12-12 4:11 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-11 14:15 [BUG BISECT next] Files cannot be opened after "fsverity: Move verity status check to fsverity_file_open" Krzysztof Kozlowski
2018-12-11 17:41 ` Eric Biggers
2018-12-12 4:11 ` Chandan Rajendra
2018-12-11 22:27 ` Theodore Y. Ts'o
2018-12-11 22:36 ` Eric Biggers
2018-12-12 2:55 ` Theodore Y. Ts'o
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).