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 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21726C433EF for ; Tue, 14 Dec 2021 16:48:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6C0736B007B; Tue, 14 Dec 2021 11:37:01 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 6495C6B007D; Tue, 14 Dec 2021 11:37:01 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4C2826B007E; Tue, 14 Dec 2021 11:37:01 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0215.hostedemail.com [216.40.44.215]) by kanga.kvack.org (Postfix) with ESMTP id 3C5236B007B for ; Tue, 14 Dec 2021 11:37:01 -0500 (EST) Received: from smtpin07.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id F0C888249980 for ; Tue, 14 Dec 2021 16:36:50 +0000 (UTC) X-FDA: 78916953780.07.7945776 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by imf20.hostedemail.com (Postfix) with ESMTP id AFF731C0014 for ; Tue, 14 Dec 2021 16:36:48 +0000 (UTC) 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 ams.source.kernel.org (Postfix) with ESMTPS id 0D96BB81B58; Tue, 14 Dec 2021 16:36:49 +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> X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: AFF731C0014 X-Stat-Signature: cg3a48dteksr9stdc4hrscekyj7tnron Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=linuxfoundation.org header.s=korg header.b=JUI22w1J; dmarc=pass (policy=none) header.from=linuxfoundation.org; spf=pass (imf20.hostedemail.com: domain of gregkh@linuxfoundation.org designates 145.40.68.75 as permitted sender) smtp.mailfrom=gregkh@linuxfoundation.org X-HE-Tag: 1639499808-839033 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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