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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7211CEE57D5 for ; Fri, 8 Sep 2023 06:59:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=J34eZxeiuj4e9AYWFjsfGjxMqhIhufCKiIjIx2wodRc=; b=QXqoexpU2ibU4k djbkw1NJ1iPeblPDElv4f81bfJ8lgd9gNA1Vf2gAamGQKzxQmrPW32hpXvebAht4uDkLwhxHECTo4 C2nqoEvaX8s5W/yG5bCW2VZAqLWNtFRUCyGUjs71u0tZ+o+wgD1hJdxVeEu2OAUWrd2uihXA113+Y scfGKBFe/uDhgvdgP/arx5f/6XtzEA651nl40YxeyinkupL4qo1G4cvYSczu4rpXgnamzc3Wyj8BD ZJYQw+Qte6f3a53oJm1hAlsb0wrRcvuU1jfy6q2JwZpViv6vPu6d4pHynWr+JozrwZ+rBCmTbJAWA /5izQD1At6pv6iXD/KXA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qeVRk-00DCv9-2X; Fri, 08 Sep 2023 06:58:28 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qeVRg-00DCu9-2J for linux-arm-kernel@lists.infradead.org; Fri, 08 Sep 2023 06:58:26 +0000 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-402e7968042so17789945e9.2 for ; Thu, 07 Sep 2023 23:58:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694156302; x=1694761102; darn=lists.infradead.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=IS7APAXWLyRKAmVXEey0BMtRb06oUTAybc0N4RvhQnc=; b=mpJC7S/ZQCkrXOq5Dq6IDy7OqFcO7+gHDw41YCwFWRwq7yFUeEb7PO53TBF8XBkoMw N51jhxCQxv9OT2RFxQ7NKgO1IQErefkrAhaBcFIfBetwgzboC10sKNvhybAQ6hgKSGQn UeaMH9wylQlDWYizFB5YNt3dfK+6BQqQYuD3Rz24uHUbfy7RFb6XPgPmFmnxKbeCEw0c 6vpvEqpKFUFI9Oyyk522GHCEUY+nEhXgRzwbAfkKY3qfCwbagG/AD5mYCNQFqzwE6DHJ 9BGpmTjqwwb/X6fntKawp0I0J+UW1xOa9JLAtpAOtziSej2T51itwiz/luR+ZwyXN9mG E8eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694156302; x=1694761102; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=IS7APAXWLyRKAmVXEey0BMtRb06oUTAybc0N4RvhQnc=; b=q4eWHGRXWRBrWs+WA/PAObY0t6BarUkAo0oO3krOWhydY4N5mVvv2ClV7YnOeS3ani Dq2Ub6pC9qLgOe3hlr46VZwKwF5PVO1VUnDnpGsNGfBvrBBjsfMVPG1eOsLKXc1/6NLa qfTuoPnDTjX3I6M7s0ntFc97Jk4tBjPhXxjWujw1/gTKYVhiH7SYvdl8t/q3m7sKaar9 yJWThuXiSv18pGa0uXwCpAs8qdSiNj445QmRR9zvAsfRsrG4vYkz8adaAVMLuQ2f1LYK L2J0DD+G/fgqc5UV2uhqw552i2AbAw1LfqbUi3BHpxObkaEWLYObmPr/2UTBn5i60/rT 6s9g== X-Gm-Message-State: AOJu0Yy0JxI/v7Rtc4D8b2sGsYuqIT7ppxTGwztomOH+1rhO3xapz+QN ar822DcgjN4FUFy2/jyq9Rrt1w== X-Google-Smtp-Source: AGHT+IEZV1Q27i9G8hEK5mZxwqpxrF/pwUjpH/zY9fyCoVx23TMN0b8UA/eU3imtpk7CgnINvQq+qw== X-Received: by 2002:a05:600c:2483:b0:401:d2cb:e6f3 with SMTP id 3-20020a05600c248300b00401d2cbe6f3mr1573418wms.1.1694156302156; Thu, 07 Sep 2023 23:58:22 -0700 (PDT) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id l23-20020a1c7917000000b003fe17901fcdsm4361670wme.32.2023.09.07.23.58.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Sep 2023 23:58:21 -0700 (PDT) Date: Fri, 8 Sep 2023 09:58:18 +0300 From: Dan Carpenter To: Daniel Golle Cc: Felix Fietkau , John Crispin , Sean Wang , Mark Lee , Lorenzo Bianconi , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH net] net: ethernet: mtk_eth_soc: fix uninitialized variable Message-ID: <8a7f79be-e775-48ce-9eff-afa399e560d7@kadam.mountain> References: <9918f1ae-5604-4bdc-a654-e0566ca77ad6@moroto.mountain> <51d1ae238aecde07b2b4fe02cdab0dc87287cd96.1694099183.git.daniel@makrotopia.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <51d1ae238aecde07b2b4fe02cdab0dc87287cd96.1694099183.git.daniel@makrotopia.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230907_235824_791938_14403298 X-CRM114-Status: GOOD ( 12.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Sep 07, 2023 at 04:14:20PM +0100, Daniel Golle wrote: > Variable dma_addr in function mtk_poll_rx can be uninitialized on > some of the error paths. In practise this doesn't matter, even random > data present in uninitialized stack memory can safely be used in the > way it happens in the error path. KMemsan can detect unintialized memory at runtime as well. But presumably no one runs that on production systems. regards, dan carpenter _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel