Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3660902imm; Mon, 6 Aug 2018 08:29:13 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdIGQZko2sw29Y75RJ/VZnJ6nBUKu+rbWxhhwQ/jNyNNtODm6FfoYdxkoeJ0mSNW/08K4cF X-Received: by 2002:a63:fc0a:: with SMTP id j10-v6mr14965585pgi.1.1533569353409; Mon, 06 Aug 2018 08:29:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533569353; cv=none; d=google.com; s=arc-20160816; b=bIySnzh9klBjaXTuDXtlFWBL7uTSFu00ISk+Wjx3VL2yv9tGaFWQrYfXmO4nH4I15f RH+m3pw0mqCi1mZy30fssd2tIN5pPa7YCdcZq4P3/8uO4gzqY6u0SuIYnBwPeRIa1ZbT t/7Jw91lvtd13krlu9wVaYmzLRh+X/H5RR5dNAvy+Dpa9WIQUgipgkoskYP9MHWDA6n7 kIn5S08iAPjNfU9sslSEQbypjbbD5qgGXL9x2ysmDKKTErOz8EaG6NH/Gc0Qrh+8g1yk HR3cVZk5BSnTD0zGsFiwmWTc1/x/cs4NlPPRwu5RSmYuMG9Z0lsp9YXiH6al6/719i94 XrYw== 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:dkim-signature:arc-authentication-results; bh=2GqIl2Igk9YwCWaoMedz8uktj2Dvrc+kRj9fzcXAx2Y=; b=WcjB38xZAS3XPu/WgmdOdOdQ699pqFERrEveCsEUSySDc9nlLd5AoQx18oe9q7R+B8 mUUGyXbCSTQPVTgSRi3D47cEX5m1M78YYat/Di6zqeotdOL5tLzqEPv0dyhOuM8pWEYJ FNFjTuRV+t2eW+lBkW4+sc7mGKMHqtpeXjJK0QvHvUzo+ZKYC1bP6KQ0Wb6X0LVc4Y2B 6SH4i4bOID0Tao6SXC1Mf3sDK9OYTwELbmE428cHk6PYf5/3up9mwGGxP3M4QR6SyFSv XuRZK1i3noCUs1dpdYQX3UojdJYDuVkG0wb7IGrkwAnNgBcvpEtskVF2zpYODYx/5Hnd HVQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=I2fbLXpA; 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=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v14-v6si12392374pga.270.2018.08.06.08.28.58; Mon, 06 Aug 2018 08:29:13 -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=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b=I2fbLXpA; 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=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732792AbeHFRhr (ORCPT + 99 others); Mon, 6 Aug 2018 13:37:47 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:44887 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732713AbeHFRhq (ORCPT ); Mon, 6 Aug 2018 13:37:46 -0400 Received: by mail-qt0-f196.google.com with SMTP id b15-v6so14205030qtp.11 for ; Mon, 06 Aug 2018 08:28:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=2GqIl2Igk9YwCWaoMedz8uktj2Dvrc+kRj9fzcXAx2Y=; b=I2fbLXpA5/dyePV4VturmfTyLqz6fcZBzwMIvPkUyRMnANcFekann+eVsyFNFIauoE CZ90ElaC6jZJFKzbVRdh8hopa+Oxlu28iXcGew41Xdh5chsfbIKgFGC1tZq5Eq7ZVysT PsrjzkIxHHSJ8WbFkYDxqdUNp6Kwbin47XzJgFOzSq2XtcYi3e0/hRlvjeikEC1ael49 wIS7bpTS+Og40GPPB9BMf8gpvYkyOGV+R+6SnnUNJbBoiKyDYK3zfSRvJj5E3u79R5TI SJepTyJB3ZuJTe7kEdNNxIOIdfGz/qoSBn6vQ365BE/hekrS2wFiGUj7C6Jiv3TRNfeT qBig== 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:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=2GqIl2Igk9YwCWaoMedz8uktj2Dvrc+kRj9fzcXAx2Y=; b=WtVQS+39gKbkwTf1urrAvB5O2vJ9O1Vbrr8eO5EsGcDg4VeRjpMUnLDD1bk57m53Jv jzvAUG3ZvMjhDBdqQHWsr6cAPRO3HCFFgkh0Ug0wJ/OgEjZGdHRcSCTDcf+v54djyacG TXi/zFNdMURRfjZaULSdYTbbPntJ3bdmf+orapSaEz1LHW0def0hmE3fmfZTFhPTd+uM cBKAD2zQTErjj3Wnaa8o1DmovpsKuwrhVpYPtyNPLii60fpWfXJTS8dLoZMK04/o/7fG GaXZpZZ1sD80ErCFCT0Bu3X4ZkZtBvTkZ4LxgIlzc/LOKy20rfWsgV1hqnZsK9F0knlC 3txA== X-Gm-Message-State: AOUpUlEDNarwIXQa++CMT35hDUBln6MQYgtmlujHFqLriF6golVcYx5G OQnFcoru8tYJL+oMIouqP3bPcg== X-Received: by 2002:a0c:91b5:: with SMTP id n50-v6mr13333847qvn.90.1533569289303; Mon, 06 Aug 2018 08:28:09 -0700 (PDT) Received: from localhost (pool-96-246-38-36.nycmny.fios.verizon.net. [96.246.38.36]) by smtp.gmail.com with ESMTPSA id q18-v6sm8441882qtg.82.2018.08.06.08.28.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 06 Aug 2018 08:28:08 -0700 (PDT) Date: Mon, 6 Aug 2018 11:31:07 -0400 From: Johannes Weiner To: Michal Hocko Cc: Dmitry Vyukov , syzbot , cgroups@vger.kernel.org, LKML , Linux-MM , syzkaller-bugs , Vladimir Davydov , Dmitry Torokhov Subject: Re: WARNING in try_charge Message-ID: <20180806153107.GD9888@cmpxchg.org> References: <0000000000005e979605729c1564@google.com> <20180806091552.GE19540@dhcp22.suse.cz> <20180806094827.GH19540@dhcp22.suse.cz> <20180806110224.GI19540@dhcp22.suse.cz> <20180806142124.GP19540@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180806142124.GP19540@dhcp22.suse.cz> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 06, 2018 at 04:21:24PM +0200, Michal Hocko wrote: > On Mon 06-08-18 13:57:38, Dmitry Vyukov wrote: > > On Mon, Aug 6, 2018 at 1:02 PM, Michal Hocko wrote: > > > If you have a strong reason to believe that this is an abuse of WARN I > > > am all happy to change that. But I haven't heard any yet, to be honest. > > > > WARN must not be used for anything that is not kernel bugs. If this is > > not kernel bug, WARN must not be used here. > > This is rather strong wording without any backing arguments. I strongly > doubt 90% of existing WARN* match this expectation. WARN* has > traditionally been a way to tell that something suspicious is going on. > Those situation are mostly likely not fatal but it is good to know they > are happening. I have to agree with Dmitry here. WARN should indicate a real kernel issue, not user input that knowingly triggers undesirable behavior in the kernel. It's our assert() for states we don't think are possible. I would wager that MOST developers and users understand it that way.