Received: by 10.213.65.68 with SMTP id h4csp2267729imn; Thu, 5 Apr 2018 11:53:52 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+tSnZ12rv7A3LvfQJmXfFY2soZ/Kz2AN4UfvmIxdRGwS7zDgR3m9jwCfzHNWkW1dZmoIMo X-Received: by 2002:a17:902:128c:: with SMTP id g12-v6mr23565493pla.98.1522954432471; Thu, 05 Apr 2018 11:53:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522954432; cv=none; d=google.com; s=arc-20160816; b=cYJfAfNptagnM9sRpXKLY+T3j0SK0PDb5Imm9xyuEl95KspJ4c5A1ePRJJhtATic/y iSwuHTs1otKoqRQruvNO8O7E/DiTl7uextXOtvvFnMVl9Z+0DM+qr8TkHnjfSK4H3BMt WvJT++nnxVDx6zKWViXqOthXtjml1k2qa0IU5FaEM5zvu/5z1roGFQLPwkcni9cHDVG5 B9ivAW1+84BbRAqfzzWwUjUIgk/6xo9T2CdCUv+i8orkeNzGibn6YsBcszIakOa+lOJM ONlmsiMTzG3em4s9xGVg8X0aETUvDU5sXiL7bLye3O+/IRbol/139qpzBVJFQvtpb/vz pE8w== 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=DFEC6LPlR9bkX9D53Bkj2MQAv8qI1/a/0mZnNCyynRA=; b=K6F+/VmFZlnUw5QWEDeKdF3HxX90jGe/ygV3sTqxuXCOpWZ623K9I4KCByN+t7nKvZ vcZWLVwgg9cIYC6YIQ9nX9tLKbe4MeCFCFU3Y5VSM7jOs707jp+SDQuboqaDfkL1Aizm JG2MxCPK3qCecAqkx9EoiQBBNBm98pq+12ByCilyEY/or2+t/InOmU1FcxOMFWN8xyil xP4Heahusq6x35XyEFBr5ihDXPBRSCvAoJeE3g3MMxQ3iMLAw86BNGDkoVIVgV68ZHgW 0ABCYdBkbu58hL0VRTWE8p+KP27lQJbpCh7fphgma/mKZiMHs+97cHQzvGc1tnPAGQJb KayA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=v5DgsSPy; dkim=fail header.i=@chromium.org header.s=google header.b=IHpjWqiJ; 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 z69si6564373pfl.209.2018.04.05.11.53.38; Thu, 05 Apr 2018 11:53:52 -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=v5DgsSPy; dkim=fail header.i=@chromium.org header.s=google header.b=IHpjWqiJ; 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 S1753206AbeDESwe (ORCPT + 99 others); Thu, 5 Apr 2018 14:52:34 -0400 Received: from mail-ua0-f195.google.com ([209.85.217.195]:36801 "EHLO mail-ua0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751807AbeDESwc (ORCPT ); Thu, 5 Apr 2018 14:52:32 -0400 Received: by mail-ua0-f195.google.com with SMTP id v4so15655588uaj.3 for ; Thu, 05 Apr 2018 11:52:32 -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=DFEC6LPlR9bkX9D53Bkj2MQAv8qI1/a/0mZnNCyynRA=; b=v5DgsSPy5NfVIDPo9umV5bDXPFbxGsbpqnOjTT1KDlWAhri7DSH1Nr7uLS4JQPoHkV 6s6i4+Ljntqn0iLg9f5v0fflyzPGmj4Qg9E48kWA+qE5rYUd4ZLmMHLxx1KveBGbc6bf NkkPIaNvh0c/iYCK0Qj8Qr69k9V+pyyYeJN8GQrJNKl3uoprN7slqufghZ4a959Ih6eP M8B8x+xdV5S1x0N6vXVNmKmTE83NaxbvJPn7TucewYzci/i+0hlPsfQu37yMHFmjOqKm J7POvAfjGlOTVke99dmRYjYtohYDOOraClDnHJK4TCB8L3hITv3qT3wW9hpFyNl0WhBV FTCA== 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=DFEC6LPlR9bkX9D53Bkj2MQAv8qI1/a/0mZnNCyynRA=; b=IHpjWqiJpeIvXm4TjXPLfLP7Mb3crl4BCX4RelzqZ4CsXNxlMZaXvh9WFRNG8Pyo9E w+Sb/Rweou3x8gHEp3TleyLd1IbmJrmgPnCVRhjYV4RIAERxws1JY8UjkE+ebvEA3oTQ cUm8bKKM8PjVg4K7DhhQpW9GNakHgkwPxwFks= 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=DFEC6LPlR9bkX9D53Bkj2MQAv8qI1/a/0mZnNCyynRA=; b=AW6tub8TMMGWMpHuqNvuKdcIvwe4UdHIMw52WFIscddoj41y/TXQsgcT+6fyjXV0NV Kl93dHEtv5V5xEhlUROAFHrCroQtMHfMfhtsQC+optk5oo8awbKn35xjvcOtUr2EAthR Az598N1LDqH9VBA00BXqKRK3L/+VekmdnzwRxK74MZg5Zr/9tbTAPh6kq8KAO5nS5ryo +B2qC+5O/DkGFq/haPGlRH57OPTCnj9VlTNo7KwIk0u4D/yL4LS8MGpTxKwOJEohmfVU 0FTcuqD6FNYsKqdgUETZm5s50xljuVqacjzFZzStRSX7wu8UKyyT/hRCTxEGTz0Y4eAj SETg== X-Gm-Message-State: ALQs6tBfaglr012OaXjL+2jrFTSjuxG9+gqaE23oQivMx2Gtkcbo6LT8 5lmozAGygI+ux04emAtbliDZcdqF0e7SK4zkm2uTkA== X-Received: by 10.176.78.167 with SMTP id l39mr15917709uah.193.1522954352006; Thu, 05 Apr 2018 11:52:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.164.81 with HTTP; Thu, 5 Apr 2018 11:52:31 -0700 (PDT) In-Reply-To: References: <10360653.ov98egbaqx@natalenko.name> <3265889.eu5sbW8aRz@natalenko.name> <7fc01f67a561ce1fad676fc34c2249e7@natalenko.name> <08e06234c81fac30ccff5a2695d02f2a@natalenko.name> From: Kees Cook Date: Thu, 5 Apr 2018 11:52:31 -0700 X-Google-Sender-Auth: Fht20ijcbvXhXmSRgG_rwMBzqBE 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 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 [forcing non-HTML and resending...] On Thu, Apr 5, 2018 at 7:33 AM, Oleksandr Natalenko wrote: > > 05.04.2018 16:32, Oleksandr Natalenko wrote: >> >> "-hda sda.img -hdb sda.img" > > > "-hda sda.img -hdb sdb.img", of course, I don't pass the same disk twice Okay. My qemu gets mad about that and wants the format=raw argument, so I'm using: -drive file=sda.img,format=raw \ -drive file=sdb.img,format=raw \ How are you running your smartctl? I'm doing this now: [1] Running while :; do ( smartctl -a /dev/sda; smartctl -a /dev/sdb ) > /dev/null; done & I assume I'm missing something from your .config, but since I don't boot with an initramfs, I had to tweak it a bit. I'll try again... -Kees -- Kees Cook Pixel Security