generic: test deadlock on O_DIRECT|O_DSYNC
[xfstests-dev.git] / tests / generic / 529
1 #! /bin/bash
2 # SPDX-License-Identifier: GPL-2.0+
3 # Copyright (c) 2019 Oracle, Inc.  All Rights Reserved.
4 #
5 # FS QA Test No. 529
6 #
7 # Regression test for a bug where XFS corrupts memory if the listxattr buffer
8 # is a particularly well crafted size on a filesystem that supports posix acls.
9 #
10 seq=`basename $0`
11 seqres=$RESULT_DIR/$seq
12 echo "QA output created by $seq"
13 tmp=/tmp/$$
14 status=1        # failure is the default!
15 trap "_cleanup; exit \$status" 0 1 2 3 15
16
17 _cleanup()
18 {
19         cd /
20         rm -f $tmp.*
21 }
22
23 # get standard environment, filters and checks
24 . ./common/rc
25 . ./common/attr
26
27 # real QA test starts here
28 _supported_fs generic
29 _supported_os Linux
30 _require_acls
31 _require_scratch
32 _require_test_program "t_attr_corruption"
33
34 rm -f $seqres.full
35 _scratch_mkfs >> $seqres.full 2>&1
36 _scratch_mount
37
38 $here/src/t_attr_corruption $SCRATCH_MNT
39
40 status=0
41 exit