Article View: linux.kernel.netdev
Article #17185Re: [PATCH net v2 06/12] net: au1000: assign a valid MAC address without platform data
From: netdev-bot+sashiko
Date: Mon, 16 Nov 2026 13:50
Date: Mon, 16 Nov 2026 13:50
57 lines
10205 bytes
10205 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] The commit message overstates how far the bug reaches, and it
carries a Fixes: tag.
--
net: au1000: assign a valid MAC address without platform data
When no platform data is passed, au1000_probe() now calls
eth_hw_addr_random(). Before this, the device kept an all-zero dev_addr,
and eth_validate_addr() rejected it at open time.
> The supported no-platform-data path leaves dev_addr as all zeroes. The
> device can register but eth_validate_addr() prevents it from opening.
[Severity: Low]
Can any in-tree configuration actually reach this path?
The only in-tree au1000-eth platform devices are au1xxx_eth0_device and
au1xxx_eth1_device in arch/mips/alchemy/common/platform.c. Both always set
platform_data:
.platform_data = &au1xxx_eth0_platform_data,
au1xxx_override_eth_cfg() is the board override path, used by
board-mtx1.c. It copies into the same static structures, so the pointer
stays non-NULL:
if (port == 0)
memcpy(&au1xxx_eth0_platform_data, eth_data,
sizeof(struct au1000_eth_platform_data));
au1000_eth_driver has no of_match_table or id_table. It can only bind by
name to the platform devices above.
So dev_get_platdata() never seems to return NULL for an in-tree user. The
failure described could only happen with out-of-tree board code that
registers the device without platform data.
The code change itself looks correct. It restores what the !pd branch did
before 7718f2c27dbd, which only added eth_hw_addr_random() to the
invalid-MAC branch.
> Fixes: 7718f2c27dbd ("au1000_eth: use eth_hw_addr_random() instead of random_ether_addr()")
Could the commit message say that only out-of-tree platform code can hit
this, or describe the change as hardening? As written, the Fixes: tag may
lead to a stable backport for a failure no mainline configuration can hit.
--
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261112045301.3669532-1-f.fainelli%40gmail.com
Technical Details
Message-ID:
<179483704445.3136.5178913144882531268@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364356-linux-kernel-netdev=dewy.ruReferences:
<20261112045301.3669532-7-f.fainelli@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364356-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v2 06/12] net: au1000: assign a valid MAC address without platform data Date: Mon, 16 Nov 2026 13:50:44 +0000 Organization: Usenet Network Message-ID: <179483704445.3136.5178913144882531268@kernel.org> References: <20261112045301.3669532-7-f.fainelli@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2076322"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:ZJ9i9Sq5f/e7CZ6fFxfmtpxYAbI= sha256:0U7NwExi1HcVNlK/H5SnOlV3Ptt/tnJmCtvYtE11k+I= sha1:gJ8tKCilDODwan21ltjfG4pBAlE= sha256:OIB6HpelvthyvI1gxzdfmFGouLTOn7DgpaSTDU+3ONM= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 3ABE5114C2F; Mon, 16 Nov 2026 16:51:12 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Zbzgli3J9ovn; Mon, 16 Nov 2026 16:51:09 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-364356-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id B383C114C0C; Mon, 16 Nov 2026 16:51:00 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id C9DBE2CA93; Mon, 16 Nov 2026 13:50:52 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794837047; b=okpXC/wRzwjwH/zp7Ga5wmT+3DxSQ+kNi3i6+BpKNKrdGh5375KUsO/tRHUw0SbQJuR4 B3PVewwLarguAPCgix6wxUja2tkm5unoWJTn3FBU2DWDZJYIadrbmnOxqnzzNZ9z1x09P Lv3w8qjflPO0TmRl79j5mmS4EoZHKIwE/9dPHKAWZz725mVSe2ckaiS5IjzZkm8yOH90l OD3QLmtuIsfv2umY9Xsi3mMZvxevdrD0fEOiZUN6E2i2JXEYZ9GC/7fC8Ftnjjw85A1fo JFJg7uxpQoa33MStadZOIolb/s4do6ZX9/QyXzDua3CoIUVxNhYVWDZXMz0k9HxS9Ug== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794837047; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=akTGnfa9Y+dF6UITPcBnRtwKMfecwTjl7OenkZ1Dweg=; b=d4tgSRTL0LP/dReQdzlQOD/iu86fOxpnr1HeXXpJc9tPOoNYVrO+gRohcur2lwkGmsfT aC6bIkrBoxcN4nMGkd+PBE2/a+Qd0WMwZ9B378lIIkdjg0b+3b5ZFrDoofgWYkYE/V4WM aHFuYfGpV/fLiFJh4vt7C84ahFIMpeoIJTk+ybPBLR0MzaTgACGcwRsufShft6jHZ79N6 Q/Bi6SQsIr3qA99vjvevVNtQXuoymnPi3LFnlTqw+kB3Ov190Xo+gcf/K8CC3oArfzeAn l/J2avj+qYX5jqxNJxkWQFW0E8BOfUm1UOFAMxE1mgQAxEJ9AoDYNv9wuNyvQB8KSIA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=SW1sFwoT; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3213F60A263D; Mon, 16 Nov 2026 13:50:47 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=SW1sFwoT X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794837046; b=TBOvG0a/BzeEpgyYgb9R0dARGaEmBK1pOvFdRQcSReHC8T7PJJRK6E11QwBbPPySxi9d LiC1s3xqrYq5qIIZdq/Tk4dFqYwZkvkRy12TAgXTsMeFJTY5oRZ852DaYaIqa1/XfhKqp Z8qX7sS5xQLFyJqYcu9ma/WAmdlxV7Svp9HleF+Np5Xax1ooZURJqM6aEQ0u7eCRn9qYn zqayOsp6RuktNgSG8lQXXvaGGKcPwUP6fRMI9e5orHGk9mGEJjmrV2JRYBe6I0FcLxQa5 /AZTxvgP3gZ0hmrYHLum1WiwY1kXlm0TJ7mtqhhrE694yaaC+3bo2M5XGAP8+qfZ1BA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794837046; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=akTGnfa9Y+dF6UITPcBnRtwKMfecwTjl7OenkZ1Dweg=; b=FxptMtqJpjHJzEVSuXSzgWtgwa4qx13cfE0K3NQu6fUiRlewSk6Q22J18n5VoQMtfchn GwrJ/nNUdyLyhIKZbHuIIGe8aMMKT4T4xCm+r8ugARxuoYUO6k9kttlFcLCAnoNbJZ+9v zPmq/HemxSEgZxhTn8xUo1vC/kgpsonnXMnMztkYXdvYcCOzL6PbkDl9aIk5Sd58Oevcp lr5VzuojNpWHk09FJNeYUwy4WZ5bf2F745hWZ0pJWvySfYe7HKB9RncxgJiwVrpo/TwBt ridw1UhM11i0UAqio1FOwCmGGRigSavH69RyyN+5J9vgmdhb1o4fvUsvCUJvqS5Kfzw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=SW1sFwoT; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4B76760A2609; Mon, 16 Nov 2026 13:50:46 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id E31411F000C7; Mon, 16 Nov 2026 13:50:44 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794837046; bh=akTGnfa9Y+dF6UITPcBnRtwKMfecwTjl7OenkZ1Dweg=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=SW1sFwoTWRup5UEOuaHBZYneSmOkK+5oO8zOo1IIhSWnZXZZRxtjq2M5Quy4+hvKs uSOhBKwjVJvL+j3+nxUUwKKxFhQ9AqQ2Jj124uiVzNBqGGaXF4PCkDynGM+rqF1fEq rQ7HLPk+bpMG07fCXwFosfSY7bRjnbZVQfWTUow4k3t0YVIdba7FwMjor6PYeULCdw Sg+XEZtAjywcERrocSBCY9aQ7imoWYrHo8kzqOlYe4khk+PfzbBZcCwXXQdrJWfFOb 4/vvevXROogfcAFVDAMLiMSNt8s54ozAyVR8Ad7nmg85euUShuqoTmJMV9AuvGD6ZB FXc3YS2j8iiyg== X-Cc: netdev@vger.kernel.org, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, hkallweit1@gmail.com, linux@armlinux.org.uk, shaojijie@huawei.com, horms@kernel.org, runyu.xiao@seu.edu.cn, mmyangfl@gmail.com, hvr@gnu.org, jeff@garzik.org, danny.kukawka@bisect.de, mugunthanvnm@ti.com, sebastian.hesselbarth@gmail.com, linux-kernel@vger.kernel.org, manuel.lauss@gmail.com X-In-Reply-To: <20261112045301.3669532-7-f.fainelli@gmail.com> X-sashiko-severity: Low X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list