Received: by 10.192.165.156 with SMTP id m28csp1321279imm; Wed, 11 Apr 2018 17:08:03 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/G/tdda5sj27cZaGuE5E5U2Peiq9Wt0Q3ZkSx6qzd2N/FTN7fdylA9ql2KL6TVslODzSXs X-Received: by 10.99.110.129 with SMTP id j123mr4850599pgc.65.1523491683163; Wed, 11 Apr 2018 17:08:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523491683; cv=none; d=google.com; s=arc-20160816; b=P6SVkUCZ2sCO6Tv/Q0b4VyHMM+U23yqFEwNOYQG08+qCuN0zXEK6/JJSekNRG6b8BD RLI6Gx0w6vyP7iCXjVVjZQu4LocyYR5wNB7I5D2ZFlvLlFjO4kukgkZGVDk0XMC66gpV aUlYqTtb7TejoOaJ9LD0ItkyD8Hh+97v2YNQIrdu/c4xBjqHYO4LZUEDwSy8GhxvX7vj gVjzkovWLcAlvYiWqtgitImyDazQSUC472IWGtdUfziJt8D1X+y75JR0AYVQUzfY/oM5 KkOFuP6hQUv5CI8Ddonhs1ei1+AZM2f6+7axQynbx8JWpU5DxEj2/7RKmP3POiYSk2Sd TwDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=xOh1nMf3R8JupjxDYRLvr/KGD0l/nXmK3Y1AgIGMgqs=; b=BkP7O2PENWmtqS+jysjCyMYFW4DqwW1WMwbYEi+91whyeyge8T63gfOXpewBmNdjiE kFuR+jla2K5uo3Egp/6+WJsjRU+Ft8XeyB/z56HreEVdAx1kktuTdwrUOtAPi4mzpH/E c4s4SsqFTcJyJFCw1qewtN6g+/k5+OWaka1NMqTQ/ek1LI3TPX5u0qoBEtSAd2ACjdQL rnDDE6R13VFK0fdtQc9HQ9PyG4+0ChE/TNyDi7sJ+fJJ9Z27wGtguxmdEazfJMCpcg+U Wv5oyW0rmBerXxtSMip9arsbYjyHT8zn0fMpqy1asCiNYpNw6JDUvBhde4y9MzlwKkBr hnxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=duJUAqox; dkim=fail header.i=@chromium.org header.s=google header.b=IQencQHK; 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=fail (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 v23si1699453pfk.116.2018.04.11.17.07.26; Wed, 11 Apr 2018 17:08:03 -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=fail header.i=@google.com header.s=20161025 header.b=duJUAqox; dkim=fail header.i=@chromium.org header.s=google header.b=IQencQHK; 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=fail (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752637AbeDLADm (ORCPT + 99 others); Wed, 11 Apr 2018 20:03:42 -0400 Received: from mail-ua0-f193.google.com ([209.85.217.193]:44404 "EHLO mail-ua0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752411AbeDLADk (ORCPT ); Wed, 11 Apr 2018 20:03:40 -0400 Received: by mail-ua0-f193.google.com with SMTP id r16so2336860uak.11 for ; Wed, 11 Apr 2018 17:03:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=xOh1nMf3R8JupjxDYRLvr/KGD0l/nXmK3Y1AgIGMgqs=; b=duJUAqoxvCeTOQrUhn3OKymDZurWmgPkv8q6HzzCCzRnufTKA8EMlh2HGY2wFgmjVQ PbzwpJQoHDjaKh/mLp92GkNUW/gmrKPuaD08VkYMNVzTywhFqt9N4uNK58TXiQFp73PI CVQ5b4PuGiUZVBWh3HL21k0j/xmZqpcjDHH+Qih/7IlOE8xonaGOHPnPrv+FJgSGGUNI NfIoK1ChDBarkG/JQmCBtkIRLv6MVO9X86XE9o1k9OsMeoiAuxaVH5O9LjaVzlNSXGaW OH0eJyZiSDOmutqHjQEqMe8H1ApD67VR/u34SiNF0JL1ayhwxNF1mzWSSY2eT59bht/7 nK4w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=xOh1nMf3R8JupjxDYRLvr/KGD0l/nXmK3Y1AgIGMgqs=; b=IQencQHKYAVuMsRiom6PtxEP7uCbGIx6Q5MysUjWIIe3kcJp61PPII0Z35k2xVEh6y OtoZujkSIiyZZZXvvJXceZdOWf8KQ2l1bFOD9QOFb7eGuzZZLROtK/BMiJmNOUq2LXBr fFL5ATd/B7AKKBo8ujolJjJdbs50YNjY//HGU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=xOh1nMf3R8JupjxDYRLvr/KGD0l/nXmK3Y1AgIGMgqs=; b=AiI6hq16i/RsaYKFzpdfeX/1MdbtFdFqz7GkPuM4nLa7lnPmeQJZVXpdXwqGcd4S/N zml8F4Jm/2H/uupmYTz06q8VoXTPX41aaNeanN6kGSYcIbFUXPa5m3XWujEomMDaqNnV bQtCw5Wypc1NB7qXcOgbsGJoENqAevuG09xFKFltPD30X3jCM7ewGr0G9YIv2VVsi26N 4laQ9r6tuCgVQ9d/9tmtxKO/I5EWwx1nplXfuhLyxVD9I2jsMt7VI+KuUA1HtK7uFquT 0A86WmqUYEpxmhRZMQyTykrvhAVf9WB7eXP60FSCbKjC0358dtpdi6KrrVpEyMCiNZK7 OyPA== X-Gm-Message-State: ALQs6tD0uvCmbusdprZtcck1zArrp9RgMQqiNb6PqhOH6YNMWEJYcVNE aUdSrL1Icwn6AJORAmyWwbaxKvsF8JBTH0eFN4o1Qg== X-Received: by 10.176.78.167 with SMTP id l39mr5362404uah.193.1523491419624; Wed, 11 Apr 2018 17:03:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.164.81 with HTTP; Wed, 11 Apr 2018 17:03:38 -0700 (PDT) In-Reply-To: References: <10360653.ov98egbaqx@natalenko.name> <2679696.GDoj5zcZOu@natalenko.name> <51a7e805058ef7f35b226cbbf0ccc4ff@natalenko.name> <3d7b5a707e216e19eb3defe0586bfbc8@natalenko.name> From: Kees Cook Date: Wed, 11 Apr 2018 17:03:38 -0700 X-Google-Sender-Auth: f64KMuxrFPkdyWZ-5bzFAcFnJC0 Message-ID: Subject: Re: usercopy whitelist woe in scsi_sense_cache To: Oleksandr Natalenko Cc: David Windsor , "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, LKML , Christoph Hellwig , Jens Axboe , Hannes Reinecke , Johannes Thumshirn , linux-block@vger.kernel.org, paolo.valente@linaro.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 11, 2018 at 3:47 PM, Kees Cook wrote: > On Tue, Apr 10, 2018 at 8:13 PM, Kees Cook wrote: >> I'll see about booting with my own kernels, etc, and try to narrow this down. :) > > If I boot kernels I've built, I no longer hit the bug in this VM > (though I'll keep trying). What compiler are you using? Ignore that: I've reproduced it with my kernels now. I think I messed up the initramfs initially. But with an exact copy of your .config, booting under Arch grub with initramfs, I see it. I'll start removing variables now... :P -Kees -- Kees Cook Pixel Security