Re: Linux 3.18.102

From: Mauro Carvalho Chehab
Date: Tue Mar 27 2018 - 07:31:07 EST


Em Tue, 27 Mar 2018 16:31:49 +0900
Seung-Woo Kim <sw0312.kim@xxxxxxxxxxx> escreveu:

> On 2018ë 03ì 27ì 16:05, Greg KH wrote:
> > On Tue, Mar 27, 2018 at 10:40:33AM +0900, Seung-Woo Kim wrote:
> >> Hello,
> >>
> >> Until 3.18.102, it looks like following patch series for v4l2 seems missed.
> >>
> >> 273caa2 media: v4l2-compat-ioctl32.c: make ctrl_is_pointer work for subdevs
> >> a1dfb4c media: v4l2-compat-ioctl32.c: refactor compat ioctl32 logic
> >> d83a824 media: v4l2-compat-ioctl32.c: don't copy back the result for
> >> certain errors
> >> 169f24c media: v4l2-compat-ioctl32.c: drop pr_info for unknown buffer type
> >> a751be5 media: v4l2-compat-ioctl32.c: copy clip list in put_v4l2_window32
> >> b8c601e media: v4l2-compat-ioctl32.c: fix ctrl_is_pointer
> >> 8ed5a59 media: v4l2-compat-ioctl32.c: copy m.userptr in put_v4l2_plane32
> >> 333b1e9 media: v4l2-compat-ioctl32.c: avoid sizeof(type)
> >> 486c521 media: v4l2-compat-ioctl32.c: move 'helper' functions to
> >> __get/put_v4l2_format32
> >> b7b957d media: v4l2-compat-ioctl32.c: fix the indentation
> >> 3ee6d04 media: v4l2-compat-ioctl32.c: add missing VIDIOC_PREPARE_BUF
> >> 181a4a2 media: v4l2-ioctl.c: don't copy back the result for -ENOTTY
> >
> > That is correct.
> >
> >> Any plan to apply the series?
> >
> > Do you have a backported version of this series that will apply to that
> > kernel tree? If so, I'll be glad to apply it but I'm pretty sure the
> > reason I did not apply them was because they did not apply correctly.
>
> I dit not do it myself. I just checked the series is applied on other
> stable trees.

Backporting it from Kernel 4.1 is quite simple. Just two patches
have trivial conflicts.

I did a quick backport at:
https://git.linuxtv.org/mchehab/experimental.git/log/?h=v3.18.102%2bCVE

Please notice that I didn't test it yet.

Will build such Kernel and see how it behaves with compat32.

If it works fine, I'll submit for stable.

Regards,
Mauro