Dan Carpenter
c8ea3663f7
drivers/virt/fsl_hypervisor.c: dereferencing error pointers in ioctl
...
strndup_user() returns error pointers on error, and then in the error
handling we pass the error pointers to kfree(). It will cause an Oops.
Link: http://lkml.kernel.org/r/20181218082003.GD32567@kadam
Fixes: 6db7199407ca ("drivers/virt: introduce Freescale hypervisor management driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Timur Tabi <timur@freescale.com>
Cc: Mihai Caraman <mihai.caraman@freescale.com>
Cc: Kumar Gala <galak@kernel.crashing.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-05-14 19:52:52 -07:00
..
2019-05-14 10:30:10 -07:00
2019-05-07 13:39:22 -07:00
2019-05-14 10:10:55 -07:00
2019-05-07 22:03:58 -07:00
2019-05-05 19:34:00 +02:00
2019-05-08 10:34:17 -07:00
2019-05-07 11:46:13 -07:00
2019-05-08 12:25:12 -07:00
2019-05-07 09:18:12 -07:00
2019-05-06 20:15:06 -07:00
2019-05-14 09:47:44 -07:00
2019-05-09 08:51:45 -07:00
2019-05-08 21:35:19 -07:00
2019-05-06 19:54:57 -07:00
2019-05-07 13:39:22 -07:00
2019-05-14 09:47:50 -07:00
2019-05-07 13:39:22 -07:00
2019-05-14 09:47:46 -07:00
2019-05-07 13:39:22 -07:00
2019-05-14 10:39:08 -07:00
2019-05-14 19:52:52 -07:00
2019-05-13 15:21:48 -07:00
2019-05-07 12:15:13 -07:00
2019-05-07 13:39:22 -07:00
2019-05-09 14:41:55 -07:00
2019-05-07 08:50:40 -07:00
2019-05-08 16:47:23 -07:00
2019-05-07 13:31:29 -07:00
2019-05-14 09:47:49 -07:00
2019-05-14 10:39:08 -07:00
2019-05-14 19:52:52 -07:00
2019-05-07 13:01:40 -07:00
2019-05-07 22:03:58 -07:00
2019-05-14 10:39:08 -07:00
2019-05-10 12:55:16 -04:00
2019-05-07 18:14:36 -07:00
2019-05-14 09:47:50 -07:00
2019-05-12 17:57:52 -04:00
2019-05-07 12:56:19 -07:00
2019-05-14 10:39:08 -07:00
2019-05-14 10:30:10 -07:00
2019-05-14 19:52:52 -07:00
2019-05-14 19:52:52 -07:00
2019-05-14 10:39:08 -07:00
2019-05-07 22:03:58 -07:00
2019-05-07 18:14:36 -07:00
2019-05-08 10:12:46 -07:00
2019-05-13 08:52:37 -07:00
2019-05-03 23:47:39 +02:00
2019-05-09 08:40:55 -07:00
2019-05-14 10:30:10 -07:00
2019-05-14 19:52:52 -07:00
2019-05-08 10:03:52 -07:00
2019-05-14 10:39:08 -07:00
2019-05-14 10:39:08 -07:00
2019-05-08 12:06:52 +01:00
2019-05-14 19:52:51 -07:00
2019-05-09 09:19:26 -07:00
2019-05-10 12:57:15 -04:00
2019-05-14 19:52:50 -07:00
2019-05-06 22:52:14 +09:00
2019-05-12 07:00:21 -04:00
2019-05-07 22:03:58 -07:00
2019-05-14 09:47:46 -07:00
2019-05-14 09:47:46 -07:00
2019-05-14 19:52:52 -07:00
2019-05-14 19:52:48 -07:00
2019-05-07 22:03:58 -07:00
2019-05-14 10:45:03 -07:00
2019-05-08 10:12:46 -07:00
2019-05-14 09:47:46 -07:00
2019-05-07 13:39:22 -07:00
2019-05-14 19:52:51 -07:00
2019-05-14 10:45:03 -07:00
2019-05-14 09:47:46 -07:00
2019-05-14 09:47:46 -07:00
2019-05-14 19:52:52 -07:00
2019-05-14 19:52:52 -07:00
2019-05-07 13:39:22 -07:00
2019-05-13 09:20:42 -04:00
2019-05-14 09:47:50 -07:00