Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1264375iog; Sat, 18 Jun 2022 05:11:11 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vF+frUX9CkdIADj1qGD8XxX1512dDKbyW2DD7jUVx7mPxX0xrI/4eyg2j9ETU54BSc5u0n X-Received: by 2002:a17:90b:3806:b0:1e2:adc5:d192 with SMTP id mq6-20020a17090b380600b001e2adc5d192mr16155444pjb.223.1655554270924; Sat, 18 Jun 2022 05:11:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655554270; cv=none; d=google.com; s=arc-20160816; b=lMe/Zi603lUD5tcieqEJD3X2sCXi3tI/sEjQqAsXssDk9NMIeSzhIQuJE7FXUTy+4K VHcJ0EQZVdR3S4da6zMib1HmklkW8E9px2n5dIgTS+t97ePXX4AEpqRLsxhR+DbvwUTf wUlCta7VVKt5PZY1Jmj4nYGLpWqumnXZaTRefqzlAVqUl7TTT4WTEEBxYz/DX07soZ5g PvNAlAc60imbnWCxyebgJp3U4c7SsJ2Plq209jF04Wnw/9Hy4RMTEMLEpmwuUHVRas4I 8yJgdd/8x0SLlUtpYMdsUWd5j/9P/7Z2+/it6P5cnf2q+ucsvDejEIokl2h0DdgipO3Y xdMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature:dkim-signature; bh=+5gUbZKbWvo49PKciu8+d42cmuCqpds779UDQWH0oCE=; b=gc/j3chVB9ZdtcrLHsZHzUvWPPh+DZB+vHl61ryrybjq5QS+cQVCKf/7F/0Mugijr8 cRLChO8mWHMuPJbsEC6pB69aV9mXJV53O2nN0GXPlCrn6BiKTv2w3iNKJzcYxIYe4rCY oYvAgCu3jp1gjYdQnyOcnlCSjRaSFdLcSUD9T4OjHStuMNNcTT1Yx/m31mpBgFu7PpDq Pr8SjJZRvfEIdc2g4Ndrmd+AGHpikFiGvkuRjTERNOAZRqotUcDMDlPLnLHT4d1lmpQ+ WwkL6PSyUTlcOGREHFvRpcm48v8qi1G+ZCCOq94DK67CVIzEkjpQ88hzR+p85cyxJJDI pbHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Pgu8AR6w; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ot17-20020a17090b3b5100b001e864bcf61esi10804660pjb.101.2022.06.18.05.10.51; Sat, 18 Jun 2022 05:11:10 -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; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Pgu8AR6w; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233929AbiFRL5P (ORCPT + 99 others); Sat, 18 Jun 2022 07:57:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230213AbiFRL5N (ORCPT ); Sat, 18 Jun 2022 07:57:13 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1A9211147; Sat, 18 Jun 2022 04:57:12 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 29E8121B71; Sat, 18 Jun 2022 11:57:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1655553431; h=from:from:reply-to: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=+5gUbZKbWvo49PKciu8+d42cmuCqpds779UDQWH0oCE=; b=Pgu8AR6w8Xv6QWo5qaWBLpqWYCTOdD5aQPMXFgzazcZNJ0kvYbnkg4LRmb6K+aac5Eqx5Z WUi2wknXg9HHUQSCZCaLUnzA+J2ARMC+28+O0p4N8LDVleO8IjeBSF+fyW62zkhrOCvJol aJzS684I6rFeixMLoTGjKz2MNkFDd3U= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1655553431; h=from:from:reply-to: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=+5gUbZKbWvo49PKciu8+d42cmuCqpds779UDQWH0oCE=; b=HSs0Dl61dRIojTsbIKQfMSltuEKzoRGyuusjofYKmIzRNd4OWaXE4kcozDeZqCmHnNz6+y WxD8rseTNeA5KnDQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 53B441342C; Sat, 18 Jun 2022 11:57:04 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id /3yUCJC9rWL8OwAAMHmgww (envelope-from ); Sat, 18 Jun 2022 11:57:04 +0000 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\)) Subject: Re: [PATCH 5.17 000/772] 5.17.14-rc1 review From: Coly Li In-Reply-To: <20220618113703.GA10888@duo.ucw.cz> Date: Sat, 18 Jun 2022 19:57:01 +0800 Cc: Pavel Machek , Naresh Kamboju , baijiaju1990@gmail.com, oslab@tsinghua.edu.cn, Jens Axboe , 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" Content-Transfer-Encoding: quoted-printable Message-Id: <186E5519-55D4-48EE-8599-2C863BEC3918@suse.de> References: <20220607164948.980838585@linuxfoundation.org> <20220618104925.GA3644@duo.ucw.cz> <6497730E-D4D2-4FB3-B95B-E1DAB2C2B287@suse.de> <20220618113703.GA10888@duo.ucw.cz> To: Pavel Machek , Greg Kroah-Hartman X-Mailer: Apple Mail (2.3696.100.31) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,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 > 2022=E5=B9=B46=E6=9C=8818=E6=97=A5 19:37=EF=BC=8CPavel Machek = =E5=86=99=E9=81=93=EF=BC=9A >=20 > Hi! >=20 >>>> 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_NOIO); >>>> + 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 >=20 > Discussion happened on stable@vger.kernel.org mailing lists, archives > should be easily available. Copy went to lkml, too. Hi Pavel and Greg, Thanks for the hint, I see the context. I cannot tell the direct reason = of the kfence regression, but it is worthy to have this patch in, - commit 7d6b902ea0e0 ("bcache: memset on stack variables in = bch_btree_check() and bch_sectors_dirty_init()=E2=80=9D) I am not sure whether it is directly related to the kfence issue, it = corrects potential unexpected stack state in some condition. Hope it may = help a bit. Thanks. Coly Li=