Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1010264ybh; Wed, 11 Mar 2020 15:34:24 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvGh7geWFY6Oh2MiJOmMYKmWo+fERer9G7d6GCwE3q6Ruo5ja7tVSgGiE3nqm9hQuvs3htW X-Received: by 2002:a9d:7e8b:: with SMTP id m11mr4167707otp.83.1583966064516; Wed, 11 Mar 2020 15:34:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583966064; cv=none; d=google.com; s=arc-20160816; b=kqUsbrAm5SDaTsTgFG/8KWxSpy+UMfrnNkchK3iGLNyoQ8DWqwx+QK8hnCM6vpOlwd S2oixk8ReF/4b6NWuke3Ddp8zbVdraDYYspS1OYd7b6mFPGKXaLRZv7+Dtl48pbL/3DQ uTwjmbNxNkdXOKHXx0u00Ffcn3LCYP9vyD65A8yIl8dyQ7tp9mWLGaOe0bCDpFpV6KNV /O+qeu6U11UhJyXDe6IzlDo5i/ahkiwOIsCTZZqRp9XQ9T5HpjtPvlbFIX2xbI+RZ75x xW//UI/KGVTddtnnQjc8z5ZrvQ7+ukR3y52po5xNHPj39m3HCzRyibUE1G2KLXmD5Dz2 ynsw== 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 :in-reply-to:references:mime-version:dkim-signature; bh=P3G5G1ycGcqjr+5+9XmfiHnkfrEJ8jgyfY9rjLHkFkw=; b=k9I/hyUXyh/GsJu89W8JwFMb5ycuEaEIwqkNfuXifFinGyNKgXcvZtOpBmFtKsRQqy a1YYyPfKz9ypdwwzXXHIpm+NULn1IrQlY88+O+1P9KhpKgASg3036H5tIuNcriCLaJwZ +Rz7ok6Wh3gw5kkf14677kApzNbBIZhd5/bzm5JnSMKJfl2ocZoP4z3NS9IPKzPOgP8j v06J0LFa7FOaDGB6paWVy4ECb3yxduwfnf/D7V3HGe/NF/N6H+PJhQ9T6yNlcwdJv+s+ P2nXMRFizKw2+V03UAztJ/Iu02i+lsEce4AMuD5NYf1/MBIN/Y3BrHUR123iN2qenwxE QHWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="gM/y9MfW"; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w7si1697130otm.256.2020.03.11.15.34.11; Wed, 11 Mar 2020 15:34:24 -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=pass header.i=@google.com header.s=20161025 header.b="gM/y9MfW"; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731374AbgCKWdQ (ORCPT + 99 others); Wed, 11 Mar 2020 18:33:16 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:38755 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731349AbgCKWdO (ORCPT ); Wed, 11 Mar 2020 18:33:14 -0400 Received: by mail-wm1-f68.google.com with SMTP id h83so511220wmf.3 for ; Wed, 11 Mar 2020 15:33:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=P3G5G1ycGcqjr+5+9XmfiHnkfrEJ8jgyfY9rjLHkFkw=; b=gM/y9MfWhSnnbm8eeUSasmQXOPlws32nRpKOxYTiGkFzq3ExukIEkdmaPnoFFb+hly Edp6/fOWGy1j61w7XjnyjH1XIr5mzwi9mgWMO/08CpAe1+hG3isKsDEhDcckcOwsnsOF PYUbHOyDxmEPhKFng1suxUrvzY6MU2VzAhUv+OL9O87ErBDP0pVEc8fPRQbv5tAopIed hWiQpv+KEtL+v8CXlOrmccLUJxL27LF2vv7w9hwoB1wvZ7QqwZy49AxpBPt5qkOl5/on n+1xF++cKS8oXVEFp3hK69d8Pda0gOSn8pdNHb5SYRp18Yxzg9KC5JeZnBWGgSrsVE1v DV4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=P3G5G1ycGcqjr+5+9XmfiHnkfrEJ8jgyfY9rjLHkFkw=; b=mXeHst8/nsQV3o39WDsFH3OU0pbR4Y2O4u4vgEgpv9pPINWnWS8A5ujOHgkotbeM+M /BxuMJTXMyJdTXx2Z8VJGKedQY9sRC4CgfR7DMt6rdzDuctgs4/HsbdIiIYmnVypBifr p8NWQ1eni9QbRIYYEzwp8tYlr6MlKq6d3z/qkcJgIhgang5oQVVC1qe/nh0/U0NkA5sj klN45uUS1mJI0fo4Piln9uDYy1AsyyYUm95kFzo+Dqg/kssbDp2NCn8CL7Qjtsfe/siI 6gRRE+sgtA0npMraJCrSF6gcLuMgyOv7VORLsV/WHNNF8L2L798NE1u7mfL/aGvL/vud No9w== X-Gm-Message-State: ANhLgQ1Wk8h+gRk9szYAFUyFq/kLT7F7DCUqZC0qJxERQkghO3bolxDv UZjY0KBwqA+XGVRZDvP0A+i8+b8qgu0LIOuVN0y8OQ== X-Received: by 2002:a1c:8103:: with SMTP id c3mr837777wmd.166.1583965991033; Wed, 11 Mar 2020 15:33:11 -0700 (PDT) MIME-Version: 1.0 References: <20200226004608.8128-1-trishalfonso@google.com> <4b8c1696f658b4c6c393956734d580593b55c4c0.camel@sipsolutions.net> In-Reply-To: <4b8c1696f658b4c6c393956734d580593b55c4c0.camel@sipsolutions.net> From: Patricia Alfonso Date: Wed, 11 Mar 2020 15:32:59 -0700 Message-ID: Subject: Re: [PATCH] UML: add support for KASAN under x86_64 To: Johannes Berg Cc: Jeff Dike , Richard Weinberger , anton.ivanov@cambridgegreys.com, Andrey Ryabinin , Dmitry Vyukov , Brendan Higgins , David Gow , kasan-dev , LKML , linux-um@lists.infradead.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 Wed, Mar 11, 2020 at 3:32 AM Johannes Berg wrote: > > Hi, > > > Hi all, I just want to bump this so we can get all the comments while > > this is still fresh in everyone's minds. I would love if some UML > > maintainers could give their thoughts! > > I'm not the maintainer, That's okay! I appreciate that you took the time to look at it. > and I don't know where Richard is, but I just > tried with the test_kasan.ko module, and that seems to work. Did you > test that too? I was surprised to see this because you said you didn't > test modules, but surely this would've been the easiest way? > I had not tested with test_kasan.ko. I have been using KUnit to test KASAN from the beginning so to be completely honest, I hadn't even learned how to run modules until today. > Anyway, as expected, stack (and of course alloca) OOB access is not > detected right now, but otherwise it seems great. > Great! Thanks for putting time into this. > Here's the log: > https://p.sipsolutions.net/ca9b4157776110fe.txt > > I'll repost my module init thing as a proper patch then, I guess. > That would be really helpful, thank you! > > I do see issues with modules though, e.g. > https://p.sipsolutions.net/1a2df5f65d885937.txt > > where we seem to get some real confusion when lockdep is storing the > stack trace?? > > And https://p.sipsolutions.net/9a97e8f68d8d24b7.txt, where something > convinces ASAN that an address is a user address (it might even be > right?) and it disallows kernel access to it? > > I'll need some time to investigate these all myself. Having just gotten my first module to run about an hour ago, any more information about how you got these errors would be helpful so I can try to reproduce them on my own. > Also, do you have any intention to work on the stack later? For me, > enabling that doesn't even report any issues, it just hangs at 'boot'. > I was originally planning on it, but it's not a high priority for me or my team at this time. > johannes > -- Best, Patricia Alfonso