]> git.baikalelectronics.ru Git - kernel.git/commit
kill TIOCSERGSTRUCT
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 14 Sep 2018 18:46:18 +0000 (14:46 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 13 Oct 2018 04:50:53 +0000 (00:50 -0400)
commite942017e434528f2d8ceaec931111e1dcfbdc5b7
tree8525a37eb3f2b63ef4af52226523a15de8b08d1a
parent8800df99b8eb31570cb4a4bcad546151f35c5fe0
kill TIOCSERGSTRUCT

Once upon a time a bunch of serial drivers used to provide that;
today it's only amiserial and it's FUBAR - the structure being
copied to userland includes kernel pointers, fields with
config-dependent size, etc.  No userland code using it could
possibly survive - e.g. enabling lockdep definitely changes the
layout.  Besides, it's a massive infoleak.

Kill it.  If somebody needs that data for debugging purposes, they
can bloody well expose it saner ways.  Assuming anyone does debugging
of amiserial in the first place, that is.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/ia64/hp/sim/simserial.c
drivers/tty/amiserial.c
net/bluetooth/rfcomm/tty.c