overlay: Regression test for deadlock on directory ioctl
authorAmir Goldstein <amir73il@gmail.com>
Wed, 10 Feb 2021 19:03:34 +0000 (21:03 +0200)
committerEryu Guan <guaneryu@gmail.com>
Sun, 28 Feb 2021 14:13:16 +0000 (22:13 +0800)
commit8cbc48b460b698b62114b1e7593d5c30154005ce
treeffae34590d9d73527d82ca573f6803cd2c082b48
parent990feb5ac6a788b55ecd8af8a34a1212a44313c6
overlay: Regression test for deadlock on directory ioctl

Overlayfs added the ability to set inode flags (e.g. chattr +i) in
kernel 5.10 by commit 61536bed2149 ("ovl: support [S|G]ETFLAGS and
FS[S|G]ETXATTR ioctls for directories").
Icenowy Zheng reported [1] a regression in that commit that causes
a deadlock when setting inode flags on lower dir.

The regression was fixed by commit b854cc659dcb ("ovl: avoid deadlock
on directory ioctl") and applied to kernel 5.10.15.

[1] https://lore.kernel.org/linux-unionfs/20210101201230.768653-1-icenowy@aosc.io/

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/overlay/076 [new file with mode: 0755]
tests/overlay/076.out [new file with mode: 0644]
tests/overlay/group