Message ID | ME3PR01MB5781AEB3D8CAC7F979CB942BCD2B9@ME3PR01MB5781.ausprd01.prod.outlook.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <ovs-dev-bounces@openvswitch.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::133; helo=smtp2.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=outlook.com header.i=@outlook.com header.a=rsa-sha256 header.s=selector1 header.b=ax7snlYh; dkim-atps=neutral Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FlMtt1gx2z9sVt for <incoming@patchwork.ozlabs.org>; Wed, 19 May 2021 16:11:01 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id B60B140117; Wed, 19 May 2021 06:10:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 151vll2XIr2D; Wed, 19 May 2021 06:10:58 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp2.osuosl.org (Postfix) with ESMTP id CB994400EF; Wed, 19 May 2021 06:10:57 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id A1A85C000D; Wed, 19 May 2021 06:10:57 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 364E0C0001 for <ovs-dev@openvswitch.org>; Wed, 19 May 2021 06:10:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 10C6940685 for <ovs-dev@openvswitch.org>; Wed, 19 May 2021 06:10:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp4.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=outlook.com Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Enf-pUdTPS9f for <ovs-dev@openvswitch.org>; Wed, 19 May 2021 06:10:54 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-oln040092253077.outbound.protection.outlook.com [40.92.253.77]) by smtp4.osuosl.org (Postfix) with ESMTPS id 11777405E4 for <ovs-dev@openvswitch.org>; Wed, 19 May 2021 06:10:53 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NVetEXyeeLat+0CFTT8NJw+0e2ldc/HWWWewYtCHZ1yt2iNhMph+GU+QWRA+Px7/SIL2aO1lL8ZqV+Ft6BhE0dvXFlyL3PH5MmktDJj1lMnUKrQYVvpaonK2+s3fgBEPAW574+GAEIwsP/P4y3STbEh81IEGObXfWpl1CqEnUsMAnoGFUds+TvqLyjxaOjyrpsg4KMz4KOBrlzBqS8tzZn1phVD9IpMbmHwqPnK6U/6olwEjCjAG0I609AiWgV84vYwnHrNk3WW4OraCLtP0Wd2sNGFzRPils40L7awgMUtVYT606hA9aeUaRAB34i2Qx8+j2kK6CbzQUTpJlrXbbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mHpPwR4y6Qr3moSx6sHTmYnHx7Km4ws4A5FlTdEc3tw=; b=ZO1ivDhIq1HzZLTJVN0EUvatttX886WvJglQkR5PaCYZS2dAeX3A+FWoZ+eRNeCZpcFMhaq00hy8fGbzk1uCA0s0RXqGWEVNheGRlAknkP/Nhf38d1TPrl+rkpulHMKA4PRV8doLR+UYnmGb2BOEcV+Rz2BLiB7Pfuutm005ukgemEjEEcHwcMq+L32pMf+PjlAEletKHIUNTlaXjzIlXaA9KPvxFqWq4WnEaM6bSF/RSMPvoDfLOGOoN6btZ9exU33Pp7GM4NK68SRf5ljPi+drFJ91eEY9ieA8esdo7IwUbJduieVAnkQLVerSBsDHXdPppRpV8Q8zwOLoe01JBg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mHpPwR4y6Qr3moSx6sHTmYnHx7Km4ws4A5FlTdEc3tw=; b=ax7snlYhEz03wzrKEZzXOh2Y6d1pk64AmrXitetWy4x1Hw7e2glBxrso3oEk9Z8n70Qag7uoDlBJUJAnB7OMZUJx96HElxYwRzsROlUX5xDnuXVbHxRJW0WXIpE5HCPJJUOnWTTtg7nxt/rwHp9dcRXgzTJGAGOdTmxbH0OmPSZz3dfxbYg4XLnrR6oHSQBc89G1Mu+YlJulhN0RWyuTJyarKmK3znTJbbYfzScXFOJOoTQkIPALh6PK6gGgrXfUAoi3D0fpNaGw5rEUBUynKI2f3N8VMcK8oONDJ8awa8hOYcKXM4TfR0pBxoSXbgrgouKjBmKLP8yahihpoa5G/Q== Received: from SG2PR06CA0179.apcprd06.prod.outlook.com (2603:1096:1:1e::33) by TY2PR0101MB2832.apcprd01.prod.exchangelabs.com (2603:1096:404:b7::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.25; Wed, 19 May 2021 06:10:49 +0000 Received: from SG2APC01FT054.eop-APC01.prod.protection.outlook.com (2603:1096:1:1e:cafe::2b) by SG2PR06CA0179.outlook.office365.com (2603:1096:1:1e::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.32 via Frontend Transport; Wed, 19 May 2021 06:10:49 +0000 Received: from ME3PR01MB5781.ausprd01.prod.outlook.com (2a01:111:e400:7ebd::51) by SG2APC01FT054.mail.protection.outlook.com (2a01:111:e400:7ebd::246) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.25 via Frontend Transport; Wed, 19 May 2021 06:10:49 +0000 Received: from ME3PR01MB5781.ausprd01.prod.outlook.com ([fe80::70f7:fd46:87cc:96a]) by ME3PR01MB5781.ausprd01.prod.outlook.com ([fe80::70f7:fd46:87cc:96a%7]) with mapi id 15.20.4129.032; Wed, 19 May 2021 06:10:48 +0000 From: lin huang <miterv@outlook.com> To: "ovs-dev@openvswitch.org" <ovs-dev@openvswitch.org> Thread-Topic: netdev-linux.c : nl_sock_listen_all_nsid triggers NULL deref. Thread-Index: AQHXTHW2AzcnVnDc+EO4II6dplwj5w== Date: Wed, 19 May 2021 06:10:48 +0000 Message-ID: <ME3PR01MB5781AEB3D8CAC7F979CB942BCD2B9@ME3PR01MB5781.ausprd01.prod.outlook.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:DD2B3A0508E6662B3E0B413462357664AF50A91425BA20B30B6F6747B9C6EE87; UpperCasedChecksum:CB0163F8978DE1AB174E322CC5CBFF10E2AAAF6C885EA600A413A599FF27514D; SizeAsReceived:6649; Count:41 x-tmn: [7xX/mS3kVzQUHNGvNM8plhxx4sETCN6R] x-ms-publictraffictype: Email x-incomingheadercount: 41 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: de56ef27-6762-4f8c-06e4-08d91a8cd8df x-ms-traffictypediagnostic: TY2PR0101MB2832: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: QoxAvFzoWIseSY4zGGWs1IZEr4XbFHSVtW1R4jT/o0EwdU5oM1ck+DinTbB6EBW3rdd8EV/bpCSjdj9GXyu+F8pA1EoosVNBK4g1kPXz5V+vnm3mHP2aju81rZbQlYoYbSGkEy9bhemyqONbeC7kTuXhMzqltsEP/GPb0T/rZq5co5wkvLG6lTTVqmF8225t0YI6G6b8QkCpG6M+lH17Dk9t825UYK0/U95YxDLWXU+BPtwg+MrClV+rrXqWf8i+tVyHCKHT+LyRgZTQnboTIbC3zjSMg1urLM88MBZvmog4Ww4SzZ/eVv7nEGxnJeEXsM6DUl563uatXAtZKybIGQd/9/17N1CKH+uHfIdSF6HH7eR0Uwj2d0cgigXqfex14S6ZfNuBp9gPh8D/+NyyMQ== x-ms-exchange-antispam-messagedata: 7L19qfhWI/EEv5Z1e/5/XyC4RnSd6qy8p+q0hgsFsM5esJetbsy0D39c3z6cyVjSll5xKvLp/1ZVPf7+B28Wb9HGN4rEO1MkdRofglDRedwhQJYWd5AF7oMcJhgUm26XEk0oTrUgnuf+MXyCsqaStw== x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-AuthSource: SG2APC01FT054.eop-APC01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: de56ef27-6762-4f8c-06e4-08d91a8cd8df X-MS-Exchange-CrossTenant-originalarrivaltime: 19 May 2021 06:10:48.5555 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY2PR0101MB2832 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [ovs-dev] netdev-linux.c : nl_sock_listen_all_nsid triggers NULL deref. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <ovs-dev.openvswitch.org> List-Unsubscribe: <https://mail.openvswitch.org/mailman/options/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe> List-Archive: <http://mail.openvswitch.org/pipermail/ovs-dev/> List-Post: <mailto:ovs-dev@openvswitch.org> List-Help: <mailto:ovs-dev-request@openvswitch.org?subject=help> List-Subscribe: <https://mail.openvswitch.org/mailman/listinfo/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" <ovs-dev-bounces@openvswitch.org> |
Series |
[ovs-dev] netdev-linux.c : nl_sock_listen_all_nsid triggers NULL deref.
|
expand
|
diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c index 15b25084b..0994044ec 100644 --- a/lib/netdev-linux.c +++ b/lib/netdev-linux.c @@ -634,7 +634,9 @@ netdev_linux_notify_sock(void) } } } - nl_sock_listen_all_nsid(sock, true); + if (sock) { + nl_sock_listen_all_nsid(sock, true); + } ovsthread_once_done(&once); }