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] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150313073908.GA9753@blaptop>
Date:	Fri, 13 Mar 2015 16:39:08 +0900
From:	Minchan Kim <minchan@...nel.org>
To:	Sergey Senozhatsky <sergey.senozhatsky.work@...il.com>
Cc:	Sergey Senozhatsky <sergey.senozhatsky@...il.com>,
	Andrew Morton <akpm@...ux-foundation.org>,
	Nitin Gupta <ngupta@...are.org>, linux-kernel@...r.kernel.org
Subject: Re: [PATCHv2 7/7] zram: deprecate zram attrs sysfs nodes

On Fri, Mar 13, 2015 at 10:10:35AM +0900, Sergey Senozhatsky wrote:
> Hi Minchan,
> 
> On (03/13/15 08:55), Minchan Kim wrote:
> > How about adding pid, comm? Admin can know which process touches.
> > 
> 
> ok.
> 
> > >  	struct zram *zram = dev_to_zram(d);				\
> > > +									\
> > > +	deprecated_attr_warn(__stringify(name));			\
> > 
> > It just reports once for first-touched stat and miss other stats by ZRAM_ATTR_RO.
> > Of course, you warned "See zram documentation" so he might know about other stats
> > plan, too. If it's your intention, let's make warn more clear.
> > 
> 
> yes, we have a "go and read docs" warning. documentation explains it in details.
> so I think one warning is enough.
> 
> > "Atrribute $s will be removed. Also, there are other stats we will remove
> > in future. See Documentation/blockdev/zram.txt"
> > 
> 
> I didn't want it to be tooooooooooooooo long (and still don't want).
> "Documentation/blockdev/zram.txt" is not a path which a regular user
> can just copy-paste and use to access the documentation. so I'd prefer
> to keep it as "See zram documentation".

Fair enough. When I google zram documentation, first hit is
https://www.kernel.org/doc/Documentation/blockdev/zram.txt
So, it's enough if google search doesn't change his mind.
Otherwise, we could point out above URL.

> 
> How about this? (well, a multi-line string.)

AFAIK, kernel rule doesn't prefer multi-line for printk string
because it makes hard to work with grep. Anyway, it's trivial.
For example, checkpatch will emit

WARNING: quoted string split across lines

Anyway, I agree with your way.

Thanks.
-- 
Kind regards,
Minchan Kim
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ