From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C4041C49ED7 for ; Fri, 13 Sep 2019 21:39:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A3F5F20693 for ; Fri, 13 Sep 2019 21:39:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389946AbfIMVjJ (ORCPT ); Fri, 13 Sep 2019 17:39:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42626 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389717AbfIMVjJ (ORCPT ); Fri, 13 Sep 2019 17:39:09 -0400 Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D2B4256F9 for ; Fri, 13 Sep 2019 21:39:08 +0000 (UTC) Received: by mail-wr1-f70.google.com with SMTP id t11so2980260wrq.19 for ; Fri, 13 Sep 2019 14:39:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=H/HgiF+ormPJec9ucKfvq3B1GbgLkHD6NvKq1m15REE=; b=hafoxZRCPGBUvEcthM7sy9CE0uRdxpwdHQOQ3fYXqAP3bcIVaKzr9Dkq+d2Ubt4mA9 6f5fCfRqPMTqm5IHasQaNsiYdghTmsPO1bRzi7GSAb4PqGlB6I4MLL9g9sDHAK49NVa5 9bhW0OUStk6Ige9/z8yYdacJzU6lvfqvvAer5dsFThPSAA4+9b4+Zq9teq9OhfRI8EZL CRx2TiVPyYghDFvmkY03IUAiNT3NShnsTJLXQ7sg3w07zRKRmTsFNqE3My6BuNxpbqBm 5IfbEKmiODw56yM1M3YQYgfp+GFgI4KzDxoUZFC9lmtvF8vIO61KMHCGVo6fuMJSjaDc Oemg== X-Gm-Message-State: APjAAAW2H6eboXXktefQ07eU/skpSe6/b9FUvzfuUj+VR0TGAvpTMrRL YZyjivp+4wvLZZGL/FuoawmCol1LU0+AApDDfZGeyTYNbI+c2e3q3jN2xiWA53dvP8rNEb6lvAj 4FEPBh0UFwd7qZKsU82YX X-Received: by 2002:a1c:a54a:: with SMTP id o71mr5188545wme.51.1568410747388; Fri, 13 Sep 2019 14:39:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqx8xng5YAyNbwPHIzedIu8ZCTqFN32yL3gtxtyPP/chrRkzUD4Hr9V7c5rHI5vdwgEV7dIuVQ== X-Received: by 2002:a1c:a54a:: with SMTP id o71mr5188535wme.51.1568410747142; Fri, 13 Sep 2019 14:39:07 -0700 (PDT) Received: from ?IPv6:2001:b07:6468:f312:3166:d768:e1a7:aab8? ([2001:b07:6468:f312:3166:d768:e1a7:aab8]) by smtp.gmail.com with ESMTPSA id n2sm2788701wmc.1.2019.09.13.14.39.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Sep 2019 14:39:06 -0700 (PDT) Subject: Re: KASAN: slab-out-of-bounds Read in handle_vmptrld To: Robin Murphy , Greg Kroah-Hartman Cc: mark.rutland@arm.com, x86@kernel.org, wanpengli@tencent.com, kvm@vger.kernel.org, narmstrong@baylibre.com, catalin.marinas@arm.com, will.deacon@arm.com, hpa@zytor.com, khilman@baylibre.com, joro@8bytes.org, rkrcmar@redhat.com, mingo@redhat.com, Dmitry Vyukov , syzbot , devicetree@vger.kernel.org, syzkaller-bugs@googlegroups.com, robh+dt@kernel.org, bp@alien8.de, linux-amlogic@lists.infradead.org, tglx@linutronix.de, linux-arm-kernel@lists.infradead.org, jmattson@google.com, USB list , linux-kernel@vger.kernel.org, sean.j.christopherson@intel.com, carlo@caione.org, Vitaly Kuznetsov References: <000000000000a9d4f705924cff7a@google.com> <87lfutei1j.fsf@vitty.brq.redhat.com> <5218e70e-8a80-7c5f-277b-01d9ab70692a@redhat.com> <20190913044614.GA120223@kroah.com> <20190913130226.GB403359@kroah.com> <6a0ec3a2-2a52-f67a-6140-e0a60874538a@redhat.com> <462660f4-1537-cece-b55f-0ceba0269eb8@arm.com> From: Paolo Bonzini Openpgp: preference=signencrypt Message-ID: Date: Fri, 13 Sep 2019 23:39:03 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <462660f4-1537-cece-b55f-0ceba0269eb8@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On 13/09/19 17:32, Robin Murphy wrote: > Oh, that bit of usbdev_mmap() is already known to be pretty much totally > bogus for various reasons - there have been a few threads about it, of > which I think [1] is both the most recent and the most informative. > There was another patch[2], but that might have stalled (and might need > reworking with additional hcd_uses_dma() checks anyway). Neither is enough, see my reply to Alan. Memory from kmalloc just *cannot* be passed down to remap_pfn_range, dma_mmap_coherent or anything like that. It's a simple alignment issue. Paolo