Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4185AC4332F for ; Tue, 14 Dec 2021 16:36:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236070AbhLNQgt (ORCPT ); Tue, 14 Dec 2021 11:36:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234227AbhLNQgs (ORCPT ); Tue, 14 Dec 2021 11:36:48 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCF0DC06173E; Tue, 14 Dec 2021 08:36:48 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5A2D9615DE; Tue, 14 Dec 2021 16:36:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3CD9EC34604; Tue, 14 Dec 2021 16:36:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1639499807; bh=OM/bj46V1a07AE1+K/t3QvY0mvc4E7C7aoQrDPOjnRY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JUI22w1JjiBNlTMLZsBCngyrdWgnJIoY6Jp4+VtrBa//S74JmhBFaxosybCRMYupt 6imJKcKK8n9smFMtI0KZ6bzd11Ff8EJ4a/8WBJyqafM5UKv7AMKcjROuWckbJ10u/E ioPJ4FgYnJi+96pkbSnadr3QFwPHGJUyoBNbAJ9Y= Date: Tue, 14 Dec 2021 17:36:45 +0100 From: Greg Kroah-Hartman To: Alexander Potapenko Cc: Alexander Viro , Andrew Morton , Andrey Konovalov , Andy Lutomirski , Ard Biesheuvel , Arnd Bergmann , Borislav Petkov , Christoph Hellwig , Christoph Lameter , David Rientjes , Dmitry Vyukov , Eric Dumazet , Herbert Xu , Ilya Leoshkevich , Ingo Molnar , Jens Axboe , Joonsoo Kim , Kees Cook , Marco Elver , Matthew Wilcox , "Michael S. Tsirkin" , Pekka Enberg , Peter Zijlstra , Petr Mladek , Steven Rostedt , Thomas Gleixner , Vasily Gorbik , Vegard Nossum , Vlastimil Babka , linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 00/43] Add KernelMemorySanitizer infrastructure Message-ID: References: <20211214162050.660953-1-glider@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211214162050.660953-1-glider@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 14, 2021 at 05:20:07PM +0100, Alexander Potapenko wrote: > KernelMemorySanitizer (KMSAN) is a detector of errors related to uses of > uninitialized memory. It relies on compile-time Clang instrumentation > (similar to MSan in the userspace [1]) and tracks the state of every bit > of kernel memory, being able to report an error if uninitialized value is > used in a condition, dereferenced, or escapes to userspace, USB or DMA. Why is USB unique here? What about serial data? i2c? spi? w1? We have a lot of different I/O bus types :) And how is DMA checked given that the kernel shouldn't be seeing dma memory? thanks, greg k-h