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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CC22646CC0522A488A20F7A66BFD619308F0F1@irsmsx105.ger.corp.intel.com>
Date:	Mon, 20 Jun 2016 09:25:59 +0000
From:	"Baranowska, BeataX" <beatax.baranowska@...el.com>
To:	Wolfram Sang <wsa@...-dreams.de>,
	"Hunter, Adrian" <adrian.hunter@...el.com>
CC:	"ulf.hansson@...aro.org" <ulf.hansson@...aro.org>,
	"aisheng.dong@....com" <aisheng.dong@....com>,
	"wsa+renesas@...g-engineering.com" <wsa+renesas@...g-engineering.com>,
	"gwendal@...omium.org" <gwendal@...omium.org>,
	"chaotian.jing@...iatek.com" <chaotian.jing@...iatek.com>,
	"linux-mmc@...r.kernel.org" <linux-mmc@...r.kernel.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"Jarosz, SebastianX" <sebastianx.jarosz@...el.com>,
	"Dong, Chuanxiao" <chuanxiao.dong@...el.com>
Subject: RE: [PATCH] mmc: Change the enhanced area related sysfs output
 format

> -----Original Message-----
> From: Wolfram Sang [mailto:wsa@...-dreams.de]
> Sent: Tuesday, June 14, 2016 2:41 PM
> To: Hunter, Adrian <adrian.hunter@...el.com>
> Cc: Baranowska, BeataX <beatax.baranowska@...el.com>;
> ulf.hansson@...aro.org; aisheng.dong@....com; wsa+renesas@...g-
> engineering.com; gwendal@...omium.org; chaotian.jing@...iatek.com;
> linux-mmc@...r.kernel.org; linux-kernel@...r.kernel.org; Jarosz,
> SebastianX <sebastianx.jarosz@...el.com>; Dong, Chuanxiao
> <chuanxiao.dong@...el.com>
> Subject: Re: [PATCH] mmc: Change the enhanced area related sysfs output
> format
> 
> On Tue, Jun 14, 2016 at 01:36:11PM +0300, Adrian Hunter wrote:
> > On 14/06/16 13:12, Wolfram Sang wrote:
> > > On Tue, Jun 14, 2016 at 10:33:06AM +0200, Beata Baranowska wrote:
> > >> From: Chuanxiao Dong <chuanxiao.dong@...el.com>
> > >>
> > >> When the enhanced area feature was not enabled, the related sysfs
> > >> will have -EINVAL(-22) value, so change the sysfs output format to
> > >> display the correct value.
> > >>
> > >> Signed-off-by: Chuanxiao Dong <chuanxiao.dong@...el.com>
> > >
> > > What about introducing attribute_group an use the is_visible
> > > callback there, so they won't get displayed at all?
> > >
> >
> > Except that it is an ABI:
> >
> > 	Documentation/ABI/testing/sysfs-devices-mmc
> 
> And broken ever since if this patch is needed... that being said, I don't really
> have a strong opinion on my suggestion. I see the file is out there for >5
> years.

When functionality was implemented for situation when enhanced area is not enabled the value 0 was being used.
After someone's suggestion 0 was changed into -ENIVAL. Variables are still unsigned. 
This patch was to change displaying part from unsigned into signed but you are right it should be investigated.

I think we could:
- use 0 instead of -ENIVAL and then leave variables unsigned as it is,
- change variables and printfs into signed
- or leave it unchanged as the file is out there for >5

Please let me know your suggestions if the update of the patch is appreciated.

Beata


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ