Message ID | 20221109194404.gonna.558-kees@kernel.org (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-hardening-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 31F9FC4332F for <linux-hardening@archiver.kernel.org>; Wed, 9 Nov 2022 20:01:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232024AbiKIUBB (ORCPT <rfc822;linux-hardening@archiver.kernel.org>); Wed, 9 Nov 2022 15:01:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231416AbiKIUA5 (ORCPT <rfc822;linux-hardening@vger.kernel.org>); Wed, 9 Nov 2022 15:00:57 -0500 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 493342C126 for <linux-hardening@vger.kernel.org>; Wed, 9 Nov 2022 12:00:54 -0800 (PST) Received: by mail-pl1-x62b.google.com with SMTP id p21so18096192plr.7 for <linux-hardening@vger.kernel.org>; Wed, 09 Nov 2022 12:00:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=KGQv9g3ODjs6GFRrqXnKxOhm5DKhXRVSdXb+tdSOpIY=; b=PhMz0SvIkOf9OKYoAzT8yt4UbCslu8xu8VzNKI6KPYLw8C3ZXFNdlQq6p/H6By7ahw NM5h1Id6g0rIi3I32+qWmFm6hCrK/eQKXLBFH1d48GXXjsVLFmX1WwuNj54NSjAm+9mk fL7LHs8KP/1kU6rf3m2hmfaWWgkTvd0zVbulA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KGQv9g3ODjs6GFRrqXnKxOhm5DKhXRVSdXb+tdSOpIY=; b=Qfd8cU550hNmkuAhh2Lf2J6RULdEQiBZiEu9ArSTKtyNjKgjLMbkvps8OOyV0iOqtr kQVLp/1YhpMCyedVtjc35XUTbElUCpFYHNmfBHbnsHU1C4efnQWylQ6Ia1tvTTDvsCUR oMo+ZFhws9psktDRRYkAq5l6iiG9RuCtOUCvprwzkQZcFRgq1wsjq03FBY/o4CvhWhK3 SfTpjxzvM7zESwn6t7AFzzXHdkycMESvER5erH+38GEpuZYf7Vn3xBMKUnJ+ZkZNDEji ATsi+KoYjkef4E9hGRbHPMplrvXGKD4rY6GufV929EftcoT/LyM+kcZjrFDIAHPZRnrr hmSQ== X-Gm-Message-State: ANoB5pkZWxPgQLIpt8z847/sp0hnOFdmL3+W3vIwXpSPZdLJ2C5Jgcd1 WvtYZOtEHNfA+ZRU5zdEf+YDRg== X-Google-Smtp-Source: AA0mqf5yfsEwBN1id8J2OajpNJE4fr04LTDMDVjQu1P6KCrWdOZsFH+T2qUoOXW6OEtOf2HFdktLqA== X-Received: by 2002:a17:90a:49c9:b0:217:c5f6:4092 with SMTP id l9-20020a17090a49c900b00217c5f64092mr21353250pjm.33.1668024054274; Wed, 09 Nov 2022 12:00:54 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id t24-20020aa79478000000b0056be1d7d4a3sm8668553pfq.73.2022.11.09.12.00.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 12:00:51 -0800 (PST) From: Kees Cook <keescook@chromium.org> To: Jann Horn <jannh@google.com> Cc: Kees Cook <keescook@chromium.org>, Greg KH <gregkh@linuxfoundation.org>, Linus Torvalds <torvalds@linuxfoundation.org>, Seth Jenkins <sethjenkins@google.com>, Andy Lutomirski <luto@kernel.org>, Petr Mladek <pmladek@suse.com>, Andrew Morton <akpm@linux-foundation.org>, tangmeng <tangmeng@uniontech.com>, "Guilherme G. Piccoli" <gpiccoli@igalia.com>, Tiezhu Yang <yangtiezhu@loongson.cn>, Sebastian Andrzej Siewior <bigeasy@linutronix.de>, "Eric W. Biederman" <ebiederm@xmission.com>, Arnd Bergmann <arnd@arndb.de>, Marco Elver <elver@google.com>, Dmitry Vyukov <dvyukov@google.com>, Peter Zijlstra <peterz@infradead.org>, Juri Lelli <juri.lelli@redhat.com>, Vincent Guittot <vincent.guittot@linaro.org>, Dietmar Eggemann <dietmar.eggemann@arm.com>, Steven Rostedt <rostedt@goodmis.org>, Ben Segall <bsegall@google.com>, Mel Gorman <mgorman@suse.de>, Daniel Bristot de Oliveira <bristot@redhat.com>, Valentin Schneider <vschneid@redhat.com>, Andrey Ryabinin <ryabinin.a.a@gmail.com>, Alexander Potapenko <glider@google.com>, Andrey Konovalov <andreyknvl@gmail.com>, Vincenzo Frascino <vincenzo.frascino@arm.com>, Luis Chamberlain <mcgrof@kernel.org>, David Gow <davidgow@google.com>, "Paul E. McKenney" <paulmck@kernel.org>, Jonathan Corbet <corbet@lwn.net>, Baolin Wang <baolin.wang@linux.alibaba.com>, "Jason A. Donenfeld" <Jason@zx2c4.com>, Eric Biggers <ebiggers@google.com>, Huang Ying <ying.huang@intel.com>, Anton Vorontsov <anton@enomsg.org>, Mauro Carvalho Chehab <mchehab+huawei@kernel.org>, Laurent Dufour <ldufour@linux.ibm.com>, Rob Herring <robh@kernel.org>, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-hardening@vger.kernel.org Subject: [PATCH next v2 0/6] exit: Put an upper limit on how often we can oops Date: Wed, 9 Nov 2022 12:00:43 -0800 Message-Id: <20221109194404.gonna.558-kees@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1576; h=from:subject:message-id; bh=f6yYT1z0j34/tTr0B+65L7ktUKTQPrMyBqrftF9wr6M=; b=owEBbQKS/ZANAwAKAYly9N/cbcAmAcsmYgBjbAbvE87tT3kRd5r9yYOWLJwPzhKiyHMFu0vH4T8P yoDh5syJAjMEAAEKAB0WIQSlw/aPIp3WD3I+bhOJcvTf3G3AJgUCY2wG7wAKCRCJcvTf3G3AJitzEA CncSpVOXlgXdbb/hwP3379EIiZDAVaMRKgUjhCrB5C1AG8xFxO6JBJoQ4+l2O231mX/ddD+z+SYMfX HHZ95D8VX3sAWmOtoadA7shTHqEF0FsiXkKpQl7f6JgcaNkKdJ+q2tS3f9H6r92zj3NC0e+WJLLAEl hZ68EYM1yBHu3NbBwKNCGg2c0yF6si6geFbjeUnYiOy6tW6UYvePIrwcwCn7KlYhqgl4KNv36+jWHc Y778i1cRX76eeiUzpHniT2B2T0Evn913bHmuLUL+FIttpmCIIKod6ACYcJcj/GNRNqzRV07wl0Key/ z2s25RNqy72RUf87fAkxXXF1SUj/Zlyrtv+1amMRLYK+YJZk2xVsnpjJ12EXvXy1aRog1ya0Uu2Xbh JiED6THw9bgM6qjUfC1P3K+hxbbADTaXDKq/YmanOFpM2dQ0x6gPSL9K77ITM4epSlnxzEFYPW38VO aey2ABBPLLf1x6INkY63BahlYSW0lEFsPq/SwtRtk96yvfx7cnX/3s5yJ69e/KOOeqympJ94EqAHMS uiHCzAG5wBKimts9Ev+ASgD5grPm+aNTMzg7YGHLR1H8CtIvP14gAmvYaDBunKlhjowNMBxntTuhq/ yQXowZnvWi80+NGf5Y6I3gintRa/hcEra2VTAWXPBDlREGitdn3tljFvyzMA== X-Developer-Key: i=keescook@chromium.org; a=openpgp; fpr=A5C3F68F229DD60F723E6E138972F4DFDC6DC026 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-hardening.vger.kernel.org> X-Mailing-List: linux-hardening@vger.kernel.org |
Series |
exit: Put an upper limit on how often we can oops
|
expand
|
On Wed, Nov 09, 2022 at 12:00:43PM -0800, Kees Cook wrote: > Hi, > > This builds on Jann's v1 patch[1]. Changes in v2: > - move sysctl into kernel/exit.c (where it belongs) > - expand Documentation slightly > > New stuff in v2: > - expose oops_count to sysfs > - consolidate panic_on_warn usage > - introduce warn_limit > - expose warn_count to sysfs > > [1] https://lore.kernel.org/lkml/20221107201317.324457-1-jannh@google.com > > Jann Horn (1): > exit: Put an upper limit on how often we can oops > > Kees Cook (5): > panic: Separate sysctl logic from CONFIG_SMP > exit: Expose "oops_count" to sysfs > panic: Consolidate open-coded panic_on_warn checks > panic: Introduce warn_limit > panic: Expose "warn_count" to sysfs For all: Reviewed-by: Luis Chamberlain <mcgrof@kernel.org> Luis