Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2624342ybv; Mon, 24 Feb 2020 08:33:59 -0800 (PST) X-Google-Smtp-Source: APXvYqxDbZ4zCyETQm0Y6UTGghbSffGCGuk3P9JI42uOFbNQg3KIFu2oDgM4McCQJnKfbNcIYdAy X-Received: by 2002:a9d:6548:: with SMTP id q8mr39074081otl.356.1582562039021; Mon, 24 Feb 2020 08:33:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582562039; cv=none; d=google.com; s=arc-20160816; b=olhZp+Ks7o1N2e5vS5bip4lScDrC9AtSuGclCC2nCBIrw3J6lsGLTUthLK3KDEohbn zQT/QEVIqy0rVS9FElkh2F1fen3EMB1R61fvxbSh0lIwRAvwuQdeYhPTyHrQPnbyBd8o t8m4aakGy0v5sDX+AchdvSTehxKpOLX+C1Ejd3mAWQ5Mgww8X9GDuClX3Fe59tcfEfN/ xPqXH01XDe9MtS8h4D/vCPiEM+yo8kWHSSJ4vfJNAyZ53VS4ql0GGP6rAHIIGMCVuoT5 6xtg3eATjiflM+tQpTm1+ozVXIHnOZp/V301uK6lKy314EDpAtFQLmjC4fs/ILmlxJro K0Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=0Jpo7peTERuCmFLR9N3S7KX7Q6UZ59SU1lANzY2pqGA=; b=JpDiNweiFPl6uFI4gxqT9WpNBTDzwuQf5BT/uARd9gBJ+T0iQtoNf78/WtwmWp4O4A C+daQsGwt/EMYWkuWz+MwT3QWhT11abDbOUp5nlFTgnUYDdtbnlNFq4JlrDW8CkJcA34 NCWtoBaPQIahxjK58rHVcYUr89MfWq+XWANArADD+CGSFM3kSTzbi8FfL2Fl1sE/Fq9D cmlvwGyU7qL7yWbgxgykGjJuXWeoTeaqgY2rHSCbe+mHbt/i74aa1jzhR5/X8LGQ1v7F 4mcrF3NmCM5sJEF7qxk0KncXPqZrnkAE1GUVfZb8Vo8kFbXyHoeeKG6ty0DeZuA/GXlY Ek0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hLs946VY; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 7si4806416oiy.68.2020.02.24.08.33.45; Mon, 24 Feb 2020 08:33:59 -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; dkim=pass header.i=@kernel.org header.s=default header.b=hLs946VY; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728077AbgBXQdQ (ORCPT + 99 others); Mon, 24 Feb 2020 11:33:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:40574 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727706AbgBXQdQ (ORCPT ); Mon, 24 Feb 2020 11:33:16 -0500 Received: from localhost (unknown [213.57.247.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7DB8F2080D; Mon, 24 Feb 2020 16:33:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582561996; bh=E4OC7Vt1SAJ3s4FEPYn8lscavIq6DIL8BmttAab8sCY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hLs946VYAUhcHFyxS2neXmgb8qjiUcglzrjWDjPh5Oz4PWe03gai85zvalXMBP8Uf LtNoLqJkpU6Udux1YQS8oTabkx9A5gnbqqtR5lHoDGS6+PLtUm27lVXW6w17Gml7a5 yCqJpVuHtCGPLkbz+32/3iIRCwB02nUKpCnRc6gE= Date: Mon, 24 Feb 2020 18:33:12 +0200 From: Leon Romanovsky To: Greg KH Cc: Geert Uytterhoeven , Linus Torvalds , David Miller , Doug Ledford , Ira Weiny , Andrew Morton , Network Development , Linux Kernel Mailing List Subject: Re: [GIT] Networking Message-ID: <20200224163312.GC4526@unreal> References: <20150624.063911.1220157256743743341.davem@davemloft.net> <20200224124732.GA694161@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200224124732.GA694161@kroah.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 24, 2020 at 01:47:32PM +0100, Greg KH wrote: > On Mon, Feb 24, 2020 at 11:01:09AM +0100, Geert Uytterhoeven wrote: > > Hi Linus, > > > > On Thu, Jun 25, 2015 at 1:38 AM Linus Torvalds > > wrote: > > > On Wed, Jun 24, 2015 at 6:39 AM, David Miller wrote: > > > > git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master > > > > > > On the *other* side of the same conflict, I find an even more > > > offensive commit, namely commit 4cd7c9479aff ("IB/mad: Add support for > > > additional MAD info to/from drivers") which adds a BUG_ON() for a > > > sanity check, rather than just returning -EINVAL or something sane > > > like that. > > > > > > I'm getting *real* tired of that BUG_ON() shit. I realize that > > > infiniband is a niche market, and those "commercial grade" niche > > > markets are more-than-used-to crap code and horrible hacks, but this > > > is still the kernel. We don't add random machine-killing debug checks > > > when it is *so* simple to just do > > > > > > if (WARN_ON_ONCE(..)) > > > return -EINVAL; > > > > > > instead. > > > > And if we follow that advice, friendly Greg will respond with: > > "We really do not want WARN_ON() anywhere, as that causes systems with > > panic-on-warn to reboot." > > https://lore.kernel.org/lkml/20191121135743.GA552517@kroah.com/ > > Yes, we should not have any WARN_ON calls for something that userspace > can trigger, because then syzbot will trigger it and we will get an > annoying report saying to fix it :) Impressive backlog :) Geert, you replied on original discussion from 2015. Thanks > > thanks, > > greg k-h