Dmitry Torokhov
601bbbe051
Input: uinput - fix crash when mixing old and new init style
...
If user tries to initialize uinput device mixing old and new style
initialization (i.e. using old UI_SET_ABSBIT instead of UI_ABS_SETUP,
we forget to allocate input->absinfo and will crash when trying to send
absolute events:
ioctl(ui, UI_DEV_SETUP, &us);
ioctl(ui, UI_SET_PHYS, "Test");
ioctl(ui, UI_SET_EVBIT, EV_ABS);
ioctl(ui, UI_SET_ABSBIT, ABS_X);
ioctl(ui, UI_SET_ABSBIT, ABS_Y);
ioctl(ui, UI_DEV_CREATE, 0);
Reported-by: Rodrigo Rivas Costa <rodrigorivascosta@gmail.com >
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=191811
Fixes: fbae10db09
("Input: uinput - rework ABS validation")
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com >
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com >
2017-02-01 10:33:11 -08:00
..
2014-10-20 16:20:40 +02:00
2014-12-17 10:06:02 -08:00
2015-09-03 10:56:19 -07:00
2015-09-19 11:42:39 -07:00
2015-11-06 11:57:41 -08:00
2015-09-19 11:42:39 -07:00
2015-09-19 11:42:39 -07:00
2017-01-03 12:33:12 -08:00
2015-10-28 10:30:17 +09:00
2014-01-06 23:23:57 -08:00
2010-07-03 13:13:21 -07:00
2016-06-23 10:44:01 -07:00
2016-12-01 20:19:13 +00:00
2016-03-23 17:29:29 -07:00
2016-12-24 11:46:01 -08:00
2016-05-18 15:08:19 -07:00
2015-08-03 14:11:46 -07:00
2015-02-15 16:06:29 -08:00
2016-11-16 16:59:24 -08:00
2016-05-04 16:01:42 -07:00
2015-07-17 16:57:00 -07:00
2013-12-06 02:06:29 -08:00
2010-11-30 23:05:21 -08:00
2014-10-20 16:20:40 +02:00
2014-10-20 16:20:40 +02:00
2014-10-20 16:20:40 +02:00
2016-10-26 16:48:16 -07:00
2014-10-20 16:20:40 +02:00
2016-12-12 14:20:32 -08:00
2016-11-30 09:03:44 -08:00
2016-11-30 09:03:45 -08:00
2015-01-10 14:17:10 -08:00
2015-07-30 11:05:37 -07:00
2016-08-29 20:24:23 -07:00
2014-10-20 16:20:40 +02:00
2015-06-16 17:09:14 -07:00
2016-06-23 13:45:54 -07:00
2015-10-22 23:31:28 -07:00
2014-10-20 16:20:40 +02:00
2016-03-17 14:16:57 -07:00
2014-10-20 16:20:40 +02:00
2016-10-26 16:01:16 -07:00
2014-07-18 10:53:27 -07:00
2015-10-02 11:44:17 -07:00
2014-10-20 16:20:40 +02:00
2016-08-29 20:24:23 -07:00
2014-12-17 10:06:02 -08:00
2016-05-25 10:40:15 -07:00
2016-10-13 17:25:40 -07:00
2014-10-20 16:20:40 +02:00
2015-03-24 11:35:06 -07:00
2015-07-17 16:57:00 -07:00
2015-03-19 12:16:18 -07:00
2014-10-20 16:20:40 +02:00
2015-07-17 16:57:00 -07:00
2014-01-06 23:23:57 -08:00
2014-10-20 16:20:40 +02:00
2014-12-17 10:06:02 -08:00
2015-09-19 11:39:03 -07:00
2016-04-17 05:24:53 -07:00
2016-03-14 09:36:49 -07:00
2016-05-27 19:14:35 -07:00
2015-09-03 12:08:02 +02:00
2016-06-23 10:43:57 -07:00
2015-05-15 15:58:41 -07:00
2016-07-27 18:26:10 -07:00
2014-10-20 16:20:40 +02:00
2016-01-27 15:55:14 -08:00
2016-11-25 11:39:50 -08:00
2015-12-02 10:02:50 -08:00
2016-10-26 10:30:20 +01:00
2015-05-15 15:58:40 -07:00
2016-04-20 14:39:46 -07:00
2016-05-16 17:25:08 -07:00
2017-02-01 10:33:11 -08:00
2014-10-20 16:20:40 +02:00
2015-05-15 15:58:42 -07:00
2016-11-07 13:55:20 +01:00
2014-01-06 23:23:57 -08:00
2010-02-09 11:13:56 +01:00