Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp631641ybm; Wed, 22 May 2019 08:59:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwQU1R6KF8xDX4l3UOWRxhQPsFFtrrWoKKxcNuCrS5EMKX+k0BB9t9XVlLCxqpZKtMPnsjU X-Received: by 2002:a63:eb56:: with SMTP id b22mr6423545pgk.81.1558540772557; Wed, 22 May 2019 08:59:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558540772; cv=none; d=google.com; s=arc-20160816; b=YIiqIgeK3tXl8fyXvAz30kSgGHrYcVB+fgSQZmpLZMNOElcCnJTvTDOZ7fFMYmocC0 UV4YwAIvu+DfE//rB3EnEkKQWGf0isSxJGOt0TVUDhaxFb9OdIEYgKiEcSR9XOdt+e5K MdZ/NkAldHqgOu7ZBPKFConVbEEDf/57aqCXvG8UwuRbTSaVRJD0PJ6a6m4MtStFrCaa joWart8A2XkFapCjcT8nlj/WoJXhU7zvkjDn3HOnTdNl7Nxq0mXTdCr21kHQdEj7lKk+ mMervjVQun95g6ZGCfUN69M9fA7Us7Hj/9r+B21+MlgRAyFmGqPK+/yk3PmnYy+4JxzO S6bg== 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=OFtUhOuSgO/od0ILZVXNBGI9ljdusS+fhIuCiAjLn48=; b=ssMM76TpAFcysVCVu9QMHEWc6WZpPdoRVrk2GHDPrEp/3u1g3B82Ur1Sj4qOOCS6rY rP1pnNz4L8rHGipKxdn2WIir5xexk4arbPqRJFP3IPiKqqb15V4ITLjMFQ0pkkeQ8DPH fMqrM5kR9DPeiMbpuX6q2lOlgn+rV9JiZY+osRjt/D9t8Iytko7zBw21BoKK1NWl97VZ t7XMbNu0myJ9c7Ow5AiNM63dpCFQN4B4GDlHTbzHvnWYZyWELYpv9MNc7tA0ZcB8YSP1 Iotlzhw/1+hLzqPYREWhfA4BWLuuiOdnzoZPbKTzStRcdPd61168Uk/78Yo+BtzEU3Qc EN0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=K0NExzf+; 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 65si25549670plb.39.2019.05.22.08.59.17; Wed, 22 May 2019 08:59:32 -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=K0NExzf+; 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 S1729935AbfEVPwa (ORCPT + 99 others); Wed, 22 May 2019 11:52:30 -0400 Received: from mail-it1-f193.google.com ([209.85.166.193]:53566 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728466AbfEVPw3 (ORCPT ); Wed, 22 May 2019 11:52:29 -0400 Received: by mail-it1-f193.google.com with SMTP id m141so4354822ita.3 for ; Wed, 22 May 2019 08:52:29 -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=OFtUhOuSgO/od0ILZVXNBGI9ljdusS+fhIuCiAjLn48=; b=K0NExzf+g8ek1lt12+v9z0gTKIKmmBd9tYGM487RkeZwmWQN3DuYM8NtVD0Q+qDpVg Xm3Sdhid9QFrG41/glaFL4h5/b4NATrRanVMRXNdxqebLkak8Xj63vUBEQo9wMJ26K7H tq5Z7cOrM15cmdXCjfN7qj+J+4cZ8niRtl7dBAEbo+Mg/TBtRSvVIzsexR6O5ku/JYO4 hZBl7uoPmM8MtllReoFQmF+zKdS3h0sub964wFavEPN5Lb4rTgbRB4gnzNioPBly2nqj lrcfr/+xZgd6KRTHrXi4VRM/ccVousi6w17VUz84Gz4JQlL5pJ8wE/k9SAkYI/1TGZUN qQnw== 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=OFtUhOuSgO/od0ILZVXNBGI9ljdusS+fhIuCiAjLn48=; b=fbMbpTojKhocEOnd+JdPIBZB/utFNhY1F7yrfZ8Kon1BnTK8DH461Ns2mnx6ek5sud BwTzd/vRKBZ0ucrbbG3gRG5zjWJk9ZEibkZl6opW9ho90ziLVjDLPYmEIlo4D/jo0pPL H4H7M3b36iapd1a/ZkpvtwmUXLStI+pvSd3qWRqjjjx/J49uGzN/Xixx2kN2Hrnb/xAs QKOwhakZaMN20A2tcoxFZnLhInYOHAjs33yPrGmLki7eKaJ5V+SU/jGiMRBmeHSEeGgL kWCOzVkIQZW44wGL0sMjkphXVa+9tY5pFUmvYiL27kAG1+TCv6sQqIktvsnT4TBVpFAw lDqg== X-Gm-Message-State: APjAAAWUm/GPJwcw7VSl9f7y8AHGN6xr9u3ewQ9UGaQ7znFIlV/7p57o +Vi4svGhCqg9COoNQ2xTzByn/ulJydCV3os1//oTOg== X-Received: by 2002:a02:1384:: with SMTP id 126mr53557329jaz.72.1558540348687; Wed, 22 May 2019 08:52:28 -0700 (PDT) MIME-Version: 1.0 References: <20190423102250.GA56999@lakrids.cambridge.arm.com> <20190512004008.GA6062@andrea> In-Reply-To: <20190512004008.GA6062@andrea> From: Dmitry Vyukov Date: Wed, 22 May 2019 17:52:17 +0200 Message-ID: Subject: Re: Linux Testing Microconference at LPC To: Andrea Parri Cc: Mark Rutland , Dhaval Giani , Sasha Levin , shuah , Kevin Hilman , Tim Bird , LKML , Steven Rostedt , "Carpenter,Dan" , Matthew Wilcox , gustavo padovan , knut omang , Nick Desaulniers , "Paul E. McKenney" , Alan Stern 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 Sun, May 12, 2019 at 2:40 AM Andrea Parri wrote: > > On Tue, Apr 23, 2019 at 11:22:50AM +0100, Mark Rutland wrote: > > On Thu, Apr 11, 2019 at 10:37:51AM -0700, Dhaval Giani wrote: > > > Hi Folks, > > > > > > This is a call for participation for the Linux Testing microconference > > > at LPC this year. > > > > > > For those who were at LPC last year, as the closing panel mentioned, > > > testing is probably the next big push needed to improve quality. From > > > getting more selftests in, to regression testing to ensure we don't > > > break realtime as more of PREEMPT_RT comes in, to more stable distros, > > > we need more testing around the kernel. > > > > > > We have talked about different efforts around testing, such as fuzzing > > > (using syzkaller and trinity), automating fuzzing with syzbot, 0day > > > testing, test frameworks such as ktests, smatch to find bugs in the > > > past. We want to push this discussion further this year and are > > > interested in hearing from you what you want to talk about, and where > > > kernel testing needs to go next. > > > > I'd be interested to discuss what we could do with annotations and > > compiler instrumentation to make the kernel more amenable to static and > > dynamic analysis (and to some extent, documenting implicit > > requirements). > > > > One idea that I'd like to explore in the context of RT is to annotate > > function signatures with their required IRQ/preempt context, such that > > we could dynamically check whether those requirements were violated > > (even if it didn't happen to cause a problem at that point in time), and > > static analysis would be able to find some obviously broken usage. I had > > some rough ideas of how to do the dynamic part atop/within ftrace. Maybe > > there are similar problems elsewhere. > > > > I know that some clang folk were interested in similar stuff. IIRC Nick > > Desaulniers was interested in whether clang's thread safety analysis > > tooling could be applied to the kernel (e.g. based on lockdep > > annotations). > > FWIW, I'd also be interested in discussing these developments. > > There have been several activities/projects related to such "tooling" > (thread safety analysis) recently: I could point out the (brand new) > Google Summer of Code "Applying Clang Thread Safety Analyser to Linux > Kernel" project [1] and (for the "dynamic analysis" side) the efforts > to revive the Kernel Thread sanitizer [2]. I should also mention the > efforts to add (support for) "unmarked" accesses and to formalize the > notion of "data race" in the memory consistency model [3]. > > So, again, I'd welcome a discussion on these works/ideas. > > Thanks, > Andrea I would be interested in discussing all of this too: thread safety annotations, ktsan, unmarked accesses.