Re: [PATCH v3] ovl: fix null pointer when filesystemdoesn'tsupportdirect IO

From
Miklos Szeredi <miklos@szeredi.hu>
Date
2021-09-28 07:17:36
Also in
linux-fsdevel, lkml
Reply to
Huang Jianan, 2021-09-28
On Tue, 28 Sept 2021 at 09:01, Huang Jianan [off-list ref] wrote:
在 2021/9/27 17:38, Miklos Szeredi 写道:
quoted
On Wed, Sep 22, 2021 at 04:00:47PM +0200, Miklos Szeredi wrote:
quoted
First let's fix the oops: ovl_read_iter()/ovl_write_iter() must check
real file's ->direct_IO if IOCB_DIRECT is set in iocb->ki_flags and
return -EINVAL if not.
And here's that fix.  Please test.
This patch can fix the oops.

Tested-by: Huang Jianan <redacted>
Thanks for testing!

Miklos
Thread (14 messages) 14 messages, 3 authors, last reply 2021-09-28
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help