Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3107152pxm; Mon, 28 Feb 2022 12:09:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJzyJpxgUSPC6acg31InXMkLPNddrbq4c/cu6NYuEgdMmB4PpMIUejOpl1Bbhx6ue6zJGAUO X-Received: by 2002:a17:90b:354f:b0:1bc:6931:7144 with SMTP id lt15-20020a17090b354f00b001bc69317144mr18467997pjb.3.1646078947652; Mon, 28 Feb 2022 12:09:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646078947; cv=none; d=google.com; s=arc-20160816; b=FSdLtXT1sOf55lDj3qzH3NsAo9+LE5Iylkefia90OdJ4V2DZY4e09BgtZvT1UzVfWH KboSVd2vvd1A+YtiYnS2ZqUgHOaIaZ02rnoautBkaSYWnlLwd/KkzCc6719D85+9ppmE SMcMFsJI2nB4prVxisg0eapBQfVtJzs7nzeDQSWTA98tn+EkJ/iMe0OYX5ekFIoCcPcv P1AqirC+T6bkx59EHg6IBBQ65uFT7flWfGqt8fQg/JKaN2TkTTvpWziztCWHcmicSfgt NxUajaCeTTSn3HCzIZwiYl+AlQlF42qjL31l+lgMj9Xa22LjDXLm2o29oXdXLi7E57do VIHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=KabTCGRL/hBw0eCZyNmvSvWkGmwTgQYHq4J0O+L/ZOY=; b=nZYJ457VMuj4W9UIs4Nnw6bczRh0TkL+olfP1hFhI6oeCFamtXOqDNn7tJvxEew3Jc jeTWWDPXK7S9E22Bl9UNXTNIvGzH4TzDZ1EOQbcptuZyT5EqwL4QQzlSZn6HmXoqx+j8 u2bW6zr7nzMeF/CXtk2wmKIDkbUyMFG+LSNJLS4fQXoNaTdwUW8e2ESed21waoLtcWd/ XufZHNZOjV2Vct2gM9q2Ycy22/l05u8Ue9ySQb7i0KQuOF+0R+uwADivMa4Exg7irDEX DZ4d2VGY8IemhRUHO4P4qJIhulqLzOR1US4vq5eI67VV3rBFu2lgF3e9DuLWiTDaNsxa 0H0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yUXTwfcX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y18-20020a056a00181200b004bace2132c2si10843775pfa.364.2022.02.28.12.09.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 12:09:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yUXTwfcX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2395613703C; Mon, 28 Feb 2022 11:33:44 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238046AbiB1SCC (ORCPT + 99 others); Mon, 28 Feb 2022 13:02:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240797AbiB1Ryp (ORCPT ); Mon, 28 Feb 2022 12:54:45 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 603AA5371F; Mon, 28 Feb 2022 09:43:50 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EFA20608D5; Mon, 28 Feb 2022 17:43:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0169BC340F1; Mon, 28 Feb 2022 17:43:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1646070229; bh=6dmsWtF2WF6CEy7yiT59gPr76gbVM+Z8NfW08yZAGbI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yUXTwfcXnEdrTRsRU6DikCqruPKEQIuMHjeObtVU6H1VazOsWGppreuKA6nfHsxTp PgIHzHnTQnw/7aMn8DXbTEfU29+8UgA+Xrgmknkc5ptVsI3Bmkzlirwa/6viivmRy0 fU4p6QYbnEF49eETpV3BIB0++X1VFbiy4tCMeEA0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jakub Kicinski , Xin Long Subject: [PATCH 5.16 033/164] ping: remove pr_err from ping_lookup Date: Mon, 28 Feb 2022 18:23:15 +0100 Message-Id: <20220228172403.242099098@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220228172359.567256961@linuxfoundation.org> References: <20220228172359.567256961@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xin Long commit cd33bdcbead882c2e58fdb4a54a7bd75b610a452 upstream. As Jakub noticed, prints should be avoided on the datapath. Also, as packets would never come to the else branch in ping_lookup(), remove pr_err() from ping_lookup(). Fixes: 35a79e64de29 ("ping: fix the dif and sdif check in ping_lookup") Reported-by: Jakub Kicinski Signed-off-by: Xin Long Link: https://lore.kernel.org/r/1ef3f2fcd31bd681a193b1fcf235eee1603819bd.1645674068.git.lucien.xin@gmail.com Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- net/ipv4/ping.c | 1 - 1 file changed, 1 deletion(-) --- a/net/ipv4/ping.c +++ b/net/ipv4/ping.c @@ -187,7 +187,6 @@ static struct sock *ping_lookup(struct n (int)ident, &ipv6_hdr(skb)->daddr, dif); #endif } else { - pr_err("ping: protocol(%x) is not supported\n", ntohs(skb->protocol)); return NULL; }