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: <20071014234014.45b5469b.akpm@linux-foundation.org>
Date:	Sun, 14 Oct 2007 23:40:14 -0700
From:	Andrew Morton <akpm@...ux-foundation.org>
To:	HighPoint Linux Team <linux@...hpoint-tech.com>
Cc:	linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
	James.Bottomley@...elEye.com
Subject: Re: [PATCH] hptiop: avoid buffer overflow when returning sense data

On Mon, 15 Oct 2007 14:42:52 +0800 HighPoint Linux Team <linux@...hpoint-tech.com> wrote:

> 
> avoid buffer overflow when returning sense data.
> 

That's really not enough information, sorry.

> index 8b384fa..d32a4a9 100644
> --- a/drivers/scsi/hptiop.c
> +++ b/drivers/scsi/hptiop.c
> @@ -375,8 +375,9 @@ static void hptiop_host_request_callback
>  		scp->result = SAM_STAT_CHECK_CONDITION;
>  		memset(&scp->sense_buffer,
>  				0, sizeof(scp->sense_buffer));
> -		memcpy(&scp->sense_buffer,
> -			&req->sg_list, le32_to_cpu(req->dataxfer_length));
> +		memcpy(&scp->sense_buffer, &req->sg_list,
> +				min(sizeof(scp->sense_buffer),
> +					le32_to_cpu(req->dataxfer_length)));
>  		break;
>  
>  	default:

See, we know what the fix does, but we don't know what the consequences are
if the user's kernel doesn't have this fix.

So we are not able to work out whether this fix should be backported to
2.6.23.x and even to 2.6.22.x?
-
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