Received: by 10.223.185.116 with SMTP id b49csp4620115wrg; Mon, 26 Feb 2018 22:57:06 -0800 (PST) X-Google-Smtp-Source: AH8x227hLNw+poslWPdQX1mjos5rQ2irfjLexq3KCPVM83heV3MBbMG5QOj6d8hhcCxgW9Z//NWn X-Received: by 2002:a17:902:8605:: with SMTP id f5-v6mr13039137plo.120.1519714626704; Mon, 26 Feb 2018 22:57:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519714626; cv=none; d=google.com; s=arc-20160816; b=B5IuXBlSuWY53iRor1UAQVppWF9SDKLjpANtyANmdsy305V2c8j2bMuekAmP3rhHf4 4XaM6loPPwaw54XfVS+REXljNyk0MJes82yAfcjY9uEORwnT4QtWMG04u2yUFWqGZSOl oAQ/ZMdVCIdTI1mzTL1K20/aQduv4dEA5Tu6lmoOGOwHoTCZJf+w+3oUwXBCDEZ5fto6 2337OkwihwPcxAwa/f3PDdUqKXbVBvVgmLCS7DFOP50IoLzzxl45YhLV11JdRAkuTH6W DrZlDCAjfgPMAiEtdgKFmUMbHz1Z3ISrmlxQkbqtHunFRpu3RZNHyT46L0XO1Nax4Hdw qijQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=FeQmlT1s6QSi26Sx3aef5cwiabjyaMhgn7A2hZFs6pc=; b=G/XHtZCbUfJlCEE8MMyEg5U1sQ9N5THn1pkFIvr4e5mtV7a3jZhtUv91plhdH9wAyA fj9r7pwHH+FrAmSA69ODnipKbEM8XVaiCUnWfGeyXmN6FPe/aRU7wtTAxXtBoIJnpFM/ TDL1OFmrsNVKTUHHPCgNCf4QOjK5Ko6AJd5yQMaVwXwrcVxlMjd2VUVm2dtUYfcgNgrF n5+YRr+Hx8EWG5ixPVXYojUbcGbwef3zWe0yoi4ZqlSvYMf5QDu68O2e/0DydlFrYjtk TyW6+cN1x5LMSmvmfR9K5XKqHDmrqPlGzPLqUEftT9qNzhGSG0XG9wBplGj7+Xmu3M8c /E/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d67si6607984pfe.49.2018.02.26.22.56.52; Mon, 26 Feb 2018 22:57:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752021AbeB0G4O (ORCPT + 99 others); Tue, 27 Feb 2018 01:56:14 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:37424 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751759AbeB0G4N (ORCPT ); Tue, 27 Feb 2018 01:56:13 -0500 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w1R6ttKA138667 for ; Tue, 27 Feb 2018 01:56:12 -0500 Received: from e06smtp15.uk.ibm.com (e06smtp15.uk.ibm.com [195.75.94.111]) by mx0b-001b2d01.pphosted.com with ESMTP id 2gcxgb7gs3-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 27 Feb 2018 01:56:10 -0500 Received: from localhost by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 27 Feb 2018 06:55:10 -0000 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp15.uk.ibm.com (192.168.101.145) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 27 Feb 2018 06:55:08 -0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w1R6t7xQ56492072; Tue, 27 Feb 2018 06:55:07 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6823CA4051; Tue, 27 Feb 2018 06:48:12 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E84F2A4040; Tue, 27 Feb 2018 06:48:10 +0000 (GMT) Received: from rapoport-lnx (unknown [9.148.8.77]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Tue, 27 Feb 2018 06:48:10 +0000 (GMT) Received: by rapoport-lnx (sSMTP sendmail emulation); Tue, 27 Feb 2018 08:55:05 +0200 From: Mike Rapoport To: Andrew Morton Cc: Pavel Emelyanov , Andrei Vagin , crml , lkml , Mike Rapoport Subject: [PATCH] init/Kconfig: make CHECKPOINT_RESTORE select PROC_PAGE_MONITOR Date: Tue, 27 Feb 2018 08:55:04 +0200 X-Mailer: git-send-email 2.7.4 X-TM-AS-GCONF: 00 x-cbid: 18022706-0020-0000-0000-000003FC440F X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18022706-0021-0000-0000-0000429067D2 Message-Id: <1519714504-28894-1-git-send-email-rppt@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-27_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1802270082 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Checkpointing a process requires knowledge about the process memory layout which is obtained from /proc//smaps, /proc//pagemap etc. Make sure these interfaces are available only when CONFIG_CHECKPOINT_RESTORE=y Signed-off-by: Mike Rapoport --- init/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/init/Kconfig b/init/Kconfig index e37f4b2a6445..63c1fd5bc360 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -1328,6 +1328,7 @@ config MEMBARRIER config CHECKPOINT_RESTORE bool "Checkpoint/restore support" if EXPERT select PROC_CHILDREN + select PROC_PAGE_MONITOR default n help Enables additional kernel features in a sake of checkpoint/restore. -- 2.7.4