---- 在 星期四, 2021-04-08 19:29:55 Miklos Szeredi <miklos@xxxxxxxxxx> 撰写 ---- > On Thu, Apr 8, 2021 at 1:28 PM Chengguang Xu <cgxu519@xxxxxxxxxxxx> wrote: > > > > ---- 在 星期四, 2021-04-08 19:20:42 Chengguang Xu <cgxu519@xxxxxxxxxxxx> 撰写 ---- > > > In overlayfs copy-up, if open flag has O_TRUNC then upper > > > file will truncate to zero size, in this case we should check > > > VM_DENYWRITE mappings to keep compatibility with other filesystems. > > Can you provide a test case for the bug that this is fixing? > Execute binary file(keep running until open) in overlayfs which only has lower && open the binary file with flag O_RDWR|O_TRUNC Expected result: open fail with -ETXTBSY Actual result: open success Thanks, Chengguang