From patchwork Tue Aug 31 06:25:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Imran Khan X-Patchwork-Id: 12466509 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D585C4320E for ; Tue, 31 Aug 2021 06:26:00 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id BB0816023F for ; Tue, 31 Aug 2021 06:25:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org BB0816023F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oracle.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 5958B6B0072; Tue, 31 Aug 2021 02:25:59 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 51F3B6B0073; Tue, 31 Aug 2021 02:25:59 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 397298D0001; Tue, 31 Aug 2021 02:25:59 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0177.hostedemail.com [216.40.44.177]) by kanga.kvack.org (Postfix) with ESMTP id 27EF86B0072 for ; Tue, 31 Aug 2021 02:25:59 -0400 (EDT) Received: from smtpin38.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id E61891CFCC for ; Tue, 31 Aug 2021 06:25:58 +0000 (UTC) X-FDA: 78534390396.38.70EC79B Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf18.hostedemail.com (Postfix) with ESMTP id 97A784002091 for ; Tue, 31 Aug 2021 06:25:58 +0000 (UTC) Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 17V5bKpo004719; Tue, 31 Aug 2021 06:25:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2021-07-09; bh=qTu1uyQL9Hxx+XqQrAAWKU1S0IU5A4fIwRSUvusi3Vg=; b=V6BxaP7zt9/P+txPOEKbPvwTSXYP2DXg33oTE2Le14eplL83vQiR0QOkTfVFM6Uk7gyU ey3zBW6UQ/THzpz1Z4grmF4oIhiulc9V0lyC2URMkT5Bt7LC3vrJd/zVuD1mlbTH4Haw XVDngCygpT8sIK+rwgjy7VBrQUCrgD6DMKN49xenTbHZCkaV2Kl6nhIydHoq/7avbis6 YobhDllSR/yAhAhtl5BSFYpSescqaAfSXWbiN9oP89sHka1/hHI3T3e3ybs/Ah1KvSal 3VHLQzonq+ZB4fpYai//i7ZiPosKBh9jbehxQCONZLIc7M7tSt4ADdqSq6vm9uCVjpxf wg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2020-01-29; bh=qTu1uyQL9Hxx+XqQrAAWKU1S0IU5A4fIwRSUvusi3Vg=; b=HRhu4i6crAVI2wL5Ci32HKP+tWPNhLgwMwpUuUEK3R+ewfwLpUIHTMLxoxJj4KqjStaH 4xHSSrWqCjVv+0v7TyrPxo9NpIvEkRtVCUOCKMRpiDd/no161NiqklcK7bG9nIyarpOl xF8qdxhfIvSCtBZ5lC5hTxsPtx0yeLUmVP9Lx8HiFY52po9/Be2WyWdPheHb/zEpcqlF 3zQvDm3KwP0YpFr+Bt4LGvqRECgNa0LodvqX5E4LLGEJIAIA9vSE4qrmweuhIoWxwfc6 w5y5+F/ILau8P+BxYfB967kXi0NHRy9RUIbB18L0eb5wgp/AYBSxA2BZ5IbuyoEtr3bf zQ== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by mx0b-00069f02.pphosted.com with ESMTP id 3aseedg3av-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 31 Aug 2021 06:25:57 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 17V6FaNM118963; Tue, 31 Aug 2021 06:25:56 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2040.outbound.protection.outlook.com [104.47.66.40]) by aserp3020.oracle.com with ESMTP id 3aqcy459ag-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 31 Aug 2021 06:25:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VpybHpV9PnSVLQ9x8ts7bY+VP9Bx7X+cqUI2mqQu+FRhZ6inM/CGBgZhatdyQlDAG38BaTDuuj5KqcixufsRDmKQdxD6JaEoQETDLXzhau0NWwv0ZqZHDQkcy8hV7FyzTkoRFknc0eTx3U/+tX28ekwJDJ6o+lY7BX1FozXAaIxOL/9jSlN/7Gk4hPMI9HJbaCmJf+IGqROPSBAB/mHKrBNBs+YOGtwXR1fyFwsnWPsKAc2txgsRwtv/DJ4H4WFZRNkfqCBAnJZHDXUqgUFkKrAzL/RYleZPD0s2FN7u41m/Uoe4sximUs9H6/U7D7Zh0SbolDRUrsIjhZPwGcMkSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qTu1uyQL9Hxx+XqQrAAWKU1S0IU5A4fIwRSUvusi3Vg=; b=j8j/CodZ8GC6KiaUgirbzplh+VuI98TWLPsqV69aqCxvLScT2rX67eUx6pL3QQRvjSOnzOSPrzHjq8TuDhIhPy7yEmkKnDfDOjiGI1hwiHh8Rf4sSER3oKDb87NzTJgByP+4joj5kPlnv9Z13/zi3LeZUCLfKQfeI0V4DkS9ovlinadFzfUbigTg+BLIc7HszdfetGb9hhJOyDdD+4TrO25ejgBYROwZkHrFQ2Mb0UdcDsYbDFMnb7F7xgJsC8vfOCY42xT82WV8aX9H7O5y28oE8f6RgZ4qjjU4FNFeY/o/VUi4/Iy3cotNpXje9h+11Oizv0Pcuteqjo9ZMby/JQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qTu1uyQL9Hxx+XqQrAAWKU1S0IU5A4fIwRSUvusi3Vg=; b=LZANHbt9YxRFqli5wEOocMiUBHhbSw6cKNYfoMbriNGO9iNsM5URiFWmrrcQnO+Hxq7Ovvuxzz6106M5PEVXgQxy5YIHdnVfFOjGHWEvnLDmr8YGsPZRyPVX7PSq0lqS17lJc5vjla4gejwoa8ONgHzm/su/b3fr8eQgFLaCz3I= Received: from CO1PR10MB4468.namprd10.prod.outlook.com (2603:10b6:303:6c::24) by MWHPR10MB1999.namprd10.prod.outlook.com (2603:10b6:300:10a::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.23; Tue, 31 Aug 2021 06:25:55 +0000 Received: from CO1PR10MB4468.namprd10.prod.outlook.com ([fe80::c8e:2147:b83f:79db]) by CO1PR10MB4468.namprd10.prod.outlook.com ([fe80::c8e:2147:b83f:79db%8]) with mapi id 15.20.4457.024; Tue, 31 Aug 2021 06:25:55 +0000 From: Imran Khan To: cl@linux.com, akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 1/2] lib, stackdepot: Add input prompt for STACKDEPOT option. Date: Tue, 31 Aug 2021 16:25:38 +1000 Message-Id: <20210831062539.898293-2-imran.f.khan@oracle.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210831062539.898293-1-imran.f.khan@oracle.com> References: <20210831062539.898293-1-imran.f.khan@oracle.com> X-ClientProxiedBy: SYCPR01CA0009.ausprd01.prod.outlook.com (2603:10c6:10:31::21) To CO1PR10MB4468.namprd10.prod.outlook.com (2603:10b6:303:6c::24) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (110.33.47.182) by SYCPR01CA0009.ausprd01.prod.outlook.com (2603:10c6:10:31::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.19 via Frontend Transport; Tue, 31 Aug 2021 06:25:53 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 132ff869-6e85-4c68-3bd6-08d96c482fdf X-MS-TrafficTypeDiagnostic: MWHPR10MB1999: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4125; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 78mSMbFWCVhEv2sa++5YRUqquLVJESf1liJ+j6twQ0ROS0n6vCHzrAEwxR4gkKlBRhBVF2NR7/pcYJxkVEUgU7RIkVeFfh5F5DaSxadsGrSeO26lGCIj5cEd75V4/ciZjsdzmyKn/t1eJ2tW6KJFuAA2NT566XINM1vtPvCFSI6UBd70gkZDJAUEWshvfnhNJbnsgbHsn61kudX7sZAsrjv+Fnd3qGvFw3kvAchlKVnlkK9TVDT0CWCZmpNknTtpt81GFz2zs0H7IV9VAgMZrQrxmDkut9+zgEBwgLafD1KyRqSp5Wllaek8WmVFvb1oEQFHdQAfTthX7gnb6x1yLv1/6UxjyXIwc1zOz8nLCMSbT5b7zWO0SPku1eXRgMELGjCs8a9gzDEhCGMFZJiAwDmNAMNQgJf9iyA5dwYsDnJNyC+Jale2Vi8YA5GwQY447rv3zVtsJ5lSYfsgX583/LYN0INjyzqQQYEpc1vZ4orxuzxXTOvyEJHhcOXOZsgWBRfGcCazHI/Y+wX00xOF233L0j5WKbjpo+typdO+utbsGtw4s8rxxVWkc0l8WZ2imAZ8+a1meeD51cu6JSaVzQERv2gaqbyBF862IgB9/l1xQDHxoAijLe06kDU8w4m8S/z+f2qnnzTBuM0USeGDAT+rhCgfnEGIebE6q7mCB/5kzbWwhYcDPQtMIgFBN/iOxNLiLDhRiF8HDJGrJd3M5Q== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR10MB4468.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(376002)(39860400002)(396003)(136003)(366004)(346002)(2906002)(956004)(316002)(86362001)(2616005)(5660300002)(66946007)(83380400001)(36756003)(1076003)(4744005)(4326008)(6666004)(66556008)(66476007)(8936002)(6506007)(6486002)(52116002)(38100700002)(38350700002)(8676002)(26005)(186003)(478600001)(6512007)(103116003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Ss3Otetl3NvoLMM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1NZrlBQjeCz2acA2EGkyEgseJ70z54NLip/GaTRToNaaoeALl75xdjVcwfFaoPV5SwS3lbP5+3WE1xP4RhFzn+7jsxwdy0JxwwuoC8bHV3hfBbzm+EQYb4qLACaVVsp5JsVu31M/M8KXBOQ0kljCaWLc3Pz0OUY4bkSF4AS1ftKWaeJe11T5223xssCK2o/4RE60oCDAcvSL6FKvrs7uYdeog0YQl77kv6iazW5N X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 132ff869-6e85-4c68-3bd6-08d96c482fdf X-MS-Exchange-CrossTenant-AuthSource: CO1PR10MB4468.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Aug 2021 06:25:54.9515 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: qikhlfi10cHojQ3MYBcZ2rwbhzaqT8rS8iVRIuJASyc+0KR3U+0sGBgexcaCfrYN0pOn3WTtRTKx95fqJ0v/dQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR10MB1999 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10092 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 suspectscore=0 phishscore=0 mlxscore=0 malwarescore=0 mlxlogscore=999 bulkscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2107140000 definitions=main-2108310036 X-Proofpoint-ORIG-GUID: iilkF5PjJ1SkGIqzgpo4F55blElBk9zU X-Proofpoint-GUID: iilkF5PjJ1SkGIqzgpo4F55blElBk9zU Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2021-07-09 header.b=V6BxaP7z; dkim=pass header.d=oracle.com header.s=corp-2020-01-29 header.b=HRhu4i6c; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=LZANHbt9; dmarc=pass (policy=none) header.from=oracle.com; spf=none (imf18.hostedemail.com: domain of imran.f.khan@oracle.com has no SPF policy when checking 205.220.177.32) smtp.mailfrom=imran.f.khan@oracle.com X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 97A784002091 X-Stat-Signature: amaa61m66zbzz6yzebhpxe7h9zqeyz43 X-HE-Tag: 1630391158-944682 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: So far CONFIG_STACKDEPOT option was being selected by features that need STACKDEPOT support for their operations, for example KASAN. Since next patch makes use of STACKDEPOT to store user tracking information for slub debugger and since user tracking info may or may not store stack trace for allocating and freeing contexts, make STACKDEPOT explicitly configurable. Signed-off-by: Imran Khan --- lib/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Kconfig b/lib/Kconfig index 6a6ae5312fa0..7e4b54f48af7 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -665,8 +665,9 @@ config ARCH_STACKWALK bool config STACKDEPOT - bool + def_bool n select STACKTRACE + prompt "Enable stackdepot support" config STACK_HASH_ORDER int "stack depot hash size (12 => 4KB, 20 => 1024KB)"