From owner-freebsd-net@freebsd.org Sun Feb 2 21:22:16 2020 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AF22423B4DE for ; Sun, 2 Feb 2020 21:22:16 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from CAN01-QB1-obe.outbound.protection.outlook.com (mail-eopbgr660079.outbound.protection.outlook.com [40.107.66.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "GlobalSign Organization Validation CA - SHA256 - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 489kS72z9rz3D74 for ; Sun, 2 Feb 2020 21:22:15 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QMR06b/VqTbC6MVxmoXWRltXgquLzBKsk05Xgs2q3s7s9PO16e3pJ2niUD6F/e1yGZ582WmbutRbtzdcTj8BP4r8A4NVcHi+WwVvjycfQb7xfDXlDKtee8Sc6cnJ4wCcnbf0KEohXKLkm1CkPF9An0q308NnEvGho6GA1jDnUdwWxr4W+Mj7buRtwSJa7vDJBEn24IGT7iikGJIs5AQcV+lsMMQNRZJMWaV2xTEJyJewUFOYCdeuSQGHI6Wd5/d3cggB2cFovHudOiBp3NQsnR/Ceiy4EGUsaFb2ZAiFJRj/bnrHTg2WlHD6Rrs7gs/xzzu95aTD8IqZCNDdpIdt7g== 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=xRi5X5hj7XZRpawSyJrnOhRXzkZrUVUmgXIBjBoNLAw=; b=Rozt9rZlFHn0XoNJwk1b61ipe0/+qZBWZjTYeE8HF1AsKSPj9Spxb8htZj59akKd8o78Ki5iBttqCNT+3cOaUQqS4hkLTY4IPcNkKXXUzU3M5JSlJx+iXfvKz2naz4QlRJOqBK0erIEeOlq6SQeZGxIdS09gBcNw9j9zDcnJQqL3j0ymXBnp2d6bjt7uuBBCSZOXjAhnrqhBcJh0hjIlqjVuAvd9JVwW3pp+dNX9+vtyzJf+qEsSyvcLe24rlFyN27yF4pFXVCeQPN0Qsy6KD9gWbqIeXQ3zLKwpJ3VEU10gKf5bN/PR6fB5Bs+geZDIJiPHIBLe96HyanMNVti4ZQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=uoguelph.ca; dmarc=pass action=none header.from=uoguelph.ca; dkim=pass header.d=uoguelph.ca; arc=none Received: from YTBPR01MB3374.CANPRD01.PROD.OUTLOOK.COM (10.255.46.82) by YTBPR01MB3136.CANPRD01.PROD.OUTLOOK.COM (10.255.46.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2686.30; Sun, 2 Feb 2020 21:22:14 +0000 Received: from YTBPR01MB3374.CANPRD01.PROD.OUTLOOK.COM ([fe80::410e:652b:6fbc:9aa4]) by YTBPR01MB3374.CANPRD01.PROD.OUTLOOK.COM ([fe80::410e:652b:6fbc:9aa4%3]) with mapi id 15.20.2686.031; Sun, 2 Feb 2020 21:22:13 +0000 From: Rick Macklem To: freebsd-net Subject: Does sosend() need CURVNET_SET/CURVNET_RESTORE? Thread-Topic: Does sosend() need CURVNET_SET/CURVNET_RESTORE? Thread-Index: AQHV2g6GHsgkYI39oUK5ywsAZhXoOw== Date: Sun, 2 Feb 2020 21:22:13 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 35a04e4f-f2bc-4e23-cca7-08d7a825f8e3 x-ms-traffictypediagnostic: YTBPR01MB3136: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5516; x-forefront-prvs: 0301360BF5 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(376002)(366004)(396003)(136003)(39860400002)(199004)(189003)(6506007)(786003)(86362001)(52536014)(2906002)(558084003)(8936002)(8676002)(316002)(478600001)(26005)(76116006)(91956017)(64756008)(66556008)(66476007)(186003)(66946007)(66446008)(81166006)(81156014)(33656002)(71200400001)(5660300002)(9686003)(55016002)(7696005)(6916009); DIR:OUT; SFP:1101; SCL:1; SRVR:YTBPR01MB3136; H:YTBPR01MB3374.CANPRD01.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: uoguelph.ca does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Pw72cmZ8C0r3ye2493m5vw9jDUBtla6hcm9Y4PaJLrAyw31cJTs/8INfXxRP1wNQb/VcKhTQpZ7HuXgnUeGakhBBHkAiwn121qIMSXcAkFs7etmUINe+68DKeZKmS0FjQWKbae25FZPptbC26yamShREl5MjK/xQSCW+RJmcxyNE+7+Zs0hbhVbq1hHT1qaa5JPFIYJv3EKxDj/JJLbV+9UNGVyfawcFVIgNEfdyHw/TlL7xHNQRDM4paQf6kVxUBvkOCWBfnoRdqluA7hQNXSK954hF3pkE/c25LXSpIEJPdav2EsSeBInWVhN05o3pWXK3lW594DFCIKsOMPeG03QX0+6gxw01NPZFisUqme1oKlrPdOe+416dhTkZe9nwy6pNq0mpR1dmvCh9qxR92x/pyWCGTu5p+YcoLHuUtJscCvfWCwaszXeuhEpgGcPm x-ms-exchange-antispam-messagedata: iRl5qmRAvem0Sxvi63vr5LWJ++xNGs374ItKn9YDArYVEVb2Bbt4781zC8Gf/Gff3VL+4u1OkB2ap5N6kcK/uBHNcRpaLt8g6LbXAKosF1ZdWvpqO07JdGAaoTAQEj1huDl+akmm5NX3irW+3VqYcg== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: uoguelph.ca X-MS-Exchange-CrossTenant-Network-Message-Id: 35a04e4f-f2bc-4e23-cca7-08d7a825f8e3 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Feb 2020 21:22:13.8579 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: be62a12b-2cad-49a1-a5fa-85f4f3156a7d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: uD4ibSWXD6dhzsE9+VXn4quJFtYeC6kMtWAuu1uIOtoV7E0iKlLR0XOxo79RzIyPoFroX+GK9QEteZdjeY8oxg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: YTBPR01MB3136 X-Rspamd-Queue-Id: 489kS72z9rz3D74 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of rmacklem@uoguelph.ca designates 40.107.66.79 as permitted sender) smtp.mailfrom=rmacklem@uoguelph.ca X-Spamd-Result: default: False [-3.70 / 15.00]; RCVD_TLS_LAST(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:40.107.0.0/16]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[uoguelph.ca]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; IP_SCORE(-1.40)[ipnet: 40.64.0.0/10(-3.86), asn: 8075(-3.07), country: US(-0.05)]; TO_DN_ALL(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[79.66.107.40.list.dnswl.org : 127.0.3.0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8075, ipnet:40.64.0.0/10, country:US]; SUBJECT_ENDS_QUESTION(1.00)[]; ARC_ALLOW(-1.00)[i=1] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Feb 2020 21:22:16 -0000 Hi,=0A= =0A= The current krpc code calls sosend() and soreceive() without any=0A= CURVNET_SET()/CURVNET_RESTORE() wrapped around them.=0A= =0A= When I recently used sosend_generic(), it panic'd without them.=0A= =0A= Do they need to be added around sosend()/soreceive()?=0A= =0A= I'll admit to knowing nothing about vnet.=0A= =0A= Thanks, rick=0A=