From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80A09C432C0 for ; Sat, 30 Nov 2019 10:35:22 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4E38B2075A for ; Sat, 30 Nov 2019 10:35:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4E38B2075A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=vt.edu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.92.3) (envelope-from ) id 1ib05i-000451-Vz; Sat, 30 Nov 2019 05:35:07 -0500 Received: from omr1.cc.ipv6.vt.edu ([2607:b400:92:8300:0:c6:2117:b0e] helo=omr1.cc.vt.edu) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) (envelope-from ) id 1ib05g-00044v-Pl for kernelnewbies@kernelnewbies.org; Sat, 30 Nov 2019 05:35:04 -0500 Received: from mr1.cc.vt.edu (mail.ipv6.vt.edu [IPv6:2607:b400:92:9:0:9d:8fcb:4116]) by omr1.cc.vt.edu (8.14.4/8.14.4) with ESMTP id xAUAZ1r8007875 for ; Sat, 30 Nov 2019 05:35:03 -0500 Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by mr1.cc.vt.edu (8.14.7/8.14.7) with ESMTP id xAUAYu7E011361 for ; Sat, 30 Nov 2019 05:35:01 -0500 Received: by mail-qt1-f198.google.com with SMTP id c8so20580851qte.22 for ; Sat, 30 Nov 2019 02:35:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :mime-version:content-transfer-encoding:date:message-id; bh=LnkD2yvOgxXVDjYLYdGd8sBFN3tpkFfTJnsGjjoOG2Y=; b=uWSVDjEwSAM0LwfcVnhouF7ul2aOn0Qag1IOO1oqZZnAJ/IKZq82IwaUQLZCMyi9C4 MES1WL8VCRtdiHhOskTeBqD76SvmbzbtyLBhi/QJXaE/XItjGEaxV3mJpoR9518z0Xiz DQF06q0ptMCGc8Zp8zyvBSvVzL+sYbvWN3KdAPtYYPX7mjxOlXBpTv4UiHY4PLfNVR9h F98sv9RRQ+lMFfRIjos8HXD9YkMnd7ZSSM7nMi48j3Tr5eqDEUabat8akmlaPsbgP6Yy yRHPBSFslNOsrp2X3UmwZBRHxiUELU/XvIKUn/npBmMuVIuYjZJyUJBhi9gaE05aw7oG n02A== X-Gm-Message-State: APjAAAVNCErpZjsuZsYIaoWe7fu3K4Hy60fuEo332e0N70mJ1v20flrR 6tvkyd1EJNb4lVJqtMn46FRGh1YZZdMFYeo+0g9pJjdt1UzQqV/L41p4juxat9yIWRca6HxjH3a w/FP5Ihx+syq7V3cW3JNQ+qaxK+syaGh8dzf2gUs= X-Received: by 2002:a37:9c0f:: with SMTP id f15mr21602598qke.297.1575110096554; Sat, 30 Nov 2019 02:34:56 -0800 (PST) X-Google-Smtp-Source: APXvYqwAXD6fuuLVw+ZmfyyGTLoE3F8CuyojLwiWetdYIG3oTI9OkuBSBOfECGaQ3/Rs+LyGNfvokQ== X-Received: by 2002:a37:9c0f:: with SMTP id f15mr21602576qke.297.1575110096203; Sat, 30 Nov 2019 02:34:56 -0800 (PST) Received: from turing-police ([2601:5c0:c001:c9e1::359]) by smtp.gmail.com with ESMTPSA id t21sm11536907qke.69.2019.11.30.02.34.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Nov 2019 02:34:54 -0800 (PST) From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Google-Original-From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: =?utf-8?Q?Bj=F8rn?= Mork Subject: Re: Kernel TLS In-Reply-To: <87tv6loes5.fsf@miraculix.mork.no> References: <20191129194801.GI20116@valentin-vidic.from.hr> <50226.1575096007@turing-police> <8736e5pys0.fsf@miraculix.mork.no> <56379.1575105115@turing-police> <87tv6loes5.fsf@miraculix.mork.no> Mime-Version: 1.0 Date: Sat, 30 Nov 2019 05:34:54 -0500 Message-ID: <59577.1575110094@turing-police> Cc: noloader@gmail.com, kernelnewbies X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============2474618424379644492==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============2474618424379644492== Content-Type: multipart/signed; boundary="==_Exmh_1575110093_34598P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --==_Exmh_1575110093_34598P Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Sat, 30 Nov 2019 11:10:50 +0100, Bj=F8rn Mork said: > My version of setsockopt(2) says (...) > ERRORS > EBADF The argument sockfd is not a valid file descrip‐ > tor. > Note that there is no general *guarantee* that a syscall cannot return any values other than the ones in the manpage. > If you look at e.g. udp_lib_setsockopt() you'll see that it conforms > strictly to this. I don't know why do_tcp_setsockopt() doesn't. Probably because those are the only errors that the UDP version can hit, but the TCP case can hit cases like =22socket must be in a connected state=22 and possibly other error codes. Now, I admit wondering why it uses ENOTSUPP rather than ENOTCONN for this particular case. --==_Exmh_1575110093_34598P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Comment: Exmh version 2.9.0 11/07/2018 iQIVAwUBXeJFzQdmEQWDXROgAQI8IRAAm2fjv3JzbJ0GO312jikcvgAaQQ20uLDx aG14wzTkwBsCFqaXqAQfuS4nHyjCUaLfmG2fhd4SrTaNNO87aTnB8Ub11XEA/WDE yxtS6/iadYLTxM0cuZJrYC65z43rcUdoaEidAqIK0WDu7z4jEL/HyMc7Vok8a0eu iZTdzSQnA8oDHv/WZ9q2XlhO/F979hHogldHYofNWnfpGbnTeZcRDkboE82wx3fO 1fnyNmOEnHgUkf4tFLdZkIBDoAvB+XQRYFnxX5zRAJ0qONAN5fhf4V9gRzbmpnz9 DmEqeqlaeePKpqRbVqYAksgj3ptOjrMGQtGV8n42z2oQbz8sUtrvxvdgd7kIl6Pl F2LUGApOq//mn7a6zVGC3n4VCyJeYWEy9pDbmxVUAbHLT7vp0bJm84HKDVfbf6I9 AnY8w77FpMzIMvptlI1fs4Yl5eEZeLj9BHLsvja3Rng9BcIyuKyrLaUw/pioWoxY ODKDSjmR+f5WSXuwac9rKJyJPyhmhnervqGfsotmXDT9MDQaUeL5GPUYZXCgDbmX bMkwwIEMJPShXtIEsCSwgclSSu008K72ljUH4Iw+b/4diRkjC4jJISgrmA+YlIsO oxig5YljGHbOLrKx1/ByeNfezS6vGT5MiMX+eOBRS0iOWcff4dPLZB6ySQNouaKH kN6g3tv62mA= =i0aI -----END PGP SIGNATURE----- --==_Exmh_1575110093_34598P-- --===============2474618424379644492== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============2474618424379644492==--