Patch "Revert "debugobject: Ensure pool refill (again)"" has been added to the 5.15-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    Revert "debugobject: Ensure pool refill (again)"

to the 5.15-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     revert-debugobject-ensure-pool-refill-again.patch
and it can be found in the queue-5.15 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From b9d78a89428def5450797ad58705973b9dfeeefd Mon Sep 17 00:00:00 2001
From: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 12 Jun 2023 10:56:09 +0200
Subject: Revert "debugobject: Ensure pool refill (again)"

From: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

This reverts commit 503e554782c916aec553f790298564a530cf1778 which is
commit 0af462f19e635ad522f28981238334620881badc upstream.

Guenter reports problems with it, and it's not quite obvious why, so
revert it for now.

Link: https://lore.kernel.org/r/d35b1ff1-e198-481c-b1be-9e22445efe06@xxxxxxxxxxxx
Cc: Ido Schimmel <idosch@xxxxxxxxxx>
Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Cc: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 lib/debugobjects.c |   21 ++++++---------------
 1 file changed, 6 insertions(+), 15 deletions(-)

--- a/lib/debugobjects.c
+++ b/lib/debugobjects.c
@@ -590,16 +590,6 @@ static struct debug_obj *lookup_object_o
 	return NULL;
 }
 
-static void debug_objects_fill_pool(void)
-{
-	/*
-	 * On RT enabled kernels the pool refill must happen in preemptible
-	 * context:
-	 */
-	if (!IS_ENABLED(CONFIG_PREEMPT_RT) || preemptible())
-		fill_pool();
-}
-
 static void
 __debug_object_init(void *addr, const struct debug_obj_descr *descr, int onstack)
 {
@@ -608,7 +598,12 @@ __debug_object_init(void *addr, const st
 	struct debug_obj *obj;
 	unsigned long flags;
 
-	debug_objects_fill_pool();
+	/*
+	 * On RT enabled kernels the pool refill must happen in preemptible
+	 * context:
+	 */
+	if (!IS_ENABLED(CONFIG_PREEMPT_RT) || preemptible())
+		fill_pool();
 
 	db = get_bucket((unsigned long) addr);
 
@@ -693,8 +688,6 @@ int debug_object_activate(void *addr, co
 	if (!debug_objects_enabled)
 		return 0;
 
-	debug_objects_fill_pool();
-
 	db = get_bucket((unsigned long) addr);
 
 	raw_spin_lock_irqsave(&db->lock, flags);
@@ -904,8 +897,6 @@ void debug_object_assert_init(void *addr
 	if (!debug_objects_enabled)
 		return;
 
-	debug_objects_fill_pool();
-
 	db = get_bucket((unsigned long) addr);
 
 	raw_spin_lock_irqsave(&db->lock, flags);


Patches currently in stable-queue which might be from gregkh@xxxxxxxxxxxxxxxxxxx are

queue-5.15/input-fix-open-count-when-closing-inhibited-device.patch
queue-5.15/ext4-only-check-dquot_initialize_needed-when-debugging.patch
queue-5.15/bluetooth-hci_qca-fix-debugfs-registration.patch
queue-5.15/i40e-remove-string-printing-for-i40e_status.patch
queue-5.15/input-psmouse-fix-oob-access-in-elantech-protocol.patch
queue-5.15/remove-the-sx8-block-driver.patch
queue-5.15/alsa-hda-realtek-add-quirk-for-clevo-ns50au.patch
queue-5.15/drm-amd-pm-fix-power-context-allocation-in-smu13.patch
queue-5.15/xfs-verify-buffer-contents-when-we-skip-log-replay.patch
queue-5.15/usb-usbfs-enforce-page-requirements-for-mmap.patch
queue-5.15/alsa-hda-realtek-add-a-quirk-for-hp-slim-desktop-s01.patch
queue-5.15/i40e-use-int-for-i40e_status.patch
queue-5.15/revert-ext4-don-t-clear-sb_rdonly-when-remounting-r-w-until-quota-is-re-enabled.patch
queue-5.15/bonding-gcc13-synchronize-bond_-a-t-lb_xmit-types.patch
queue-5.15/f2fs-fix-iostat-lock-protection.patch
queue-5.15/alsa-hda-realtek-add-lenovo-p3-tower-platform.patch
queue-5.15/bluetooth-fix-use-after-free-in-hci_remove_ltk-hci_remove_irk.patch
queue-5.15/drm-i915-gt-use-the-correct-error-value-when-kernel_context-fails.patch
queue-5.15/i40e-fix-build-warning-in-ice_fltr_add_mac_to_list.patch
queue-5.15/can-j1939-change-j1939_netdev_lock-type-to-mutex.patch
queue-5.15/input-xpad-delete-a-razer-deathadder-mouse-vid-pid-entry.patch
queue-5.15/can-j1939-j1939_sk_send_loop_abort-improved-error-queue-handling-in-j1939-socket.patch
queue-5.15/drm-amdgpu-fix-xclk-freq-on-chip_stoney.patch
queue-5.15/drm-amd-pm-conditionally-disable-pcie-lane-switching-for-some-sienna_cichlid-skus.patch
queue-5.15/revert-debugobject-ensure-pool-refill-again.patch
queue-5.15/gcc-plugins-reorganize-gimple-includes-for-gcc-13.patch
queue-5.15/sfc-gcc13-synchronize-ef100_enqueue_skb-s-return-type.patch
queue-5.15/ceph-fix-use-after-free-bug-for-inodes-when-flushing-capsnaps.patch
queue-5.15/blk-iocost-avoid-64-bit-division-in-ioc_timer_fn.patch
queue-5.15/can-j1939-avoid-possible-use-after-free-when-j1939_can_rx_register-fails.patch
queue-5.15/batman-adv-broken-sync-while-rescheduling-delayed-work.patch
queue-5.15/s390-dasd-use-correct-lock-while-counting-channel-queue-length.patch
queue-5.15/tee-amdtee-add-return_origin-to-struct-tee_cmd_load_ta.patch
queue-5.15/usb-usbfs-use-consistent-mmap-functions.patch
queue-5.15/rbd-get-snapshot-context-after-exclusive-lock-is-ensured-to-be-held.patch
queue-5.15/pinctrl-meson-axg-add-missing-gpioa_18-gpio-group.patch
queue-5.15/rbd-move-rbd_obj_flag_copyup_enabled-flag-setting.patch
queue-5.15/ata-ahci-fix-enum-constants-for-gcc-13.patch



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux