t_attr_corruption: fix this yet again
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 26 Feb 2019 02:35:35 +0000 (18:35 -0800)
committerEryu Guan <guaneryu@gmail.com>
Sat, 2 Mar 2019 09:31:44 +0000 (17:31 +0800)
commit19e8b1f1a9d8c5d2dc47b664b7bdb5213c6b7150
tree658da7624e65f36a1b0f0c3fa234d11b6524cbaf
parentdd2c726684ed0502f4a47cc182854d9dd7aac903
t_attr_corruption: fix this yet again

Jeff Mahoney pointed out that 'security.evm' actually has an expected
value format, which breaks the test if EVM is enabled.  It turns out
that the 'security.evm' setxattr call in the original syzkaller report
was a total red herring, as this bug can be reproduced without it.

Fix the test case to do the minimum amount of work needed to reproduce
the corruption.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
src/t_attr_corruption.c