Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4360306imm; Mon, 11 Jun 2018 11:00:02 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKU2mfpvRC5TGlvJ2OmQWB7LvzK8uV/W5kbbnfUQhduIqx8xRXiQnMRqprpWWCLqkg/ooaC X-Received: by 2002:a17:902:1004:: with SMTP id b4-v6mr243173pla.82.1528740002856; Mon, 11 Jun 2018 11:00:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528740002; cv=none; d=google.com; s=arc-20160816; b=ak7BQFytW4fWfS35r6Ua4sy+ipLidhUVXyb+5NL2WDr89wKwjojkriYEGpTQWwumyi MJI9cW78Dq/NgnaiMseuAFSdEWHkvrakEy9mHpH48JttkFGqDwDpcFKrsWuGCRVek021 MsQSPzOORRHop6+rkVAoe8g+QsIQatVxAuBkKxt9ziJuXiWYy7n6FX2oxXF/cha1MaOs Ens2sGF8vsxu607tU66V3KAtUKAy++6K0/NFqVXtbdlx0oWeU66UL+3tobeOgG1DPcAn P2S/EGNnzcPJ3jRmVH5LHOqKz/gxwoRit2fSANlmpkHlHbXTQNQpTVGu3th3wTR/P9ie wqqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:subject:cc:to :from:dkim-signature:dkim-signature:arc-authentication-results; bh=ACiJTyrdJzB4Iz1LunXdugjSkTm2zOxWXTC0whmSR3E=; b=gFteaLutHVQIZjtHt6uCLICdWlosKnrd0a2vZkseuxGypbkQHoAcnsdcEeHPFKE3yv Eh5r8ol27E02rtTAGEo3lFa0jBCJIHcJFbXZ8WyUYoDR1ON8GVDR3aUF+HUWHfVzKK80 L7ZueL4NJD545wTgUtqrA1RrcCVEKSlPKZsDJ+LVIeqDPC+PuRi1doL4hyjeTwcPInwB Jij+4VpwXl/ZRWF26oysGK6BzkfAQGZ8ZqeQAYP9FSqN115noK7BZMtHVLkIzHuDK9bK bsUluXkm5iv6AV38QvCIrT6iLackxSz+Q7Lfq81Pz3eLN8Ae/fV+Ps43bpIlkWLjnv9I iYxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=UU8S4OpB; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=RLvZp9Vv; 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=NONE sp=NONE dis=NONE) header.from=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m4-v6si6134342pgp.512.2018.06.11.10.59.17; Mon, 11 Jun 2018 11:00:02 -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=@fb.com header.s=facebook header.b=UU8S4OpB; dkim=pass header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=RLvZp9Vv; 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=NONE sp=NONE dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933776AbeFKRzA (ORCPT + 99 others); Mon, 11 Jun 2018 13:55:00 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:45276 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932647AbeFKRy5 (ORCPT ); Mon, 11 Jun 2018 13:54:57 -0400 Received: from pps.filterd (m0109333.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w5BHoDVn030612; Mon, 11 Jun 2018 10:54:47 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=facebook; bh=ACiJTyrdJzB4Iz1LunXdugjSkTm2zOxWXTC0whmSR3E=; b=UU8S4OpBTUD2jHCsjb7miXyZSuIkYOv7kFS/r652PMYDfYldkfXgKHTSWIHAVoSX7F+K 93SzM914xB5cwqPan1iNNtOAgJELQl5E5DISVoRMO028mi8oLhjipQKJfop9XpUS83y9 fjh/8+hcYeiSM14buty0mUYjdiGb1PbnU5E= Received: from maileast.thefacebook.com ([199.201.65.23]) by mx0a-00082601.pphosted.com with ESMTP id 2jhvn4g8af-5 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 11 Jun 2018 10:54:47 -0700 Received: from NAM04-SN1-obe.outbound.protection.outlook.com (192.168.183.28) by o365-in.thefacebook.com (192.168.177.33) with Microsoft SMTP Server (TLS) id 14.3.361.1; Mon, 11 Jun 2018 13:54:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector1-fb-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ACiJTyrdJzB4Iz1LunXdugjSkTm2zOxWXTC0whmSR3E=; b=RLvZp9VvsaBsddHV0nwemzeH5P515xhvVduvbxCvne2qtqizUNfVIwAtk1MMaR18QeNG3Ix3pUYy8ce+DG1Qvn0sBiYZ6W6qgh0sqrPizhSZZb/SY5/F8OXYcI7fpVIzYO0zKpxktmmh6kywRt6RcSF/S2cSBlGOwEwomCTtKE8= Received: from castle.thefacebook.com (2620:10d:c090:200::4:49ec) by DM3PR15MB1083.namprd15.prod.outlook.com (2603:10b6:0:12::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.841.17; Mon, 11 Jun 2018 17:54:40 +0000 From: Roman Gushchin To: Andrew Morton CC: Johannes Weiner , Michal Hocko , Tejun Heo , , , , Roman Gushchin Subject: [PATCH v2 0/3] memory.min fixes/refinements Date: Mon, 11 Jun 2018 10:54:15 -0700 Message-ID: <20180611175418.7007-1-guro@fb.com> X-Mailer: git-send-email 2.14.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [2620:10d:c090:200::4:49ec] X-ClientProxiedBy: MWHPR0201CA0080.namprd02.prod.outlook.com (2603:10b6:301:75::21) To DM3PR15MB1083.namprd15.prod.outlook.com (2603:10b6:0:12::9) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:DM3PR15MB1083; X-Microsoft-Exchange-Diagnostics: 1;DM3PR15MB1083;3:HISXwvCoh+zIsKthcD9AvElpe7qZ+6iWOIQwtXnqxcB415GIlR209kE/1tHjCnqXLAOaGIyBCx9QYlvnruExfA4v6nhps/dVtA5/eN8N6q0ChjYqO7kasP4v4D8cC6T8UWMr6u4sgHQ0usB7VKIO6UoEDZBwWeAjnBkswx0cPBd9waWoU5mNuhBcNfm75E9ryS4SYMn84ajXC9eZLwUpNjyOnICYwh8I6UM68Nk94H62+RLx9+2gWlj38jKq/+6n;25:lU9RaczR8QMzcF3FEaKQU2xuIvpxRBdgpoDxIca6oZYZK6TpGSvVnWNGaGdkT+iP64moZEHZKAn70ruFEbvzYKCGeVc6GOY5xGeoJYi+jPisrUc0rQhoFKSSTAiwcBBzoWDrnjxHvFkv67Qc826qGpZYYxZJq3Ji4mig/mGrjYUUmlIAHlvkMPhAFsVEjScL9qorE7TzPwxEYUhoC74gVBhnnhJNjvnNy9N7GSqLQnc2XS9GXlsc3pSLNxOH93BCHXRAxqy1sVP+Skc8iXUtuwtDTW0NiMTRoQyYHtPDk2zNvWF+7c3vCYKHRuXy4yJKnow7oCoI+qICIxy4subyHw==;31:SFQX+hMp2nH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tzttljrbvnOg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(3231254)(11241501184)(944501410)(52105095)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016);SRVR:DM3PR15MB1083;BCL:0;PCL:0;RULEID:;SRVR:DM3PR15MB1083; X-Forefront-PRVS: 070092A9D3 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(366004)(39860400002)(376002)(346002)(39380400002)(396003)(189003)(199004)(316002)(53416004)(25786009)(50466002)(68736007)(2906002)(6116002)(48376002)(6916009)(6666003)(1076002)(86362001)(50226002)(6512007)(53936002)(7736002)(305945005)(8936002)(81166006)(81156014)(4326008)(47776003)(97736004)(6506007)(46003)(105586002)(486006)(2616005)(476003)(106356001)(52396003)(52116002)(69596002)(5660300001)(8676002)(16526019)(186003)(386003)(54906003)(16586007)(478600001)(36756003)(6486002)(51416003)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:DM3PR15MB1083;H:castle.thefacebook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: fb.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM3PR15MB1083;23:mStac/GVV87ka7D8i8l1xKRqjPfIeAZ3Au+BnhuZD?= =?us-ascii?Q?UxPsErXjzklrjhOOAn4IWSKe3crCiSfbfYSDSxumuG/gIHiOl3RB7C06TGrK?= =?us-ascii?Q?XOUJMnaJFHdN6xtYIhOYnm/xffFfPsHQG/23pJZMWdYAW3U9PiOjfWRnHkhW?= =?us-ascii?Q?xkfAJSUGUX9HU2ugCE7cH3cECWcRFD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D6MewPmI6b9+kIcU/fezWR4GB+sdfE010Hs2BFBE+Uk3fweTWHmN9XuxOTRoEYcG/loiJ16QzVn3WH79oa3WQaDJlRv39Y4jFOkAbwppuI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DM3PR15MB1083;7:l1fsq2rKDvN/EuoKQJGRBRwjYpMqj4MLAxzP+T3lG8UxfoKE7ipdRs4mpGny4auiA/dNuCaGFnFH9LAAzEzqQkYyv7pRGVrVB7fgU/QPspY0/3r6Pl9Mwbcq4DQ43OA2ItfA3P9dX3DFFEugTF7vuHmYaYhyfqCNzD6IlL7TW1r9k1OTkid8IHvEaM9J0OCxsDqDkxBdweyB+FirCJ3y6rrSpiEHYZjIIgcvZYpYV8Olpl5tmjkzK1L34pgF8YW1;20:8fqJbqu1AqXcBPnwejIkPpIrTA6qGSXiC0Am3eqpcbde00J3U7Mmgp6h66cKLpj08crkgRUil+yq4IqRMZlzSxvmUD4ufecQYQ8AmeuHMews25wO4SAjpCtcrZed767tlm/bDYwNOb1yWazLpGSYmwJA3hRjcEhTRxwRTXHkJ2E= X-MS-Office365-Filtering-Correlation-Id: 137f759f-90bb-4bf7-7b3c-08d5cfc46817 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2018 17:54:40.1145 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 137f759f-90bb-4bf7-7b3c-08d5cfc46817 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM3PR15MB1083 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-06-11_08:,, signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Andrew! Please, find an updated version of memory.min refinements/fixes in this patchset. It's against linus tree. Please, merge these patches into 4.18. Thanks! Roman Gushchin (3): mm: fix null pointer dereference in mem_cgroup_protected mm, memcg: propagate memory effective protection on setting memory.min/low mm, memcg: don't skip memory guarantee calculations mm/memcontrol.c | 33 ++++++++++++++++++++++++--------- 1 file changed, 24 insertions(+), 9 deletions(-) -- 2.14.4