From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=3.0 tests=DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS,T_DKIM_INVALID, USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C3D25C28CF6 for ; Wed, 1 Aug 2018 08:24:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 75F622083E for ; Wed, 1 Aug 2018 08:24:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="IOrRhGPX" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 75F622083E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388613AbeHAKI7 (ORCPT ); Wed, 1 Aug 2018 06:08:59 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:50856 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387721AbeHAKI7 (ORCPT ); Wed, 1 Aug 2018 06:08:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=bMXYbd/2W2b99gk+kc4NjTlHj7CX0Zf1ocahnBfBlfs=; b=IOrRhGPXS7d0WZKK/9u1NmwjW nX5Toi8oFOo1dH6aoyv5wB7ruhwLmmMnoQTHmRchbk+UghYLBMkjjGAjFz0vMqUjHHTIeSUGQzJCO Le53roGJmLIwvPKW0OS47iIUBWo+M7hiK8WBs3p+c1i4HRGZpkXuHqKZOKm6lKVGvgYea+0oOAg4C FfL98u0dbQvOifCObID4iHBeoEMCdJGeF7u2IuzozCsSHoySs+yT+UdxwifM2jGbUxWkpWY8BozD3 QZn7fgBgRvolS8eHnpVZ/ZrJXe0hJBq20HeqrSTHbWPdMv+Lc8nWunIJZj3XbvuTOKqXKZcKptGwd hnBVitvLA==; Received: from hch by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fkmQR-0000lD-K4; Wed, 01 Aug 2018 08:24:07 +0000 Date: Wed, 1 Aug 2018 01:24:07 -0700 From: Christoph Hellwig To: Kees Cook Cc: Jens Axboe , Christoph Hellwig , "Martin K. Petersen" , "James E.J. Bottomley" , Tejun Heo , Borislav Petkov , "David S. Miller" , "Manoj N. Kumar" , "Matthew R. Ochs" , Uma Krishnan , "Nicholas A. Bellinger" , Thomas Gleixner , Philippe Ombredanne , Stephen Boyd , Cyrille Pitchen , Juergen Gross , Viresh Kumar , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Sagar Dharia , Randy Dunlap , Vinod Koul , David Kershner , linux-block@vger.kernel.org, linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org, target-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 7/9] cdrom: Use struct scsi_sense_hdr internally Message-ID: <20180801082407.GC26378@infradead.org> References: <20180731195155.46664-1-keescook@chromium.org> <20180731195155.46664-8-keescook@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180731195155.46664-8-keescook@chromium.org> User-Agent: Mutt/1.9.2 (2017-12-15) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 31, 2018 at 12:51:52PM -0700, Kees Cook wrote: > This removes more casts of struct request_sense and uses the standard > struct scsi_sense_hdr instead. This also fixes any possible stale values > since the prior code did not check the sense length. > > Signed-off-by: Kees Cook Looks good, Reviewed-by: Christoph Hellwig