Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1443741pxj; Sat, 15 May 2021 15:18:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwc4gToS8bDw0iGu0WkMLbtITChc6bUw0iKEJ7mxbLNoy1Se0yitmeKeyohS9dg6eeLWRZL X-Received: by 2002:a17:906:e2d9:: with SMTP id gr25mr12195763ejb.373.1621117131092; Sat, 15 May 2021 15:18:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621117131; cv=none; d=google.com; s=arc-20160816; b=thaHx0iLEvAfNngwC08JJ9VZvYDuXUm7D5DnuoK4+VbeezQwajIL3o52V3U3PlvZ5C BgQ8FwFYJ4Txx9hwhuVtexZ/gX9eQFdC4AH2q/6shVVFmkROJvP4DLOfBgsd1RvipNUS 2TA6AyJl5WZo3zJinQWUiLc0oGC8UUXg8DnnE1X8aAUd39CZkpMpBdeJYuhLoQqbcReU jQjxkFDsrCPJidF56urVE9FWrwUkH2Mm7rd8k93UuvDK6qpc/uhNCzgb49cJHVYatXix 5H1ss+/hJWqqypNgiF+PVSL+w81e3WFIACRv17KaY1Nt7fg57ctAT4k5Q2T7bV+cRmQf MUWg== 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=z2gVv9vQi/HBanGZCwBVkFofPZoZV+Cqkh4ZPh6P6X0=; b=Hn6CqMgiDR+VZR99AQ+9k4WNjfy3nTdPA5lEFC75MLq6LLSup5yUYB+Si5XLAtRiqw NNZ7Snz7oDvimg6qgOYbPqnHfKNxavEO6Zssy7SqumowJBW1YVNm4d4I8N6vZliQXJCC MuW6QAAkttRm1rT5uP7SbASl3telFi8p7g0pVEzl93kMobXwEqdpU2rHZ2bR8Hts8XS7 /WdSM5BqAYBSPZEQ0tlwOG+3IX+J0auo640cvTEu1l8gcqMkGvIL6MWFbvEOZ20918Js eDsdfejl6j9ZtkYbHcK3zPh0SzJVrZKCv60+4o7Tqi+n5pSC1+tPzhVA92WoVG7zeT/j 0+zg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id du22si9501584ejc.589.2021.05.15.15.18.28; Sat, 15 May 2021 15:18:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231331AbhEOOA1 (ORCPT + 99 others); Sat, 15 May 2021 10:00:27 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:3698 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231304AbhEOOA0 (ORCPT ); Sat, 15 May 2021 10:00:26 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4Fj6Pm43B7z16Pgk; Sat, 15 May 2021 21:56:28 +0800 (CST) Received: from code-website.localdomain (10.175.127.227) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.498.0; Sat, 15 May 2021 21:59:00 +0800 From: Zheng Yejian To: CC: , , , , Subject: [PATCH 0/2] Fix encode_comp_t() Date: Sat, 15 May 2021 22:06:29 +0800 Message-ID: <20210515140631.369106-1-zhengyejian1@huawei.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.127.227] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Type conversion in encode_comp_t() may look a bit problematic. Zheng Yejian (2): acct: Fix accuracy loss for input value of encode_comp_t() acct: Fix potential integer overflow in encode_comp_t() kernel/acct.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) -- 2.17.1