Received: by 10.192.165.156 with SMTP id m28csp246927imm; Tue, 17 Apr 2018 09:27:36 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/qUPJU++1CrdGpeF+/2sr+l00ES9CrMSa2ICq9iTboALeBa3rEhN2ENDNgAan3Hb/fEZ5D X-Received: by 10.98.60.154 with SMTP id b26mr2596099pfk.3.1523982456577; Tue, 17 Apr 2018 09:27:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523982456; cv=none; d=google.com; s=arc-20160816; b=CUtgLzKlmc/pCBiTzRYTCYJd5cY6ylx5cKCOH1FCSpydkiU9sMvBmYlYvoQmY2i8+Z kms/sqUMVhBtxZFDULHvNFq8koaNv/Vzkq9nLv2A/PgBEiUckVZlfYC2N3lwPVQNkAc/ g5uD/Gft4TH7UJgZsARHmagreHIaA6FAKiB1A/qhyqfZ2z4h+5uXZwVwERTqypSpSl/s Lxzw6zvWrtCTIbz1ykOwfYlWriVWEUj9keB90RLZ8pyljZbEL184F/GHLAUSR5o8aLQn mO2gOgkzXgavdDE2ijPjQsjwOPUodoNGZnRnfx5E8l6AxJ+kleszdqQVr6BhyfgCvnI8 2LDA== 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=XDSqPfouCFe2L5PCPbwRix3hp56jGuizoRKenBZ7RV8=; b=hLx9d6IkvBzzHHeUJp/QeeaH8F4ynTPAZx1LlZX8N+UbLQV0EPBbAEsQXCZf/d1nTS J8yZ7ZLzktZjUGCVcRkiGQ7jQ0WdNYxOLD1XbvfNgMObV+uwbRXgWF4kk2XvYkb0G+RC 4/HUHQais++Jt1phwTiEW4cPA1cri/jVyb6IcvQ1kc5LHE51yx2xIungD7TNZKvXWwdG 3z2FEQfoRRSAUMdRYQBurc3RhHcKLm4BAbX6bJh3u1fKIWyCC9pdKd8lAL4r0HX6yj40 ZkI6Nue78K2jg1c3zvNL0IJhrLzoYqkGMoTbrvNtkgJWtFjk+uvizI9DKOpsCwj8Irxi l8dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b=U7l4vQR9; dkim=fail header.i=@chromium.org header.s=google header.b=D0B7y5ki; 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 a1si4963347pgq.594.2018.04.17.09.27.22; Tue, 17 Apr 2018 09:27:36 -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=U7l4vQR9; dkim=fail header.i=@chromium.org header.s=google header.b=D0B7y5ki; 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 S1754878AbeDQQZV (ORCPT + 99 others); Tue, 17 Apr 2018 12:25:21 -0400 Received: from mail-vk0-f46.google.com ([209.85.213.46]:45103 "EHLO mail-vk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754683AbeDQQZR (ORCPT ); Tue, 17 Apr 2018 12:25:17 -0400 Received: by mail-vk0-f46.google.com with SMTP id 203so3872504vka.12 for ; Tue, 17 Apr 2018 09:25:17 -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=XDSqPfouCFe2L5PCPbwRix3hp56jGuizoRKenBZ7RV8=; b=U7l4vQR9q52w7QMOH9uwxFfBrt6UOH96ptBWVQW4VD50bwoGC25SLg1t/efdyR4bnh y+OsOi7NfJjnmxRvSLN20DdNavb5sITI77vDIC7S6MAI1TORUHFozDAGtJhHKOi4VG5v xwQbAszVj05DXgKH5dijkWdQSEJax1e6omQXycofDJh+0HhGDSbSZkAsSPg7vEghq91T 5ZGyLXlTxpiWzVSNrS6nSnn1KptiWBnFtXysYRmSlRZKXQI+0om1p0tuTztZfguLdCfh 0Q3lRXIvrUVwq+nnGDeKvUXWWl+W04+foJj+YwyoFwZ4M+G0PfUXJk/YHSGER5T3hN4o WAAQ== 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=XDSqPfouCFe2L5PCPbwRix3hp56jGuizoRKenBZ7RV8=; b=D0B7y5kifeXnyJJXRh55v7Bo8TTZVwqj+vPZoAmJ717SAdJ9wJmAGAE6ZIZHauhEJf 2omp1ApqumLGv7L0T30yX+i9L3EslMbCFGYYRnXLWo2eCtvUbSaFOUgtPOy5KpQn0JPm 9sskfVaNibyNplM8g8YFB/7nQ1nhYJyu32r+s= 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=XDSqPfouCFe2L5PCPbwRix3hp56jGuizoRKenBZ7RV8=; b=W520MTQYcNZgQitCUI8+ddFIIK0Pbvy9PCDxkX1Sn0ZLj649ZV8Srl6fdZCDjqpRTE 4DbbI+EI5+IF5Tb1Kza0YpJntOtIpRF77Af8VteFv730mYuC5a1QATWeEiT2vheXvQxd QMmq/KnTH15i0rYgVvS+0b3YKu6pBsVImnYXTCNQiHmdcqTQTcw4IxaWPLtXn/mBozPC /TO6ke9PHqrjH4zgHSaSwMMm64WSQnVwmyuNytJ9n5yc79o6zJambSADfckiWexJoCKn wUgrKhK9uLUESc1kRJPR7NsOcx1+HDtEMIMQ6jsh4eLTqc+a53ODiF5h+mmGq5dt/KV1 G0Dg== X-Gm-Message-State: ALQs6tBpomVwcuOQqY3pYCR82Sm8IaJyUoQVF3mKrn3VJiQlbt2O5rI0 hkpgzikzQIHdab4f9msWkPLKQawt4KBQsexf0T3mwg== X-Received: by 10.31.114.207 with SMTP id n198mr1925241vkc.149.1523982316634; Tue, 17 Apr 2018 09:25:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.164.81 with HTTP; Tue, 17 Apr 2018 09:25:15 -0700 (PDT) In-Reply-To: <8faec18239a6104b250d9668bb1d3abc@natalenko.name> References: <10360653.ov98egbaqx@natalenko.name> <2864697.7uzmEJovl2@natalenko.name> <8faec18239a6104b250d9668bb1d3abc@natalenko.name> From: Kees Cook Date: Tue, 17 Apr 2018 09:25:15 -0700 X-Google-Sender-Auth: qO9gabUg4TB_EjZ4mZV2rKhow-0 Message-ID: Subject: Re: usercopy whitelist woe in scsi_sense_cache To: Oleksandr Natalenko Cc: Jens Axboe , Bart Van Assche , Paolo Valente , David Windsor , "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, LKML , Christoph Hellwig , Hannes Reinecke , Johannes Thumshirn , linux-block@vger.kernel.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 Tue, Apr 17, 2018 at 2:19 AM, Oleksandr Natalenko wrote: > By any chance, have you tried to simplify the reproducer environment, or it > still needs my complex layout to trigger things even with KASAN? I haven't tried minimizing the reproducer yet, no. Now that I have a specific place to watch in the kernel for the corruption, though, that might help. If I get stuck again today, I'll try it. -Kees -- Kees Cook Pixel Security