Message ID | 20210605030114.E2boaQwOv%akpm@linux-foundation.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=LEhB=K7=kvack.org=owner-linux-mm@kernel.org> 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=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 69A11C4743D for <linux-mm@archiver.kernel.org>; Sat, 5 Jun 2021 06:07:20 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 176746120D for <linux-mm@archiver.kernel.org>; Sat, 5 Jun 2021 06:07:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 176746120D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id AE2F36B0081; Sat, 5 Jun 2021 02:07:19 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A92606B0082; Sat, 5 Jun 2021 02:07:19 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 90BE06B0083; Sat, 5 Jun 2021 02:07:19 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0116.hostedemail.com [216.40.44.116]) by kanga.kvack.org (Postfix) with ESMTP id 51D6B6B0081 for <linux-mm@kvack.org>; Sat, 5 Jun 2021 02:07:19 -0400 (EDT) Received: from smtpin07.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id EFC6298BA for <linux-mm@kvack.org>; Sat, 5 Jun 2021 06:07:18 +0000 (UTC) X-FDA: 78218637756.07.3EF86DC Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf03.hostedemail.com (Postfix) with ESMTP id 8EBCCC0A46BC for <linux-mm@kvack.org>; Sat, 5 Jun 2021 06:06:33 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 54C58613FE; Sat, 5 Jun 2021 03:01:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1622862075; bh=xN24bw5gXooEM2IRZG521MnKs5Y6w5rTkRSYc0gKwr8=; h=Date:From:To:Subject:In-Reply-To:From; b=c4ejkzgHkjOm8HkpHQssd90DIQFRsn4O2WO8hjj856f4VYaHuj9uypMh1GNvg1++O xniKHBRqoodTlgRNtDs3dTsO4A+Vejsf7l3VxcWS6+Pgg72jX82SqaPi8MmB5/wUHE /ytxKu1Jc2zatvZ0eMJrLF55+Yc23tF/pa7rmwZg= Date: Fri, 04 Jun 2021 20:01:14 -0700 From: Andrew Morton <akpm@linux-foundation.org> To: akpm@linux-foundation.org, christian.brauner@ubuntu.com, christian@brauner.io, clg@fr.ibm.com, ebiederm@xmission.com, keescook@chromium.org, linux-mm@kvack.org, mark.rutland@arm.com, mm-commits@vger.kernel.org, paulus@samba.org, schwidefsky@de.ibm.com, stable@vger.kernel.org, torvalds@linux-foundation.org Subject: [patch 03/13] pid: take a reference when initializing `cad_pid` Message-ID: <20210605030114.E2boaQwOv%akpm@linux-foundation.org> In-Reply-To: <20210604200040.d8d0406caf195525620c0f3d@linux-foundation.org> User-Agent: s-nail v14.8.16 X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 8EBCCC0A46BC Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=c4ejkzgH; dmarc=none; spf=pass (imf03.hostedemail.com: domain of akpm@linux-foundation.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org X-Stat-Signature: h9k31641pfn98cpbdjdpustah3k9ihkx X-HE-Tag: 1622873193-108154 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: <linux-mm.kvack.org> |
Series |
[01/13] Revert "MIPS: make userspace mapping young by default"
|
expand
|
--- a/init/main.c~pid-take-a-reference-when-initializing-cad_pid +++ a/init/main.c @@ -1537,7 +1537,7 @@ static noinline void __init kernel_init_ */ set_mems_allowed(node_states[N_MEMORY]); - cad_pid = task_pid(current); + cad_pid = get_pid(task_pid(current)); smp_prepare_cpus(setup_max_cpus);