Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp467633lqp; Wed, 12 Jun 2024 07:06:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXDqbofdBBenvbCGKmv4BUByNCS23wlrnNkAlIJS/bRRo9OKA7bV7ABv1m1Dtm9WSkQCur3T/CzZ+MXLJBfMLMbMPi3D6oa7INm+Hw/wA== X-Google-Smtp-Source: AGHT+IECJgUvn9kuh1BDJsK5ySuuiZ3IPF4RNi+Svrsd4GFlkXr7BF+DP7KlQ5KpYESjxrOs9kIE X-Received: by 2002:a05:6808:138e:b0:3d2:1c37:25c9 with SMTP id 5614622812f47-3d23e0a78cdmr1948435b6e.40.1718201209589; Wed, 12 Jun 2024 07:06:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718201209; cv=pass; d=google.com; s=arc-20160816; b=HkvHZwIfK3IpN2zLWSBQDcswwDE4NHRUUVo/ZJX/0YK0UWv3wSyirsjFUY8O5MnY49 MwPq2zdcCFGzW+Em1fcew1Yu/MfsQYcbXz9+LNs2Ck/qzTR6zmsb5cV3ST8d8fcZMY6f 8h0pNLFE2u+oZW1ydnvuYrXuDiAqJjZKu3Iv2EvdUDQGdlWp2Mvjst8DvHUxrJ1GRkVN 7GX4jDG4MABbZAssoIwPartYDlQasWvjEGXo+Mzx4KD3+fvsnCESP1zbfguqY/7orI82 usHrx82XeS5jKsl/JiZUeeRgJ6Js60emWGj/BWZM1ZmztlntvU3VfWsZT3GSX4M62Gcv 4GIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:feedback-id:dkim-signature:dkim-signature; bh=9BYgF/XNuP9G9oOmTJrbZ0MguyXPGFcxh3vdPRUSBng=; fh=oqKB+UVFyEKn0DnagnAwnSBONvMwMQGZtlkYQEyTRCw=; b=Ag2heZWyLMmjQj9TXOkb7iAId7+8JX1JaYRE8nxDaWzfBdRNuU1lvPW4zzzmwe3D1T NIzCcsXK9dV0fCMdJDv6Sz7+bkGwGHf8UVqbQwACECz+P+efNkNk/FYkUifX4Hn1qewQ TszxoYmztOtLY0zWzb7B5A7Fa2+zJvqGDwmBC/F3hIjOleIEQitjjOEaWg7NgDE744w4 Xsj0h+55YQtf5yh2JgSDhehjl+vgLB3p2iSbjdBCV1mOyDR0xtJasieyCGrDRmA50pa6 domnD3BJK5bUXi2edsF1B167KJ0zJBH090s1ommswNWEivfahLhDvQlTxRU+HaPJpFDO HAFA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kroah.com header.s=fm1 header.b=YyRLDP4Z; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=N75oX6X0; arc=pass (i=1 spf=pass spfdomain=kroah.com dkim=pass dkdomain=kroah.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=kroah.com); spf=pass (google.com: domain of linux-kernel+bounces-211630-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211630-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kroah.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 5614622812f47-3d20b7a6ffasi4791964b6e.158.2024.06.12.07.06.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 07:06:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211630-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kroah.com header.s=fm1 header.b=YyRLDP4Z; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=N75oX6X0; arc=pass (i=1 spf=pass spfdomain=kroah.com dkim=pass dkdomain=kroah.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=kroah.com); spf=pass (google.com: domain of linux-kernel+bounces-211630-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211630-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kroah.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 18A82283E65 for ; Wed, 12 Jun 2024 14:02:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0ACDD17F517; Wed, 12 Jun 2024 13:59:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b="YyRLDP4Z"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="N75oX6X0" Received: from wflow8-smtp.messagingengine.com (wflow8-smtp.messagingengine.com [64.147.123.143]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0039917DE0D; Wed, 12 Jun 2024 13:59:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.143 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718200790; cv=none; b=Ntuawv7n2jM9qcxlf8XMEb/VYRA7D2PMGoDfdNqFSV8WSjBl2IlqNts39DJ3Nlbmal7UgqWdJXTzTTVjyJj+LdTYPXd+QvJAT2ptD1zEzbFndkmP90ixId7oqCcSLNn68VSPwaeU+wCRJ9A1E/Klrv33eqHscUMuP1/kIa0rdb4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718200790; c=relaxed/simple; bh=dPBzzsXjrO07QLwWs5XXY+MPcbxXVdmIKtOrOPdSILM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Zi+ZmyQP6Ze9JosravXUekaxPODTqbSiGh8V4WHRZCU6iBUTCkh4+vciGtLf20VphpFLGqu3LV5U8ZqIbc3gkkyWXJAGeWfjUPVmCWPsbKGBfcBoGuuJZVXL3cInZQWeza9rh0z7kNgAYJmiXG60ibBB2ROlv2jUK/BTbroxkz4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kroah.com; spf=pass smtp.mailfrom=kroah.com; dkim=pass (2048-bit key) header.d=kroah.com header.i=@kroah.com header.b=YyRLDP4Z; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=N75oX6X0; arc=none smtp.client-ip=64.147.123.143 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kroah.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kroah.com Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailflow.west.internal (Postfix) with ESMTP id 65EB42CC0161; Wed, 12 Jun 2024 09:59:46 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 12 Jun 2024 09:59:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1718200786; x=1718207986; bh=9BYgF/XNuP 9G9oOmTJrbZ0MguyXPGFcxh3vdPRUSBng=; b=YyRLDP4Z8IMawrXZi9v/Z4g2oM JQq49DEpHwIKKZuijQmjARFa9ponNcGGVYx/XwE9R3Ru/NQSNVMMXQvoiVeIMfrj C89mQD/kkI7kFFS7xbtXGLB07bqa0mvWB0WJG0hdHFpI+4FIMPolOYf1r5xc4PyE 2//sic61E3RdPp6HSsPmELRIjBkWxmrhGzPgvcZ696k6nVGOVzgf6LwPD7zo1Xyg eVWohb1YL0TuC/DOSqEo8rFokvZ+tBxt+fLL9VImoGUENIzSNrtYlcdIxEILrV4G eNkBHalkEQzezXpFyGpJnXMcOJIMyS1Yn/cYZbSakdtg7MWdKkyApfMg2ZRQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1718200786; x=1718207986; bh=9BYgF/XNuP9G9oOmTJrbZ0MguyXP GFcxh3vdPRUSBng=; b=N75oX6X0ryMgblfvcQNh0AfCxUi3vAuBzzT8n8UMwz+y 1Xn+iXseReaRHPYGkbEybtNiGj8kz12UPU/xziQfRBmNvbCFkY4TCE3Bs17tAojm pBnA3mc2TymAk3S86cJWi+fYthwSNQOFMGCVpbv5Gx7S+hxuTMYlbRPlLu1cVdMM iORglcC/PPR3KJ07aWe2Gtm/wCv3w0tgo7ZP/cjWj4ptaXsNslGaYvTYnYuxUePC 2GYeW3stuCfXAYRGGA0B/maY+H86c0k/p+Y+itW5Ov1NUAEDEiwkmRBEOP7Xqgst UadVjHSGOUv6Lhxv8xY+CpXBo9L1l7mXasZBHjm37w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedugedgjedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepifhrvghg ucfmjfcuoehgrhgvgheskhhrohgrhhdrtghomheqnecuggftrfgrthhtvghrnhepheegvd evvdeljeeugfdtudduhfekledtiefhveejkeejuefhtdeufefhgfehkeetnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepghhrvghgsehkrhhorg hhrdgtohhm X-ME-Proxy: Feedback-ID: i787e41f1:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 12 Jun 2024 09:59:43 -0400 (EDT) Date: Wed, 12 Jun 2024 15:59:39 +0200 From: Greg KH To: Qingfang Deng Cc: stable@vger.kernel.org, Qingfang Deng , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Masahide NAKAMURA , YOSHIFUJI Hideaki , Ville Nuorvala , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4.19.y] neighbour: fix unaligned access to pneigh_entry Message-ID: <2024061231-most-blinker-c31c@gregkh> References: <20240605022916.247882-1-dqfext@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240605022916.247882-1-dqfext@gmail.com> On Wed, Jun 05, 2024 at 10:29:16AM +0800, Qingfang Deng wrote: > From: Qingfang Deng > > [ Upstream commit ed779fe4c9b5a20b4ab4fd6f3e19807445bb78c7 ] > > After the blamed commit, the member key is longer 4-byte aligned. On > platforms that do not support unaligned access, e.g., MIPS32R2 with > unaligned_action set to 1, this will trigger a crash when accessing > an IPv6 pneigh_entry, as the key is cast to an in6_addr pointer. > > Change the type of the key to u32 to make it aligned. > > Fixes: 62dd93181aaa ("[IPV6] NDISC: Set per-entry is_router flag in Proxy NA.") > Signed-off-by: Qingfang Deng > --- > include/net/neighbour.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/net/neighbour.h b/include/net/neighbour.h > index e58ef9e338de..4c53e51f0799 100644 > --- a/include/net/neighbour.h > +++ b/include/net/neighbour.h > @@ -172,7 +172,7 @@ struct pneigh_entry { > possible_net_t net; > struct net_device *dev; > u8 flags; > - u8 key[0]; > + u32 key[0]; > }; > > /* > -- > 2.34.1 > > Now queued up, thanks. greg k-h