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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CY1PR0301MB0777F8777B4F906C8610D852A0590@CY1PR0301MB0777.namprd03.prod.outlook.com>
Date:	Fri, 3 Jun 2016 21:34:26 +0000
From:	KY Srinivasan <kys@...rosoft.com>
To:	Cathy Avery <cavery@...hat.com>,
	"linux-scsi@...r.kernel.org" <linux-scsi@...r.kernel.org>
CC:	Haiyang Zhang <haiyangz@...rosoft.com>,
	"martin.petersen@...cle.com" <martin.petersen@...cle.com>,
	"jejb@...ux.vnet.ibm.com" <jejb@...ux.vnet.ibm.com>,
	"devel@...uxdriverproject.org" <devel@...uxdriverproject.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH 1/1] scsi: storvsc: Filter out storvsc messages CD-ROM
 medium not present



> -----Original Message-----
> From: Cathy Avery [mailto:cavery@...hat.com]
> Sent: Monday, May 23, 2016 7:29 AM
> To: linux-scsi@...r.kernel.org
> Cc: KY Srinivasan <kys@...rosoft.com>; Haiyang Zhang
> <haiyangz@...rosoft.com>; martin.petersen@...cle.com;
> jejb@...ux.vnet.ibm.com; devel@...uxdriverproject.org; linux-
> kernel@...r.kernel.org
> Subject: [PATCH 1/1] scsi: storvsc: Filter out storvsc messages CD-ROM medium
> not present
> 
> When a virtual scsi DVD device is present with no image file
> attached the storvsc driver logs all resulting unnecessary sense errors
> whenever IO is issued to the device.
> 
> [storvsc] Sense Key : Not Ready [current]
> [storvsc] Add. Sense: Medium not present - tray closed
> 
> Signed-off-by: Cathy Avery <cavery@...hat.com>

Thanks Cathy.

Reviewed-by: K. Y. Srinivasan <kys@...rosoft.com>

> ---
>  drivers/scsi/storvsc_drv.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c
> index 3ddcabb..f0efa07 100644
> --- a/drivers/scsi/storvsc_drv.c
> +++ b/drivers/scsi/storvsc_drv.c
> @@ -966,7 +966,9 @@ static void storvsc_command_completion(struct
> storvsc_cmd_request *cmd_request,
>  	if (scmnd->result) {
>  		if (scsi_normalize_sense(scmnd->sense_buffer,
>  				SCSI_SENSE_BUFFERSIZE, &sense_hdr) &&
> -		    do_logging(STORVSC_LOGGING_ERROR))
> +		    !(sense_hdr.sense_key == NOT_READY &&
> +				 sense_hdr.asc == 0x03A) &&
> +		    do_logging(STORVSC_LOGGING_ERROR))
>  			scsi_print_sense_hdr(scmnd->device, "storvsc",
>  					     &sense_hdr);
>  	}
> --
> 2.5.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ