Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1517125 > unrolled thread
| Started by | Johan Hovold <johan@kernel.org> |
|---|---|
| First post | 2016-11-08 13:30 +0100 |
| Last post | 2016-11-08 14:00 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 3/3] serial: crisv10: fix invalid user-pointer check Johan Hovold <johan@kernel.org> - 2016-11-08 13:30 +0100
Re: [PATCH 3/3] serial: crisv10: fix invalid user-pointer check Jesper Nilsson <jesper.nilsson@axis.com> - 2016-11-08 14:00 +0100
| From | Johan Hovold <johan@kernel.org> |
|---|---|
| Date | 2016-11-08 13:30 +0100 |
| Subject | [PATCH 3/3] serial: crisv10: fix invalid user-pointer check |
| Message-ID | <sBdHk-SQ-11@gated-at.bofh.it> |
Drop invalid user-pointer check from TIOCGSERIAL handler. A NULL-pointer can be valid in user space and copy_to_user() takes care of sanity checking. Cc: Mikael Starvik <starvik@axis.com> Cc: Jesper Nilsson <jesper.nilsson@axis.com> Cc: linux-cris-kernel@axis.com Signed-off-by: Johan Hovold <johan@kernel.org> --- drivers/tty/serial/crisv10.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/tty/serial/crisv10.c b/drivers/tty/serial/crisv10.c index 315c84979b18..d4cb6ff52e7a 100644 --- a/drivers/tty/serial/crisv10.c +++ b/drivers/tty/serial/crisv10.c @@ -3214,8 +3214,6 @@ get_serial_info(struct e100_serial * info, * should set them to something else than 0. */ - if (!retinfo) - return -EFAULT; memset(&tmp, 0, sizeof(tmp)); tmp.type = info->type; tmp.line = info->line; -- 2.7.3
[toc] | [next] | [standalone]
| From | Jesper Nilsson <jesper.nilsson@axis.com> |
|---|---|
| Date | 2016-11-08 14:00 +0100 |
| Message-ID | <sBeal-12r-7@gated-at.bofh.it> |
| In reply to | #1517125 |
On Tue, Nov 08, 2016 at 01:24:55PM +0100, Johan Hovold wrote:
> Drop invalid user-pointer check from TIOCGSERIAL handler.
>
> A NULL-pointer can be valid in user space and copy_to_user() takes care
> of sanity checking.
>
> Cc: Mikael Starvik <starvik@axis.com>
Acked-by: Jesper Nilsson <jesper.nilsson@axis.com>
> Cc: linux-cris-kernel@axis.com
> Signed-off-by: Johan Hovold <johan@kernel.org>
/^JN - Jesper Nilsson
--
Jesper Nilsson -- jesper.nilsson@axis.com
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web