Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1249000iog; Sat, 18 Jun 2022 04:50:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sdKgM1Kpjq5S3hjEbxZVgTB+0c/nvvF8NhXu9KoHaaHj6jKUyad5fqLpWs4YKkqhmjsC1c X-Received: by 2002:a17:90a:fb93:b0:1e8:a809:af4d with SMTP id cp19-20020a17090afb9300b001e8a809af4dmr15840905pjb.7.1655553015327; Sat, 18 Jun 2022 04:50:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655553015; cv=none; d=google.com; s=arc-20160816; b=yxJfCrKL1IrJPh9jYI4EgeOhfinehwTt0kZ7Q5mvRR5O67YLBVHLA44nVNlB31gT7b nGjcTqyslJMnaXmRvDvQ+tPpnwODA2BY0Eg0GfapvbS/4eCOUuWe5FHbA72vV8VFvG+2 zmll1sFzgUQqd6DMRNWWWW8WWm1TZXyw2ZIG7NjoXs1no33SnAzjqQJYsSrz1od5eGyq Pqk1nMrlswEmG1u8CFdK4I2M8gQeHjpdz29Hl8za6Q5Yym1ZRJbwKbXfUS09T3mV4jSp LMtLULjD1ccfDWP1LDi061qquUB/84wqz7GP4B1iQy/mQKit1AKjXVPQC5PWF7bMjM+O XurQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Hym9LzNI73Pkfwv8+BwLYkWcdT/zKo9pVROhu4Sy1as=; b=HpIHs/cz/AcEiLTcMnurG1n2m3k+hf0TTcyWyk+w1Oca1WpdzyJQXzpZrKRyUi7Htc ni5u3OPLzpwpHz5WWu7Zyfguil4fqu3B+/I9MChSmZhDYOL51LN7OVvwEpePojjiOrB5 mfVuB7NmNVSyl3BkKfZzn0jmS+gcvUBGebdWQ5SiP5ednqqCnP4YsxTUYtbr0LxY4q8d pQAscpQJj+9voJSYU5mFRsEaryZjT2bXaCJmNyt3TiTnMWpQCwJMdsakHUZ3L6Tcso+F BYuzl0ne/c8VOqzcMbHjZC8jvW3MO/pWOXU+LPnc03n498edGCo1uoGKW3+s8RaBWOSg fFVA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c16-20020aa78810000000b00518e70cc8e5si8453339pfo.223.2022.06.18.04.49.52; Sat, 18 Jun 2022 04:50:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232514AbiFRLhO (ORCPT + 99 others); Sat, 18 Jun 2022 07:37:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50754 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230203AbiFRLhI (ORCPT ); Sat, 18 Jun 2022 07:37:08 -0400 Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4D721A041; Sat, 18 Jun 2022 04:37:05 -0700 (PDT) Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 4F29F1C0B8F; Sat, 18 Jun 2022 13:37:04 +0200 (CEST) Date: Sat, 18 Jun 2022 13:37:03 +0200 From: Pavel Machek To: Coly Li Cc: Pavel Machek , Naresh Kamboju , baijiaju1990@gmail.com, oslab@tsinghua.edu.cn, Jens Axboe , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, stable@vger.kernel.org, torvalds@linux-foundation.org, akpm@linux-foundation.org, linux@roeck-us.net, shuah@kernel.org, patches@kernelci.org, lkft-triage@lists.linaro.org, jonathanh@nvidia.com, f.fainelli@gmail.com, sudipm.mukherjee@gmail.com, slade@sladewatkins.com, Daniel Latypov , Brendan Higgins , kunit-dev@googlegroups.com, "open list:KERNEL SELFTEST FRAMEWORK" Subject: Re: [PATCH 5.17 000/772] 5.17.14-rc1 review Message-ID: <20220618113703.GA10888@duo.ucw.cz> References: <20220607164948.980838585@linuxfoundation.org> <20220618104925.GA3644@duo.ucw.cz> <6497730E-D4D2-4FB3-B95B-E1DAB2C2B287@suse.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pWyiEgJYm5f9v55/" Content-Disposition: inline In-Reply-To: <6497730E-D4D2-4FB3-B95B-E1DAB2C2B287@suse.de> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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-kernel@vger.kernel.org --pWyiEgJYm5f9v55/ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > >> Fixes: bc082a55d25c ("bcache: fix inaccurate io state for detached > > ... > >=20 > >> +++ b/drivers/md/bcache/request.c > >> @@ -1107,6 +1107,12 @@ static void detached_dev_do_request(struct > >> bcache_device *d, struct bio *bio, > >> * which would call closure_get(&dc->disk.cl) > >> */ > >> ddip =3D kzalloc(sizeof(struct detached_dev_io_private), GFP_NO= IO); > >> + if (!ddip) { > >> + bio->bi_status =3D BLK_STS_RESOURCE; > >> + bio->bi_end_io(bio); > >> + return; > >> + } > >> + > >> ddip->d =3D d; > >> /* Count on the bcache device */ > >> ddip->orig_bdev =3D orig_bdev; > >>=20 > >=20 > > So... for patch to make any difference, memory allocation has to fail > > and ddip has to be NULL. > >=20 > > Before the patch, it would oops in "ddip->d =3D d;". With the patch, you > > do some kind of error handling. Even if it is buggy, it should not do > > more harm than immediate oops. >=20 > I just receive this single email and don=E2=80=99t have any idea for the = context and what the problem is. Where can I see the whole conversation? >=20 Discussion happened on stable@vger.kernel.org mailing lists, archives should be easily available. Copy went to lkml, too. Best regards, Pavel --=20 People of Russia, stop Putin before his war on Ukraine escalates. --pWyiEgJYm5f9v55/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iFwEABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCYq243wAKCRAw5/Bqldv6 8i+2AJdGM7sgIlX9Cpj2tjxtHjOUGbD0AKC/EHB1Dm/JmiCnatyPGyqNLzQmGQ== =p/eF -----END PGP SIGNATURE----- --pWyiEgJYm5f9v55/--