From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6F9CAC433F5 for ; Wed, 5 Oct 2022 00:30:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229583AbiJEAay (ORCPT ); Tue, 4 Oct 2022 20:30:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbiJEAau (ORCPT ); Tue, 4 Oct 2022 20:30:50 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B14756B82; Tue, 4 Oct 2022 17:30:50 -0700 (PDT) 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 ams.source.kernel.org (Postfix) with ESMTPS id ED89BB81B54; Wed, 5 Oct 2022 00:30:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45066C433D6; Wed, 5 Oct 2022 00:30:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664929847; bh=y4Zwm8QOPM6J2mvf2FDbEYt5AqCQVuApnRv1mKgcby8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=VEoHgV50wq7+CCtjldXASZQq4dfOAIQECU2Ieaczh37GmqqGS57nIuP588wl5TmCk 3B33uPCR24m791TKLtDOH2u7ptipHps4i2V8ZW8iKy11Sg5Uj3mLyo4gJo/H3CSkxi maj/277l9cWCTJHba8dalj/Nq0HSKnRK6KYEsYFhTlV9Rntc1iZvDEMQPnNttqQztc jnHRDt4k5QZezRezDhI3VVmBcFIGyiKsWww1A0PVEmezbHnOyzno2f09/VAEnlP6Ip fd4IRhGu1iuYAcVBXSOVTAuBQTuhiZqVbBlCAbfjCy8yMYSCX78HScIVl7K2tjxz04 bn1yg48lGg6xA== Date: Tue, 4 Oct 2022 17:30:46 -0700 From: Jakub Kicinski To: Stephen Hemminger , Peter Kosyh Cc: Ajit Khaparde , Sriharsha Basavapatna , Somnath Kotur , "David S. Miller" , Eric Dumazet , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, lvc-project@linuxtesting.org Subject: Re: [PATCH] net: benet: use snprintf instead sprintf and IFNAMSIZ instead hardcoded constant. Message-ID: <20221004173046.5ec6d3ca@kernel.org> In-Reply-To: <20221004082936.0d0c9bcb@hermes.local> References: <20221004095034.377665-1-pkosyh@yandex.ru> <20221004082936.0d0c9bcb@hermes.local> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Tue, 4 Oct 2022 08:29:36 -0700 Stephen Hemminger wrote: > On Tue, 4 Oct 2022 12:50:34 +0300 > Peter Kosyh wrote: > > > printf to array 'eqo->desc' of size 32 may cause buffer overflow when > > using non-standard IFNAMSIZ. > > > > Found by Linux Verification Center (linuxtesting.org) with SVACE. > > > > Signed-off-by: Peter Kosyh > > NACK > Non-standard IFNAMSIZ will break uapi and many things. > I see no reason for kernel or tools like iproute2 to support or > fix those related bugs. I think the commit message is missing the point, but the warning may be legit. Pater please read the requirements for sending patches based on automated checkers: Documentation/process/researcher-guidelines.rst