Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp64166pxa; Wed, 26 Aug 2020 05:02:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUGnAf6DVO3in7lUe4Gp76OG0rnUhbkNowUwy+hxUkIroUgXZQuXfkO6ZI6cxxtTEXd9Ba X-Received: by 2002:a17:906:da19:: with SMTP id fi25mr15039087ejb.405.1598443320373; Wed, 26 Aug 2020 05:02:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598443320; cv=none; d=google.com; s=arc-20160816; b=gKiQvyP25mBIk3bWROmAohrJeoL4wLWsWoFCfKtvgs00RXnLcKjOpFKDMtnhQfYlZb 3oOouiSdASbw2zGYz/X6Lobb7ZgcKxvrxVGtwTgWdayTm4fPxxKhJ4VWQZuiO+vEm4p8 DWgbBr+Uc1hrtnMgcLsSzrDyr5n9AQD+1OokzxqiM6J0G49nc3wJEJLu3xOwPxe/RtqD H2/O2VdRTJCm9Rdbmm8+bCgRSwEDxiSNqsBDL3b9F1qT1ARXVZCDni/jusM5rVDmyb9G jP6ppcLguVzWkv6YzlbYBq3YE2L/OER49wv/nmU7OXGQfS0C7QttnEwiJjbG4ABAW2tP JCvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=VLBB+53RM40v7mE4YV8up8RMiEKRw0mXHRp1/rZ/k1k=; b=p+k6PxfGIY9aM96EhXR+BJMnayVE4kIeixU0X5KH/ab+o2wcJjrBC6fmaXaFm8hioL v8010ZeWprTzPVrXnR+2PnUsdAa3xkVb6CEUiaMaEXchrupyzO1MFXB9v8BiL+2hULIN C1VGCsT9s1UGyOJlYOmKtzDHlabd74nbBXw31dBkt0Xh/7LdXvHrBOOGnllJlNzwZHJM +uKCn64OcSFeVe/d72T8q2ts5dJUmQX2F9gOPZisGxB6i0z+5H7kLd4CAkJ1GXyZZbGp qI2xRG8xuKGS20htIVRKQ0F2+yqs2OocKdbsBrjeqr9BN2a1rnIIlZ+Z7jbOqpBuWlz6 oCYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Qw1Rt0Ym; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r28si1013513edb.118.2020.08.26.05.01.34; Wed, 26 Aug 2020 05:02:00 -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; dkim=pass header.i=@kernel.org header.s=default header.b=Qw1Rt0Ym; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729224AbgHZMAR (ORCPT + 99 others); Wed, 26 Aug 2020 08:00:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:58822 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729363AbgHZMAK (ORCPT ); Wed, 26 Aug 2020 08:00:10 -0400 Received: from mail-ot1-f47.google.com (mail-ot1-f47.google.com [209.85.210.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D386C2080C; Wed, 26 Aug 2020 12:00:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598443205; bh=WdolUUSPQwrh8Aj5TJ8h5qeAtgIkR7u9c5nE+npwIIY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Qw1Rt0YmTj69jFWJ0biR73mZ980JOtuuj9zihJsBsJRTiPMfezuNNb2FQXeRTDFnN Dtb+xQ58UwcBov1EjWGpb4pfi3b90IRJ/qZq9Vk40+Ql6T9JI0EV56LZxxaAbVKwjG 0fC9YtlfKviSR4UCsBKcf2OXdYrufDZ809xWnue0= Received: by mail-ot1-f47.google.com with SMTP id i11so1255096otr.5; Wed, 26 Aug 2020 05:00:04 -0700 (PDT) X-Gm-Message-State: AOAM531pxbnjxCDwMUPdm0fG6xKBsR0eMACV62U8KTGZ1Nu+WQwltFlL /vxFK/esfvY7MfqTO5iuErrfPIG9/K+axZH0eGA= X-Received: by 2002:a9d:5189:: with SMTP id y9mr4290025otg.77.1598443204195; Wed, 26 Aug 2020 05:00:04 -0700 (PDT) MIME-Version: 1.0 References: <20200826055150.2753.90553@ml01.vlan13.01.org> <20200826114952.GA2375@gondor.apana.org.au> In-Reply-To: <20200826114952.GA2375@gondor.apana.org.au> From: Ard Biesheuvel Date: Wed, 26 Aug 2020 13:59:53 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Issue with iwd + Linux 5.8.3 + WPA Enterprise To: Herbert Xu Cc: Paul Menzel , Caleb Jorden , Sasha Levin , iwd@lists.01.org, "# 3.4.x" , Greg KH , LKML , "David S. Miller" , Linux Crypto Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Wed, 26 Aug 2020 at 13:50, Herbert Xu wrote: > > 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). > But that code uses a hash not an aead, afaict. > 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