Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2627262ybv; Mon, 24 Feb 2020 08:37:06 -0800 (PST) X-Google-Smtp-Source: APXvYqyReMZJosrYJl5z2tYWw5cYdHCWUgFcgH1GmEFfDOP2kAxi2uaK7SCfL4FsnKebsHzNcYk9 X-Received: by 2002:a9d:6a85:: with SMTP id l5mr43063130otq.231.1582562225860; Mon, 24 Feb 2020 08:37:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582562225; cv=none; d=google.com; s=arc-20160816; b=py55uXHccpU5UBiZo8CjKmM8X2j+cq1cGqHW8RkrPVxySUWTuxdG2X4x0KRW+fYQbp 1nYE7JgeUfgKs320NDpEOzu73wTHcy20aDiTkKUneJJ+jnz3WWojw8PrJi8gVFdRagSq QlcDWqMu0apFdDwdH49pQM+gnAzyJKcnwREpOI78ySvlyCXA3xYnJfFh2JnQeea4fHce 5Ycz8Od4v6hFLXnEC28j9Cu4CZI2+0pMnM3UqpY7cBMCIGPgyVQfEL5sSJi68E55977P gv39xSuuObpIMZag+vqBzmrOt5axMBO1IDhF5fwbxs34pg6yvCVHZHIvzfPDZvDsg9mF tVpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:to:cc:in-reply-to:date:subject :mime-version:message-id:from:dkim-signature; bh=oPEJhsKQjaftTfxeHp3y5FL2X8//l96FQ+mWxCiZnNY=; b=zhtHIdslBmuvvrfjXU9V0o53nP2gu9ICmHFDeNwQ8oYSxlDUEddcNIta4uyMBBHT5e WWWZDbhqMpRGT7od92lhEjr6XuZsf8UNcjivNZS+Vdjyl9slfavzoXDUudpOlv4LKqow zuMv+9dDcqrPkw9voRA62Og38baz1GHPwSpkanpC1qWBonjs9GtrKKjYGez2byW/g6iU Tf9fun9s/ztX0F/6A45PRsrXP3i8UxfvxELIYnBduJu2EyEIfqVIwiHn7ymaU1Kdqhoo 46DLhqbZvanX3Sz/QolEehlTcFdO0npprTMhv8a+k7rh4Bq0cslPr7OFMcDFM5EdRCfo kuZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YguDYx8K; 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=redhat.com 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.36.53; Mon, 24 Feb 2020 08:37:05 -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=@redhat.com header.s=mimecast20190719 header.b=YguDYx8K; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727950AbgBXQf4 (ORCPT + 99 others); Mon, 24 Feb 2020 11:35:56 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:21781 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727673AbgBXQf4 (ORCPT ); Mon, 24 Feb 2020 11:35:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1582562153; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=oPEJhsKQjaftTfxeHp3y5FL2X8//l96FQ+mWxCiZnNY=; b=YguDYx8K90vyHk2Hus6W+4qpVupluoNaabhAFme6Ho/bPAwYOywTPsA8BNzcN3dDSBBuHl eGmkao2aYS1cPclj0ddn9NNvKKNbmrFbbmwGte/KWS+XzxSnKfUNXDfoU59SH7J6vfu+9o 4IARgXn1EzLweSueUEx52DnDq8BsdJs= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-266-Jrv0OMQ3OEWQWa77tUf6CQ-1; Mon, 24 Feb 2020 11:35:45 -0500 X-MC-Unique: Jrv0OMQ3OEWQWa77tUf6CQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 51961800053; Mon, 24 Feb 2020 16:35:43 +0000 (UTC) Received: from [172.31.0.54] (ovpn-112-52.rdu2.redhat.com [10.10.112.52]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AD5F785748; Mon, 24 Feb 2020 16:35:40 +0000 (UTC) From: Doug Ledford Message-Id: <10EE986F-E1F6-44F3-A025-6F2CA820C690@redhat.com> Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: [GIT] Networking Date: Mon, 24 Feb 2020 11:35:38 -0500 In-Reply-To: <20200224163312.GC4526@unreal> Cc: Greg KH , Geert Uytterhoeven , Linus Torvalds , David Miller , "Weiny, Ira" , Andrew Morton , Network Development , Linux Kernel Mailing List To: Leon Romanovsky References: <20150624.063911.1220157256743743341.davem@davemloft.net> <20200224124732.GA694161@kroah.com> <20200224163312.GC4526@unreal> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: multipart/signed; boundary="Apple-Mail=_FD6ECC63-F649-4CBF-8094-031AB9B42D08"; protocol="application/pgp-signature"; micalg=pgp-sha256 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Apple-Mail=_FD6ECC63-F649-4CBF-8094-031AB9B42D08 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Feb 24, 2020, at 11:33 AM, Leon Romanovsky wrote: >=20 > 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, >>>=20 >>> On Thu, Jun 25, 2015 at 1:38 AM Linus Torvalds >>> wrote: >>>> On Wed, Jun 24, 2015 at 6:39 AM, David Miller wr= ote: >>>>> git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git mas= ter >>>>=20 >>>> 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. >>>>=20 >>>> 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 >>>>=20 >>>> if (WARN_ON_ONCE(..)) >>>> return -EINVAL; >>>>=20 >>>> instead. >>>=20 >>> 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/ >>=20 >> 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 :) >=20 > Impressive backlog :) > Geert, you replied on original discussion from 2015. Yeah, that threw me for a loop too ;-). Took several double takes on that = one just to make sure none of the IB comments from Linus were related to an= ything current! -- Doug Ledford GPG KeyID: B826A3330E572FDD Key fingerprint =3D AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD --Apple-Mail=_FD6ECC63-F649-4CBF-8094-031AB9B42D08 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEErmsb2hIrI7QmWxJ0uCajMw5XL90FAl5T+1oACgkQuCajMw5X L93rug//f9+2IUWpedkq72QDxAiUsyYedKyHOBfUrJ79WM3RWNIVWcsxPwRoAYTB Np1aTtiKCx/5cDQIhmtl4YtsyekT9JjDcc9y0xeTByhMJWrBT8QVH/oiKuq9n1RZ XW7n+XS0O4h6WS0HauL/1ADXxnO+QqTD0n+SSFxZD9SR3zFsOObtLaOCTU0I/aL5 wdVX3VCdjSZoedDTtkJDf+36tvVzVyCM9mqpiCMo2A2gdZlhEysn5zswf3HL+LJz KkEhv0uiivy7WSKZwE70zx/2rMXtZGpQIdGmKrAHwlyOHIKwW8bNCBc/oddbzEiL VLIeDQWnFxBmwPGgywGu/vW6Q80K8UheY48y2K1y29WicWaeP1tbWxdMPzTI1Ugy FEuCY4j/YVQqN8z6AMmX6xvjkjFMwKl/polSrFWEa9EFrfG0WVIc4r87T8RK2YAh PxJ24l88kQxMjX0xMin9RJaz20VwqhyfdhFTWN9WauftonLIHazkc24DC4eOS+R3 UpVBY3ybch2+/tsNdgLZf10R9OsEC+DUjUrJiKyCxFl573kUwZM2ls7MctvGj8or Q7Q9ziMJ+rz8lQhxat20dMl6uW+1RwgO29dmVChNcoDEblgSeKezTJOP8bnbGai9 zugOy3ewpgER1/aM/BehT4CbOsXt3u1BIUtm9VN7RH2VLYJPkIM= =tadj -----END PGP SIGNATURE----- --Apple-Mail=_FD6ECC63-F649-4CBF-8094-031AB9B42D08--