From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-181.mta1.migadu.com (out-181.mta1.migadu.com [95.215.58.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D3F623EC6B0 for ; Fri, 17 Jul 2026 10:28:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784284140; cv=none; b=SG0Q1MuNdEXFn8tn+WxcLvJJvkoM/YoJ4d6pdgdjhYGQhb1VmRTa3vRBJgxOid6EtpGGs5/zAogz1ELjQRv16FxVIbj8yRxQbs6wDHrP5eeBVnjrd0meiql/qrS8+ulVs7Jz3bYa9oDZ/A5Z0g0q8KEyeQX/X7Z0adi1IpErCNs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784284140; c=relaxed/simple; bh=mEzswmSKfuIUFp4KPXzgo5Omo6vLp2cZZi2fsg1By6E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oKotCjbRbiTXsBcj8L21qvNCNazFAo4agwYArasO0FHbyKpJ73lQiyhXJR8h6E0Iqr5EzrkYSzmOwfDDwcsincIHB0jn7NYTww88Pg8zr2ew1a2xh3Jvypt8Sbs9vdNmqkhIWTnlQl9q0f0cXzsiXZjd6abdBj04R4veoHTyTm0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=fBsFc5Kh; arc=none smtp.client-ip=95.215.58.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="fBsFc5Kh" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1784284133; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=7h7dy8EXetfIoeFy9svmhsex2inzaQJz3/qffoDixzU=; b=fBsFc5Kh9+nu+TcTQ+wy9mEN61i+jsjd2erxjVmZ4wQIhRFRWjNyW75GwYCm1FQBt3lDjZ VrQmpATHQWLiTGaskdbe5EqFiBhIwC2rBs8noCgyCHJREJMCB/KbY8bGLqjBtT0wSszasQ i6FA+KOWAMBvnhFpH3ZSztK5ROD0U0c= From: Guopeng Zhang To: Johannes Weiner , Suren Baghdasaryan , Peter Zijlstra Cc: Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , K Prateek Nayak , Andrew Morton , linux-kernel@vger.kernel.org Subject: [PATCH 0/2] sched/psi: Fix trigger time arithmetic Date: Fri, 17 Jul 2026 18:28:22 +0800 Message-ID: <20260717102824.985950-1-guopeng.zhang@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT From: Guopeng Zhang PSI trigger time handling has two integer-width bugs. Long windows can be truncated during growth interpolation, and the multiplication used for the interpolation can overflow before the division. Separately, the microsecond-to-nanosecond conversion can wrap on 32-bit systems before the result is stored in a u64. Fix the two issues independently. Guopeng Zhang (2): sched/psi: Fix long-window growth interpolation sched/psi: Fix overflow in trigger time conversion on 32-bit kernel/sched/psi.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) base-commit: 1a1757b76427f6201bfe0bf1bea9f7574f332a93 -- 2.43.0