Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp851097imj; Fri, 15 Feb 2019 07:51:34 -0800 (PST) X-Google-Smtp-Source: AHgI3IY0A5jepO3fgLBcrMLozXWa3Ld9LnFHbCbOgMScZJw9gPV/uVu7eeXfmUy704Z1O6Ye/MPT X-Received: by 2002:a62:574d:: with SMTP id l74mr4622768pfb.9.1550245894650; Fri, 15 Feb 2019 07:51:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550245894; cv=none; d=google.com; s=arc-20160816; b=UPSOHgP9b5a8/j37UWU2DETbouI4fw5j+/6xNldv3P2HyYwcm0mMIy474dIoFKAIN9 Y3OxZU/haS5yuGJdpsx/qxCNB35NndLdzi7z+XWLNCvzeL7vOcEn2JT7x+wd0Vl6gdtX LgUB7E9+ZHUgzqmp/9W3d0z/9EMZEOyuWVx9PykdF4a9nQ0w9Cgp2yu5wzMNEnFI3QBB AqPhtvrOFuLsxaBWCGzyBByhpV4G2jbEHBnv3DGiS/k6o3lXpVsDehlY9f2kxe24Z75x KiarM4gdMNeobRKb84D2gIw8OMmRrm3fmg9BH3R3ONeYzGMlp8r9F/N3Ode8tcrgpWEm YC6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=XSRpsJKR7v44qgM2zYLAcCI2deG7k8pMSF+E09YP9yI=; b=NTDv/qML+vUDm8H1xm/rJKJl1iBzpldHbMDWSR9SkiliT3wz3c8qVLsV7az9YWgq89 75tpjje1OvTANAPamM4c+fH3+q+M+nmpFZwVtmmK0fjK+xF+zayHnTX1cYLNPPbbMzDC bs9ds2j04vf1xM3G3S4SGq+aDBwrbi9kLFGCqMN1CVED5qcczcTZzv0k8cf8JGA+UQEQ 0h+xnjkt6SrKAMG0DItPU4iCgZ2D5/xj2abL/R63XonJJ6tiYJXcMyqINCSWOinv+PRS CVxVmJyM7s6Q2CnIwab7yYx4DAk65h76HTsNBQKsibGsIqsl7SAIUfP81xvq1eB8kcqr EKrw== 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 o8si5666428pll.365.2019.02.15.07.51.18; Fri, 15 Feb 2019 07:51:34 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393093AbfBOJhv (ORCPT + 99 others); Fri, 15 Feb 2019 04:37:51 -0500 Received: from mx2.suse.de ([195.135.220.15]:56838 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2393049AbfBOJhv (ORCPT ); Fri, 15 Feb 2019 04:37:51 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 01C71AFBD; Fri, 15 Feb 2019 09:37:49 +0000 (UTC) Date: Fri, 15 Feb 2019 10:37:48 +0100 From: Michal Hocko To: Tetsuo Handa Cc: Andrew Morton , David Rientjes , Johannes Weiner , Linus Torvalds , Yong-Taek Lee , linux-mm@kvack.org, LKML Subject: Re: [PATCH] proc, oom: do not report alien mms when setting oom_score_adj Message-ID: <20190215093748.GV4525@dhcp22.suse.cz> References: <201902130124.x1D1OGg3070046@www262.sakura.ne.jp> <20190213114733.GB4525@dhcp22.suse.cz> <201902150057.x1F0vxHb076966@www262.sakura.ne.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201902150057.x1F0vxHb076966@www262.sakura.ne.jp> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 15-02-19 09:57:59, Tetsuo Handa wrote: > Sigh, you are again misunderstanding... > > I'm not opposing to forbid CLONE_VM without CLONE_SIGHAND threading model. We cannot do that unfortunatelly. This is a long term allowed threading model and somebody might depend on it. > I'm asserting that we had better revert the iteration for now, even if we will > strive towards forbidding CLONE_VM without CLONE_SIGHAND threading model. > > You say "And that is a correctness issue." but your patch is broken because > your patch does not close the race. Removing the printk as done in this patch has hardly anything to do with race conditions and it is not advertised to close any either. So please stop being off topic again. > Since nobody seems to be using CLONE_VM > without CLONE_SIGHAND threading, we can both avoid hungtask problem and close > the race by eliminating this broken iteration. We don't need to worry about > "This could easily lead to breaking the OOM_SCORE_ADJ_MIN protection." case > because setting OOM_SCORE_ADJ_MIN needs administrator's privilege. This is simply wrong. We have to care about the OOM_SCORE_ADJ_MIN especially because it is the _admin's_ decision to hide a task from the OOM killer. > And it is > YOUR PATCH that still allows leading to breaking the OOM_SCORE_ADJ_MIN > protection. My patch is more simpler and accurate than your patch. Please stop this already. Your patch to revert the oom_score_adj consistency is simply broken. Full stop. I have already outlined how to do that properly. If you do care really, go and try to play with that idea. I can be convinced there are holes in that approach and can discuss further solutions but trying to propose a broken approach again and again is just wasting time. -- Michal Hocko SUSE Labs