Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sys/linux: Add the descriptions for the mapper control device #4565

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions sys/linux/dev_dm_ctl.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Copyright 2024 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.

include <linux/fcntl.h>
include <uapi/asm/ioctl.h>
include <uapi/linux/dm-ioctl.h>

resource fd_dm_ctl[fd]
resource dm_ctl_dev[int64]

openat$dm_ctl(fd const[AT_FDCWD], file ptr[in, string["/dev/mapper/control"]], flags const[O_RDWR], mode const[0]) fd_dm_ctl

ioctl$DM_VERSION(fd fd_dm_ctl, cmd const[DM_VERSION], arg ptr[inout, dm_ioctl])
ioctl$DM_DEV_CREATE(fd fd_dm_ctl, cmd const[DM_DEV_CREATE], arg ptr[inout, dm_ioctl])
ioctl$DM_DEV_REMOVE(fd fd_dm_ctl, cmd const[DM_DEV_REMOVE], arg ptr[inout, dm_ioctl])
ioctl$DM_DEV_SUSPEND(fd fd_dm_ctl, cmd const[DM_DEV_SUSPEND], arg ptr[inout, dm_ioctl])
ioctl$DM_DEV_STATUS(fd fd_dm_ctl, cmd const[DM_DEV_STATUS], arg ptr[inout, dm_ioctl])
ioctl$DM_TABLE_CLEAR(fd fd_dm_ctl, cmd const[DM_TABLE_CLEAR], arg ptr[inout, dm_ioctl])
ioctl$DM_DEV_ARM_POLL(fd fd_dm_ctl, cmd const[DM_DEV_ARM_POLL], arg ptr[inout, dm_ioctl])
ioctl$DM_DEV_RENAME(fd fd_dm_ctl, cmd const[DM_DEV_RENAME], arg ptr[inout, dm_ioctl])
ioctl$DM_DEV_WAIT(fd fd_dm_ctl, cmd const[DM_DEV_WAIT], arg ptr[inout, dm_ioctl])
ioctl$DM_TABLE_LOAD(fd fd_dm_ctl, cmd const[DM_TABLE_LOAD], arg ptr[inout, dm_ioctl])
ioctl$DM_TABLE_DEPS(fd fd_dm_ctl, cmd const[DM_TABLE_DEPS], arg ptr[inout, dm_ioctl])
ioctl$DM_TABLE_STATUS(fd fd_dm_ctl, cmd const[DM_TABLE_STATUS], arg ptr[inout, dm_ioctl])
ioctl$DM_LIST_VERSIONS(fd fd_dm_ctl, cmd const[DM_LIST_VERSIONS], arg ptr[inout, dm_ioctl])
ioctl$DM_TARGET_MSG(fd fd_dm_ctl, cmd const[DM_TARGET_MSG], arg ptr[inout, dm_ioctl])
ioctl$DM_DEV_SET_GEOMETRY(fd fd_dm_ctl, cmd const[DM_DEV_SET_GEOMETRY], arg ptr[inout, dm_ioctl])
ioctl$DM_GET_TARGET_VERSION(fd fd_dm_ctl, cmd const[DM_GET_TARGET_VERSION], arg ptr[inout, dm_ioctl])

dm_ioctl {
version array[int32, 3]
data_size bytesize[dm_ioctl, int32]
data_start offsetof[data, int32]
target_count int32
open_count int32
flags int32
event_nr int32
padding int32
dev dm_ctl_dev
name array[int8, DM_NAME_LEN]
uuid array[int8, DM_UUID_LEN]
data array[int8, 7]
YangChenyuan marked this conversation as resolved.
Show resolved Hide resolved
data1 array[int8]
}
24 changes: 24 additions & 0 deletions sys/linux/dev_dm_ctl.txt.const
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Code generated by syz-sysgen. DO NOT EDIT.
arches = 386, amd64, arm, arm64, mips64le, ppc64le, riscv64, s390x
AT_FDCWD = 18446744073709551516
DM_DEV_ARM_POLL = 3241737488
DM_DEV_CREATE = 3241737475
DM_DEV_REMOVE = 3241737476
DM_DEV_RENAME = 3241737477
DM_DEV_SET_GEOMETRY = 3241737487
DM_DEV_STATUS = 3241737479
DM_DEV_SUSPEND = 3241737478
DM_DEV_WAIT = 3241737480
DM_GET_TARGET_VERSION = 3241737489
DM_LIST_VERSIONS = 3241737485
DM_NAME_LEN = 128
DM_TABLE_CLEAR = 3241737482
DM_TABLE_DEPS = 3241737483
DM_TABLE_LOAD = 3241737481
DM_TABLE_STATUS = 3241737484
DM_TARGET_MSG = 3241737486
DM_UUID_LEN = 129
DM_VERSION = 3241737472
O_RDWR = 2
__NR_ioctl = 54, amd64:16, arm64:riscv64:29, mips64le:5015
__NR_openat = 56, 386:295, amd64:257, arm:322, mips64le:5247, ppc64le:286, s390x:288
Loading