Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp22060531rwd; Fri, 30 Jun 2023 03:24:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ75LSNVRgzQo/7mC7cM0u82aEwjhcA47lb0pCcDzKDHa1gDUKy/ipS/e8/4UYsf7dl4123Z X-Received: by 2002:a05:6a20:1456:b0:12c:76d1:bcde with SMTP id a22-20020a056a20145600b0012c76d1bcdemr2781111pzi.4.1688120652129; Fri, 30 Jun 2023 03:24:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688120652; cv=none; d=google.com; s=arc-20160816; b=waiIun18ZC9Mxx0NLSTHP8g8yk7pPfl7+5TUDSkqv9sWDPtJsgcOfO/ObSDY0TniKr AoazbYwAWlNyvohUp5waWWDvSubXyQjabeoVv54TBszeha7Lgi880aYcdw/mBwBUqfuB M9/qhLLKTlKitrvmukcJvQQZFDRJtcqW9cS8Ehwz81+Y2uIVEyCsLcg7LYsdQLFaILeW ZH2EIIOmmTsFQfRGuanNdEkPxwbbZrQ0Px4Q4dcxfYCtYSakQ4xFG9761sGiirN4kOR5 mS+iEU6vETyPuRnZOjxUdPz6d9AMZlgjLzbL4ikJnGwgvxTYlu1c2wxCTEZDOXMBAWRs QFEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=lPgv2wjYUy5dqqrgnRN0xY0ydItBAFdyM2i3QC0UNps=; fh=dF3P508AnYRvF20u4q0RnGadnFdVtbP0z+yK9e1wmP0=; b=KA+Es/rBlZv2SzC2GMUWMu9e1MCWcAiHN8sYx43d4h/DM6LQl9+Dcv3caJtj2cfW2W iE1U+UXUVxzn16AC+Lo84TJje9Syy9KuiYyS/qvy/KmPjLtnADB4XIa6GOgYWgdVQgZy +24HKYVvggEpd/M+gfJd1AEuFAbaurcgS4BFdYM6erCFWPwP7ntHlDlRzAove7/L2Qrp /pEmEmXltQSlaX8stwo+Z7Lz2ATDXDQrLTx0Pnnsggwz2fQny0Y9vFIRi33EBO0MTy1f htcZGb8r+LM8mXRoUK8VaIyw85RkQr2jfB1/fNs+o1nPxjooOZQrhVtGmXLFZcgrbEJT 8K3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=2bPx93Rp; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t9-20020a056a0021c900b00676cd4f7c1esi9619271pfj.390.2023.06.30.03.23.54; Fri, 30 Jun 2023 03:24:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=2bPx93Rp; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231140AbjF3KLG (ORCPT + 99 others); Fri, 30 Jun 2023 06:11:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232579AbjF3KLD (ORCPT ); Fri, 30 Jun 2023 06:11:03 -0400 Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BDB71FCB for ; Fri, 30 Jun 2023 03:11:02 -0700 (PDT) Received: by mail-io1-xd2d.google.com with SMTP id ca18e2360f4ac-78363cc070aso68738439f.1 for ; Fri, 30 Jun 2023 03:11:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1688119861; x=1690711861; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=lPgv2wjYUy5dqqrgnRN0xY0ydItBAFdyM2i3QC0UNps=; b=2bPx93RprgLnbiRKrzjsqjj+vifT+CCfzTNk3XaX+rnPFSveZGYvKMaWmHvF/aMr6J naURugz+pnX6tvBDsPl+f0qHAFPvpJGHUV6P9f4K2P1ZFOB6s7logboprIK4kfRBlz6q NgIE6RElJA+wlYPoTfSgMw5Pm5bSyPtgx8u/MDqvxaMlTZU6y11mo0aDQvxN/pQ5WQn3 6XSKjaLAGUy15l/czMvayi/tQQDxbzMVW3RLIvNCEha+VDDWLx3vgP5tA7BWvym617T7 4+Wm2JsvRG1+QTgq2DPP2L3n1KI7SFDkZVT5Mrt4eIyCWT/WmaKoRjaAiEx117+yBd1Q l5qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688119861; x=1690711861; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lPgv2wjYUy5dqqrgnRN0xY0ydItBAFdyM2i3QC0UNps=; b=k9s8B58f36R49aBJ+KyJ9zyOwuwC6XXBjv94SaGumMCGLZxAz3sMJ1IXcLIkOt+sMo pXWvCtjpOiAMYQ70n5vXofQroo7xiLTudbTvSpRMnDMuWH7uK9wb/7HDx5JYL+gD8qaj xQEitl08UD2unnkAAfxDGLGMfA8YPwJ/rQgIHimPh2kY6BY46ur3V6RISS/kxgHW6F3B qPGmJRp9OUzf19JxOs67RbYQE4H/NxlXnU05N+9xvnSoQ2d9fh/0lKv9XXkTilJlMkR3 ++W+Bd3Eq7wr9GdsXdztPP8VU5EK2/j27FRtp8WmW9e0xtBaMWMprbWqlaJ/vlmXhGwV nRKQ== X-Gm-Message-State: AC+VfDy5nAOteOvctFaUlHAYLQ6pJ+xUhGslqrRe38sIAKazNCCXy5JX jrrQKkEN1lWLr9bvlyP77DyxI1apFgnN+GU8fGzDxw== X-Received: by 2002:a6b:db16:0:b0:783:606b:740f with SMTP id t22-20020a6bdb16000000b00783606b740fmr2300876ioc.15.1688119861642; Fri, 30 Jun 2023 03:11:01 -0700 (PDT) MIME-Version: 1.0 References: <0000000000008a7ae505aef61db1@google.com> <20200911170150.GA889@sol.localdomain> <59e1d5c0-aedb-7b5b-f37f-0c20185d7e9b@I-love.SAKURA.ne.jp> In-Reply-To: From: Alexander Potapenko Date: Fri, 30 Jun 2023 12:10:25 +0200 Message-ID: Subject: Re: [PATCH] net: tls: enable __GFP_ZERO upon tls_init() To: Ard Biesheuvel Cc: Tetsuo Handa , Boris Pismenny , John Fastabend , Jakub Kicinski , herbert@gondor.apana.org.au, linux-crypto@vger.kernel.org, syzkaller-bugs@googlegroups.com, syzbot , Eric Biggers , Aviad Yehezkel , Daniel Borkmann , netdev@vger.kernel.org, "David S. Miller" , Eric Dumazet , Paolo Abeni Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Fri, Jun 30, 2023 at 12:02=E2=80=AFPM Ard Biesheuvel w= rote: > > On Fri, 30 Jun 2023 at 11:53, Tetsuo Handa > wrote: > > > > On 2023/06/30 18:36, Ard Biesheuvel wrote: > > > Why are you sending this now? > > > > Just because this is currently top crasher and I can reproduce locally. > > > > > Do you have a reproducer for this issue? > > > > Yes. https://syzkaller.appspot.com/text?tag=3DReproC&x=3D12931621900000= works. > > > > Could you please share your kernel config and the resulting kernel log > when running the reproducer? I'll try to reproduce locally as well, > and see if I can figure out what is going on in the crypto layer The config together with the repro is available at https://syzkaller.appspot.com/bug?extid=3D828dfc12440b4f6f305d, see the latest row of the "Crashes" table that contains a C repro. Config: https://syzkaller.appspot.com/text?tag=3DKernelConfig&x=3Dee5f7a0b2= e48ed66 Report: https://syzkaller.appspot.com/text?tag=3DCrashReport&x=3D1325260d90= 0000 Syz repro: https://syzkaller.appspot.com/text?tag=3DReproSyz&x=3D11af973e90= 0000 C repro: https://syzkaller.appspot.com/text?tag=3DReproC&x=3D163a1e45900000 The bug is reproducible for me locally as well (and Tetsuo's patch makes it disappear, although I have no opinion on its correctness).