Michal Kubecek
fac2c93374
vmmon: check presence of file_operations::poll()
...
Commit 11c5ad0ec441 ("eventpoll: switch to ->poll_mask") in v4.18-rc1, made
eventpoll switch from ->poll() to ->poll_mask(), resulting in a null
pointer dereference as vmmon calls the callback directly without checking
its availability.
Rather than calling the callback directly (which would result in null
pointer dereference), use vfs_poll() wrapper. As this wrapper is only
available since 4.18-rc1 cycle as well, provide a copy to use when building
against older kernels.
Note: even if the commit revealing the problem was reverted in 4.18-rc3
(and is unlikely to go back in the same form) so that vmmon no longer
crashes with 4.18 kernel, calling the callback without a check is a bad
practice so let's keep the patch in place.
2018-08-20 07:46:13 +02:00
..
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-05-31 09:19:26 +02:00
2017-05-31 09:19:26 +02:00
2017-05-31 09:19:26 +02:00
2017-05-31 09:19:26 +02:00
2017-09-30 20:31:15 +02:00
2018-08-20 07:46:13 +02:00
2017-05-31 09:19:26 +02:00
2017-05-31 09:19:26 +02:00
2017-05-31 09:19:26 +02:00
2017-05-31 09:19:26 +02:00
2017-05-31 09:19:26 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-05-31 09:19:26 +02:00
2017-05-31 09:19:26 +02:00
2017-05-31 09:19:26 +02:00
2017-05-31 09:19:26 +02:00
2018-08-20 07:28:17 +02:00
2017-09-30 20:31:15 +02:00
2018-01-12 13:51:34 +01:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-05-31 09:19:26 +02:00
2017-09-30 20:31:15 +02:00
2017-05-31 09:19:26 +02:00
2017-05-31 09:19:26 +02:00
2017-05-31 09:19:26 +02:00
2017-06-30 19:11:22 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-05-31 09:19:26 +02:00
2017-05-31 09:19:26 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-05-31 09:19:26 +02:00
2018-08-20 07:34:04 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-05-31 09:19:26 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2018-08-20 07:33:44 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2018-08-20 07:28:17 +02:00
2017-05-31 09:19:26 +02:00
2018-08-20 07:37:29 +02:00
2018-08-20 07:28:17 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-05-31 09:19:26 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00
2017-09-30 20:31:15 +02:00