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 6CA40C432C0 for ; Sat, 30 Nov 2019 06:40:37 +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 30F092075C for ; Sat, 30 Nov 2019 06:40:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 30F092075C 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 1iawQU-0002MU-QI; Sat, 30 Nov 2019 01:40:18 -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 1iawQS-0002MO-IO for kernelnewbies@kernelnewbies.org; Sat, 30 Nov 2019 01:40:16 -0500 Received: from mr1.cc.vt.edu (inbound.smtp.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 xAU6eF5G011906 for ; Sat, 30 Nov 2019 01:40:15 -0500 Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by mr1.cc.vt.edu (8.14.7/8.14.7) with ESMTP id xAU6eAU1020354 for ; Sat, 30 Nov 2019 01:40:15 -0500 Received: by mail-qk1-f199.google.com with SMTP id j192so15894938qke.3 for ; Fri, 29 Nov 2019 22:40:15 -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=hbxOfqTmLnmIHumbeTmLr+3Ca7y5KjiWpBuRCbNuuDw=; b=lMflZbmoBcLwNSncfef6hKkDDfRr/KZkXcuJ7x4CMwziFQn6v9y7eXFKmOHIcyhvp+ l3V4nLlY01TI+9LIv1Dp3c4gyiZSKB/LGEwlImuxhjHlzTjsOatrxF3BdnsF3NSN7blE I4+iJ+0nqwDkUhz98lbGaxxuFOvLaJbBFLnhYYgbxBoBq0IMtSDIkvyuy6aEp0oEhhwZ wwnkwuovGbmYeh+zzpsG6Gu+Z5eZFFFVbZ0Yy0a+MMNGMhA60fINwA8pF/Sl4lOgme/e BYvuC7sE+28Hr81UZyKcQs9NStKsboYtD3u0khkYSjb0OVDZeS4Jk3onuTzUL3ojboI0 hcOw== X-Gm-Message-State: APjAAAWo1F8fekpviEA4uy2/NyVSzOquXq7APFZ0N1uEZfwHTdi6/pCV bo/orXWxTiCZrKeJVUWinZJUMyH4cL/pxHl0ItTXiu/DVqqtQUxohtxuWHbruxI+cuxD7QKRYMN RT6VWwN0BTqEkSeauw6uxW0cvmMw2xKjypEmldTU= X-Received: by 2002:a05:620a:52a:: with SMTP id h10mr7250927qkh.42.1575096010041; Fri, 29 Nov 2019 22:40:10 -0800 (PST) X-Google-Smtp-Source: APXvYqxqi54hH+0FcT2dSWmPM25B0/nLJ9pCUjTBZPESGQKc6uY3AOIfwtEjRiBvSalL/S0lghFQhg== X-Received: by 2002:a05:620a:52a:: with SMTP id h10mr7250905qkh.42.1575096009683; Fri, 29 Nov 2019 22:40:09 -0800 (PST) Received: from turing-police ([2601:5c0:c001:c9e1::359]) by smtp.gmail.com with ESMTPSA id r4sm11238682qkd.9.2019.11.29.22.40.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Nov 2019 22:40:08 -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: noloader@gmail.com Subject: Re: Kernel TLS In-Reply-To: References: <20191129194801.GI20116@valentin-vidic.from.hr> Mime-Version: 1.0 Date: Sat, 30 Nov 2019 01:40:07 -0500 Message-ID: <50226.1575096007@turing-police> Cc: 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="===============0173422692803520964==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============0173422692803520964== Content-Type: multipart/signed; boundary="==_Exmh_1575096007_34598P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --==_Exmh_1575096007_34598P Content-Type: text/plain; charset=us-ascii On Fri, 29 Nov 2019 23:37:35 -0500, Jeffrey Walton said: repl: bad addresses: Valentin VidiD -- no mailbox in address, only a phrase (Valentin VidiD) > On Fri, Nov 29, 2019 at 3:04 PM Jeffrey Walton wrote: > > ... > > So now I am at: > > > > $ gcc -Wall -g2 -O1 ktls.c -o ktls > > $ ./ktls > > setsockopt failed, 524, Unknown error 524 > > Now open in the Fedora bug tracker: > https://bugzilla.redhat.com/show_bug.cgi?id=1778348 Looks like the 'unknown error' issue is a glibc strerror() problem. On the kernel side, git blame says: [/usr/src/linux-next] git blame include/linux/errno.h | grep -C 5 524 ^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 22) ^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 23) /* Defined for the NFSv3 protocol */ ^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 24) #define EBADHANDLE 521 /* Illegal NFS file handle */ ^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 25) #define ENOTSYNC 522 /* Update synchronization mismatch */ ^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 26) #define EBADCOOKIE 523 /* Cookie is stale */ ^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 27) #define ENOTSUPP 524 /* Operation is not supported */ ^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 28) #define ETOOSMALL 525 /* Buffer or request is too small */ ^1da177e4c3f4 (Linus Torvalds 2005-04-16 15:20:36 -0700 29) #define ESERVERFAULT 526 /* An untranslatable error occurred */ So I'm mystified why glibc's strerror() doesn't handle it. Though I think Alexander is correct on why the kernel returns ENOTSUPP. I've updated the bugzilla entry. --==_Exmh_1575096007_34598P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Comment: Exmh version 2.9.0 11/07/2018 iQIVAwUBXeIOxgdmEQWDXROgAQJ1ThAAoV1ivDg6HfEnsv74hODWWE7xZlwjFo8j zPDQAzfXJ1RebEgI3f58kLPx+AAWvp5lFGdDeu6B3aL/w/zaJTIKNv0nm34xEUw1 P7OJVlnnhgFRf200MPLNYcKLwWcvFvEGWIFQ7VM4UmSD6patEJX5nwE3sWZgflM/ YRyjglhQFvjiHUKSt1kstR97jSMBgviNO5/EvXGRcaK1HR3yPMs1TU1txKlk0aik 0OY5SPl+Ynib4kXYov/x2dM8Weztpv4yZRaDkNF4k5YxCexK3LvRRbl3+ne96zkY eEf7MJM0fJUpltpvlD9SvMhfldz7MFqGmFyrsJgfsCw/HhtCvS6x2V2V57q5DQcF xO61+Oy/j1abjTH9MbGmkY359tZ+QRdQLDdLE2CBVMIpn0MD/Y0KrSeOvl1YHc3f By+KQE24+i2/m14K3EzP41tjd3CepDmv+8WLBXu5fX/MYGqDzPjYljhxuNNb975/ 0XmfAL+Bd8+q9pCDQ0rDbEJ/wxRx7rvw8DHq6mCJM0Rkqh1SGI0CNGSFUXSXfOpz WeYSZdwod6pN89Uq4QvxFJMgs46riMwuPwtoMOEH11y96zUSCYDjE72dVM0PtPLn fXe+kvSrPfvTFvSqwddTJX+uBB6QbWo8pLApwLPRG3xgG77uW3R4fTvjYIcwQCgW lV0uLhPJMco= =ed5L -----END PGP SIGNATURE----- --==_Exmh_1575096007_34598P-- --===============0173422692803520964== 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 --===============0173422692803520964==--