Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp277826imm; Thu, 20 Sep 2018 23:30:24 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaDQSFUsMbd4B/7KEn1zU2BMud5d5aNZ0nzx/UJOX6kz+ANQKBAvWrbAWuZ5VhBGZ/gcqkS X-Received: by 2002:a62:c0a:: with SMTP id u10-v6mr45217168pfi.43.1537511424008; Thu, 20 Sep 2018 23:30:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537511423; cv=none; d=google.com; s=arc-20160816; b=NupDq8d8T7L5lkHzAF21rDxDfEyRksMhXQUXroItkpVgrnq/vWrxEyFCEsnzwfqK6G FGXoL+NNs70atQmjCbWDHP1aaaGnzrfKLVSjseer2eEO/mQtTCbZzvyEmjNT+xkDtQ9Y lSvHG2lZiP+YxSSAU1iukh4pIXRk+VZd+xMwwOhK9frc/auGqW8JD6NzZ7UonohmV2sH /w8/CB/ZF+1jACsvS1wrHeFG5Ge/5v6dgkzq3mFvTJRzlgXSESwJOIaLySp2gKS/se9u rBjC+6YARMtKspN0C75He7TlcMVESJTU0zNUPdVU+NpquZPlYIG/M/2Yp+RzRVRXnWYv VRSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=JR7oVIRw0OI5L6qHKtvoSjJLjYeboovKWipzKxygsUo=; b=dzhLrakM3mp9g7/0DkUCn2CdLqGjNZPmP+PflZ6ZP2boMLzDyN8i50FzPz/NiI5C6z Gjw5cwOgum7oHhCINmaSIDL4RyveeE89Zn0N9UgQGDjv9kbox4GREPG7H+sxhY+l6eqA VHU9ErWHXjGKKu6Bz/yPs3IfrJKbwtILkjuvtbzv388CxbUvyXUnVVGqlXDeBgygnwPc DlUmYM3Ndww67twgzv80mk097dTU83ioaTGPpiOtxR+6pfY6FCSTCrYaKRy3b2xnIhNL Nle9jBqDyt1WGOXbWIapxiCVCoLZNwswTzkGwyMrCGCr+viUCjDUVRpHlhiCgA6rbm42 vjpA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cf16-v6si27994457plb.254.2018.09.20.23.30.08; Thu, 20 Sep 2018 23:30:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389347AbeIUMRN (ORCPT + 99 others); Fri, 21 Sep 2018 08:17:13 -0400 Received: from mx2.suse.de ([195.135.220.15]:45800 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389220AbeIUMRN (ORCPT ); Fri, 21 Sep 2018 08:17:13 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id B61FCB093; Fri, 21 Sep 2018 06:29:48 +0000 (UTC) Date: Fri, 21 Sep 2018 08:29:47 +0200 From: Johannes Thumshirn To: Bart Van Assche Cc: "Martin K . Petersen" , Linux Kernel Mailinglist , Linux SCSI Mailinglist , Hannes Reinecke , Christoph Hellwig Subject: Re: [PATCH] scsi: sd: don't crash the host on invalid commands Message-ID: <20180921062947.GA4913@linux-x5ow.site> References: <20180920071907.10102-1-jthumshirn@suse.de> <1537467499.224533.21.camel@acm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1537467499.224533.21.camel@acm.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 20, 2018 at 11:18:19AM -0700, Bart Van Assche wrote: > On Thu, 2018-09-20 at 09:19 +0200, Johannes Thumshirn wrote: > > Have you considered to use WARN_ON_ONCE() instead of WARN_ON(1)? Otherwise > this patch looks good to me. Indeed I did and then forgot to 'git commit --amend' it befroe sending it out. I'll do so now. Johannes -- Johannes Thumshirn Storage jthumshirn@suse.de +49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N?rnberg GF: Felix Imend?rffer, Jane Smithard, Graham Norton HRB 21284 (AG N?rnberg) Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850