[PATCH 2/2] Update ioctl entries from linux v4.17

Eugene Syromiatnikov esyr at redhat.com
Wed May 16 17:48:53 UTC 2018


On Wed, May 16, 2018 at 08:16:35PM +0300, Gleb Fotengauer-Malinovskiy wrote:
> diff --git a/linux/64/ioctls_inc.h b/linux/64/ioctls_inc.h
> index b31b321..8cd03d0 100644
> --- a/linux/64/ioctls_inc.h
> +++ b/linux/64/ioctls_inc.h
[...]
> -{ "asm-generic/ioctls.h", "TCGETS2", _IOC_READ, 0x542a, 0x2c },
> +{ "asm-generic/ioctls.h", "TCGETS2", _IOC_READ, 0x542a, 0x30 },
[...]
> -{ "asm-generic/ioctls.h", "TCSETS2", _IOC_WRITE, 0x542b, 0x2c },
> +{ "asm-generic/ioctls.h", "TCSETS2", _IOC_WRITE, 0x542b, 0x30 },
>  { "asm-generic/ioctls.h", "TCSETSF", 0, 0x5404, 0 },
> -{ "asm-generic/ioctls.h", "TCSETSF2", _IOC_WRITE, 0x542d, 0x2c },
> +{ "asm-generic/ioctls.h", "TCSETSF2", _IOC_WRITE, 0x542d, 0x30 },
>  { "asm-generic/ioctls.h", "TCSETSW", 0, 0x5403, 0 },
> -{ "asm-generic/ioctls.h", "TCSETSW2", _IOC_WRITE, 0x542c, 0x2c },
> +{ "asm-generic/ioctls.h", "TCSETSW2", _IOC_WRITE, 0x542c, 0x30 },
[...]
> -{ "linux/mtio.h", "MTIOCGET", _IOC_READ, 0x6d02, 0x30 },
> +{ "linux/mtio.h", "MTIOCGET", _IOC_READ, 0x6d02, 0x38 },
[...]
> -{ "linux/ncp_fs.h", "NCP_IOC_GETMOUNTUID", _IOC_WRITE, 0x6e02, 0x02 },
> +{ "linux/ncp_fs.h", "NCP_IOC_GETMOUNTUID", _IOC_WRITE, 0x6e02, 0x04 },
These changes are very strange. Are you sure about them?

> diff --git a/linux/x86_64/ioctls_arch0.h b/linux/x86_64/ioctls_arch0.h
> index 8d6abab..815f210 100644
> --- a/linux/x86_64/ioctls_arch0.h
> +++ b/linux/x86_64/ioctls_arch0.h
[...]
> -{ "linux/kvm.h", "KVM_MEMORY_ENCRYPT_OP", _IOC_READ|_IOC_WRITE, 0xaeba, 0x08 },
> +{ "linux/kvm.h", "KVM_MEMORY_ENCRYPT_OP", _IOC_READ|_IOC_WRITE, 0xaeba, 0x04 },
This is also very strange, it is defined as

	#define KVM_MEMORY_ENCRYPT_OP      _IOWR(KVMIO, 0xba, unsigned long)


More information about the Strace-devel mailing list