Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp6209137imm; Mon, 23 Jul 2018 13:32:15 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfa3k1znR0opcFU1ejQxxD2E87kaKAI0eykYLxkTEjs8uwhyud7ZNYrJrAL0ccUNV6tH1UQ X-Received: by 2002:a17:902:b902:: with SMTP id bf2-v6mr2507772plb.160.1532377935010; Mon, 23 Jul 2018 13:32:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532377934; cv=none; d=google.com; s=arc-20160816; b=Q6IdXSnwHrd6xvwJgzdLZMZ89//I6V9HY5sTnd1sz3RNHzBm4KLso2rwmx8Fnp1FPx qCjp3B6+/mBxxjFQ7gUsFn1zN1O2/+XdcAJO90n8Crs+zzae9J7dXMBBS8K0MQeyziN7 kCIiGQCdr6Yw6rrJzZUX0yVa0qOpx16RzAtJfOQuEQSoeipYdo+ukQOIZOP6EJVPgFJv HSA2SV8W8dQJZ8VsYqdT19Yincg0DBkUtXHO1YFmqS0Xyd7/lmYSBnqZpLHKwyuZdIPm LjsIi2i73ZNW+4jPY4vrRZGwsl/++y9PfpNxTkj/IMVkjWw9lDdlm6gWz/QGvIit8gTF qNkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=+3cEd3AwDBSMg7Hby78x+tUmSJdKpokLuyblo952VGQ=; b=USmDM+B791kZEkF+/5oen8MXhHT4ZPjYowUQfIhcyimaCi1wqeZzZuvOyLhgabj+Lt KhnBn43ZgYF99Zobm74t7iPjLEHL8WxTNYKJ5Z1BSrI9IUKzzLt9skh81FbnR+EZ7s9w Cpk41X9830KhZWoq5vjJTB3mFrs2DwumcmV4OI4ZNuDMx3IJA42j4MjaZeoX+7swzb9y plxFG3HxaCMQ6WpWXBNNmlCsbxiW6I2PvrI6RXX66rONV/PfCTGvWXpWe1wAh/VlKv2w 7OQrRhBBuZf7QQp/36b3/x/9gTM64/aLzev1RGckzCh66yMZ70lz9XFZPosu/k2JdGUU LBQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=b7W7bdpY; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g65-v6si9346373pfc.36.2018.07.23.13.32.00; Mon, 23 Jul 2018 13:32:14 -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=@google.com header.s=20161025 header.b=b7W7bdpY; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388135AbeGWVeE (ORCPT + 99 others); Mon, 23 Jul 2018 17:34:04 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:35447 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388058AbeGWVeE (ORCPT ); Mon, 23 Jul 2018 17:34:04 -0400 Received: by mail-pg1-f196.google.com with SMTP id e6-v6so1182301pgv.2 for ; Mon, 23 Jul 2018 13:31:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=+3cEd3AwDBSMg7Hby78x+tUmSJdKpokLuyblo952VGQ=; b=b7W7bdpYREzyChbvqyi8bZrLxyUHT46ZczCkxtHIAIP6WZoRWzOJONv24Hr+zjPJ2+ Bbe7jv5yuR5zHb3+cYbu+nhXXH8GB453jTG6PwEINgNaCmE0CRtoB06hJCZpoKneX0Mx OQu10dfTSj9OKcnvEoWD+6sWXSUX8mh4U0OxPnlomsvISKhE05mvwfwL70BO2xbLKgVE e6EMTb5GlD5sslSegev3SEZMn/b8qyt7cuboJ9GGAzBwH23BJoUG0FtBlLCYPuuqLk6Y q+zOBti1wa0vS9iyaVH3JTmii0pDe9rvWqAJl18jq6jjrsX6Qm2XfD8Al41g8G8ZYTBD RoNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=+3cEd3AwDBSMg7Hby78x+tUmSJdKpokLuyblo952VGQ=; b=l7Mu0HsXOp5xuZ6cv9aFfvr0WbPIeOGgtx8DkAnMmNu6xS6Sy8K3Owml+fm12H0Pzc wlvKV7T/E7K/Ru4qAGDE7ZskfQSNAjKflKypNXHsTGbPa3FGAyDymPmA2GhcifpfQnSj oHSJj2IdySEu16fAqpWUEWG0xoBEq7V0nEqbUqIlbLZUcGXVTcmZSd7/woBW7mqskZpp uOg/ICoteBkwB+92aNI4p14BEdEzwOytHtHDFO091TjhrIvq6q10FFHo4ZAskmJzmxvl JPl+NwdaBH7QYauHNHFuEJShwI4DGuFJQ6J1oPD4lx2FnzEkyAJozgq5VeR9eJXUSS32 eJUQ== X-Gm-Message-State: AOUpUlG1A4aA+ypu8QdF0ks0lgZl0zqsygsxBqPHGGilJQlAybzD6BPZ MeQUVvqdektMi0zPLhyFsOuNzg== X-Received: by 2002:a65:62cd:: with SMTP id m13-v6mr13472736pgv.280.1532377870135; Mon, 23 Jul 2018 13:31:10 -0700 (PDT) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id b20-v6sm15701849pfc.178.2018.07.23.13.31.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Jul 2018 13:31:09 -0700 (PDT) Date: Mon, 23 Jul 2018 13:31:08 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Yang Shi cc: "Kirill A. Shutemov" , hughd@google.com, aaron.lu@intel.com, akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: thp: remove use_zero_page sysfs knob In-Reply-To: <3118b646-681e-a2aa-dc7b-71d4821fa50f@linux.alibaba.com> Message-ID: References: <1532110430-115278-1-git-send-email-yang.shi@linux.alibaba.com> <20180720210626.5bnyddmn4avp2l3x@kshutemo-mobl1> <3118b646-681e-a2aa-dc7b-71d4821fa50f@linux.alibaba.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 20 Jul 2018, Yang Shi wrote: > I agree to keep it for a while to let that security bug cool down, however, if > there is no user anymore, it sounds pointless to still keep a dead knob. > It's not a dead knob. We use it, and for reasons other than CVE-2017-1000405. To mitigate the cost of constantly compacting memory to allocate it after it has been freed due to memry pressure, we can either continue to disable it, allow it to be persistently available, or use a new value for use_zero_page to specify it should be persistently available.