]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
tty: rocket: Remove RCPK_GET_STRUCT ioctl
authorFuqian Huang <huangfq.daxian@gmail.com>
Thu, 18 Apr 2019 04:35:57 +0000 (12:35 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Apr 2019 09:58:56 +0000 (11:58 +0200)
commit29973f8a88b001ebc605c88cdee124f7256ecdbf
tree8606f14cb8e4a3c6f186d8e049f15266be01c59e
parent8daa89e099708db1ffc694c812cb3c0737f1e22b
tty: rocket: Remove RCPK_GET_STRUCT ioctl

If the cmd is RCPK_GET_STRUCT, copy_to_user will copy
info to user space. As info->port.ops is the address of
a constant object rocket_port_ops (assigned in init_r_port),
a kernel address leakage happens.

Remove the RCPK_GET_STRUCT ioctl.

Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/rocket.c
drivers/tty/rocket.h