Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp419994ybh; Wed, 11 Mar 2020 03:47:41 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt/YKicTNofRJ6BlOPnDgxXp9y44WVLhy/2S5Zokk7KGNOLdk5ymFIlrOX++gNkZOoG+0Tx X-Received: by 2002:a9d:19ef:: with SMTP id k102mr1855406otk.220.1583923660873; Wed, 11 Mar 2020 03:47:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583923660; cv=none; d=google.com; s=arc-20160816; b=HqtCDVnq5qmeYYnJLl+5/V1UlHjdt9I+wQJZ2pr7BoPQRA851kEeroWoL1j2aB1axI VNE68J2x7+fKcd/j40c45O3+bf8SAaD7W1B3wcqW+StZMVngehsGZlZIwcnBe7NuZGHe GcR8yRfylDfvAkRAb4R6/qn2uVLxJ1DJ1RTNrVm4Y9z+ujM2JmVzgx3bTbl60rwNNvh7 Czo7akcGgj6pWYW8hHlp90xhvzWmGK4+TJ55LCJzpHhGbUC6/BPjkm3Pir3I4r62MzK5 zQkVc9Rb+Xu/ujT0ZM54/X45UMgos0L8HFQUzjHpuVyWWaxp5meSh3MoyJ/CCvD6QyNj nGyQ== 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=Q8RSBQ1awf7J0+pbXujt6gnSJdQq7hBnAow/IoAFi0c=; b=mdPdtUsdBtEWBaDWx7E1O31DMc1w8+P1+z9H1ghyxe1Zinwewq349X/w8guk9qaHO6 +MXCDN6UfJ7hjgeeuxFINWsW4gOAsy7f7x5jzMu5c1lHZO+hFhOlJxM2RGxL8IpkYFCX Za9WCnicAKC7SsM0s0ncpOKNh/Juf06v2t3mDfBzCyX/r3IAxS79XYHEsvx7KMx0e/1E TTt3fIHD718p9pGmgTj/invtJwVxg0hSpDHv+vMg1oXPgPnxpwaOx1HSNUGG0Hq1Rof7 Xu5An/qLpMV3jWZMSl00HLP0pSXL+LbqyczkkMfHwiitglLCTzUvFC5BrPHKY+FlS234 GUOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=byWNOnaB; 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 o20si99996oos.59.2020.03.11.03.47.29; Wed, 11 Mar 2020 03:47:40 -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=byWNOnaB; 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 S1729037AbgCKKqY (ORCPT + 99 others); Wed, 11 Mar 2020 06:46:24 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:33788 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726000AbgCKKqY (ORCPT ); Wed, 11 Mar 2020 06:46:24 -0400 Received: by mail-qt1-f193.google.com with SMTP id d22so1183246qtn.0 for ; Wed, 11 Mar 2020 03:46:23 -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=Q8RSBQ1awf7J0+pbXujt6gnSJdQq7hBnAow/IoAFi0c=; b=byWNOnaBSpcX4NgglDMaAl/iu/+Se3lc7hoi0h+nNEWULQmNMK1lsgjxTzb82gp/VF 5cJCyhQrSwzYySv1MAkIjiotOuSnlZY1qtUV8cX5+o7aPYgFXBbgO1WCcDTn0gWrgmxI 1cGW9tx0SckKW9lrIHfxte/TacXzDe/6zNeA8LjEEUWUVFUgehnf7irKNs3/piBl5Te3 r8HV5dSUvdYp0qFBuXosUVXhlewJ4EBkzJxGHxrn1IdlERUO26R0Sa4U01MSYYOXqRsE a9ItxmXAH+fbjeibEqTPho121UE/eTz8r/SHy2CMuzJfodDlCXCO+eD2/Nb6kpl3Ge+2 xi/Q== 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=Q8RSBQ1awf7J0+pbXujt6gnSJdQq7hBnAow/IoAFi0c=; b=FPbL79z2hDACWjRZ467zEFuakJflx79FOt25EP0HNO1K9BqTOV4oxaaGOSbmr4P4QE KwCGEYscnVofX0o2rvyWATKZeRYA/ZDCw4qZbpTyRpz417hmrqfxgQWJ1Hi99S+uTDIx WW07hrKmEokt+qPQ9X3MXr6NOpi+yJhlgrQIPwmsQMCAL4JA86zSsKabVIHdPAr7a0Nt /9O+a5ZU0GRBapv/81bIQCsDrzzxvbu/ePMYUJdz9xswVKTtE3pV0WqbhSc6RSfHPZxs mgy+pxpVB6hlWFgGCbIFeKi3l2+nzw+vaz4P4jlYBE+FVPEsf7WaAW+CZi+PHMjx2i9A tjBA== X-Gm-Message-State: ANhLgQ3C3AzsxCSkqoESgDUfUVKKIOZljy2TEgKJG1b3rfZmP+rl6+at j8g2PhkVGurSeQmxtAjTMamEcXjkUvPb9TcTbpuAbA== X-Received: by 2002:ac8:6697:: with SMTP id d23mr1966498qtp.257.1583923582471; Wed, 11 Mar 2020 03:46:22 -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: Dmitry Vyukov Date: Wed, 11 Mar 2020 11:46:10 +0100 Message-ID: Subject: Re: [PATCH] UML: add support for KASAN under x86_64 To: Johannes Berg Cc: Patricia Alfonso , Jeff Dike , Richard Weinberger , anton.ivanov@cambridgegreys.com, Andrey Ryabinin , 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 11: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, 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? > > Anyway, as expected, stack (and of course alloca) OOB access is not > detected right now, but otherwise it seems great. > > Here's the log: > https://p.sipsolutions.net/ca9b4157776110fe.txt > > I'll repost my module init thing as a proper patch then, I guess. > > > 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? Please pass these reports via scripts/decode_stacktrace.sh to add line numbers (or any other symbolization script). What is the base revision? Hard to analyze without line numbers. > 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'. > > johannes >