Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp57981pxa; Wed, 26 Aug 2020 04:51:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1joY5kTe6aw8166jpvl3FvFl9rU0uMwVJebC29TEaRqKPJPqzYECqWofZhgtEN63QC2C5 X-Received: by 2002:a17:906:bb06:: with SMTP id jz6mr15812912ejb.248.1598442696872; Wed, 26 Aug 2020 04:51:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598442696; cv=none; d=google.com; s=arc-20160816; b=rFDjjybfPIhQ+IU25cL31nodNiaM1x2wILQkcAK+g90fxJyUXpGQ8uEYx667g1co9H tA69zEcQRL2h+u6/mUglUo8ZOMEksHj9/V3dTRgkIpzVnztnnKq3X6fM/TtUkInPggvI m35vKiRXxnWcylpuTNFVQw55130O6h+1R7e6JAx3R3UKia81ZJ58umd8BCnHlK8KWegE HYa/PrQFhANhkI/c2z4XU5Aw5exgUshxR3u/zRdDOiF6oX1HYGMUTHK85/H2NRnTL8fd VWdSqgzhLv85hl2HabZnmNSoBZklO3QSdlSGAKmNtTspVSWuxur8M5xmhStUmrX7/Lp2 9qEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=nI7u4ZRjHoNPd3o8dJpk1YPUOpwFIDkcn9r5ixoUWw0=; b=kR6JkDqiHrCw4hYcQnLvZw/e5xcOMl0bvhkYfM9HYaBGkbCqcpJV9GSKTvCyH//P3P a0PBhfTzMKJNd2HvoeY0PQyig7OSpIesKfh9wKmoaGaShFJMaJzmapiYHvQhMYa/wbiR 8oazAeHkPhGSHTw842LV3zF7dm1v+fCqXoeJZJ5ieBqrIAmhaCaDTWYBfFVSPQKnZ3i0 m3ptFMCjsqpVnRVTsQhgEnLTf+xE0HvTNs27UxLRiUF4SGMKnHvqP5HP5V5E5aRj9S9X 2QlRCbhAqxXon/y4IJcwYtqzwzA3HI2pmnfZMH5ifQkA7Fo9XF8Rr/lBSqaGfgz09XhD D3kA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ch15si1407878ejb.539.2020.08.26.04.51.05; Wed, 26 Aug 2020 04:51:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728823AbgHZLuS (ORCPT + 99 others); Wed, 26 Aug 2020 07:50:18 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:33050 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728802AbgHZLuR (ORCPT ); Wed, 26 Aug 2020 07:50:17 -0400 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.0.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1kAtw8-0002Yd-HZ; Wed, 26 Aug 2020 21:49:53 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Wed, 26 Aug 2020 21:49:52 +1000 Date: Wed, 26 Aug 2020 21:49:52 +1000 From: Herbert Xu To: Ard Biesheuvel Cc: Paul Menzel , Caleb Jorden , Sasha Levin , iwd@lists.01.org, "# 3.4.x" , Greg KH , LKML , "David S. Miller" , Linux Crypto Mailing List Subject: Re: Issue with iwd + Linux 5.8.3 + WPA Enterprise Message-ID: <20200826114952.GA2375@gondor.apana.org.au> References: <20200826055150.2753.90553@ml01.vlan13.01.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, Aug 26, 2020 at 12:40:14PM +0200, Ard Biesheuvel wrote: > > It would be helpful if someone could explain for the non-mac80211 > enlightened readers how iwd's EAP-PEAPv0 + MSCHAPv2 support relies on > the algif_aead socket interface, and which AEAD algorithms it uses. I > assume this is part of libell? I see the problem. libell/ell/checksum.c doesn't clear the MSG_MORE flag before doing the recv(2). I was hoping nobody out there was doing this but obviously I've been proven wrong. So what I'm going to do is to specifically allow this case of a string of sendmsg(2)'s with MSG_MORE folloed by a recvmsg(2) in the same thread. I'll add a WARN_ON_ONCE so user-space can eventually be fixed. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt