Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp649242ybf; Fri, 28 Feb 2020 05:09:44 -0800 (PST) X-Google-Smtp-Source: APXvYqwGFzldpCG36SIuN8rZQYnRmk32pbeK6+HN1ln/JnvgC83fSZLBfDHp9Mjm5QXo8pRMj668 X-Received: by 2002:a9d:2264:: with SMTP id o91mr3212717ota.328.1582895384784; Fri, 28 Feb 2020 05:09:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582895384; cv=none; d=google.com; s=arc-20160816; b=vcTz2HOR/07ujKNXsMg3ehMEZ/BjPultefdbAKcMRL1zI4HcGGCqilXxOHHffqxHGk VbO7AU6ahbXe0emr/LFekheDByGyk4P/s00av3N6CZE9q3RVY5eFTtF7lPYD5FDob0SK kyKnkTIQ8E4hM2QKSYd6oVO2M3LS8YoqeNyg9O7XWSdWDxEsJfs4chZD4J8Qd3ngcXMq RUh2oDSYiflRERzIh+9BNqprAe1WZ4kfhGqz2doeoMVHLWCzhc+LPZgi1XwOfRdhC9Lq btGrX5NXZ9qFH77wgvmEj/inHE9wTOMYnTQyQvRshThmJpKVLSbGJu5y9gjb64xjpuhT Uf2A== 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=QTsS9WO7t3WlZZMouHSL/m/iJQUQUndophD3E0ikjkg=; b=X5tz1f0PNZfL72/eL9b3j9iSUQDjJjot97bFnrGlkhVKBJUsKzqZyotDCED+sOEimC cmRTGFEa/j5Mz3ux6AUEuZewkji79dKhPyoaNmzEVTdQrNarRFZbcc3GIYYskhYeyH91 SlLM9PzTTyZEoOKBph3rM8psxk9ZfIMQZG0Z8SRt1gtwrxq24HKRqy3vehgi8fOBiFdA 6Z9wSUoUyJJEysadwBRdFqAriu8GWJXWirtFRHxorYbcX9OmRKLjGfl0AUqLDHWYpTCP wDw5CzcEt83rNC0U0Qr9Dhn4bO/ypa0enPfqzIJHWoHAkbgKSIF28pgsJWrlzLQUpVEE J/JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=feZ3IcTL; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s64si1767612oig.147.2020.02.28.05.09.32; Fri, 28 Feb 2020 05:09:44 -0800 (PST) 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=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=feZ3IcTL; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726673AbgB1NJI (ORCPT + 99 others); Fri, 28 Feb 2020 08:09:08 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:32875 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725876AbgB1NJI (ORCPT ); Fri, 28 Feb 2020 08:09:08 -0500 Received: by mail-ed1-f67.google.com with SMTP id c62so1761364edf.0 for ; Fri, 28 Feb 2020 05:09:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QTsS9WO7t3WlZZMouHSL/m/iJQUQUndophD3E0ikjkg=; b=feZ3IcTL6/dc4LteFo3/h4IU0zbf0C61VrjMT18a/IQCzq5nurYsruha7zzuCLClPG Dis6tDOrnR4iZYGRzmNBtm6q37mM+O8J2eIUjqNb5hnd3+Cef8BAG/RsYwTpy1XarjbV R5C3Qsv8bQAfAxeF+6k9dBcuGNkQMeaXGERnfZDCYJ7cW/mZHN1fA+Hqgwy0zUTG4Ugr dpLdJm61NBCqvnEBMKsa2KcB81MFM9n23ixnb/4oCYsjImEMfOc6DsmvYZ2FuLsAsCkh 3U7p90Oy+ScNyZWfDK9lkrrnNSnZ327Hg+xVLQtT/AkJiz95lYuIirLl20yNLTw0mixX Y8Qw== 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=QTsS9WO7t3WlZZMouHSL/m/iJQUQUndophD3E0ikjkg=; b=cVt90U0lszxfMGEw6FgRZ+oSsKSOFMzQovlIrP33+TDhEo2eNYmJcd/0S07T6/o6Tb H/Zjcl6ixzdoWuV0EN6iMC/gZfU5mcMuEWiiP8k2OSdB9z9UOTWVHAhOUmbRh32G9/LJ WLQVZIauCPsXgY5CiH6pUHfQRzjIaBEmAGjaDPGTxy3r9nXBUQy5OPF1ZkFBbC1Ll7xj s+TGPWLfKaosqD0uvm688VtjfUXNVfz513aOx4m2lsXu3tko8gOZrVb32q+cc93H8Uww zxCOUF6CvpJJcVxIoRzHNYwtUSCRxfnYCEQS8CnGjaUQwFSB5ZfeNdRBOC0ro6bxE2jV 246Q== X-Gm-Message-State: APjAAAWVT0Bys93hbhDmzKoF0361/nav37BlM9qvND5vLWA1YY4xo/YI gC1QPOl36WiOMrK/ATx2gpgtZ0hoN/0iei46Jd/4 X-Received: by 2002:a50:cc8d:: with SMTP id q13mr4104551edi.12.1582895345585; Fri, 28 Feb 2020 05:09:05 -0800 (PST) MIME-Version: 1.0 References: <0000000000003cbb40059f4e0346@google.com> <17916d0509978e14d9a5e9eb52d760fa57460542.camel@redhat.com> <55b362f2-9e6b-2121-ad1f-61d34517520b@i-love.sakura.ne.jp> In-Reply-To: <55b362f2-9e6b-2121-ad1f-61d34517520b@i-love.sakura.ne.jp> From: Paul Moore Date: Fri, 28 Feb 2020 08:08:54 -0500 Message-ID: Subject: Re: kernel panic: audit: backlog limit exceeded To: Tetsuo Handa Cc: Dmitry Vyukov , syzbot , LKML , syzkaller-bugs , syzkaller 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 Fri, Feb 28, 2020 at 5:03 AM Tetsuo Handa wrote: > On 2020/02/28 9:14, Paul Moore wrote: > > We could consider adding a fuzz-friendly build time config which would > > disable the panic failsafe, but it probably isn't worth it at the > > moment considering the syzbot's pid namespace limitations. > > I think adding a fuzz-friendly build time config does worth. For example, > we have locations where printk() emits "BUG:" or "WARNING:" and fuzzer > misunderstands that a crash occurred. PID namespace is irrelevant. > I proposed one at > https://lkml.kernel.org/r/20191216095955.9886-1-penguin-kernel@I-love.SAKURA.ne.jp . > I appreciate your response. To be clear, I was talking specifically about the intentional panic in audit_panic(). It is different from every other panic I've ever seen (perhaps there are others?) in that it doesn't indicate a serious error condition in the kernel, it indicates that audit records were dropped. It seems extreme to most people, but some use cases require that the system panic rather than lose audit records. My suggestion was that we could introduce a Kconfig build flag that syzbot (and other fuzzers) could use to make the AUDIT_FAIL_PANIC case in audit_panic() less panicky. However, as syzbot isn't currently able to test the kernel's audit code due to it's pid namespace restrictions, it doesn't make much sense to add this capability. If syzbot removes that restriction, or when we get to the point that we support multiple audit daemons, we can revisit this. -- paul moore www.paul-moore.com