Received: by 10.192.165.156 with SMTP id m28csp2323877imm; Thu, 12 Apr 2018 12:18:40 -0700 (PDT) X-Google-Smtp-Source: AIpwx49UOjTYN7GL3SzLGc49BOtCfnE13+ElXbtvvjB5iTQPpmXUZASI7+8ZZ+6pKFUNvrxuhq6l X-Received: by 2002:a17:902:c24:: with SMTP id 33-v6mr2345379pls.88.1523560720305; Thu, 12 Apr 2018 12:18:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523560720; cv=none; d=google.com; s=arc-20160816; b=fV1hPijALNX1ZjWgqFat34C97s7sKYaXzBDpqkbYUcuoWVunVnoE5b4K3iH3dUQu51 HO6Lsghlmrkjw9j4TFy1c2mBpxzrg6eZJSeaEd0N9YVagVnl3tuY+FLwUHaWS+bsnXIQ sGvh0o/pAJxQC5+kpvfbfkWQqizDXPAibMME0xB8cmGKNub7Ff2YMoC+6chADwAP+KyS e+XsmALv7t9tNmGVJX5Amdywc2XLC1lMbYSu7RgtGDE9GQX0K0/EUEc5ogu0IWrGj+mN gcc9dZ8u6Hmq7F3gbb1qEb9+qcdriSKgXGuC+bx0dZoXQc+T7VF7mUjwPzpH894JyCwm ff3w== 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=KdIjyq7kkaxLAX6EdP220fZroDqKmmWKLGFcOBTsiaM=; b=azn1GetX1rsU3UOkWCw/EH8WZyHioC+3rIkNz47N3UXkpmbU669gU0oQkLjnuqdVaq NGZasCtratmM/yDEWKX0szj/oZM6Zz7o4LvNRub/OWC+go/oNMjwvkEnG6BkLrP7BPyu EaGBsnqDYGm8hycwj9GHTg1Tccur5DbKAd4iU0NJphr4u+/IiivCgUmnpppl6oJAahoM F26GmCOZI4TMORbcsDX4lGyCE//oQFHdoYuN57lZOZzgfk0IaPo9x60/L0onzZJox3Oz mcN8V0ID7Dqg39h1NoGzh4tREd4uKiuIt+9WPG41pZ8oO4gV3fHXpGZjdu0XXFslAckm 7S9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=LA1o/h3g; dkim=fail header.i=@chromium.org header.s=google header.b=abACGaPr; 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 b19si3058038pfd.254.2018.04.12.12.18.23; Thu, 12 Apr 2018 12:18:40 -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=LA1o/h3g; dkim=fail header.i=@chromium.org header.s=google header.b=abACGaPr; 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 S1753346AbeDLSol (ORCPT + 99 others); Thu, 12 Apr 2018 14:44:41 -0400 Received: from mail-ua0-f195.google.com ([209.85.217.195]:40503 "EHLO mail-ua0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753061AbeDLSoj (ORCPT ); Thu, 12 Apr 2018 14:44:39 -0400 Received: by mail-ua0-f195.google.com with SMTP id n20so4169519ual.7 for ; Thu, 12 Apr 2018 11:44:39 -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=KdIjyq7kkaxLAX6EdP220fZroDqKmmWKLGFcOBTsiaM=; b=LA1o/h3gqkYwFVXtSKk/AJ7Pt92thsuomnhS+uFVCYbTNfMp8qNpt6WLyBmvqqgLdE LtLEES2CxjRq7Y8WIQ7WgTcxt0Eu6xfY9cNUe3xPab72Ui9JBxHIK+zd22tD/KWCZrjE duCGNan5Rb4hzvzEMClPxIdNVDF2XAmmRskLMWnqvLy7Ihaj16dhOdYkakW9gZnOGfJW lEJrKyPDtSh1UU/hmgo56sCzEOHcQFO2JBSomWWN2niZyLvJnmW3bZyhLyiAUOU8itBJ BduESojDRaumpUvWwo3H7yX7fZ2nUPV4dGZJPGVhm33uGp0QQAmOqo9h4hkUxpm3csH4 RlPw== 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=KdIjyq7kkaxLAX6EdP220fZroDqKmmWKLGFcOBTsiaM=; b=abACGaPrNC8NW+foEajXW35ibmoxzguTr8PqwI5QlQO0e0MR+aodZU2GAOn8fbbDBu M2RBhE7rfTbHSB9YPdMo/gHs/CHP8dbYgs2Ro2g/jk/GPbN5g2BOztRBCvUxQoq7EbiO Nxz25Mrpd8H5plXDN1RBWlaAkgs/AJEoyBtv0= 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=KdIjyq7kkaxLAX6EdP220fZroDqKmmWKLGFcOBTsiaM=; b=oimuan9QBNFoz+K+53XFOH7ZyTdFkTyizhqkWSHCigE8CZDonQgJlG01peO6yAKDj0 b78z+AC0e9u7mhJSdCb/XTZlgAG1ZhgJ9y8aVHK6Y8Jh0qMky1DOkLhD9V9kxE59V+EA kaCAAhL6YhtFrea76INynC1zfkN1gDSdKQIOlbwoTo4Acow7099ZqMyH6iZ4mVg0RNC2 mgYAwXIs8pGrcmbf6zAjc1w3PEIiuaK92JdNOaWOzdvgaAfXPGIsbF5e/OEIeafi1Y5w nxLPjub099gMhuec8MVs/ZfrWjNdHMBhj/3IBvNNrgC+r1frjtuIECij0fvcTB3eFQPs m5HA== X-Gm-Message-State: ALQs6tBC/5alAa+WHohFcGzBkQclZ7HCqq8HeReHehceGUkSeoc1Os6X /AVka4ge8RYvr9KNOqROOczYTOQ1lFtWCaQptl29zA== X-Received: by 10.176.86.206 with SMTP id c14mr1591063uab.164.1523558678304; Thu, 12 Apr 2018 11:44:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.164.81 with HTTP; Thu, 12 Apr 2018 11:44:37 -0700 (PDT) In-Reply-To: References: <10360653.ov98egbaqx@natalenko.name> <2679696.GDoj5zcZOu@natalenko.name> <51a7e805058ef7f35b226cbbf0ccc4ff@natalenko.name> <3d7b5a707e216e19eb3defe0586bfbc8@natalenko.name> From: Kees Cook Date: Thu, 12 Apr 2018 11:44:37 -0700 X-Google-Sender-Auth: YG1dFohgbGkvUm_YFZl9MyxAvQc 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 5:03 PM, Kees Cook wrote: > 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 My first bisect attempt gave me commit 5448aca41cd5 ("null_blk: wire up timeouts"), which seems insane given that null_blk isn't even built in the .config. I managed to get the testing automated now for a "git bisect run ...", so I'm restarting again to hopefully get a better answer. Normally the Oops happens in the first minute of running. I've set the timeout to 10 minutes for a "good" run... -Kees -- Kees Cook Pixel Security