From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4D69C2F5A10 for ; Fri, 10 Oct 2025 15:03:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760108582; cv=none; b=Js1/mQ3+wKYqB+GqpV0BypLOdrDy94j7Rqg7gIVwohfeHRdUzIL7pCDK9J7Qejlqs3cftmaNe18P/2RsBmYvt4h/hHrHQd8j73SgUP1w1tVQw/4ddkBzDQHcsGpId5yqTF2v4yibUkiMgwF8Jtwmy+pdcrjB/gcbDfrSP3ZsjiQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760108582; c=relaxed/simple; bh=UHFjEVHBo1yIOaVlRsqK18HPUDEo7fXT8pgeeEEdaXo=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=Sd+BXDCMOmli6sOiowjdxUXaIKBvxtAbIqx2Vsz9IfPNyyAu12mnBk3YbWz7i8tgAemMp/DKeU4dAABJ9LH9SVvrzK8bbIO60Hy0HYD1ceynEPyFWT5W7ZJxI1KYyZ8vwhd4gN9dZi8lAaq2I/Q9G71S9HrgM499bqj+CR/hiUY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=UiROp3PP; arc=none smtp.client-ip=209.85.210.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UiROp3PP" Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-793021f348fso2069311b3a.1 for ; Fri, 10 Oct 2025 08:03:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1760108580; x=1760713380; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=elZCS9zUDdalSz9uVOKCoOd4+j5ifaZJHKjwRqdAu9k=; b=UiROp3PP13YG7bgCW6IxIzbr5baWsZomFwoTJOi3pCx27e/TBEhpoliOhlYot0en9k O1gyHbVsRk5xLL2fEIfFt4mkiw7LD+8BNPpbVS401O2En/tuMRw7UJ1IqFmlafnrCUMk W1069ZjRwbPfmDe07ZFGOVQlrWczibnBgSQwjPfYKh41Zs4LQizqLl/MyZ9g7tly1Dso iDOC5uXKSbEE0D6OaIVQmv6MNBZ3vZRx4aRQd7u8JXL0vEXsvv3J91VA8jWscZI/eb5F lNffj4UCgk/N+HTy+H4s8pNiKE3kqmq+sPyybIANE4w1SgK+6CNQB6zPewHLZqqgsz0S SPAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760108580; x=1760713380; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=elZCS9zUDdalSz9uVOKCoOd4+j5ifaZJHKjwRqdAu9k=; b=fypWQoh724c5XZP4nhHKDoVEWCh01uvEoLemRw77qlEmBfOmCfQnRI5T+aDPXKtQ8s kdxuCo6xN9CBunjlwVN5hFUOncAHaI59HW5EfgxpA/TdMh1gs6ywPFYJpq4lV5WH9CJX SsdALcaBaisVmlKCRtSDX6RltXcFxO4pYsaH15bLtd+j3WjLbJPBuDivPfHjT3PS9QB/ ne5F3vhkEwTTxMD0YcltVtLVE4U/KDs+tBFWodWo8Pk9zZr8CYi4gCcp4IB/rNJxeBPa rCLiIXNILGSrMifX/UDs/Fq7uXoQoR+QBygqlXlWvSIuVRCtCST7KQLgKbUTTOi0K49X YlwA== X-Forwarded-Encrypted: i=1; AJvYcCVedFIOoSzOtXBjrbxovqTN/z/NWNA7y7VWqM57BQewYMd3zNlFexvmrnTlSBTCA18wtmb+9cy1IvJrsl4=@vger.kernel.org X-Gm-Message-State: AOJu0YzMHLBzYzcOBiI4TnJoPQtf62Kz+CgOW5H+1A2KTGhyBSVAz3vh cC0OMDfcAdoUbzIyvkRxOaieKD6JetMq52My/fRpcgijvmyQJ++eHuIL X-Gm-Gg: ASbGncs6gZuMMrfuN/jdDjRM9eEkImK3xoa93LcX4fGKtlUFedIscn8INgD0m5FqipL ldaQU6EnEjz8AefrPseGpPBkzLEWG/jDtGayNX6m6EScTrLvjQvltTxPEgQ5OPrkOjYV8mXvkUY q3jm2jm+ZY08Nz0UjcYPZC+IG5qpbpOf9zx1PBAjpG/R2f+8MynYmiFszV8Cz9yaOVqnEGLvGqT Qjyl0DNnEah9aUzvds5QVl3WimZxZW8HoO/JyNUsMeuPcO+1O8Zu9Q0SGQ3UgLkjTSZT+IddXtm SAe8tiLTqiEB/O/PPuSamuyVEpUbYxknl6c3JcrWnSwMkzEhtgdlqv1ck2cTWpM6GZ5lZXSQeSF IEzcgNKoKcpVwrvL4FX0rO2WFsQWXO/OHWFhozc7WN2K978fRwwPpag0EsKSBDHda2jYe X-Google-Smtp-Source: AGHT+IEiheifxj1cVZ8u0uGr35LMFjwn1oypAqpQX6zfZ7PxZ09jYE7B7OTz14SyZcJabP5tV0n5Rg== X-Received: by 2002:a05:6a00:2e19:b0:78c:984b:7a92 with SMTP id d2e1a72fcca58-79385ddca48mr14271231b3a.12.1760108578879; Fri, 10 Oct 2025 08:02:58 -0700 (PDT) Received: from name2965-Precision-7820-Tower.. ([121.185.186.233]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7992b639cbcsm3266359b3a.18.2025.10.10.08.02.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Oct 2025 08:02:58 -0700 (PDT) From: Jeongjun Park To: stable@vger.kernel.org Cc: gregkh@linuxfoundation.org, tglx@linutronix.de, Julia.Lawall@inria.fr, akpm@linux-foundation.org, anna-maria@linutronix.de, arnd@arndb.de, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, linux@roeck-us.net, luiz.dentz@gmail.com, marcel@holtmann.org, maz@kernel.org, peterz@infradead.org, rostedt@goodmis.org, sboyd@kernel.org, viresh.kumar@linaro.org Subject: [PATCH 6.1.y 00/12] timers: Provide timer_shutdown[_sync]() Date: Sat, 11 Oct 2025 00:02:40 +0900 Message-Id: <20251010150252.1115788-1-aha310510@gmail.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The "timers: Provide timer_shutdown[_sync]()" patch series implemented a useful feature that addresses various bugs caused by attempts to rearm shutdown timers. https://lore.kernel.org/all/20221123201306.823305113@linutronix.de/ However, this patch series was not fully backported to versions prior to 6.2, requiring separate patches for older kernels if these bugs were encountered. The biggest problem with this is that even if these bugs were discovered and patched in the upstream kernel, if the maintainer or author didn't create a separate backport patch for versions prior to 6.2, the bugs would remain untouched in older kernels. Therefore, to reduce the hassle of having to write a separate patch, we should backport the remaining unbackported commits from the "timers: Provide timer_shutdown[_sync]()" patch series to versions prior to 6.2. --- Documentation/RCU/Design/Requirements/Requirements.rst | 2 +- Documentation/core-api/local_ops.rst | 2 +- Documentation/kernel-hacking/locking.rst | 17 ++++--- Documentation/timers/hrtimers.rst | 2 +- Documentation/translations/it_IT/kernel-hacking/locking.rst | 14 +++-- Documentation/translations/zh_CN/core-api/local_ops.rst | 2 +- arch/arm/mach-spear/time.c | 8 +-- drivers/bluetooth/hci_qca.c | 10 +++- drivers/clocksource/arm_arch_timer.c | 12 ++--- drivers/clocksource/timer-sp804.c | 6 +-- include/linux/timer.h | 2 + kernel/time/timer.c | 311 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------- 12 files changed, 299 insertions(+), 89 deletions(-)