Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp277937ybz; Thu, 23 Apr 2020 23:41:56 -0700 (PDT) X-Google-Smtp-Source: APiQypL40I7Vu5LofyBSNJxvaThQPnLkHfszEjYDJiq9bM87zp5HXDbdwtcVjasz+Pec5emO4Muv X-Received: by 2002:aa7:ce0f:: with SMTP id d15mr5896169edv.327.1587710516596; Thu, 23 Apr 2020 23:41:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587710516; cv=none; d=google.com; s=arc-20160816; b=gV8uivFGJZF4mVA3uGVzlOzybH9PjmvLJHRav6+ldXM4MKzqakxkk7TQszOFpPIUkJ h2DWAWXYyfg9MjEnlC+uEMWk0r0a900ee8ikO1WoCPHWDNLw6VZZMdMUgYWhZ6oVKp+I 96+hH7zxmi1fhO3fX1z5bXMCaPzVCN6A7X/4fG9CsccwjRnZtULZdUIfn+bcfEQSC+fH mzKws5sCdxy+zpsYeCqivDwtQ9LkJO/LiL8Az1piXN6YHcTji9x7gfUEHNMEw6uoZfyX IGeRD6aCNVUK4kiXwhf9Eb/AAqAFi4NNEBghu+duhD7/e17MfCbQk1o0fKMIRLAzHX6K iKJA== 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=5Nl042EYhQkNdGgGpL0PjYS28b3/nSBEMCyC0XuhXcY=; b=V/wh+pUhJLP/CfJ2qDl/auZLjWXxwKfQK7a3NL5RCZXNi5xfAiPKUaeNgBkh3+M2T6 P5dRpi8s9A3d9g0DhSHlDb2wAuRj0eSsrUt8xygI9OPVECMkCusnOnIEAR84GFF7WBKt q8YPDEMvn53lBLabh9H2P9LmLVchF65KJRtNHdelFaJ2J1Vfpj/tPmAmHtnjfZsfbLYS xjCsUMJSO+Zr3jhceOBtJU53yP74gm14OCApOJLz/BYzQtrga6JqVT45KxJKfJr5EYH+ HtU+gYpSh3XVSRaNBuvhvWtD1z8fLHHtSeCk3DICXI6uCr2qnVbL/w6RTz2e9qAxUYbG TVLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=T3WvB9Zk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id y89si2470401edy.357.2020.04.23.23.41.33; Thu, 23 Apr 2020 23:41:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=T3WvB9Zk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726540AbgDXGhC (ORCPT + 99 others); Fri, 24 Apr 2020 02:37:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726515AbgDXGhC (ORCPT ); Fri, 24 Apr 2020 02:37:02 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B10EEC09B046 for ; Thu, 23 Apr 2020 23:37:01 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id e26so9177199wmk.5 for ; Thu, 23 Apr 2020 23:37:01 -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=5Nl042EYhQkNdGgGpL0PjYS28b3/nSBEMCyC0XuhXcY=; b=T3WvB9ZktxtKUFHZ4fn4bJrekvXMv5L0WjMsvkfzHvN3QFdGzUWUsLB/s/gpxzo8B8 c6u7vRd1abf2esEI0zaqL64FZhh/yBpz6GIb/TYnXFMj70BIzGV+U9GDhGksQs1x3Xp8 GHTDOI3SBEGflHKHNpuj8K/MipYao2Zz0mvyJnmtIMX2Dk270CoKX0Ug+oWGISPKXp6V Hwu0YN1lmyWKmDFhs7mUa3sflRRX/6b03twFl6DB6VIgjo8t2R32x/QQxDO+d2MnFT+Q 2gzzqg0AZPgYowryahbt0CwianpNJaM2HiUbvb7ug3ukvlwpdIRmNvUHw0T/fQYAJU3X sjjA== 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=5Nl042EYhQkNdGgGpL0PjYS28b3/nSBEMCyC0XuhXcY=; b=BVsRKDu/JQyMHbHuPV2j0ROLy/+KH2hHRZlrJ1QDcInZ5+SLwKYqQRYGTWWnAUKH2S JOj22hB07sVtzq3Xgs7l4PD6IEKIB3AzXiBY4uHtDgVVdulrZ4610eG/uj+1fesoxvlU u+YpcfUEz9M1OQuN70Pu2RCb6ds7NJbHQppbX6dvFAl7+s5t7VcXM62SRNYMGoszTQOj 3Xjfg9/IzjGqoJ1l0E2IwwU3GaSHpM08I6pUOjBi3uLNRHBQWa7NSpzgRQWzaFheDeEi SBRvgfPoU/Q+Lthr0wrcAbEUKu7YwluFS4p/DxUk2Pm4vz7zdAaLgYXHc/s25eEbBLh0 HPPA== X-Gm-Message-State: AGi0PubFfkuGgtFOxwlHxPKqj4sCVS8Uxxwi15bJZ3jmiiJVuFeRx8Ny IcLQHFTGmfS+qAiIacuU+zaBlvw8RWPPUgGkKz1Oyw== X-Received: by 2002:a1c:a512:: with SMTP id o18mr7973525wme.138.1587710219940; Thu, 23 Apr 2020 23:36:59 -0700 (PDT) MIME-Version: 1.0 References: <20200418031833.234942-1-davidgow@google.com> In-Reply-To: From: David Gow Date: Fri, 24 Apr 2020 14:36:48 +0800 Message-ID: Subject: Re: [PATCH v6 0/5] KUnit-KASAN Integration To: Alan Maguire Cc: Patricia Alfonso , Brendan Higgins , Andrey Ryabinin , Dmitry Vyukov , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Linux Kernel Mailing List , kasan-dev , KUnit Development , "open list:KERNEL SELFTEST FRAMEWORK" 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 Sat, Apr 18, 2020 at 11:28 PM Alan Maguire wrote: > > > On Fri, 17 Apr 2020, David Gow wrote: > > > This patchset contains everything needed to integrate KASAN and KUnit. > > > > KUnit will be able to: > > (1) Fail tests when an unexpected KASAN error occurs > > (2) Pass tests when an expected KASAN error occurs > > > > Convert KASAN tests to KUnit with the exception of copy_user_test > > because KUnit is unable to test those. > > > > I tried building and running and things look good but I am > still seeing the three failures I reported before, even with > CONFIG_AMD_MEM_ENCRYPT not set. My config is attached if you > want to try and reproduce at your end. Oddly this config was > working before IIRC (once CONFIG_AMD_MEM_ENCRYPT was not set). > > Here's the failures: > > # kasan_memchr: EXPECTATION FAILED at lib/test_kasan.c:545 > Expected fail_data.report_expected == fail_data.report_found, but > fail_data.report_expected == 1 > fail_data.report_found == 0 > not ok 31 - kasan_memchr > # kasan_memcmp: EXPECTATION FAILED at lib/test_kasan.c:566 > Expected fail_data.report_expected == fail_data.report_found, but > fail_data.report_expected == 1 > fail_data.report_found == 0 > not ok 32 - kasan_memcmp I was able to reproduce these (along with a kasan_strings) failure, and the cause seems to be some combination of __builtin functions being inlined by the compiler and potentially dead code elimination, as fixed by Daniel Axtens here: https://lkml.org/lkml/2020/4/23/708 I've sent out v7 of the patchset[1], which I've rebased on top of Daniel's patches, and can no longer reproduce those test failures with your .config. Cheers, -- David [1]: https://lkml.org/lkml/2020/4/24/80