Re: [PATCH v2 0/2] liveupdate: Return -ENOTTY for unknown ioctl numbers
From: Mike Rapoport
Date: Thu Dec 03 2026 - 10:02:36 EST
From: Mike Rapoport (Microsoft) <rppt@xxxxxxxxxx>
On Wed, 02 Dec 2026 14:44:38 -0800, Chris Down wrote:
> luo_ioctl() and luo_session_ioctl() return -EINVAL for a command number
> outside their ops table, but ENOTTY for an in-table number whose full
> command does not match. That contradicts the errno contract in
> include/uapi/linux/liveupdate.h, and it means a program cannot tell an
> ioctl the kernel does not have from a known ioctl with a bad argument.
> It also makes isatty() on a LUO fd fail with EINVAL instead of ENOTTY.
>
> [...]
Applied to liveupdate-7.5 branch of liveupdate/linux.git tree, thanks!
[1/2] liveupdate: Return -ENOTTY for unknown ioctl numbers
commit: b36e33d8903d7ebcf5a5ab87c4a057eb6eec19df
[2/2] selftests/liveupdate: Test ENOTTY for unknown ioctl numbers
commit: 6f8be8fa8e6f98d30949762d4e73cedad280dbdb
tree: https://git.kernel.org/pub/scm/linux/kernel/git/liveupdate/linux
branch: liveupdate-7.5
--
Sincerely yours,
Mike.