From patchwork Wed Sep 25 03:22:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fangzheng Zhang X-Patchwork-Id: 13811576 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6C7B7CF9C71 for ; Wed, 25 Sep 2024 03:26:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E8CDD6B0089; Tue, 24 Sep 2024 23:26:25 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E3D946B008C; Tue, 24 Sep 2024 23:26:25 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D2C4B6B0092; Tue, 24 Sep 2024 23:26:25 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id B353C6B0089 for ; Tue, 24 Sep 2024 23:26:25 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 2DE6F1A07FD for ; Wed, 25 Sep 2024 03:26:25 +0000 (UTC) X-FDA: 82601822730.02.D788335 Received: from SHSQR01.spreadtrum.com (mx1.unisoc.com [222.66.158.135]) by imf04.hostedemail.com (Postfix) with ESMTP id EB79340006 for ; Wed, 25 Sep 2024 03:26:22 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf04.hostedemail.com: domain of fangzheng.zhang@unisoc.com designates 222.66.158.135 as permitted sender) smtp.mailfrom=fangzheng.zhang@unisoc.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1727234686; a=rsa-sha256; cv=none; b=QsSysH2tVdiujA4ZaZVY08t9bIojgTjDC2M5j6iqOBqASDObXHx/lUO2pZaN/QfpwMunJ3 A6plxk/xZ2LqZEwZt9CM2ab+0apoNCvOf8miVCvl3RGdZtkM01JhyyToIuGkc8DUgynETU w+YOZKC2qHuT95c1llwkCdC02DVT/X4= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf04.hostedemail.com: domain of fangzheng.zhang@unisoc.com designates 222.66.158.135 as permitted sender) smtp.mailfrom=fangzheng.zhang@unisoc.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1727234686; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references; bh=Pb71WEW/ttbJrf2OPqULnrd+4f4E+37EYw504G7EUc8=; b=0vd7o3zj7FODgyN6yjIlM5UTi/8ebres1wvcOQSaQdr6pamBF6c5nNq+5fYoVHRXIlzBuo 6umiK8iCGp+ShJ7door+Vz+MbYqlJgNDN2bZDExmfZeudqEePSH637NID7g7Rtz/pKyurG 1mJ3KzN6Lpf9rQrw2N1gKxb7lyuaQE8= Received: from dlp.unisoc.com ([10.29.3.86]) by SHSQR01.spreadtrum.com with ESMTP id 48P3N36W053405; Wed, 25 Sep 2024 11:23:03 +0800 (+08) (envelope-from fangzheng.zhang@unisoc.com) Received: from SHDLP.spreadtrum.com (bjmbx02.spreadtrum.com [10.0.64.8]) by dlp.unisoc.com (SkyGuard) with ESMTPS id 4XD20k750Gz2Mx63v; Wed, 25 Sep 2024 11:15:18 +0800 (CST) Received: from bj10906pcu1.spreadtrum.com (10.0.73.72) by BJMBX02.spreadtrum.com (10.0.64.8) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Wed, 25 Sep 2024 11:23:00 +0800 From: Fangzheng Zhang To: Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Vlastimil Babka , Roman Gushchin , Hyeonggon Yoo <42.hyeyoo@gmail.com>, Greg KH CC: , , , Fangzheng Zhang , Fangzheng Zhang , Yuming Han Subject: [PATCH 0/2] Introduce panic function when slub leaks Date: Wed, 25 Sep 2024 11:22:54 +0800 Message-ID: <20240925032256.1782-1-fangzheng.zhang@unisoc.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.0.73.72] X-ClientProxiedBy: SHCAS03.spreadtrum.com (10.0.1.207) To BJMBX02.spreadtrum.com (10.0.64.8) X-MAIL: SHSQR01.spreadtrum.com 48P3N36W053405 X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: EB79340006 X-Stat-Signature: n65wc8i14nrcfp9sojsjpz7ccn3oz9jw X-Rspam-User: X-HE-Tag: 1727234782-239655 X-HE-Meta: U2FsdGVkX1+eTpGK8E8fnVA58B37/014Dimq3SatbcsJ6sNpR7hlG0z2qOrMikZwcUpjSvpaA79NviZt9/+1lAEH6K1Zat9JHo0R2nPnMjWT8eWHP+0bwMVm0mBrDHXIUy64r0YvuRk0muSeGv1Xk2JxV4D1lgMtg6KNrFQ87g6YaXbsS4olkerOWQ39He050r3dgXnR7JKQM99ROcGiG9oEhTgoZeqz1IcaVN6gJxSPYYJjbvXVVtQf0wwI51hhvPXmUxfDZTnGcVZgjcG42JvqgccumAvziU/6cAq0lx5Tu9rT51DALUlFB4l5smShyQUJTy4JqdMZCeYToMVShLrxhiwPJ8k50YouSEU9et/lGE9rAwP4JKsTWWSJpHyaXjrhhqd44dFNMXVPhzmLBqXSxwnv2A+DORxiStNXGKb+iq36u6fQiQq0Y70z1vV7dILg5EwlNHP++LOimKYXBCVL2WVU0NufLC8HJaVlyjdzF5iKgsk7YHhRKFbHWSaLj23wm0M/r7nQRd4imJOPlDvw+fNC2VhMPluFbzGMTz/Cl7RU+U1u2gErrhuwqFTCGNZxqj/E2+HTB/o+jv4mpmYMReQHblOJiHMO/2/ZlA44l2fcrTdwYjLVDdg18ltDjSvxk0vf+pkIv+i/WBLmzAwVln9lnUbxr9tKow0PrBQeVnod3h+zjxIJqszuamUjaMNUrcG93siu9Gmf7eqSGYaXf3ZGEqKpdUNEhcxiWKQqCT1hdEcWUjZg/dH7wXzyy3SjKrllkQIL+CyKbMMGor/3f56E68O+6A4nccuUy4KC44kpU2WDJePx2MzV5eKLuAjnUhpAOuZnJsYQLNTNGWc9YH2ovxhUJs3CyBsDxmYz0ZBvsEzcmi24aowqnFb8norIzLSJB7fkTwg8YBA1D8RHLubixCk9AIaIlpHQG0XixPHucV4apyhK2yti/AoCQ+kywG57vOFUpTOLpYO 4M48C+Gx lXVEyLIbZgz0f8+s1IwyT4bdEPgAhoTNNVthVimSQfxhYdgi1p0Sfr1vGs7c0wTHyTl6mLmplDtEBhoaqKZcOYRfyHOTup+g1GUIzyxS0mhkCIsQ5WhBiEd91pg== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Hi all, A method to detect slub leaks by monitoring its usage in real time on the page allocation path of the slub. When the slub occupancy exceeds the user-set value, it is considered that the slub is leaking at this time, and a panic operation will be triggered immediately. Fangzheng Zhang (2): mm/slub: Add panic function when slub leaks Documentation: admin-guide: kernel-parameters: Add parameter description for slub_leak_panic function .../admin-guide/kernel-parameters.txt | 15 ++++ mm/Kconfig | 11 ++++++++ mm/slub.c | 76 +++++++++++++++++++ 3 files changed, 102 insertions(+)