From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 82202C46467 for ; Mon, 16 Jan 2023 14:33:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229930AbjAPOd5 (ORCPT ); Mon, 16 Jan 2023 09:33:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231956AbjAPOdD (ORCPT ); Mon, 16 Jan 2023 09:33:03 -0500 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 555262DE5C for ; Mon, 16 Jan 2023 06:13:44 -0800 (PST) Received: by mail-pl1-x636.google.com with SMTP id 20so3134985plo.3 for ; Mon, 16 Jan 2023 06:13:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=in-reply-to:references:cc:to:from:content-language:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=OsbOj6yUhZKGsZglN/7ZtsllvXK90TDUysjC9jmEGRQ=; b=pfArc4puK8y3kBJfc1MZfFdnooMRoZVsrLP3HW8BV/72VQHhWVshUN/4+qmLgCQxHl nyktbC9hyXRojhzJ7mMr4JhmRlTDcD6GcRYqYBv4o4xg3WGsYzhUDLavGU11cPAdWnxe 9ec1fE7WG3dFHy2gv+wtCpE1J+U3+1i4EY+F8RsFEBzbuQTb+oYpKgsB1bHOL6ZQ5VQL 7dvndcV8lqo4+5tU17mNwN6OZ23lIQS3csbDVTZj1m22OqkU+Mezv+ltz2y22qfZRZFg z04Sb7kAIvNAoKdl/8t43VEcGyaqHJWG9quN1WwejlGlEXiURVnW+ZeBrSWRWnK8V5la 25xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:references:cc:to:from:content-language:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=OsbOj6yUhZKGsZglN/7ZtsllvXK90TDUysjC9jmEGRQ=; b=D53ZGLpXm/B28NdqG9KLM90yZfuVjfNGSplfoAGDzg/8FMgd2dkZTQ3JQztIltLuk6 SA4XkJ3HZmv88djExPq20BNvRaFNjDceIf1aQzsR17g5dsU7mcX0XtUPfAH9zZJ6STuq 4D6fC1/39otVKEHLZiTU/kndQTNNw9tVKI1vrGL7A+QY6dAhDX6gc45WxUuZ1dbUTTht vZ3SNvPHsfyx7CvyK9FMawNtC6KuEdXC0UNbFIYRfdnbgZCwuLzdHdJw2XZwm73q2TXY Bs+GF/Ws/qkU4XstdHHcpX0G3NZlxVcpYmv6GwnwHewiVT7okQJ2D9LURpL/TYNkiJzs QHRQ== X-Gm-Message-State: AFqh2kqFq58ZHUJ0IPfeyKyR5Xp1FbE1aiVLZryf3A1FlVuHPoUZEp7O uZXAaCZNryV+OZWEq1fmNy8XBzfLkomGLakt X-Google-Smtp-Source: AMrXdXssRNpPbiIlmBYxbkzi05mryxVHBs2FklNga9Xb6mgB7I4+VqZWSYaN1THnCtStJcwNGMjG1A== X-Received: by 2002:a05:6a21:3a89:b0:b6:5687:17b1 with SMTP id zv9-20020a056a213a8900b000b6568717b1mr4831433pzb.4.1673878422014; Mon, 16 Jan 2023 06:13:42 -0800 (PST) Received: from [192.168.1.136] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id m2-20020a170902bb8200b001949c680b52sm1358758pls.193.2023.01.16.06.13.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Jan 2023 06:13:41 -0800 (PST) Content-Type: multipart/mixed; boundary="------------qgK8S7GbTKc0I1wM25WBpC6f" Message-ID: Date: Mon, 16 Jan 2023 07:13:40 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: =?UTF-8?Q?Re=3a_=5bregression=5d_Bug=c2=a0216932_-_io=5furing_with_?= =?UTF-8?Q?libvirt_cause_kernel_NULL_pointer_dereference_since_6=2e1=2e5?= Content-Language: en-US From: Jens Axboe To: Linux regressions mailing list Cc: "stable@vger.kernel.org" , io-uring@vger.kernel.org, LKML , "Sergey V." , Greg Kroah-Hartman References: <74347fe1-ac68-2661-500d-b87fab6994f7@leemhuis.info> In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: io-uring@vger.kernel.org This is a multi-part message in MIME format. --------------qgK8S7GbTKc0I1wM25WBpC6f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 1/16/23 6:42 AM, Jens Axboe wrote: > On 1/16/23 6:17?AM, Linux kernel regression tracking (Thorsten Leemhuis) wrote: >> Hi, this is your Linux kernel regression tracker. >> >> I noticed a regression report in bugzilla.kernel.org. As many (most?) >> kernel developer don't keep an eye on it, I decided to forward it by >> mail. Quoting from https://bugzilla.kernel.org/show_bug.cgi?id=216932 : > > Looks like: > > commit 6d47e0f6a535701134d950db65eb8fe1edf0b575 > Author: Jens Axboe > Date: Wed Jan 4 08:52:06 2023 -0700 > > block: don't allow splitting of a REQ_NOWAIT bio > > got picked up by stable, but not the required prep patch: > > > commit 613b14884b8595e20b9fac4126bf627313827fbe > Author: Jens Axboe > Date: Wed Jan 4 08:51:19 2023 -0700 > > block: handle bio_split_to_limits() NULL return > > Greg/team, can you pick the latter too? It'll pick cleanly for > 6.1-stable, not sure how far back the other patch has gone yet. Looked back, and 5.15 has it too, but the cherry-pick won't work on that kernel. Here's one for 5.15-stable that I verified crashes before this one, and works with it. Haven't done an allmodconfig yet... -- Jens Axboe --------------qgK8S7GbTKc0I1wM25WBpC6f Content-Type: text/x-patch; charset=UTF-8; name="0001-block-handle-bio_split_to_limits-NULL-return.patch" Content-Disposition: attachment; filename="0001-block-handle-bio_split_to_limits-NULL-return.patch" Content-Transfer-Encoding: base64 RnJvbSA4NTAwOTE1OTMxMjhjZGJjNzJjZTBmMDZmZjM1NjY1ZDdkNzA4YTVmIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBKZW5zIEF4Ym9lIDxheGJvZUBrZXJuZWwuZGs+CkRh dGU6IE1vbiwgMTYgSmFuIDIwMjMgMDc6MTE6MDQgLTA3MDAKU3ViamVjdDogW1BBVENIXSBi bG9jazogaGFuZGxlIGJpb19zcGxpdF90b19saW1pdHMoKSBOVUxMIHJldHVybgoKY29tbWl0 IDYxM2IxNDg4NGI4NTk1ZTIwYjlmYWM0MTI2YmY2MjczMTM4MjdmYmUgdXBzdHJlYW0uCgpU aGlzIGNhbid0IGhhcHBlbiByaWdodCBub3csIGJ1dCBpbiBwcmVwYXJhdGlvbiBmb3IgYWxs b3dpbmcKYmlvX3NwbGl0X3RvX2xpbWl0cygpIHJldHVybmluZyBOVUxMIGlmIGl0IGVuZGVk IHRoZSBiaW8sIGNoZWNrIGZvciBpdAppbiBhbGwgdGhlIGNhbGxlcnMuCgpTaWduZWQtb2Zm LWJ5OiBKZW5zIEF4Ym9lIDxheGJvZUBrZXJuZWwuZGs+Ci0tLQogYmxvY2svYmxrLW1lcmdl LmMgICAgICAgICAgICAgfCA0ICsrKy0KIGJsb2NrL2Jsay1tcS5jICAgICAgICAgICAgICAg IHwgMiArKwogZHJpdmVycy9ibG9jay9kcmJkL2RyYmRfcmVxLmMgfCAyICsrCiBkcml2ZXJz L2Jsb2NrL3BrdGNkdmQuYyAgICAgICB8IDIgKysKIGRyaXZlcnMvYmxvY2svcHMzdnJhbS5j ICAgICAgIHwgMiArKwogZHJpdmVycy9ibG9jay9yc3h4L2Rldi5jICAgICAgfCAyICsrCiBk cml2ZXJzL21kL21kLmM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