Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1906393ima; Mon, 22 Oct 2018 00:14:26 -0700 (PDT) X-Google-Smtp-Source: ACcGV63G28vDtTeMexm/A/WsPEihN3LctjzdXz+5wV53cSnTkfqGHNamJj/lnkbdYT8YP6715BRm X-Received: by 2002:a62:4ec9:: with SMTP id c192-v6mr44332428pfb.221.1540192466687; Mon, 22 Oct 2018 00:14:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540192466; cv=none; d=google.com; s=arc-20160816; b=b3dqc1FTTqCypgrwhgm/AiG9PEy24eqvUCW/gX/qdQQY21iL+B2WSaLzayfkGIkalW dI5GxxGa5sVPt3fRsFp6Z33/rkPORDXP65mK/iDHqtjnpzl7Rsp5rIVWngTbRXrVAgYr P39YveGY+9J/axmeguHgKmdx1P5d22S3Vxwe0DvdoV1MR4OUG5Ptz3PFTKsp32Nss5qs kP2uQ1BNZSCsepldbBhj+Xynorix2uAq5UmsoZh7SLhQkfbql9TVMAU5J81wA152ZlUN 7Wih435MW6mbCGyLI3964TjXOXkpvMaBzZKh5ynhymoR/x0TbZflD8oBqxoejsdxXhhz YUxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=hs3YbkCsACHgrOrnt/lFGxBwk0qJv2SFVnezPfy1QL0=; b=mktjYFY/174iF8YZbj0ePgGOv725Zcs8U9m3NM/N3tRjHrrZc8DaesvH/UJyFKT5FK ZGOfhnGzyHtoppZY1OAft1mNmjTIr2VRncEEFUC5OPGfElfDT4Dwju5LMPzOepVOD7x/ cCg3AeX1jEF332l6xknnljbvqO+MjTNmkJApxPudyLJwr038m5KlrG8UdNixomjWROaJ wAdM5U2CWzOao2XSJh3yF3vDPzVbPF8RV3+JvhocN2JbFeG3dMEwhulpIsH8oyNy2AM2 lBGA/XKWYxw9PIOCFC5ezGOGuoKU+7d26DPV7auTdUADOTFTuuCGPLaFT0JoxJ+inVJx pOVA== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e4-v6si9516055pls.214.2018.10.22.00.14.12; Mon, 22 Oct 2018 00:14:26 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727544AbeJVPa5 (ORCPT + 99 others); Mon, 22 Oct 2018 11:30:57 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:45140 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727110AbeJVPa4 (ORCPT ); Mon, 22 Oct 2018 11:30:56 -0400 Received: by mail-pg1-f193.google.com with SMTP id s3-v6so5374275pga.12 for ; Mon, 22 Oct 2018 00:13:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hs3YbkCsACHgrOrnt/lFGxBwk0qJv2SFVnezPfy1QL0=; b=lcupcTe4ClCdV+fcCp0OzqMfbVfZJCKgtjs9+ZdZELqJR4uMvkjgry/o7fhz4iqa+S G/mxO7ul5981sLwDsKmOCxkKcUIz58jD677/IfbAqx7Q/BCtxeFgE1JjuK6Iqsnh7bup gcXSv70uhxh6YEsoIGFAk3/Me9piX/hNAbqleivwv8tx4rabJQNXo8Sge2Wwkz2vKg8n JEw7j5AwuGrtZ4LhRjyCjeskixUrZr+o3dvbIJAKF9h5QFhf/3JhlLxYBzEWbuKRWZg9 LYIwMtLYAGugs7VV1jxCQjjmAh8Judl0DL8oForVwjm+ZfchnRrk3fprSQH5Sro7jpjC s1NA== X-Gm-Message-State: AGRZ1gK1JLHYVRZeBaIg7hiprBr3G/HoNeum4LbB9FT98VyCJyAVGcSh W9xc65alI1jZM9aXuxtM2B4= X-Received: by 2002:a63:d705:: with SMTP id d5-v6mr7343141pgg.27.1540192419965; Mon, 22 Oct 2018 00:13:39 -0700 (PDT) Received: from tiehlicka.suse.cz (prg-ext-pat.suse.com. [213.151.95.130]) by smtp.gmail.com with ESMTPSA id c79-v6sm38097542pfc.92.2018.10.22.00.13.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Oct 2018 00:13:38 -0700 (PDT) From: Michal Hocko To: Cc: Johannes Weiner , Tetsuo Handa , David Rientjes , Andrew Morton , LKML Subject: [RFC PATCH 0/2] oom, memcg: do not report racy no-eligible OOM Date: Mon, 22 Oct 2018 09:13:21 +0200 Message-Id: <20181022071323.9550-1-mhocko@kernel.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, this is a follow up for [1] which has been nacked mostly because Tetsuo was able to find a simple workload which can trigger a race where no-eligible task is reported without a good reason. I believe the patch2 addresses that issue and we do not have to play dirty games with throttling just because of the race. I still believe that patch proposed in [1] is a useful one but this can be addressed later. This series comprises 2 patch. The first one is something I meant to do loooong time ago, I just never have time to do that. We need it here to handle CLONE_VM without CLONE_SIGHAND cases. The second patch closes the race. I didn't get to test this throughly so it is posted as an RFC. Feedback is appreciated of course. [1] http://lkml.kernel.org/r/20181010151135.25766-1-mhocko@kernel.org