From patchwork Fri Mar 20 20:26:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Edlinger X-Patchwork-Id: 11450293 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5639C14B4 for ; Fri, 20 Mar 2020 20:26:58 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 168842072C for ; Fri, 20 Mar 2020 20:26:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 168842072C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=hotmail.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 4F4906B0070; Fri, 20 Mar 2020 16:26:57 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 4A4E56B0071; Fri, 20 Mar 2020 16:26:57 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 393AE6B0072; Fri, 20 Mar 2020 16:26:57 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0002.hostedemail.com [216.40.44.2]) by kanga.kvack.org (Postfix) with ESMTP id 20E166B0070 for ; Fri, 20 Mar 2020 16:26:57 -0400 (EDT) Received: from smtpin13.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id BCDDA180AD81A for ; Fri, 20 Mar 2020 20:26:56 +0000 (UTC) X-FDA: 76616874432.13.mint96_259cdfebe310 X-Spam-Summary: 2,0,0,8dc81de73d32618e,d41d8cd98f00b204,bernd.edlinger@hotmail.de,,RULES_HIT:41:355:379:800:854:960:968:973:988:989:1260:1261:1277:1311:1313:1314:1345:1359:1381:1437:1515:1516:1518:1535:1539:1593:1594:1683:1711:1714:1730:1747:1777:1792:2393:2553:2559:2562:3138:3139:3140:3141:3142:3351:3865:3866:3868:3870:3871:4118:4250:4321:5007:6737:6738:7652:10004:10400:11026:11658:11914:12048:12160:12296:12297:12519:12555:12760:12895:12986:13069:13161:13229:13311:13357:14096:14097:14181:14394:14721:21080:21444:21627:21990:30054:30055:30070:30090,0,RBL:40.92.74.35:@hotmail.de:.lbl8.mailshell.net-62.18.114.100 66.100.201.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: mint96_259cdfebe310 X-Filterd-Recvd-Size: 7307 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-oln040092074035.outbound.protection.outlook.com [40.92.74.35]) by imf30.hostedemail.com (Postfix) with ESMTP for ; Fri, 20 Mar 2020 20:26:56 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y0wNIxvVwlPSxE9GCH1Wm/nPzFaqW9AP2wnnihfO2CZnlMV7NNJQ1v17zfGLp3uheal6ZjGndDHyrpQov8m8QygLlvvXFI7sc/qH80sNYb/RiCFYghBRsOd5BCI/tTaToZb3bxOjKEyvhIAzg7XkBs11XxS3252E2OHf9OS7ZhazU3+HMA52XMFStY8Nrg8nGZPCi/InAAscgmEPBqyKDO7imTULVBK9fe8586tIqaY+kMUeng+LIqQ5ChxRWmO//DJ05f76deTxnw5kfe5ug1YYszvF0Is42ie76e5MTpyOP06kEufo2CENGTFnGI1q9/rLDZ/PCIAkbRsZyz5B6g== 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=XpPIWBM553stJnYfPnlGbAKN81TYnG2nSTD5mtmPrlA=; b=nqgwM5SPdgs/RjOXJlqODU5HSTk5OhflVV9wpG9J2gJwAQ9LIVWnhAUKPJm/7Wfjb8p0Ud2Nm1pfmL5RmVhK4b0Y4Rcmx1YOROAwKEt3Luy8UVlYn0P1O1gShSUqME3ukLK9VKADv7xmUxenYkbXDKwFlSsotv286/wqrMAQDQmqqGNEyvUvoGKOqAonXQzvvuFNnds2yzvY37Km6ztU5z2tjaFJaWPccwH/Uw73ATMeCsCG2iJKhH6PbDvm5o3XKOQGwb2zz40GtMfA1iAwF+NLr2fZFBrx6BvMcjhe8I2BH+3yikG319Ug3fBJ2p/jZt9A8QPFhPi92Mtn9YHaHw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hotmail.de; dmarc=pass action=none header.from=hotmail.de; dkim=pass header.d=hotmail.de; arc=none Received: from DB3EUR04FT027.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0c::3b) by DB3EUR04HT092.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0c::240) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2814.13; Fri, 20 Mar 2020 20:26:53 +0000 Received: from AM6PR03MB5170.eurprd03.prod.outlook.com (10.152.24.52) by DB3EUR04FT027.mail.protection.outlook.com (10.152.24.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2814.13 via Frontend Transport; Fri, 20 Mar 2020 20:26:53 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:4061BB92384CDEA684C84B58E3457B5C76473096AFCB5002D2639E2BB6CA153B;UpperCasedChecksum:63A3C0299B4706505D66FC3814E4FFDDBA902DA0AABB32D778CC2218BE7E54BF;SizeAsReceived:9417;Count:49 Received: from AM6PR03MB5170.eurprd03.prod.outlook.com ([fe80::1956:d274:cab3:b4dd]) by AM6PR03MB5170.eurprd03.prod.outlook.com ([fe80::1956:d274:cab3:b4dd%6]) with mapi id 15.20.2835.017; Fri, 20 Mar 2020 20:26:53 +0000 From: Bernd Edlinger Subject: [PATCH v6 09/16] kernel: doc: remove outdated comment cred.c To: Greg Kroah-Hartman , Kirill Tkhai , "Eric W. Biederman" , Christian Brauner , Kees Cook , Jann Horn , Jonathan Corbet , Alexander Viro , Andrew Morton , Alexey Dobriyan , Thomas Gleixner , Oleg Nesterov , Frederic Weisbecker , Andrei Vagin , Ingo Molnar , "Peter Zijlstra (Intel)" , Yuyang Du , David Hildenbrand , Sebastian Andrzej Siewior , Anshuman Khandual , David Howells , James Morris , Shakeel Butt , Jason Gunthorpe , Christian Kellner , Andrea Arcangeli , Aleksa Sarai , "Dmitry V. Levin" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "linux-mm@kvack.org" , "stable@vger.kernel.org" , "linux-api@vger.kernel.org" References: <077b63b7-6f5e-aa8e-bf96-a586b481cc46@hotmail.de> Message-ID: Date: Fri, 20 Mar 2020 21:26:50 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 In-Reply-To: <077b63b7-6f5e-aa8e-bf96-a586b481cc46@hotmail.de> Content-Language: en-US X-ClientProxiedBy: AM0PR01CA0064.eurprd01.prod.exchangelabs.com (2603:10a6:208:e6::41) To AM6PR03MB5170.eurprd03.prod.outlook.com (2603:10a6:20b:ca::23) X-Microsoft-Original-Message-ID: <8671c24a-42b9-f92a-dc36-113dd21f7370@hotmail.de> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.1.101] (92.77.140.102) by AM0PR01CA0064.eurprd01.prod.exchangelabs.com (2603:10a6:208:e6::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.18 via Frontend Transport; Fri, 20 Mar 2020 20:26:52 +0000 X-Microsoft-Original-Message-ID: <8671c24a-42b9-f92a-dc36-113dd21f7370@hotmail.de> X-TMN: [oUNEAunj85Er7VY1+p48LIuwnntnObg8] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 49 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: e66d3f46-03bd-4698-a004-08d7cd0d0728 X-MS-TrafficTypeDiagnostic: DB3EUR04HT092: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7sI2X4qRaZmDpeiZFdf/2ECDI0HNZa4mbO21sKEfCanlJyQl0KXzA9GNJXPlOM3CUAzIJy5/VJg4U84J0sui+zTrQ25B+222axWvQKBS1C8s6Gp0yKMYdPuIIUI3lwV6ZXN09fKfLF6UXWVNEyVbvS6tuJPY1ALqcX4rZN/m7e9R5hvtMX6dR9SHlvJbcWef X-MS-Exchange-AntiSpam-MessageData: tmQsxmFL29R1TflVrtmdbcdc4X6iauHN2XBnAt65+16FGkVkLvnXl7pXGGcuIJqRSdaRBCbDo5A17omWfZQ/tlwP3WVIMMJgdvxf+dqOfBBcOmLFjhTFxV1BmVgajgKXw9zZsM73cs153jJF0jp5yQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e66d3f46-03bd-4698-a004-08d7cd0d0728 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Mar 2020 20:26:53.7514 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3EUR04HT092 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: This removes an outdated comment in prepare_kernel_cred. There is no "cred_replace_mutex" any more, so the comment must go away. Signed-off-by: Bernd Edlinger Reviewed-by: Kees Cook --- kernel/cred.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/cred.c b/kernel/cred.c index 809a985..71a7926 100644 --- a/kernel/cred.c +++ b/kernel/cred.c @@ -675,8 +675,6 @@ void __init cred_init(void) * The caller may change these controls afterwards if desired. * * Returns the new credentials or NULL if out of memory. - * - * Does not take, and does not return holding current->cred_replace_mutex. */ struct cred *prepare_kernel_cred(struct task_struct *daemon) {