Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1665098 > unrolled thread
| Started by | Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> |
|---|---|
| First post | 2017-06-13 20:20 +0200 |
| Last post | 2017-06-14 17:50 +0200 |
| Articles | 3 — 3 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH] staging: android: uapi: drop definitions of removed ION_IOC_{FREE,SHARE} ioctls Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> - 2017-06-13 20:20 +0200
Re: [PATCH] staging: android: uapi: drop definitions of removed ION_IOC_{FREE,SHARE} ioctls Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-06-14 07:10 +0200
Re: [PATCH] staging: android: uapi: drop definitions of removed ION_IOC_{FREE,SHARE} ioctls "Dmitry V. Levin" <ldv@altlinux.org> - 2017-06-14 17:50 +0200
| From | Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org> |
|---|---|
| Date | 2017-06-13 20:20 +0200 |
| Subject | Re: [PATCH] staging: android: uapi: drop definitions of removed ION_IOC_{FREE,SHARE} ioctls |
| Message-ID | <tRYA2-2SW-19@gated-at.bofh.it> |
On Tue, May 30, 2017 at 04:33:57PM -0700, Laura Abbott wrote:
> On 05/30/2017 07:11 AM, Gleb Fotengauer-Malinovskiy wrote:
> > This problem was found by strace ioctl list generator.
> >
> > Fixes: 15c6098cfec5 ("staging: android: ion: Remove ion_handle and ion_client")
As this commit fixes a regression, please apply it to the tree which will
be merged before 4.12 release, too.
Otherwise the regression will be introduced to the release.
--
glebfm
[toc] | [next] | [standalone]
| From | Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
|---|---|
| Date | 2017-06-14 07:10 +0200 |
| Message-ID | <tS8J3-V8-1@gated-at.bofh.it> |
| In reply to | #1665098 |
On Tue, Jun 13, 2017 at 09:17:05PM +0300, Gleb Fotengauer-Malinovskiy wrote:
> On Tue, May 30, 2017 at 04:33:57PM -0700, Laura Abbott wrote:
> > On 05/30/2017 07:11 AM, Gleb Fotengauer-Malinovskiy wrote:
> > > This problem was found by strace ioctl list generator.
> > >
> > > Fixes: 15c6098cfec5 ("staging: android: ion: Remove ion_handle and ion_client")
>
> As this commit fixes a regression, please apply it to the tree which will
> be merged before 4.12 release, too.
What "regression" is there? The fact that a staging driver has a few
spare ioctls floating around in a header file? How is that bad?
thanks,
greg k-h
[toc] | [prev] | [next] | [standalone]
| From | "Dmitry V. Levin" <ldv@altlinux.org> |
|---|---|
| Date | 2017-06-14 17:50 +0200 |
| Message-ID | <tSiIq-70x-21@gated-at.bofh.it> |
| In reply to | #1665423 |
[Multipart message — attachments visible in raw view] — view raw
On Wed, Jun 14, 2017 at 07:08:39AM +0200, Greg Kroah-Hartman wrote:
> On Tue, Jun 13, 2017 at 09:17:05PM +0300, Gleb Fotengauer-Malinovskiy wrote:
> > On Tue, May 30, 2017 at 04:33:57PM -0700, Laura Abbott wrote:
> > > On 05/30/2017 07:11 AM, Gleb Fotengauer-Malinovskiy wrote:
> > > > This problem was found by strace ioctl list generator.
> > > >
> > > > Fixes: 15c6098cfec5 ("staging: android: ion: Remove ion_handle and ion_client")
> >
> > As this commit fixes a regression, please apply it to the tree which will
> > be merged before 4.12 release, too.
>
> What "regression" is there? The fact that a staging driver has a few
> spare ioctls floating around in a header file? How is that bad?
I thought it was pretty obvious.
OK, here is a bit more detailed explanation.
There is an uapi header that after commit 15c6098cfec5 provides
definitions of ioctl macros that do not compile when used.
Imagine a userspace code that does something as harmless as
#ifdef ION_IOC_FREE
use(ION_IOC_FREE);
#endif
This simple code is broken by commit 15c6098cfec5.
The regression is not a pure virtual one, there is a quite real userspace
(strace ioctl list generator) broken by the change.
--
ldv
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web