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 740C4C4167B for ; Fri, 25 Nov 2022 09:15:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229778AbiKYJO4 (ORCPT ); Fri, 25 Nov 2022 04:14:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbiKYJOu (ORCPT ); Fri, 25 Nov 2022 04:14:50 -0500 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CC421AD85; Fri, 25 Nov 2022 01:14:49 -0800 (PST) Received: from dggpemm500020.china.huawei.com (unknown [172.30.72.55]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4NJTh62yyjz15MqW; Fri, 25 Nov 2022 17:14:14 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggpemm500020.china.huawei.com (7.185.36.49) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 25 Nov 2022 17:14:47 +0800 Received: from thunder-town.china.huawei.com (10.174.178.55) by dggpemm500006.china.huawei.com (7.185.36.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 25 Nov 2022 17:14:47 +0800 From: Zhen Lei To: Alexander Viro , Eric Biggers , , Chris Mason , Josef Bacik , David Sterba , , CC: Zhen Lei Subject: [PATCH v3 0/2] fs: clear a UBSAN shift-out-of-bounds warning Date: Fri, 25 Nov 2022 17:13:56 +0800 Message-ID: <20221125091358.1963-1-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.37.3.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.174.178.55] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm500006.china.huawei.com (7.185.36.236) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v2 --> v3: Updated the commit message of patch 2/2 based on Alexander Viro's suggestion. v1 -- > v2: 1. Replace INT_LIMIT(loff_t) with OFFSET_MAX in btrfs. 2. Replace INT_LIMIT() with type_max(). Zhen Lei (2): btrfs: replace INT_LIMIT(loff_t) with OFFSET_MAX fs: clear a UBSAN shift-out-of-bounds warning fs/btrfs/ordered-data.c | 6 +++--- include/linux/fs.h | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) -- 2.25.1