generic: show locks info owned by dead process

Regression test case for kernel patchset:
    fs/lock: show locks info owned by dead/invisible processes

Open new fd by exec shell built-in, then require exclusive lock
by flock(1) command. Checking /proc/locks for the lock info.

This patchset post by Konstantin Khorenko <khorenko@virtuozzo.com>
has not been merged v4.18-rc8.

[Eryu: require $FLOCK_PROG and add more comments]

Signed-off-by: Xiong Murphy Zhou <xzhou@redhat.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Xiong Murphy Zhou
2018-08-09 15:53:53 +08:00
committed by Eryu Guan
parent a4f1e0a585
commit c2c3421465
3 changed files with 62 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
QA output created by 504
Silence is golden