Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1nhXIi-0007XH-FK for mharc-grub-devel@gnu.org; Thu, 21 Apr 2022 09:56:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38604) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhXIg-0007QL-Kz for grub-devel@gnu.org; Thu, 21 Apr 2022 09:56:50 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:3807) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhXIe-0007C0-B3 for grub-devel@gnu.org; Thu, 21 Apr 2022 09:56:50 -0400 Received: from kwepemi500005.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4KkfGL2H00zhXdQ for ; Thu, 21 Apr 2022 21:56:26 +0800 (CST) Received: from dggpeml500002.china.huawei.com (7.185.36.158) by kwepemi500005.china.huawei.com (7.221.188.179) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 21 Apr 2022 21:56:35 +0800 Received: from dggpeml500002.china.huawei.com ([7.185.36.158]) by dggpeml500002.china.huawei.com ([7.185.36.158]) with mapi id 15.01.2375.024; Thu, 21 Apr 2022 21:56:35 +0800 From: zhangqiumiao To: Daniel Kiper CC: "grub-devel@gnu.org" , "Fengtao (fengtao, Euler)" , "Chenxiang (EulerOS)" , "Zhaowei (EulerOS)" Subject: Re: Re: [PATCH v2] net: fix null pointer dereference when parsing ICMP6_ROUTER_ADVERTISE messages Thread-Topic: Re: [PATCH v2] net: fix null pointer dereference when parsing ICMP6_ROUTER_ADVERTISE messages Thread-Index: AdhVhmvqUjz9X2YlQEe2Cq6bYx84/g== Date: Thu, 21 Apr 2022 13:56:35 +0000 Message-ID: <2111d7c12b104453820c3ff14b7bdb3f@huawei.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.136.117.208] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-CFilter-Loop: Reflected Received-SPF: pass client-ip=45.249.212.188; envelope-from=zhangqiumiao1@huawei.com; helo=szxga02-in.huawei.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Apr 2022 13:56:50 -0000 On Thu, Apr 21, 2022 at 21:41:52PM +0800, Daniel Kiper wrote: > On Sat, Apr 16, 2022 at 09:50:11AM +0800, Qiumiao Zhang via Grub-devel wr= ote: > > During UEFI PXE boot in IPv6 network, if the DHCP server adopts=20 > > stateful automatic configuration, then the client receives a=20 > > ICMP6_ROUTER_ADVERTISE multicast message from the server. This may be=20 > > received without the interfaced having a configured network address,=20 > > so orig_inf will be null, which can lead to a null dereference when=20 > > creating the default route. Actually, in this case, the client obtains= =20 > > the default route through DHCPv6 instead of RA messages. So if=20 > > orig_inf =3D=3D NULL and route_inf =3D=3D null, we should not set the d= efault=20 > > route. > > > > Fixes bug: https://savannah.gnu.org/bugs/index.php?62072 > Missing "Signed-off-by: Qiumiao Zhang " line. > May I add it on behalf of you? Yes, that's perfect. > Otherwise Reviewed-by: Daniel Kiper Qiumiao