Hi Niklas, Sakari, On Fri, Nov 2, 2018 at 12:33 AM Niklas Söderlund <niklas.soderlund+renesas@xxxxxxxxxxxx> wrote: > From: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx> > > Implement compat IOCTL handling for VIDIOC_SUBDEV_G_ROUTING and > VIDIOC_SUBDEV_S_ROUTING IOCTLs. > > Signed-off-by: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx> > Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@xxxxxxxxxxxx> > --- a/drivers/media/v4l2-core/v4l2-compat-ioctl32.c > +++ b/drivers/media/v4l2-core/v4l2-compat-ioctl32.c > @@ -1045,6 +1045,66 @@ static int put_v4l2_event32(struct v4l2_event __user *p64, > return 0; > } > > +struct v4l2_subdev_routing32 { > + compat_caddr_t routes; > + __u32 num_routes; > + __u32 reserved[5]; > +}; > + > +static int get_v4l2_subdev_routing(struct v4l2_subdev_routing __user *p64, > + struct v4l2_subdev_routing32 __user *p32) > +{ > + struct v4l2_subdev_route __user *routes; > + compat_caddr_t p; > + u32 num_routes; > + > + if (!access_ok(VERIFY_READ, p32, sizeof(*p32)) || Please drop the first parameter of all newly-added access_ok() calls, as it has been removed in commit 96d4f267e40f9509 ("Remove 'type' argument from access_ok() function"). Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds