Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4500549ybb; Tue, 14 Apr 2020 08:29:35 -0700 (PDT) X-Google-Smtp-Source: APiQypIM05ipMLVeJn0vbLnLJGqPyG08Wr+48HHhCefMJFZgDXyH/9RfvfGm2j1HF0wZS2o+DJvg X-Received: by 2002:a17:906:1b16:: with SMTP id o22mr648028ejg.11.1586878175092; Tue, 14 Apr 2020 08:29:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586878175; cv=none; d=google.com; s=arc-20160816; b=r4GXkTCFu6MddyChDqpe6WH2nPr2x6l9o2lvj/IBfiDOo2NDgA7zqSjgYRDjmnhMU6 FlSyuc8TRQTgSQsCO0eN+MPr2i2k03F7aloB4ma7WyHqznyx2pQwZRuWFWCa/l60ZWvb KxIOzaThw85bg6TUWmQxahxVrEAcNMA9Ehkv7SVaw4g9/0l7ncNA8ZDPUjtEA+oZxqSp PsNB3eDhDMN10NVBrfK121l63pAIggaXXdHRQV+kS9b9xvss4dEEaCBtcAzUl7v2ip7F kFPQQU0M6uICNMjBbtT8fbI7/nGzYcLBqFP5P4x1rW6uR94UmNuvVSvfRI6F4FUgo7NZ L6sA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ye8Pt9b9xIcYq/Gt9nBPREXSZRlFaEUivxRL23XW6ZI=; b=LrVOP0B4tPPPBpEpdOpaskIbnIFP1F8GwKGYShPIB4MEhq1knyg6HaHbEVMPL/Eg1o v6YT8I8KP8uIl+AitjBHopHhc+cNlH9f/hIdb/f8JqYSXC7f+3s9wbE7giH2By3RV9hF gXYGd8E1UeVao2iaPgBTI3uMVrNfnOMSPl1bZdDn8BTdLK22RBXh3kC//yn/RAe7OpVO Tkhak8hsyB1UjtKifRBU299eFa1ELHpwPrPKia12zLJ+lv/qDj478olZCkK4kIKHN5Vq 1/OOoSoeHIRvi7OJmZcHKMHdTG54OpzO2z48GIvgvoVDQ0FbDeEZHdo1j3dHjNmJ84fG 0eqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=N7E03Rra; spf=pass (google.com: best guess record for 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 o6si9162553ejj.329.2020.04.14.08.29.10; Tue, 14 Apr 2020 08:29:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for 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=N7E03Rra; spf=pass (google.com: best guess record for 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 S2439849AbgDNMFh (ORCPT + 99 others); Tue, 14 Apr 2020 08:05:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2439808AbgDNMFf (ORCPT ); Tue, 14 Apr 2020 08:05:35 -0400 Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CED11C061A0C for ; Tue, 14 Apr 2020 05:05:34 -0700 (PDT) Received: by mail-qk1-x741.google.com with SMTP id t3so9008346qkg.1 for ; Tue, 14 Apr 2020 05:05:34 -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:content-transfer-encoding; bh=ye8Pt9b9xIcYq/Gt9nBPREXSZRlFaEUivxRL23XW6ZI=; b=N7E03RrawPL63NujM/vs57LPY3VlQKpiWGG1zavwqsuqb8LNuPN3T88ns898l6ZijV ZEWoA7htCk64CpOwuJs9jyegCT3l54H4MWw9GTAWZkRqdWq1GRFo+PeD+Z3K08CWaTXA iICk6MVImYfOzrhpXwW9pYoBnuOwFSxVKzPEwypoXsCbZXpgQv1KvFMI1zq9m4lusYG0 QyPiNzYpsIgjd3fJuOmjH7dXc6zJXzA4L7rVt16CFjIYnPn3qssahmIomZKo9thw2Kn6 2B0lCFlCbIx9nZ/Sb763n9gCGQ83KSXkuGAmMOBcYpKccSjYsk3b0dnoJS1r3HJh7gkP pHqQ== 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:content-transfer-encoding; bh=ye8Pt9b9xIcYq/Gt9nBPREXSZRlFaEUivxRL23XW6ZI=; b=bZ2wfemVtJMjaQC7wy0BmaQoAUh5rs11vkF+LrVvxNqY/fM1hErcsipeesLeaQfRAQ cM7k869+GEYQdgOdfbmA6nHhjVaA3VwbsK5FPwAjpFyKLSPP6NvbS3ibhKx7hY8KRaXs yPEO9EWPdEF60tQIsmWF4yUMklwpmM572GwDyfmjmUmm8jvCI4qeUDfp3ZD7TA6KHA5T EpkSqv0wW0sz3zHVCbEpfhBqyIDu/ZaHznmsX1b9jIQcmnvkwRC8lr77jnwYr+56iKtm OhmOkRxgxwHR6nS3NMkVSoZzECvdWGelOhzFGTGOcT8UXHHEgR7CsZUXVVIbmNm5Mgo5 sdKg== X-Gm-Message-State: AGi0Pua14Dm/vQFQftuYm3B6dq9ty9QTcZXbqEx5GSy3vcJPs781aavv BLuvFsvhfohlkwCt0k4UHizUvYF5fAoMewq3LS6mng== X-Received: by 2002:a37:bc47:: with SMTP id m68mr10260254qkf.8.1586865933482; Tue, 14 Apr 2020 05:05:33 -0700 (PDT) MIME-Version: 1.0 References: <04E78431-7B62-4FA1-8B1D-51DF7648D9C5@lca.pw> In-Reply-To: <04E78431-7B62-4FA1-8B1D-51DF7648D9C5@lca.pw> From: Dmitry Vyukov Date: Tue, 14 Apr 2020 14:05:21 +0200 Message-ID: Subject: Re: [PATCH 0/2] mm: Two small fixes for recent syzbot reports To: Qian Cai Cc: Linus Torvalds , Stephen Rothwell , Andrew Morton , Peter Xu , LKML , Linux-MM , Jens Axboe , Christoph Lameter , Johannes Weiner , syzkaller , Dan Rue Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 14, 2020 at 1:59 PM Qian Cai wrote: > > On Apr 14, 2020, at 7:13 AM, Dmitry Vyukov wrote: > > > > How do these use-after-free's and locking bugs get past the > > unit-testing systems (which syzbot is not) and remain unnoticed for so > > long?... > > syzbot uses the dumbest VMs (GCE), so everything it triggers during > > boot should be triggerable pretty much everywhere. > > There are many reasons that any early testing would not be able to catch = ALL the syzbot blockers. > > The Kconfigs are different. For example, I don=E2=80=99t have openvswitch= enabled, so would miss that ovs rcu-list lockdep warning. Same for that us= e-after-free in net/bluetooth and a warning in sound subsystem. > > But, notifying Linux-next ML is a good start, so at least we could ask Pa= ul or Steve to pull out the commit which enabling rcu-list debugging by def= ault with PROVE_RCU. > > I learned through that restricted kconfig to some degree of minimal could= save a lot of troubles late on especially those options that I have no way= to exercise like net/bluetooth and sound currently. It is going to be extr= a works though because those default options in Linux-next or even defconfi= gs are not always pleasant and would want to enable something I don=E2=80= =99t need if not given human intervention. We only try to enable what we can reach. There is significant reach for sound and net/bluetooth even without any hardware. So I would assume generic testing systems like KernelCI, LKFT, CKI should enable these as well. Hopefully we don't have all of the sound and net/bluetooth completely untested in linux-next.