Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29691652rwd; Wed, 5 Jul 2023 16:11:40 -0700 (PDT) X-Google-Smtp-Source: APBJJlHLx6lyDQZcG29C9DZChzaBhQ1ipO0Etk1dh8IkgvH5nLwh77iicG+VnYeOJNpVNJK5JLoP X-Received: by 2002:a05:6a20:8e2a:b0:125:6443:4eb8 with SMTP id y42-20020a056a208e2a00b0012564434eb8mr363676pzj.5.1688598700183; Wed, 05 Jul 2023 16:11:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688598700; cv=none; d=google.com; s=arc-20160816; b=zD1TSqtv4MPYlY8hIFj0eXQVvtJMWpSvFSkNWyY3doXvGq5bZW00/OtrrRntze/DPs wHNz3HyCzW5KMwhrPMUf17fYkR54m+Y0wg08ZKkZOgTTENyNeWYLX3kzr5Bq2inTB0yA EkkR+oSSUFsQL5VHf4HMKDrwBlrFOxtGBqyd4TdhgxqjqTBb7dx73omButcFP2dEsY7P 936seTX3HnjruexEqbTfPwhjJh/0CJrz9ggPV4OXj9ejscI+8gbCqSZFhaYbFurqX/as yzD9Kv37FUXzkWYhAcl9nIt3WkSdRnYyIbmQbwExYg0UxSspOiV3PEJy2+7BJZeCBLUf zuYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-transfer-encoding :content-id:mime-version:subject:cc:to:references:in-reply-to:from :organization:dkim-signature; bh=lwuQxAK6zqLGBR5M40mwPHJnWPOJGuE2YbKWU1Q6hD4=; fh=WZQzD+5t94538ShDWPVnfNFrRS7QMC9y62r4INvEyIU=; b=oxd7XGK/u8PWfanbXqhYXsLx9YzyGlU1w9FDF+jFT4uyZOKmp8GyT4jyCK5CrZ9TFG r9NKB9yh8J9hfjOy0mUJeFrAGZouYquTYp8+hA4ZvUfLYbl4RQjrLHYoRC3zM52sFqSy JmYuccoQhq99DlA0ChJMvZ4QH2gQT/8Enq9dBi9Hk/QGuZHrXxelZNhEQEljUJhzBjwS AIOsauUSDZ0Cy0XWzYDG/2tg8L74Hh+jBjAZ+cLLAIuXdikTu8ufdqOB40mp1bljVzCI cbuI15ZF/lxCBVxiPJGwDIS4ExZNvOmWrOBbAKAoutioz3i9Ws/7P8leawIIn5Rr1/dE 8gsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PEDAtDJi; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h21-20020a63c015000000b0055b0dcca8b8si169394pgg.612.2023.07.05.16.11.18; Wed, 05 Jul 2023 16:11:40 -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=@redhat.com header.s=mimecast20190719 header.b=PEDAtDJi; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232076AbjGEXG6 (ORCPT + 99 others); Wed, 5 Jul 2023 19:06:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230180AbjGEXGz (ORCPT ); Wed, 5 Jul 2023 19:06:55 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AD55102 for ; Wed, 5 Jul 2023 16:06:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688598369; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lwuQxAK6zqLGBR5M40mwPHJnWPOJGuE2YbKWU1Q6hD4=; b=PEDAtDJihGQp4TlCYvsWBzgyIYPj4boMitZr6aqIA/WVVZGYhztXEcaOBxf+a081nZiYSj bM6X8w23n43Ffr0q5+t8iuNoWsbkwtel4Tlr7qcS5/nRQ0HwXJKvinGy8siycap7OBAYFT qEmgwKNtICU8XTxyajsgnhIZdgFhiEc= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-393-0pGMGBMBMHiYAe5PpGyDbA-1; Wed, 05 Jul 2023 19:06:04 -0400 X-MC-Unique: 0pGMGBMBMHiYAe5PpGyDbA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 09F6B101A528; Wed, 5 Jul 2023 23:06:04 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.195]) by smtp.corp.redhat.com (Postfix) with ESMTP id 246594087C6A; Wed, 5 Jul 2023 23:06:03 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: <0000000000003f2db705ffc133d2@google.com> To: Herbert Xu Cc: dhowells@redhat.com, syzbot , davem@davemloft.net, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [crypto?] WARNING in extract_iter_to_sg MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1869451.1688598362.1@warthog.procyon.org.uk> Content-Transfer-Encoding: quoted-printable Date: Thu, 06 Jul 2023 00:06:02 +0100 Message-ID: <1869452.1688598362@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 > CPU: 0 PID: 26699 Comm: syz-executor.2 Not tainted 6.4.0-rc7-syzkaller-0= 1944-g3674fbf0451d #0 Looking at the version string, this is from net-next before the merger wit= h Linus's tree after the point where Linus had merged: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/log/= ?h=3Dfor-6.5/splice > extract_iter_to_sg(3) unsupported This is ITER_PIPE (type 3) before is removed by: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/= ?id=3D3fc40265ae2b48a7475c41c5c0b256374c419f4b =46rom that point on ITER_XARRAY is type 3 and there's a case for that in extract_iter_to_sg(). So the fix for this is to merge it with the splice tree - which Linus has already done, so this should be fixed upstream. With hindsight, I should've used iov_iter_get_pages*() rather than iov_iter_extract_pages() and extract_iter_to_sg() in the networking code recvmsg() path until after the merge. David