From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: libnettle/libhogweed WIP Date: Wed, 26 Jul 2017 17:19:10 -0700 Organization: UCLA Computer Science Department Message-ID: <84297b99-4d46-0c4d-5c31-51678f8d738a@cs.ucla.edu> References: <87r30nq9el.fsf@lifelogs.com> <83inlyc1k2.fsf@gnu.org> <87inlyrfni.fsf@lifelogs.com> <837f2eb845.fsf@gnu.org> <87ziedpyy1.fsf@lifelogs.com> <83d1b75u8a.fsf@gnu.org> <87r2znntaq.fsf@lifelogs.com> <87o9u8q4a5.fsf@lifelogs.com> <83tw3xbklg.fsf@gnu.org> <87zictm415.fsf@lifelogs.com> <83podoqchd.fsf@gnu.org> <87podnnbi2.fsf@lifelogs.com> <8760ewi3rw.fsf@lifelogs.com> <87r2xjgilq.fsf@lifelogs.com> <83iniug7ql.fsf@gnu.org> <87fudyhkhy.fsf@lifelogs.com> <8360euf4d3.fsf@gnu.org> <87r2xhfsre.fsf@lifelogs.com> <83o9slecp0.fsf@gnu.org> <83zibw96r9.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1501114898 24398 195.159.176.226 (27 Jul 2017 00:21:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 27 Jul 2017 00:21:38 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 27 02:21:34 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1daWYW-0005zh-6V for ged-emacs-devel@m.gmane.org; Thu, 27 Jul 2017 02:21:32 +0200 Original-Received: from localhost ([::1]:40458 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1daWYb-0006Ku-U5 for ged-emacs-devel@m.gmane.org; Wed, 26 Jul 2017 20:21:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1daWWN-0005V3-Gb for emacs-devel@gnu.org; Wed, 26 Jul 2017 20:19:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1daWWH-0001mG-Td for emacs-devel@gnu.org; Wed, 26 Jul 2017 20:19:17 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:53084) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1daWWH-0001lO-L6 for emacs-devel@gnu.org; Wed, 26 Jul 2017 20:19:13 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 5CDCC160697 for ; Wed, 26 Jul 2017 17:19:11 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id rzjddvRPECrq for ; Wed, 26 Jul 2017 17:19:10 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 880341606A5 for ; Wed, 26 Jul 2017 17:19:10 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id pHH20xAN5fpL for ; Wed, 26 Jul 2017 17:19:10 -0700 (PDT) Original-Received: from [192.168.1.9] (unknown [47.153.184.153]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 6CD7A160697 for ; Wed, 26 Jul 2017 17:19:10 -0700 (PDT) In-Reply-To: Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 131.179.128.68 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:217062 Archived-At: Ted Zlatanov wrote: > Can you give me a recipe to reproduce the problem with your distributio= n > and packages? I can reliably reproduce what appears to be this problem (or one closely = related=20 to it) on Ubuntu 16.04.2 LTS x86-64 when running Emacs master. My guess i= s that=20 GnuTLS silently changed the semantics of the affected C functions. The=20 problematic version of Ubuntu has GnuTLS 3.4.10. I do not observe a probl= em on=20 Fedora 26, which has GnuTLS 3.5.14. If my guess is right, a simple workar= ound=20 would be to not use the affected functions unless running GnuTLS 3.5.14 o= r later. "make check" reports: passed 6/7 test-gnutls-004-symmetric-ciphers Test test-gnutls-005-aead-ciphers backtrace: signal(ert-test-failed (((should (gnutls-tests-hexstring-equal input ert-fail(((should (gnutls-tests-hexstring-equal input reverse)) :for (if (unwind-protect (setq value-152 (apply fn-150 args-151)) (setq f (let (form-description-154) (if (unwind-protect (setq value-152 (app (let ((value-152 'ert-form-evaluation-aborted-153)) (let (form-descr (let ((fn-150 (function gnutls-tests-hexstring-equal)) (args-151 (li (let* ((iv (gnutls-tests-pad-or-trim iv (plist-get cplist :cipher-iv (while --dolist-tail-- (setq iv (car --dolist-tail--)) (gnutls-tests (let ((--dolist-tail-- (append ivs (list (list 'iv-auto ivsize)))) i (let* ((cplist (cdr (assq cipher (gnutls-ciphers)))) (key (gnutls-te (while --dolist-tail-- (setq key (car --dolist-tail--)) (let* ((cpli (let ((--dolist-tail-- keys) key) (while --dolist-tail-- (setq key ( (while --dolist-tail-- (setq auth (car --dolist-tail--)) (let ((--do (let ((--dolist-tail-- auths) auth) (while --dolist-tail-- (setq aut (while --dolist-tail-- (setq input (car --dolist-tail--)) (let ((--d (let ((--dolist-tail-- inputs) input) (while --dolist-tail-- (setq i (while --dolist-tail-- (setq cipher (car --dolist-tail--)) (let ((-- (let ((--dolist-tail-- ciphers) cipher) (while --dolist-tail-- (setq (let ((keys '("mykey" "mykey2")) (inputs gnutls-tests-mondo-strings) (lambda nil (let ((fn-120 (function memq)) (args-121 (list 'AEAD-cip ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test ert-run-test(#s(ert-test :name test-gnutls-005-aead-ciphers :documen ert-run-or-rerun-test(#s(ert--stats :selector (not (tag :expensive-t ert-run-tests((not (tag :expensive-test)) #f(compiled-function (even ert-run-tests-batch((not (tag :expensive-test))) ert-run-tests-batch-and-exit((not (tag :expensive-test))) eval((ert-run-tests-batch-and-exit '(not (tag :expensive-test)))) command-line-1(("-L" ":." "-l" "ert" "-l" "lisp/net/gnutls-tests.el" command-line() normal-top-level() Test test-gnutls-005-aead-ciphers condition: (ert-test-failed ((should (gnutls-tests-hexstring-equal input reverse)) :form (gnutls-tests-hexstring-equal " " "=20 \240~\267Q\377^?^@^@^P^@^@^@^@^@^@^@") :value nil)) FAILED 7/7 test-gnutls-005-aead-ciphers In the above report, the "^?^@^@^P^@^@^@^@^@^@^@" stands for a sequence o= f 11=20 control characters.