lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 19 May 2021 16:04:34 +0800
From:   Kent Gibson <warthog618@...il.com>
To:     Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc:     Bartosz Golaszewski <bgolaszewski@...libre.com>,
        linux-gpio@...r.kernel.org, linux-kernel@...r.kernel.org,
        Linus Walleij <linus.walleij@...aro.org>,
        Suresh Balakrishnan <suresh.balakrishnan@...el.com>
Subject: Re: [PATCH v1 1/2] gpiolib: Never return internal error codes to
 user space

On Wed, May 19, 2021 at 10:45:16AM +0300, Andy Shevchenko wrote:
> On Wed, May 19, 2021 at 07:24:51AM +0800, Kent Gibson wrote:
> > On Tue, May 18, 2021 at 06:50:12PM +0300, Andy Shevchenko wrote:
> > > Currently it's possible that character device interface may return
> > > the error codes which are not supposed to be seen by user space.
> > > In this case it's EPROBE_DEFER.
> > > 
> > > Wrap it to return -ENODEV instead as sysfs does.
> 
> > > Fixes: d7c51b47ac11 ("gpio: userspace ABI for reading/writing GPIO lines")
> > > Fixes: 61f922db7221 ("gpio: userspace ABI for reading GPIO line events")
> > > Fixes: 3c0d9c635ae2 ("gpiolib: cdev: support GPIO_V2_GET_LINE_IOCTL and GPIO_V2_LINE_GET_VALUES_IOCTL")
> 
> ...
> 
> > You immediately revert this patch in patch 2.
> > My understanding is that is not allowed within a patch set.
> 
> > Why split the patches instead of going direct to the new helper?
> 
> It's for backporting to make it easier. (I deliberately left the context above)
> 
> I can fold them if maintainers think it's okay to do.
> 

Not sure what the constraints are on backporting, but wouldn't it be
simpler and cleaner to backport the new helper?

But, as you say, it is the maintainers' call.

Cheers,
Kent.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ