Skip to content

Commit 45d7278

Browse files
committed
sys/linux: Add the descriptions for the mapper control device
1 parent 96d142e commit 45d7278

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed

sys/linux/dev_dm_ctl.txt

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Copyright 2024 syzkaller project authors. All rights reserved.
2+
# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
3+
4+
include <uapi/asm/ioctl.h>
5+
include <uapi/linux/dm-ioctl.h>
6+
7+
resource fd_dm_ctl[fd]
8+
9+
openat$dm_ctl(fd const[AT_FDCWD], file ptr[in, string["/dev/mapper/control"]], flags const[O_RDWR], mode const[0]) fd_dm_ctl
10+
11+
ioctl$DM_VERSION(fd fd_dm_ctl, cmd const[DM_VERSION], arg ptr[inout, dm_ioctl])
12+
ioctl$DM_DEV_CREATE(fd fd_dm_ctl, cmd const[DM_DEV_CREATE], arg ptr[inout, dm_ioctl])
13+
ioctl$DM_DEV_REMOVE(fd fd_dm_ctl, cmd const[DM_DEV_REMOVE], arg ptr[inout, dm_ioctl])
14+
ioctl$DM_DEV_SUSPEND(fd fd_dm_ctl, cmd const[DM_DEV_SUSPEND], arg ptr[inout, dm_ioctl])
15+
ioctl$DM_DEV_STATUS(fd fd_dm_ctl, cmd const[DM_DEV_STATUS], arg ptr[inout, dm_ioctl])
16+
ioctl$DM_TABLE_CLEAR(fd fd_dm_ctl, cmd const[DM_TABLE_CLEAR], arg ptr[inout, dm_ioctl])
17+
ioctl$DM_DEV_ARM_POLL(fd fd_dm_ctl, cmd const[DM_DEV_ARM_POLL], arg ptr[inout, dm_ioctl])
18+
ioctl$DM_DEV_RENAME(fd fd_dm_ctl, cmd const[DM_DEV_RENAME], arg ptr[inout, dm_ioctl])
19+
ioctl$DM_DEV_WAIT(fd fd_dm_ctl, cmd const[DM_DEV_WAIT], arg ptr[inout, dm_ioctl])
20+
ioctl$DM_TABLE_LOAD(fd fd_dm_ctl, cmd const[DM_TABLE_LOAD], arg ptr[inout, dm_ioctl])
21+
ioctl$DM_TABLE_DEPS(fd fd_dm_ctl, cmd const[DM_TABLE_DEPS], arg ptr[inout, dm_ioctl])
22+
ioctl$DM_TABLE_STATUS(fd fd_dm_ctl, cmd const[DM_TABLE_STATUS], arg ptr[inout, dm_ioctl])
23+
ioctl$DM_LIST_VERSIONS(fd fd_dm_ctl, cmd const[DM_LIST_VERSIONS], arg ptr[inout, dm_ioctl])
24+
ioctl$DM_TARGET_MSG(fd fd_dm_ctl, cmd const[DM_TARGET_MSG], arg ptr[inout, dm_ioctl])
25+
ioctl$DM_DEV_SET_GEOMETRY(fd fd_dm_ctl, cmd const[DM_DEV_SET_GEOMETRY], arg ptr[inout, dm_ioctl])
26+
ioctl$DM_GET_TARGET_VERSION(fd fd_dm_ctl, cmd const[DM_GET_TARGET_VERSION], arg ptr[inout, dm_ioctl])
27+
28+
dm_ioctl {
29+
version array[int32, 3]
30+
data_size int32
31+
data_start int32
32+
target_count int32
33+
open_count int32
34+
flags int32
35+
event_nr int32
36+
padding int32
37+
dev int64
38+
name array[int8, DM_NAME_LEN]
39+
uuid array[int8, DM_UUID_LEN]
40+
data array[int8, 7]
41+
}

sys/linux/dev_dm_ctl.txt.const

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Code generated by syz-sysgen. DO NOT EDIT.
2+
arches = 386, amd64, arm, arm64, mips64le, ppc64le, riscv64, s390x
3+
AT_FDCWD = ???
4+
DM_DEV_ARM_POLL = 3241737488
5+
DM_DEV_CREATE = 3241737475
6+
DM_DEV_REMOVE = 3241737476
7+
DM_DEV_RENAME = 3241737477
8+
DM_DEV_SET_GEOMETRY = 3241737487
9+
DM_DEV_STATUS = 3241737479
10+
DM_DEV_SUSPEND = 3241737478
11+
DM_DEV_WAIT = 3241737480
12+
DM_GET_TARGET_VERSION = 3241737489
13+
DM_LIST_VERSIONS = 3241737485
14+
DM_NAME_LEN = 128
15+
DM_TABLE_CLEAR = 3241737482
16+
DM_TABLE_DEPS = 3241737483
17+
DM_TABLE_LOAD = 3241737481
18+
DM_TABLE_STATUS = 3241737484
19+
DM_TARGET_MSG = 3241737486
20+
DM_UUID_LEN = 129
21+
DM_VERSION = 3241737472
22+
O_RDWR = ???
23+
__NR_ioctl = 54, amd64:16, arm64:riscv64:29, mips64le:5015
24+
__NR_openat = 56, 386:295, amd64:257, arm:322, mips64le:5247, ppc64le:286, s390x:288

0 commit comments

Comments
 (0)