Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2682844ybg; Thu, 24 Oct 2019 13:30:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqx6c+HkgFZH9bVqUdOqUQa5n0z4sYzBhUlS3udlhKdYoejoPIzUBJMPOK3tU6PM0/geBxiP X-Received: by 2002:a17:906:704:: with SMTP id y4mr11619ejb.259.1571949008237; Thu, 24 Oct 2019 13:30:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571949008; cv=none; d=google.com; s=arc-20160816; b=YTaPDy3VNwmWID4xWhKnR70/d7aVSG7Vz9OycK1T6cvQXJpfBWS31btyZUi1dvKIaE 1OZO/icn42j75jn44stx1SQqfrecY0V1l7pEn6kE174nR+4cGeKjSp7qVULj2YcnTsVK jcT+dh98JBd53YR830/FajVGRk34DJsurN+dxSJ0XjCbcNe7TYai+Np+2M3hn7e+fsXH NIi+FLMi3vuKF44H9XonLsiRRw+44YcFEotfazBnm8UxLvhrjPGc0U+D6mgH2FggKp7M 3Ca7REIsg34ZTaJIrQqqOYCYb7to8wrRYUVtm6jxiDH83nPrXFddccjaUy7S7d5g5Axq XiiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=kMDjWt3IE/hDXSObRKUSkNCwiB5LLLieG6mbeqZoc6I=; b=ucP1pBgat5f9FrkyVtTXj/U42OFiIZCRZupztWQd+Xvr8VB2hi1djfcUoXsmnscL7U bvSzwFeh4QfXgugVbrFHmbxJqrbLtV1KcT/OC1bSeXFE8CDN8e6bHSMJJzV+Z4E3T3EY ZSNtmzC+TJMUNGHXm277Q58yXcqgy3zq6qnhouGsLMjT58DIjqv3N9BueW0zA87FByJT y4+D2Mh1GxBE5CCA1zew04tShD0JmGErxPNTnce5geqDATkSNbenvvestG2DMLzz2Idf Mp+9hVVfDXjRL2MEijJc3vScyVqpBk1P+aSXGoW1MROViBCfAhokdz6LIIag7hwXA+VH YA4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=qSFAuONw; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j34si9073919ede.297.2019.10.24.13.29.44; Thu, 24 Oct 2019 13:30:08 -0700 (PDT) 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; dkim=pass header.i=@lca.pw header.s=google header.b=qSFAuONw; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2408433AbfJXFdF (ORCPT + 99 others); Thu, 24 Oct 2019 01:33:05 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:34326 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390377AbfJXFdE (ORCPT ); Thu, 24 Oct 2019 01:33:04 -0400 Received: by mail-qt1-f195.google.com with SMTP id e14so16337143qto.1 for ; Wed, 23 Oct 2019 22:33:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=kMDjWt3IE/hDXSObRKUSkNCwiB5LLLieG6mbeqZoc6I=; b=qSFAuONwVuK72d0RCzO+D9LCLNcdwOXyo7/yg+1eNGAzNXRmumE9PitzLP20N/DZGI HR/UoWoqvGGTEPhjsX8eyxcGHnRI55zfniAFLC6Wrlq9gM8PB4IekZjlhBFXYNhyqdoF AvbQwoQQhgyXGS+3UybNAVUsly+w2D+Tfc/X3ei39VeZc4QzP11gJrKeGhNiA9UZ/7Mu luLaXMxiG51NKsuIgCI+BipogCEoVQeVKUJmt5iP8UwpwrEVZGpuR+Eout2ARSununLt +R5o82XPX440T3IJxI03a4ittQAMKXbrqY5ZEbWW3emTwhtJJEJLKQT6gK/gxJz4uc9/ CxDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=kMDjWt3IE/hDXSObRKUSkNCwiB5LLLieG6mbeqZoc6I=; b=mJmsDGQZhVbF/rOEtK5fTWIiWW08Lf4GtlhFBirOMaUY1BvUGZTxHFQw02fZXacs52 jiucLAoZLHqhw7SWOiPgfDer52/ag4yND0SwwjZKMO0IF0AT1Gmb+iO+0gmV5DUcxhYW kWflTbwId6D5Uywg8q7/4HCJCapZY1eGtOEu7zmNsDAQqEME85xvMe1AWaoeE6MxY8iu LZwc3mE7sGfhpGLTcaDfoMxPauJO7YiFZQKFAoKE1l1IxCRqzpOjkDkcPjEIeAqQYcSd wl2+boWWpSyI7IpRtaa80sXHv2VR0vUZ0z2JdOPjRaEMXGrXfoxQ/IBrkhguBTKH2F7+ 8WfQ== X-Gm-Message-State: APjAAAWTv0Bxs6rRFitqpQt/PZKXSmoVqztCdNr76FA+HWHgISXxUcdj jmMAW/HwE8U3WBBWFHTfmsiclw== X-Received: by 2002:a0c:8b5b:: with SMTP id d27mr12792896qvc.29.1571895183254; Wed, 23 Oct 2019 22:33:03 -0700 (PDT) Received: from [192.168.1.183] (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id c14sm15931537qta.80.2019.10.23.22.33.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Oct 2019 22:33:02 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Qian Cai Mime-Version: 1.0 (1.0) Subject: Re: [PATCH] mm/vmstat: Reduce zone lock hold time when reading /proc/pagetypeinfo Date: Thu, 24 Oct 2019 01:33:01 -0400 Message-Id: <4D23D83F-190F-40B3-9EB9-C167642321B2@lca.pw> References: <20191023153040.c7fff4bc7c86ed605fc4667f@linux-foundation.org> Cc: Waiman Long , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Johannes Weiner , Michal Hocko , Roman Gushchin , Vlastimil Babka , Konstantin Khlebnikov , Jann Horn , Song Liu , Greg Kroah-Hartman , Rafael Aquini In-Reply-To: <20191023153040.c7fff4bc7c86ed605fc4667f@linux-foundation.org> To: Andrew Morton X-Mailer: iPhone Mail (17A878) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Oct 23, 2019, at 6:30 PM, Andrew Morton wro= te: >=20 > Yes, removing things is hard. One approach is to add printk_once(this > is going away, please email us if you use it) then wait a few years.=20 > Backport that one-liner into -stable kernels to hopefully speed up the > process. Although it still look like an overkill to me given, 1) Mel given a green light to remove it. 2) Nobody justifies any sensible reason to keep it apart from it was probabl= y only triggering by some testing tools blindly read procfs entries. it is still better than wasting developers=E2=80=99 time to beating the =E2=80= =9Cdead=E2=80=9D horse. >=20 > Meanwhile, we need to fix the DoS opportunity. How about my suggestion > that we limit the count to 1024, see if anyone notices? I bet they > don't! The DoS is probably there since the file had been introduced almost 10 year= s ago, so I suspect it is not that easily exploitable.=