From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 6289628641E for ; Sat, 9 May 2026 01:57:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778291833; cv=none; b=oR0ExRtXUoSyUa3xjoRLIQ+VDRX2PX9VHvS7it8zDegTsaGKGJrLqXDtIWozCWp/lnA169G5P5hOo7gEa5M+tSpO2NSEC87bSITu9nSc5qvs/LFMEOlYbxAIhsFMEJK5aoTR8E1fJrfIuXaCP8ks1YCn6RBqY02SP4knVdkM0sc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778291833; c=relaxed/simple; bh=hPBbPtgObI5iKU+bdMNfAdfh3N2uIrCYZaaryX1AF7w=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=rPDT8b+VrbUSCn+hJFdbUwSSdlnQLUIL/lx5lTZIVkA5HbnuTpJ70UxUKO1vulvpiOEiWVxQLoV/7KVYxKEzE0QE17geMZl099xv+o5lzSGfDrH0N3Qkn/uXD2js4rLhqDO25/jlfJsw3M5Hx14ADVGq0vfIz+Dz/GvjP3B9DPw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Shy/Wgep; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Shy/Wgep" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06B9BC2BCB0; Sat, 9 May 2026 01:57:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1778291833; bh=hPBbPtgObI5iKU+bdMNfAdfh3N2uIrCYZaaryX1AF7w=; h=Date:From:To:Cc:Subject:From; b=Shy/WgepLxXHObiRnQJmgSjhjgcwXlkExx0MfQbKIhQ0F3Ydgx4R3fFiwhiljpM3l DtuvOW/yBGn6pHVhZl58TwFhGNIgGtQ+kg06xCCm9wDyn0dkAllrcgdNdl0OyIBS3f a0FnTi9CxjRdYxAhDBp9BBCfh85YVN/ci7a0dJMXWHmZaxq8SsZ4uj9n7MICGjqyiJ fabTPPFTd+V9s5OTPhqD/3lzOaMlJUyBN9fYKK91CHS1YQPskPGYNk6D/F6NmEUUhx xizzN8DoZpWX8k3iV4rtgnMvMxiURvVoOa1o+PYkTizX/kN5Odm88MexJK/FD+r3Gd Um49MgV21tSkg== Date: Sat, 9 May 2026 03:57:07 +0200 From: Ingo Molnar To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Thomas Gleixner , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Mel Gorman , Tejun Heo , Valentin Schneider , Shrikanth Hegde Subject: [GIT PULL] scheduler fixes Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Linus, Please pull the latest sched/urgent Git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched-urgent-2026-05-09 for you to fetch changes up to 9f6d929ee2c6f0266edb564bcd2bd47fd6e884a8: Miscellaneous scheduler fixes: - Fix spurious failures in rseq self-tests (Mark Brown) - Fix rseq rseq::cpu_id_start ABI regression due to TCMalloc's creative use of the supposedly read-only field. The fix is to introduce a new ABI variant based on a new (larger) rseq area registration size, to keep the TCMalloc use of rseq backwards compatible on new kernels. (Thomas Gleixner) - Fix wakeup_preempt_fair() for not waking up task (Vincent Guittot) - Fix s64 mult overflow in vruntime_eligible() (Zhan Xusheng) Thanks, Ingo ------------------> Mark Brown (1): selftests/rseq: Don't run tests with runner scripts outside of the scripts Thomas Gleixner (10): rseq: Set rseq::cpu_id_start to 0 on unregistration rseq: Protect rseq_reset() against interrupts rseq: Don't advertise time slice extensions if disabled rseq: Revert to historical performance killing behaviour selftests/rseq: Skip tests if time slice extensions are not available selftests/rseq: Make registration flexible for legacy and optimized mode selftests/rseq: Validate legacy behavior rseq: Implement read only ABI enforcement for optimized RSEQ V2 mode rseq: Reenable performance optimizations conditionally selftests/rseq: Expand for optimized RSEQ ABI v2 Vincent Guittot (1): sched/fair: Fix wakeup_preempt_fair() for not waking up task Zhan Xusheng (1): sched/fair: Fix overflow in vruntime_eligible() Documentation/userspace-api/rseq.rst | 94 ++++++++- include/linux/rseq.h | 37 ++-- include/linux/rseq_entry.h | 122 ++++++------ include/linux/rseq_types.h | 13 +- include/uapi/linux/rseq.h | 5 +- kernel/rseq.c | 214 +++++++++++++-------- kernel/sched/fair.c | 44 ++++- kernel/sched/membarrier.c | 11 +- tools/testing/selftests/rseq/Makefile | 21 +- tools/testing/selftests/rseq/check_optimized.c | 17 ++ tools/testing/selftests/rseq/legacy_check.c | 65 +++++++ tools/testing/selftests/rseq/param_test.c | 25 ++- tools/testing/selftests/rseq/rseq-abi.h | 7 +- tools/testing/selftests/rseq/rseq.c | 39 ++-- tools/testing/selftests/rseq/rseq.h | 8 +- tools/testing/selftests/rseq/run_legacy_check.sh | 4 + tools/testing/selftests/rseq/run_param_test.sh | 39 ++++ tools/testing/selftests/rseq/run_timeslice_test.sh | 14 ++ tools/testing/selftests/rseq/slice_test.c | 12 +- 19 files changed, 580 insertions(+), 211 deletions(-) create mode 100644 tools/testing/selftests/rseq/check_optimized.c create mode 100644 tools/testing/selftests/rseq/legacy_check.c create mode 100755 tools/testing/selftests/rseq/run_legacy_check.sh create mode 100755 tools/testing/selftests/rseq/run_timeslice_test.sh