Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp15128472rwb; Mon, 28 Nov 2022 08:14:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf7mcCu2psFVq0bStcxbVFI95wDYavMRYGc1UwSEaSyllLTdNvgewOaFDl9gvu803g9APVVa X-Received: by 2002:a17:906:a157:b0:7a5:7e25:5b11 with SMTP id bu23-20020a170906a15700b007a57e255b11mr43513600ejb.254.1669652089986; Mon, 28 Nov 2022 08:14:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669652089; cv=none; d=google.com; s=arc-20160816; b=rOotDePEvP4+sHm3ZQh2XK6J3h7UF1m6dibD7GGrxi4/oJ0Fm0jMyr77KDMeYRFzkj zlG8J9fUr7kfeMUoUMcuxSSsNzzSdor3Wu/fG8xQpL93avPkpojsQpanQqr7yTbr8KAP D4TQbtuGCTJwmEsO8XDrvmpp5MmcUgDsW4yC2UTkI6hsLr7tbgZTzcC/d8fOAbiu1HHA WoAvZlHq6nZuhphd5PwoR+h9FfUw8J36iCiiAp085gll0f9r23Dnv4UuDUSGGAIdcqvP SBg/9+CKxz9kaIk3mPW6KMZR9o6Uj5y5epkm1sJfaMWKUwr2DHjRYcEhbiyXFnRA5FuZ 6fIA== 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 :message-id:date:subject:cc:to:from; bh=8ANZ1ODQzriGg8XOUQJiHjEJLWh9pu359xwSDZOtV10=; b=FonDJRoYz6q3d/qXWlAM68LS9Qwa2LZq7/G9MfmdFOSXcWpe/vZq5P86kxDNvQ6rmT eUkCHtCin+19/6v6+2Lm7Dpwzidt83x72arSk6nK06clmHIkiPVlpjhQNBWHffUHscOS FrcAlEM/vi7zQRjAP5dd9sJHlVvrEVCMsx2ElMA1f8qpy8OlJH8TTW+CdsfM6JCVdiva Bk8rapUqqfOgMJ47X5MoGGkXpM9H1lQNA60njEWmHH3+cFFLjKa3AGfUjFGAYkBsO2Zc TN1Yk/qplR0l4TYqIKkdrrnE6WAH2brOHyjgueMCyOE4gVT4AOaXos/phO11T9H1kiBy OExw== 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y8-20020a056402270800b0046abe65b8f7si7842085edd.159.2022.11.28.08.14.26; Mon, 28 Nov 2022 08:14:49 -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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231376AbiK1PXc (ORCPT + 84 others); Mon, 28 Nov 2022 10:23:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230057AbiK1PXa (ORCPT ); Mon, 28 Nov 2022 10:23:30 -0500 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B5DFDF5; Mon, 28 Nov 2022 07:23:29 -0800 (PST) Received: from dggpeml500025.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4NLTf60YLQzqSfN; Mon, 28 Nov 2022 23:19:26 +0800 (CST) Received: from dggpeml500003.china.huawei.com (7.185.36.200) by dggpeml500025.china.huawei.com (7.185.36.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 28 Nov 2022 23:23:26 +0800 Received: from huawei.com (10.175.127.227) by dggpeml500003.china.huawei.com (7.185.36.200) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 28 Nov 2022 23:23:26 +0800 From: Li Nan To: , , CC: , , , , , Subject: [PATCH -next 0/8] iocost bugfix Date: Mon, 28 Nov 2022 23:44:26 +0800 Message-ID: <20221128154434.4177442-1-linan122@huawei.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.127.227] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpeml500003.china.huawei.com (7.185.36.200) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 This patchset fixes problem in iocost. It contains Yu Kuai's patchset he sent before because of conflicts. Li Nan (4): blk-iocost: fix divide by 0 error in calc_lcoefs() blk-iocost: change div64_u64 to DIV64_U64_ROUND_UP in ioc_refresh_params() blk-iocost: fix possible UAF in ioc_pd_free block: fix null-pointer dereference in ioc_pd_init Yu Kuai (4): blk-iocost: cleanup ioc_qos_write() and ioc_cost_model_write() blk-iocost: improve hanlder of match_u64() blk-iocost: don't allow to configure bio based device blk-iocost: read params inside lock in sysfs apis block/blk-iocost.c | 114 ++++++++++++++++++++++++++++----------------- block/genhd.c | 2 +- 2 files changed, 73 insertions(+), 43 deletions(-) -- 2.31.1