Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1910716imm; Tue, 22 May 2018 11:18:09 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp8iIj3Sf9XmqdXwE6wh003zN2ojTv1ZfMBb7s9+c8kiSIZnFSj3NSLusNXTwRWpGApzwuR X-Received: by 2002:a63:9b11:: with SMTP id r17-v6mr19478498pgd.297.1527013088977; Tue, 22 May 2018 11:18:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527013088; cv=none; d=google.com; s=arc-20160816; b=w7gt7n6D/moWQwSimIn8MtWI9BukbwdCwn9v3gQjmD1e19l0Mh72w3XIFrJyxPZjgP vXTT0kwZzStCPeM3Wd39p8VfzreeO4KGZVgKRhW8Y+KzW84oUcm++ESPQmvabaZpGq+Z ak1+nuq8rAU+ogWug6RuJXwkGAZFqOhSfpPwUqBp6NgZ6sQxmI0Yi/yx+Dgu/pwRwHtD WcMeFfCTABfF4HZQ8DDCfGzoZ+OvnTefpZZrmYj526kVIMqkUUMJG1blMbFmsIilGKzJ 3CIr1wSt3BwHeS1nxuMhgv0L/s4n1hLc6LC79AAF671C3XvlV1X5hzbIv5CQJ3fGEWta ohTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=S7ktG28jmrlj+qqpr50lez9Lv/Z7lceYKKD+5whb6cY=; b=lEhuSVYuNcrPHrGxpL94BdY9/RhEJlmVzEA8J015O3dC0LSmYlmU7aehi5QL4zDUFG by/ZUt5s+Cb1VEBXxhySKVWqZCZ2yvaOMZ7rc9gNWWFwM4DYv0lVw7drMsRtP7kcrpO2 B3BMtqE0hzgvjf2gPGsLXtrXtvrCKhpnlhiKEPTDSLuIXYvGLgA0i5O4LxRsaUqEwZdO jJDRYgCxbVyiCA3uzUGyjin/j0tifRs9h5v4I1ee/UnjdSN+K8gjPo5bODIaYeJvLbpw y7IZnKGh/OpJZmeJWGl2EOgPgrSZ/l+KmkjR/Nst+vhOemMiNeuZN4ZH72lbFnYcZTZ4 LwHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=UmJ4UzlF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d7-v6si17286604pfe.214.2018.05.22.11.17.54; Tue, 22 May 2018 11:18:08 -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; dkim=pass header.i=@chromium.org header.s=google header.b=UmJ4UzlF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752163AbeEVSQN (ORCPT + 99 others); Tue, 22 May 2018 14:16:13 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:38724 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751514AbeEVSPY (ORCPT ); Tue, 22 May 2018 14:15:24 -0400 Received: by mail-pf0-f196.google.com with SMTP id o76-v6so9163358pfi.5 for ; Tue, 22 May 2018 11:15:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id; bh=S7ktG28jmrlj+qqpr50lez9Lv/Z7lceYKKD+5whb6cY=; b=UmJ4UzlF//Qh/t00tLJ0wvxFkpN0QMfJ60RiBG0chGq8vvYYMGLBDsRLwO96wLx8s9 B0oYzcH5DlaGDLnD3G6ZEOrFim1PUUAKCjmhZ9hyJ63TxDducXLHyqimAyoi6k3UPjK3 eS1F35YEg1wOpjS8Mau4TjR/HbLdfEIuRF724= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=S7ktG28jmrlj+qqpr50lez9Lv/Z7lceYKKD+5whb6cY=; b=nEtDtTZ54dHQDMYp23th7XeWrd/k+b8HyVQY7GXZLn7n+CjpI20+s4MVxwyjGpH0Gh tWUqK9aKNGpH6am3VSf2a3J2QOcoaxOsjsWJerGkCjsSUxoBHhkgMHgYLo2U6o4UoICo uYgcwwRC0ncBjrkO7xM9P23ZF1x57F+T1e7pkJWQ3D5CbNxLghw+M+BndPutVK2iKb3M 0OQDIhiNz9bCrXtTvvGvqBbSpW5OPnm0FLN4rozCckAFYgWWWZv2qbTY0s+jTiOZq0/A 5lZU/fkaEpbjGipVtOotk+cA2VwV6LoJ4MyPRZVLduxnJYokHQ7x+ZU5MbYNjOJofyp4 SgXw== X-Gm-Message-State: ALKqPweKTwiDBxy0DKQ2oiAUG1Ndmms57Wh5OnzDqoEmNZnPAlua/vQ6 d1AfkVibfwQh/KYCjPFHSn827tH7fQI= X-Received: by 2002:a62:9d89:: with SMTP id a9-v6mr25253899pfk.206.1527012923947; Tue, 22 May 2018 11:15:23 -0700 (PDT) Received: from www.outflux.net (173-164-112-133-Oregon.hfc.comcastbusiness.net. [173.164.112.133]) by smtp.gmail.com with ESMTPSA id z127-v6sm23262847pgb.31.2018.05.22.11.15.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 May 2018 11:15:18 -0700 (PDT) From: Kees Cook To: Jens Axboe Cc: Kees Cook , "Martin K. Petersen" , James Bottomley , Tejun Heo , Borislav Petkov , "David S. Miller" , "Manoj N. Kumar" , "Matthew R. Ochs" , Uma Krishnan , linux-block@vger.kernel.org, linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/6] block: Consolidate scsi sense buffer usage Date: Tue, 22 May 2018 11:15:06 -0700 Message-Id: <20180522181512.39316-1-keescook@chromium.org> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a follow-up to commit f7068114d45e ("sr: pass down correctly sized SCSI sense buffer") which further cleans up and removes needless sense character array buffers and "struct request_sense" usage in favor of the common "struct scsi_sense_hdr". First, drop a bunch of unused sense buffers: [PATCH 1/6] ide-cd: Drop unused sense buffers [PATCH 2/6] scsi: cxlflash: Drop unused sense buffers Next, split out struct scsi_sense_hdr: [PATCH 3/6] block: Create scsi_sense.h for SCSI and ATAPI Then move all request_sense usage to scsi_sense_hdr: [PATCH 4/6] block: Consolidate scsi sense buffer usage Finally add a build-time check to make sure we don't pass bad buffer sizes: [PATCH 5/6] libata-scsi: Move sense buffers onto stack [PATCH 6/6] scsi: Check sense buffer size at build time -Kees