Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3208749ybl; Mon, 19 Aug 2019 14:13:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqxjdjV3Aj0sXa2UDOWOgwjE6t3oW4RdFhzL4cXncRIpj6/wK/gLdF/33LoB6ImSYeRyc4+9 X-Received: by 2002:a17:90a:f011:: with SMTP id bt17mr22694588pjb.21.1566249201267; Mon, 19 Aug 2019 14:13:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566249201; cv=none; d=google.com; s=arc-20160816; b=XoelACfqaTbbWY4zmjE6zffAlKayH57ExYSDqqewlk6lnOZYjI0+FWBCNkCA8Jyr66 L6IEiC+zCfny8Jk/aTmLHGkoaePrJTk1o1rMXlZOa5v5vKoR6eFJWaBx/W4aScVrqDUt bUnMtSEdtUxwxG2iTCz7Ojgc5NS39myCgRiTX3k0EY76Rlbu2qyatNwhdjqvt7m+mI27 fu5UE/GxkRsoLBi6GmMsS3lCJFgBVRysFTA2eHuEMfFaO9efKhpbdrPSpSIlBZDaGzV9 qkQ05EN4Annt3DAZNw5L69QtvL1+o0kcdFGzQlJX/INLVuDV1CEpRhiO9SV3wgq+kZSZ qfrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=zcVnTkmaXZnvPzlslFpXTMQ+JyK8DgeCTABL7ZZHlNU=; b=fGKUECdJEEaX8aSNTamQt3yY5xcZ+E5c+f/zsAVfBLqpH+w9FqU6+IDODNUpuoOwD0 dDz1/x9GHcfMjAhet8off846xORCfyChT7/Btai0XeVk8ljfrN/KU1GvMoxDVjnr3Q9y 1p/BDgqgzadslKvS8mBdIg2bKb0MRscUVQdi1oHzC1wxFjyR7YEe/zjBu/6iFkvSkgIx 7UDTV6K4eGtLgRm8+bUWl1y4s0sqi5dwhGf8iIJhUpZZptywAJ9BHqMWuU4muogWrYcm WkHIwBJANew4NVsHhU0TZgBuEakDBvKQs40iQhoK1RR2ZVh7oODAgWAQOBpjqGt26rjw NEcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=VneBgzz0; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y187si10438022pgd.66.2019.08.19.14.13.07; Mon, 19 Aug 2019 14:13:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=VneBgzz0; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728353AbfHSVNF (ORCPT + 99 others); Mon, 19 Aug 2019 17:13:05 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:34262 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728014AbfHSVNF (ORCPT ); Mon, 19 Aug 2019 17:13:05 -0400 Received: by mail-qk1-f196.google.com with SMTP id m10so2725362qkk.1 for ; Mon, 19 Aug 2019 14:13:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=zcVnTkmaXZnvPzlslFpXTMQ+JyK8DgeCTABL7ZZHlNU=; b=VneBgzz0zlwlbD+l25IEANd6GZochFewROcYaBQgFYjKrQTYV7b9Enr3aOVpRzYlHD uCCmm6sRFPRnhKlctdECpZ/4OkRUTWuY7XvzXvfY4FBNOXxZP0urwnOgzmgszTbPPUqu I7offB5XiFLr76whtKbv/7zyhDKvitkCTGSMj0A4cJi44sl2i0U6qked42BxpM00dzdI kQgTrGUgQO5oCuBA1WQQvUYYa1hGWG5hoOPJ75v3LkR3r6a85fE0IBGm97o9IUpHHamk ztNpnA3Wax0FBRwaUJOoFmMfWLXhMTTvhx0Mcg3FzRYDekOWNAtbo03YZDNRf3CE+s8J 5YSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=zcVnTkmaXZnvPzlslFpXTMQ+JyK8DgeCTABL7ZZHlNU=; b=jLy7ozfcWni9a/qkaocFvpir+Oss9MIpM2Y2XNVHzvI9ipH006lXmKHLUE1kkoT7mR X1WxgsucU/Y1auVlMIxzxwv9wNU1/6EAKWaJxTnO0upEdhr3DkksOnfsiGDiQf2b/PDD ZhxcbH+lHbNA6zUYm7P40Ykg3GXiMfn40OtwvO1OL3WQNOZ0nEN1YXiYBVyPN8G2vmr5 qfOsahfq1K0CrUTC3AIGOCZdBbeC5IV4F4Ej1D4RZt/+jSOcppAPID3S7WeXuSzjRvCY C5QBEN63QzIKj3Is5vPTnA0OkaL3skG3SWsm0hRjLkPtBIj2AIIWMyX/e+esLZ0hBX5O kIqg== X-Gm-Message-State: APjAAAVjunb0i9lun70+Msv2BOXsNUKd2V8N2DiO5TiA6p089r/YlQO2 BPPT9mIUwO7jZf4tkvVVR9uD4w== X-Received: by 2002:a05:620a:4c8:: with SMTP id 8mr21380405qks.366.1566249184021; Mon, 19 Aug 2019 14:13:04 -0700 (PDT) Received: from cakuba.netronome.com ([66.60.152.14]) by smtp.gmail.com with ESMTPSA id o29sm8527788qtf.19.2019.08.19.14.13.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Aug 2019 14:13:03 -0700 (PDT) Date: Mon, 19 Aug 2019 14:12:55 -0700 From: Jakub Kicinski To: Eric Biggers Cc: Steffen Klassert , syzbot , ast@kernel.org, aviadye@mellanox.com, borisp@mellanox.com, bpf@vger.kernel.org, daniel@iogearbox.net, davejwatson@fb.com, davem@davemloft.net, hdanton@sina.com, john.fastabend@gmail.com, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com, herbert@gondor.apana.org.au, linux-crypto@vger.kernel.org Subject: Re: INFO: task hung in tls_sw_release_resources_tx Message-ID: <20190819141255.010a323a@cakuba.netronome.com> In-Reply-To: <20190817054743.GE8209@sol.localdomain> References: <000000000000523ea3059025b11d@google.com> <000000000000e75f1805902bb919@google.com> <20190816190234.2aaab5b6@cakuba.netronome.com> <20190817054743.GE8209@sol.localdomain> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, 16 Aug 2019 22:47:43 -0700, Eric Biggers wrote: > [+Steffen, who is the maintainer of pcrypt] > > On Fri, Aug 16, 2019 at 07:02:34PM -0700, Jakub Kicinski wrote: > > On Thu, 15 Aug 2019 11:06:00 -0700, syzbot wrote: > > > syzbot has bisected this bug to: > > > > > > commit 130b392c6cd6b2aed1b7eb32253d4920babb4891 > > > Author: Dave Watson > > > Date: Wed Jan 30 21:58:31 2019 +0000 > > > > > > net: tls: Add tls 1.3 support > > > > > > bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=118e8dee600000 > > > start commit: 6d5afe20 sctp: fix memleak in sctp_send_reset_streams > > > git tree: net > > > final crash: https://syzkaller.appspot.com/x/report.txt?x=138e8dee600000 > > > console output: https://syzkaller.appspot.com/x/log.txt?x=158e8dee600000 > > > kernel config: https://syzkaller.appspot.com/x/.config?x=a4c9e9f08e9e8960 > > > dashboard link: https://syzkaller.appspot.com/bug?extid=6a9ff159672dfbb41c95 > > > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17cb0502600000 > > > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14d5dc22600000 > > > > > > Reported-by: syzbot+6a9ff159672dfbb41c95@syzkaller.appspotmail.com > > > Fixes: 130b392c6cd6 ("net: tls: Add tls 1.3 support") > > > > > > For information about bisection process see: https://goo.gl/tpsmEJ#bisection > > > > CC Herbert, linux-crypto > > > > This is got to be something in the crypto code :S > > > > The test case opens a ktls socket and back log writes to it. > > Then it opens a AF_ALG socket, binds "pcrypt(gcm(aes))" and dies. > > > > The ktls socket upon close waits for async crypto callbacks, but they > > never come. If I unset CRYPTO_USER_API_AEAD or change the alg to bind > > to "gcm(aes)" the bug does not trigger. > > > > Any suggestions? > > Seeing as pcrypt is involved and this is a "task hung" bug, this is probably > caused by the recursive pcrypt deadlock, which is yet to be fixed. > > See the original thread for more info: > > https://groups.google.com/forum/#!msg/syzkaller-bugs/1_CXUd3gBcg/BvsRLH0lAgAJ > > And the syzbot dashboard link: > > https://syzkaller.appspot.com/bug?id=178f2528d10720d563091fb51dceb4cb20f75525 > > Let's tell syzbot this is a duplicate: > > #syz dup: INFO: task hung in aead_recvmsg Thanks for the suggestion Eric! Looks like the dup didn't tickle syzbot the right way. Let me retry sending this directly to the original report.