mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-23 03:19:51 +00:00
sys/linux: mount btrfs tests
Add several unit tests that mount different versions of btrfs images, and the .sh file that generates these tests.
This commit is contained in:
parent
dd93b2327c
commit
bf0df4cba7
1
sys/linux/test/syz_image_mount_btrfs_0
Normal file
1
sys/linux/test/syz_image_mount_btrfs_0
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_1
Normal file
1
sys/linux/test/syz_image_mount_btrfs_1
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_10
Normal file
1
sys/linux/test/syz_image_mount_btrfs_10
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_11
Normal file
1
sys/linux/test/syz_image_mount_btrfs_11
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_12
Normal file
1
sys/linux/test/syz_image_mount_btrfs_12
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_13
Normal file
1
sys/linux/test/syz_image_mount_btrfs_13
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_14
Normal file
1
sys/linux/test/syz_image_mount_btrfs_14
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_15
Normal file
1
sys/linux/test/syz_image_mount_btrfs_15
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_16
Normal file
1
sys/linux/test/syz_image_mount_btrfs_16
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_17
Normal file
1
sys/linux/test/syz_image_mount_btrfs_17
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_18
Normal file
1
sys/linux/test/syz_image_mount_btrfs_18
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_19
Normal file
1
sys/linux/test/syz_image_mount_btrfs_19
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_2
Normal file
1
sys/linux/test/syz_image_mount_btrfs_2
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_20
Normal file
1
sys/linux/test/syz_image_mount_btrfs_20
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_21
Normal file
1
sys/linux/test/syz_image_mount_btrfs_21
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_22
Normal file
1
sys/linux/test/syz_image_mount_btrfs_22
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_23
Normal file
1
sys/linux/test/syz_image_mount_btrfs_23
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_24
Normal file
1
sys/linux/test/syz_image_mount_btrfs_24
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_25
Normal file
1
sys/linux/test/syz_image_mount_btrfs_25
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_26
Normal file
1
sys/linux/test/syz_image_mount_btrfs_26
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_27
Normal file
1
sys/linux/test/syz_image_mount_btrfs_27
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_28
Normal file
1
sys/linux/test/syz_image_mount_btrfs_28
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_29
Normal file
1
sys/linux/test/syz_image_mount_btrfs_29
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_3
Normal file
1
sys/linux/test/syz_image_mount_btrfs_3
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_30
Normal file
1
sys/linux/test/syz_image_mount_btrfs_30
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_31
Normal file
1
sys/linux/test/syz_image_mount_btrfs_31
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_32
Normal file
1
sys/linux/test/syz_image_mount_btrfs_32
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_33
Normal file
1
sys/linux/test/syz_image_mount_btrfs_33
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_34
Normal file
1
sys/linux/test/syz_image_mount_btrfs_34
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_35
Normal file
1
sys/linux/test/syz_image_mount_btrfs_35
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_36
Normal file
1
sys/linux/test/syz_image_mount_btrfs_36
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_37
Normal file
1
sys/linux/test/syz_image_mount_btrfs_37
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_38
Normal file
1
sys/linux/test/syz_image_mount_btrfs_38
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_39
Normal file
1
sys/linux/test/syz_image_mount_btrfs_39
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_4
Normal file
1
sys/linux/test/syz_image_mount_btrfs_4
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_40
Normal file
1
sys/linux/test/syz_image_mount_btrfs_40
Normal file
@ -0,0 +1 @@
|
||||
syz_mount_image$btrfs(&(0x7f0000000000)='btrfs\x00', &(0x7f0000000100)='./file0\x00', 0x8000000, 0x0, &(0x7f0000000200)=[], 0x0, &(0x7f0000010000))
|
1
sys/linux/test/syz_image_mount_btrfs_41
Normal file
1
sys/linux/test/syz_image_mount_btrfs_41
Normal file
@ -0,0 +1 @@
|
||||
syz_mount_image$btrfs(&(0x7f0000000000)='btrfs\x00', &(0x7f0000000100)='./file0\x00', 0x8000000, 0x0, &(0x7f0000000200)=[], 0x0, &(0x7f0000010000))
|
1
sys/linux/test/syz_image_mount_btrfs_42
Normal file
1
sys/linux/test/syz_image_mount_btrfs_42
Normal file
@ -0,0 +1 @@
|
||||
syz_mount_image$btrfs(&(0x7f0000000000)='btrfs\x00', &(0x7f0000000100)='./file0\x00', 0x8000000, 0x0, &(0x7f0000000200)=[], 0x0, &(0x7f0000010000))
|
1
sys/linux/test/syz_image_mount_btrfs_43
Normal file
1
sys/linux/test/syz_image_mount_btrfs_43
Normal file
@ -0,0 +1 @@
|
||||
syz_mount_image$btrfs(&(0x7f0000000000)='btrfs\x00', &(0x7f0000000100)='./file0\x00', 0x8000000, 0x0, &(0x7f0000000200)=[], 0x0, &(0x7f0000010000))
|
1
sys/linux/test/syz_image_mount_btrfs_44
Normal file
1
sys/linux/test/syz_image_mount_btrfs_44
Normal file
@ -0,0 +1 @@
|
||||
syz_mount_image$btrfs(&(0x7f0000000000)='btrfs\x00', &(0x7f0000000100)='./file0\x00', 0x8000000, 0x0, &(0x7f0000000200)=[], 0x0, &(0x7f0000010000))
|
1
sys/linux/test/syz_image_mount_btrfs_45
Normal file
1
sys/linux/test/syz_image_mount_btrfs_45
Normal file
@ -0,0 +1 @@
|
||||
syz_mount_image$btrfs(&(0x7f0000000000)='btrfs\x00', &(0x7f0000000100)='./file0\x00', 0x8000000, 0x0, &(0x7f0000000200)=[], 0x0, &(0x7f0000010000))
|
1
sys/linux/test/syz_image_mount_btrfs_46
Normal file
1
sys/linux/test/syz_image_mount_btrfs_46
Normal file
@ -0,0 +1 @@
|
||||
syz_mount_image$btrfs(&(0x7f0000000000)='btrfs\x00', &(0x7f0000000100)='./file0\x00', 0x8000000, 0x0, &(0x7f0000000200)=[], 0x0, &(0x7f0000010000))
|
1
sys/linux/test/syz_image_mount_btrfs_47
Normal file
1
sys/linux/test/syz_image_mount_btrfs_47
Normal file
@ -0,0 +1 @@
|
||||
syz_mount_image$btrfs(&(0x7f0000000000)='btrfs\x00', &(0x7f0000000100)='./file0\x00', 0x8000000, 0x0, &(0x7f0000000200)=[], 0x0, &(0x7f0000010000))
|
1
sys/linux/test/syz_image_mount_btrfs_48
Normal file
1
sys/linux/test/syz_image_mount_btrfs_48
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_49
Normal file
1
sys/linux/test/syz_image_mount_btrfs_49
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_5
Normal file
1
sys/linux/test/syz_image_mount_btrfs_5
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_50
Normal file
1
sys/linux/test/syz_image_mount_btrfs_50
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_51
Normal file
1
sys/linux/test/syz_image_mount_btrfs_51
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_52
Normal file
1
sys/linux/test/syz_image_mount_btrfs_52
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_53
Normal file
1
sys/linux/test/syz_image_mount_btrfs_53
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_54
Normal file
1
sys/linux/test/syz_image_mount_btrfs_54
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_55
Normal file
1
sys/linux/test/syz_image_mount_btrfs_55
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_56
Normal file
1
sys/linux/test/syz_image_mount_btrfs_56
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_57
Normal file
1
sys/linux/test/syz_image_mount_btrfs_57
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_58
Normal file
1
sys/linux/test/syz_image_mount_btrfs_58
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_59
Normal file
1
sys/linux/test/syz_image_mount_btrfs_59
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_6
Normal file
1
sys/linux/test/syz_image_mount_btrfs_6
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_60
Normal file
1
sys/linux/test/syz_image_mount_btrfs_60
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_61
Normal file
1
sys/linux/test/syz_image_mount_btrfs_61
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_62
Normal file
1
sys/linux/test/syz_image_mount_btrfs_62
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_63
Normal file
1
sys/linux/test/syz_image_mount_btrfs_63
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_64
Normal file
1
sys/linux/test/syz_image_mount_btrfs_64
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_65
Normal file
1
sys/linux/test/syz_image_mount_btrfs_65
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_66
Normal file
1
sys/linux/test/syz_image_mount_btrfs_66
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_67
Normal file
1
sys/linux/test/syz_image_mount_btrfs_67
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_68
Normal file
1
sys/linux/test/syz_image_mount_btrfs_68
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_69
Normal file
1
sys/linux/test/syz_image_mount_btrfs_69
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_7
Normal file
1
sys/linux/test/syz_image_mount_btrfs_7
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_70
Normal file
1
sys/linux/test/syz_image_mount_btrfs_70
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_71
Normal file
1
sys/linux/test/syz_image_mount_btrfs_71
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_72
Normal file
1
sys/linux/test/syz_image_mount_btrfs_72
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_73
Normal file
1
sys/linux/test/syz_image_mount_btrfs_73
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_74
Normal file
1
sys/linux/test/syz_image_mount_btrfs_74
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_75
Normal file
1
sys/linux/test/syz_image_mount_btrfs_75
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_76
Normal file
1
sys/linux/test/syz_image_mount_btrfs_76
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_77
Normal file
1
sys/linux/test/syz_image_mount_btrfs_77
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_78
Normal file
1
sys/linux/test/syz_image_mount_btrfs_78
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_79
Normal file
1
sys/linux/test/syz_image_mount_btrfs_79
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_8
Normal file
1
sys/linux/test/syz_image_mount_btrfs_8
Normal file
File diff suppressed because one or more lines are too long
1
sys/linux/test/syz_image_mount_btrfs_9
Normal file
1
sys/linux/test/syz_image_mount_btrfs_9
Normal file
File diff suppressed because one or more lines are too long
30
tools/create_btrfs_image.sh
Executable file
30
tools/create_btrfs_image.sh
Executable file
@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
# Copyright 2020 syzkaller project authors. All rights reserved.
|
||||
# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
|
||||
|
||||
# Currently disabled
|
||||
# declare -a Op1=("-d raid0 " "-d raid1 " "-d raid5 " "-d raid6 " "-d raid10 " "-d single " "-d dup ")
|
||||
declare -a Op1=("-M " "")
|
||||
declare -a Op2=("-O mixed-bg " "-O extref " "-O raid56 " "-O no-holes " "-O raid1c34 ")
|
||||
declare -a Op3=("-K " "")
|
||||
declare -a Op4=("--csum crc32c " "--csum xxhash " "--csum sha256 " "--csum blake2 ")
|
||||
declare -i dex=0
|
||||
|
||||
dir=`dirname $0`
|
||||
echo $dir
|
||||
|
||||
for op1 in "${Op1[@]}"; do
|
||||
for op2 in "${Op2[@]}"; do
|
||||
for op3 in "${Op3[@]}"; do
|
||||
for op4 in "${Op4[@]}"; do
|
||||
echo mkfs.btrfs ${op1}${op2}${op3}${op4} disk.raw
|
||||
fallocate -l 128M disk.raw
|
||||
mkfs.btrfs ${op1}${op2}${op3}${op4} disk.raw
|
||||
go run "$dir/syz-imagegen/imagegen.go" -image=./disk.raw -fs=btrfs > "$dir/../sys/linux/test/syz_image_mount_btrfs_$dex"
|
||||
rm disk.raw
|
||||
dex=dex+1
|
||||
done
|
||||
done
|
||||
done
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user