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: <44BD8FB7.9080307@cluded.net>
Date:	Wed, 19 Jul 2006 01:49:43 +0000
From:	"Daniel K." <daniel@...ded.net>
To:	Panagiotis Issaris <takis@...umba.uhasselt.be>
CC:	linux-kernel@...r.kernel.org, linux-eata@...onnect.net
Subject: Re: [PATCH 2/2] Forgotten memset

Panagiotis Issaris wrote:
> --- a/drivers/scsi/ide-scsi.c
> +++ b/drivers/scsi/ide-scsi.c
> @@ -327,7 +327,7 @@ static int idescsi_check_condition(ide_d
>  
>  	/* stuff a sense request in front of our current request */
>  	pc = kzalloc (sizeof (idescsi_pc_t), GFP_ATOMIC);
> -	rq = kmalloc (sizeof (struct request), GFP_ATOMIC);
> +	rq = kzalloc (sizeof (struct request), GFP_ATOMIC);
>  	buf = kzalloc(SCSI_SENSE_BUFFERSIZE, GFP_ATOMIC);
>  	if (pc == NULL || rq == NULL || buf == NULL) {
>  		kfree(buf);
>
> Was this forgotten and therefore, is it necessary or useful to zero this
> out?

No, this code snippet is followed by a call to

	ide_init_drive_cmd(rq)

which calls memset()


Daniel K.

-
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