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: <20080702230742.GA708@kroah.com>
Date:	Wed, 2 Jul 2008 16:07:42 -0700
From:	Greg KH <greg@...ah.com>
To:	Anton Vorontsov <cbouatmailru@...il.com>
Cc:	schwidefsky@...ibm.com, heiko.carstens@...ibm.com,
	linux390@...ibm.com, Kay Sievers <kay.sievers@...y.org>,
	Cornelia Huck <cornelia.huck@...ibm.com>,
	linux-s390@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 02/04] s390: bus_id -> dev_set_name() changes

On Thu, Jul 03, 2008 at 02:14:01AM +0400, Anton Vorontsov wrote:
> On Wed, Jul 02, 2008 at 08:48:11AM -0700, Greg KH wrote:
> > From: Cornelia Huck <cornelia.huck@...ibm.com>
> > 
> > Convert most s390 users setting bus_id to dev_set_name().
> > css and ccw busses are deferred since they need some special
> > treatment.
> > 
> > Signed-off-by: Cornelia Huck <cornelia.huck@...ibm.com>
> > Cc: Kay Sievers <kay.sievers@...y.org>
> > Signed-off-by: Greg Kroah-Hartman <gregkh@...e.de>
> > 
> > ---
> >  drivers/s390/block/dcssblk.c |    2 +-
> >  drivers/s390/char/vmlogrdr.c |    3 +--
> >  drivers/s390/cio/ccwgroup.c  |    3 +--
> >  drivers/s390/cio/chp.c       |    3 +--
> >  drivers/s390/cio/css.c       |    4 ++--
> >  drivers/s390/crypto/ap_bus.c |    4 ++--
> >  drivers/s390/net/netiucv.c   |    2 +-
> >  drivers/s390/s390_rdev.c     |    2 +-
> >  drivers/s390/scsi/zfcp_aux.c |   23 ++++++++---------------
> >  9 files changed, 18 insertions(+), 28 deletions(-)
> > 
> > --- a/drivers/s390/block/dcssblk.c
> > +++ b/drivers/s390/block/dcssblk.c
> > @@ -349,7 +349,7 @@ dcssblk_add_store(struct device *dev, st
> >  	}
> >  
> >  	strcpy(dev_info->segment_name, local_buf);
> > -	strlcpy(dev_info->dev.bus_id, local_buf, BUS_ID_SIZE);
> > +	dev_set_name(&dev_info->dev, local_buf);
> 
> As I see it, dev_set_name accepts printf like string, so this
> dev_set_name is quite dangerous (since local_buf is formed
> by the module param), no?

So you would rather see:
	dev_set_name(&dev_info->dev, "%s", local_buf);

instead?

thanks,

greg k-h
--
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