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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7F31EC636CD for ; Mon, 30 Jan 2023 20:56:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230267AbjA3U4W (ORCPT ); Mon, 30 Jan 2023 15:56:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230168AbjA3U4O (ORCPT ); Mon, 30 Jan 2023 15:56:14 -0500 Received: from out-164.mta1.migadu.com (out-164.mta1.migadu.com [95.215.58.164]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFF823E609 for ; Mon, 30 Jan 2023 12:56:10 -0800 (PST) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1675111786; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=hkOxFb3yEq6h7w40h7f3LyAdThOsJZHxCl/P/Sxc7oQ=; b=IjSdtAT7mJMj0n3equLk6P0c1en/EigWievoZ84+T0WHThgYyVm1Mlt7y1eDxyh5x6w1qk GynjcdifilVI+8ZRAC4HGbxVI1DSaIgUk3/XoNZr6Jo4VpXVNQXVkgNW5nkvfu8ftTFyLM 4wLznoICjyBMgYo9GjxcNHuR1Nht9lc= From: andrey.konovalov@linux.dev To: Marco Elver , Alexander Potapenko Cc: Andrey Konovalov , Vlastimil Babka , kasan-dev@googlegroups.com, Evgenii Stepanov , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov Subject: [PATCH 00/18] lib/stackdepot: fixes and clean-ups Date: Mon, 30 Jan 2023 21:49:24 +0100 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andrey Konovalov A set of fixes, comments, and clean-ups I came up with while reading the stack depot code. The only fix that might be worth backporting to stable kernels is in the first patch. Andrey Konovalov (18): lib/stackdepot: fix setting next_slab_inited in init_stack_slab lib/stackdepot: put functions in logical order lib/stackdepot: use pr_fmt to define message format lib/stackdepot, mm: rename stack_depot_want_early_init lib/stackdepot: rename stack_depot_disable lib/stackdepot: annotate init and early init functions lib/stackdepot: lower the indentation in stack_depot_init lib/stackdepot: reorder and annotate global variables lib/stackdepot: rename hash table constants and variables lib/stackdepot: rename init_stack_slab lib/stackdepot: rename slab variables lib/stackdepot: rename handle and slab constants lib/stacktrace: drop impossible WARN_ON for depot_init_slab lib/stackdepot: annotate depot_init_slab and depot_alloc_stack lib/stacktrace, kasan, kmsan: rework extra_bits interface lib/stackdepot: annotate racy slab_index accesses lib/stackdepot: various comments clean-ups lib/stackdepot: move documentation comments to stackdepot.h include/linux/stackdepot.h | 152 +++++++-- lib/stackdepot.c | 628 ++++++++++++++++++------------------- mm/kasan/common.c | 2 +- mm/kmsan/core.c | 10 +- mm/page_owner.c | 2 +- mm/slub.c | 4 +- 6 files changed, 435 insertions(+), 363 deletions(-) -- 2.25.1