Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2407606ybv; Mon, 24 Feb 2020 04:47:56 -0800 (PST) X-Google-Smtp-Source: APXvYqyzXiveHL7dC/Bf0Fvyh9YlOynIz0VNbjCi/ifHEi8NpZv/dvhzKEHcObY7UDLlirPe7nHj X-Received: by 2002:a05:6808:3b4:: with SMTP id n20mr12074104oie.78.1582548476462; Mon, 24 Feb 2020 04:47:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582548476; cv=none; d=google.com; s=arc-20160816; b=h+aKfga7p/n06rWZzQIs7qY+aZPs5BhsNCC9OgxSfthmudXjHOO4WaI++9wy5WqNq+ Yj0dtxGSBjr5n2zw4vUAGshdWZnJ1BG9BIcMbwTgLJyEPiIZRhUuwwRWH6JNcJz9A6Zw XMOLKLaKv4nNjXW8tEht8xzZUD4I/qIWmWZQDIYAvwdUC6RF7VVQTQsydJ5GqmjMAphX LrSYMSTksI5817JJ+F5PCj8DSQeJOc+2sD2xQkTZE5v1tmWFhio2FL7Z0NOjgRi7srYa Z6haZE+1cIS8XgHp1KYxaF3y4ISs8iRzmbZeOKfw6QhVYNYDZ/wVX8z8aZaZAi8S0QfD MK4g== 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=jEcz12tm19EnZ2Sl+FJKP8VOi5b8hvdHqI7cHKd7ckY=; b=CgSH43OU6b0PSgA64F2cjGSfJn6tZXGpLM7z7mkk/8/e7iV0NTyVVOyZxLzucjNFHu A51ebMYd8QBGXb9BQc6ELbgOE+TQmvLu2/K3HEABpuajLEx884kjXKblQmt6fEbLyqSM j7fP5iTt3P59OOoVvo5ngx9pKm7K0TcUXy7/qxHB+lSYv1VQS9WoYrcrpj48AD7Ebgfi L314w+iuYcHzf0oyAxZ2SDyUbfwQRAoyynkDk+kTJQLJVCUpfsgQPFknD/cj60WDy6UJ Dxdbm3mRxs4IgIqr5YjujPcVlbj43MbA6wpjpwIl2t5pvGEiTv+qevABhZpyt/S/C0mi sZVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=eOh0VUSh; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i13si6070447otc.228.2020.02.24.04.47.43; Mon, 24 Feb 2020 04:47:56 -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=eOh0VUSh; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727401AbgBXMrh (ORCPT + 99 others); Mon, 24 Feb 2020 07:47:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:53002 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726778AbgBXMrh (ORCPT ); Mon, 24 Feb 2020 07:47:37 -0500 Received: from localhost (95-141-97-180.as16211.net [95.141.97.180]) (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 7444A2072D; Mon, 24 Feb 2020 12:47:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582548454; bh=RFoS0XwskBiZFNVHWB51s86/gyyO1NSdhT0NCh46r0k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eOh0VUShL3u9AXixt5yxW1EQBNqCAPvXRSNlnZgviaRMOD2UHVJDAeQQcpPwpK3ji unP7z+wZPN68hKpSKxwSl0o0AWeR8xaB5tFCLEyZ5BjW4VJZnk5ed+HjhIx/cZdqd6 N+8RpBunIjvkJNgqRkaF8dLX4pbaGlmbPurf+wyo= Date: Mon, 24 Feb 2020 13:47:32 +0100 From: Greg KH To: Geert Uytterhoeven Cc: Linus Torvalds , David Miller , Doug Ledford , Ira Weiny , Andrew Morton , Network Development , Linux Kernel Mailing List Subject: Re: [GIT] Networking Message-ID: <20200224124732.GA694161@kroah.com> References: <20150624.063911.1220157256743743341.davem@davemloft.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 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 :) thanks, greg k-h