Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1051129rwb; Wed, 9 Nov 2022 12:04:38 -0800 (PST) X-Google-Smtp-Source: AMsMyM6zO6CRcVNW+oj50WDRL9IEZelIo8ROG78scIdKL7qa0YMfOaJUKhakIAqZyE7F6BEZEymQ X-Received: by 2002:a17:906:3492:b0:7ad:14f8:7583 with SMTP id g18-20020a170906349200b007ad14f87583mr1742179ejb.185.1668024278649; Wed, 09 Nov 2022 12:04:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668024278; cv=none; d=google.com; s=arc-20160816; b=SglEImefj0kabGZCZG3g7pUYn9V6CIGETEA8Nx8NpJwsZkt9YEeaIfwNtNGWUHdP2z 7nZLK3nW1FCIloZO/uxGIRRWeDXwK0ve3EgixMhEmSYvyYoYRUGg27rrFrqHPS/FylFc +db6zYMlzLoBjbwlG40Yx15YeLYb+SGCdStXXYnCQ6m5XNqIigtXk8YBYRr3RZI0iyHZ beQ1jkxSbGp/Uiyc3JM2vPU07fotvGeK3rj/yiJFoCCbnvw4nwe6qFatgLg/UcbmUDjH ZC8JlAUBWi649qrCOBD6Pl9aJV/Wi6jz7yJm17dawN4ItzWB1Nddc0e26FdHJpwKftyX WmIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:cc:to:from:dkim-signature; bh=ji3jE3hXnmqLHI1Okuz207fU1hW+Zpv9OqIu7+ip1Ck=; b=YL5hQrcJVi8BoBJL7wtBgbSowxSQnnFjcGCN5lNIiWwr5ssHLzphUFCkguq8b3Z3wF 0R9KBb2GfKBlrTsYHagKL9zQGsxXq0jdsKsb7riRv9V2klpx5qb6hBaBYEvS84+s74yd grVdIHrzue117PeqM5hgCd0aT26cXWhEPw8Y+7dapSs2StCepyGZm8zSq18mRg50cuAc pVm8UUyGuka8Z798v+Em9iLlswU4xinyw5RGQCU8PoF+ZA0BASr1AnTB/6WzG5wa2aLb DHp/cb55fIUaTZd4JzbQ1I3HgiVddOiM7RDs9tPJcz9YlIv9HiYMPerV+7zjSuOH+tbR ggIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=Vgu5b8na; 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 h7-20020a056402280700b00463ab1bf95bsi19409057ede.94.2022.11.09.12.04.16; Wed, 09 Nov 2022 12:04:38 -0800 (PST) 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=@kernel-dk.20210112.gappssmtp.com header.s=20210112 header.b=Vgu5b8na; 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 S232072AbiKITsF (ORCPT + 92 others); Wed, 9 Nov 2022 14:48:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232036AbiKITro (ORCPT ); Wed, 9 Nov 2022 14:47:44 -0500 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34AE32FC0F for ; Wed, 9 Nov 2022 11:47:03 -0800 (PST) Received: by mail-pj1-x1036.google.com with SMTP id l22-20020a17090a3f1600b00212fbbcfb78so2836624pjc.3 for ; Wed, 09 Nov 2022 11:47:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:date:message-id:subject :references:in-reply-to:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ji3jE3hXnmqLHI1Okuz207fU1hW+Zpv9OqIu7+ip1Ck=; b=Vgu5b8na8f9uR+ZgJj6JxLwhacGOy6Yoa73w1yMHmqO2PFj/He6F9wOAQh9yZ8pVLQ Uz8pDO8JzQBt3sRzxCWnp4D2K8xrCEAAPh8kuV9Bajzpem6my64SztPPCrOw9c1JEogz YViIeiQ6JHCdWg4CQqe2k5WY7jOqpQttqixHpy1TDxBMaPDkYhWOjACazEpR1BVyhNID n/GMTyiY6veGtcZ0OkSN11IRnQXatefsfdh6eWg+kgtBo48v9F9bKQr0ITCKPYIkZD0P ew4OsXuQVLVy/q4n80AfYISgrxi9atbpBmlSzBY0M7pag+o3hcijk3AGH0c0cRoxznDP xU9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:date:message-id:subject :references:in-reply-to:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ji3jE3hXnmqLHI1Okuz207fU1hW+Zpv9OqIu7+ip1Ck=; b=jtEzGKNR/94VmS1knNF+xsG2vYUqsdphAMgwRuTZpNrHK3cV8rEP9hM+ObQZepRPh1 a5gmdTdUjc7swpQvwUJ8w8s0zBkU4kKQESlSrnJTo7dNIeOVy72Br4qYyKrfBir1ysVX I+UVnmn/BDOZorHXAMCW6dlR0UOV8UisbP+Q2btHGxO07m7cDqgPpAieySICS10z24b3 aW/yRVpB4t/WwTBnACgrLs+9zpyPp/+s+EiYzn4EwgRRlsonv5AVFS4EQsfIIlabwFp4 QqxndD37hvd5fhDhRlyTMnkUWRbMQYMMQignNAuc+GO0K+um6WaZeyYDkYsaLBPjsXht 8y4w== X-Gm-Message-State: ACrzQf3xNvOIBZAV31UBU2EUKqOpcdu/sRjiZLb4XxTKAngO26IEAAq4 Nxv3vN1x/SjRsTAQivLFBrPIIg== X-Received: by 2002:a17:90a:77c6:b0:216:92a9:fd60 with SMTP id e6-20020a17090a77c600b0021692a9fd60mr1001916pjs.24.1668023222666; Wed, 09 Nov 2022 11:47:02 -0800 (PST) Received: from [127.0.0.1] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id l5-20020a170903244500b0017f48a9e2d6sm9514355pls.292.2022.11.09.11.47.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Nov 2022 11:47:02 -0800 (PST) From: Jens Axboe To: Khazhismel Kumykov , Paolo Valente Cc: Khazhismel Kumykov , linux-kernel@vger.kernel.org, Jan Kara , linux-block@vger.kernel.org, Yu Kuai In-Reply-To: <20221108181030.1611703-1-khazhy@google.com> References: <20221103013937.603626-1-khazhy@google.com> <20221108181030.1611703-1-khazhy@google.com> Subject: Re: [PATCH 1/2] bfq: fix waker_bfqq inconsistency crash Message-Id: <166802322145.66062.9011104820940557467.b4-ty@kernel.dk> Date: Wed, 09 Nov 2022 12:47:01 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailer: b4 0.11.0-dev-d9ed3 X-Spam-Status: No, score=1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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 On Tue, 8 Nov 2022 10:10:29 -0800, Khazhismel Kumykov wrote: > This fixes crashes in bfq_add_bfqq_busy due to waker_bfqq being NULL, > but woken_list_node still being hashed. This would happen when > bfq_init_rq() expects a brand new allocated queue to be returned from > bfq_get_bfqq_handle_split() and unconditionally updates waker_bfqq > without resetting woken_list_node. Since we can always return oom_bfqq > when attempting to allocate, we cannot assume waker_bfqq starts as NULL. > > [...] Applied, thanks! [1/2] bfq: fix waker_bfqq inconsistency crash commit: a1795c2ccb1e4c49220d2a0d381540024d71647c [2/2] bfq: ignore oom_bfqq in bfq_check_waker commit: 99771d73ff4539f2337b84917f4792abf0d8931b Best regards, -- Jens Axboe