From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EDCC6158092 for ; Thu, 16 Sep 2021 11:02:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3B3B6E0827; Thu, 16 Sep 2021 11:02:30 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 24F87E0827 for ; Thu, 16 Sep 2021 11:02:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 161D7342EEF for ; Thu, 16 Sep 2021 11:02:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B76D774 for ; Thu, 16 Sep 2021 11:02:27 +0000 (UTC) From: "Mike Pagano" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Pagano" Message-ID: <1631790135.527c78593c55fa24f36571a4d13286fc2c1a947e.mpagano@gentoo> Subject: [gentoo-commits] proj/linux-patches:5.13 commit in: / X-VCS-Repository: proj/linux-patches X-VCS-Files: 1017_linux-5.13.18.patch X-VCS-Directories: / X-VCS-Committer: mpagano X-VCS-Committer-Name: Mike Pagano X-VCS-Revision: 527c78593c55fa24f36571a4d13286fc2c1a947e X-VCS-Branch: 5.13 Date: Thu, 16 Sep 2021 11:02:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f32941fc-c8b5-4d49-9bde-925bb7fc2d71 X-Archives-Hash: 089a35333fd70b7b7195f8ffbef2152c commit: 527c78593c55fa24f36571a4d13286fc2c1a947e Author: Mike Pagano gentoo org> AuthorDate: Thu Sep 16 11:02:15 2021 +0000 Commit: Mike Pagano gentoo org> CommitDate: Thu Sep 16 11:02:15 2021 +0000 URL: https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=527c7859 Linux patch 5.13.18 Signed-off-by: Mike Pagano gentoo.org> 1017_linux-5.13.18.patch | 75 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/1017_linux-5.13.18.patch b/1017_linux-5.13.18.patch new file mode 100644 index 0000000..f9aefb6 --- /dev/null +++ b/1017_linux-5.13.18.patch @@ -0,0 +1,75 @@ +diff --git a/Makefile b/Makefile +index c79a2c70a22ba..ddbd64b92a723 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,7 +1,7 @@ + # SPDX-License-Identifier: GPL-2.0 + VERSION = 5 + PATCHLEVEL = 13 +-SUBLEVEL = 17 ++SUBLEVEL = 18 + EXTRAVERSION = + NAME = Opossums on Parade + +diff --git a/include/linux/time64.h b/include/linux/time64.h +index 81b9686a20799..5117cb5b56561 100644 +--- a/include/linux/time64.h ++++ b/include/linux/time64.h +@@ -25,9 +25,7 @@ struct itimerspec64 { + #define TIME64_MIN (-TIME64_MAX - 1) + + #define KTIME_MAX ((s64)~((u64)1 << 63)) +-#define KTIME_MIN (-KTIME_MAX - 1) + #define KTIME_SEC_MAX (KTIME_MAX / NSEC_PER_SEC) +-#define KTIME_SEC_MIN (KTIME_MIN / NSEC_PER_SEC) + + /* + * Limits for settimeofday(): +@@ -126,13 +124,10 @@ static inline bool timespec64_valid_settod(const struct timespec64 *ts) + */ + static inline s64 timespec64_to_ns(const struct timespec64 *ts) + { +- /* Prevent multiplication overflow / underflow */ +- if (ts->tv_sec >= KTIME_SEC_MAX) ++ /* Prevent multiplication overflow */ ++ if ((unsigned long long)ts->tv_sec >= KTIME_SEC_MAX) + return KTIME_MAX; + +- if (ts->tv_sec <= KTIME_SEC_MIN) +- return KTIME_MIN; +- + return ((s64) ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec; + } + +diff --git a/kernel/time/posix-cpu-timers.c b/kernel/time/posix-cpu-timers.c +index a9f8d25220b1a..aa52fc85dbcbf 100644 +--- a/kernel/time/posix-cpu-timers.c ++++ b/kernel/time/posix-cpu-timers.c +@@ -1346,6 +1346,8 @@ void set_process_cpu_timer(struct task_struct *tsk, unsigned int clkid, + } + } + ++ if (!*newval) ++ return; + *newval += now; + } + +diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c +index bf1bb08b94aad..8d455c2321545 100644 +--- a/net/bluetooth/hci_core.c ++++ b/net/bluetooth/hci_core.c +@@ -1740,14 +1740,6 @@ int hci_dev_do_close(struct hci_dev *hdev) + hci_request_cancel_all(hdev); + hci_req_sync_lock(hdev); + +- if (!hci_dev_test_flag(hdev, HCI_UNREGISTER) && +- !hci_dev_test_flag(hdev, HCI_USER_CHANNEL) && +- test_bit(HCI_UP, &hdev->flags)) { +- /* Execute vendor specific shutdown routine */ +- if (hdev->shutdown) +- hdev->shutdown(hdev); +- } +- + if (!test_and_clear_bit(HCI_UP, &hdev->flags)) { + cancel_delayed_work_sync(&hdev->cmd_timer); + hci_req_sync_unlock(hdev);