generic: test for creating duplicate filenames in encrypted dir
[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 _require_acls
30 _require_scratch
31 _require_test_program "t_attr_corruption"
32
33 rm -f $seqres.full
34 _scratch_mkfs >> $seqres.full 2>&1
35 _scratch_mount
36
37 $here/src/t_attr_corruption $SCRATCH_MNT
38
39 status=0
40 exit