aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-10-05 10:16:03 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-10-05 10:16:03 +0200
commitd7ca38b0e2ffef6555432dccfa68be2a78695ea4 (patch)
treeb97e38fb2a7f17dceeede7c131820bf0ef71baa1
parent8b2fe15fafbd9adc123223e7986f958f7d7b4f7a (diff)
downloadpatches-d7ca38b0e2ffef6555432dccfa68be2a78695ea4.tar.gz
updates
-rw-r--r--0001-driver-core-add-printk-debugging.patch86
-rw-r--r--0001-readfile-implement-readfile-syscall.patch2
-rw-r--r--0001-vsmp-driver.patch2
-rw-r--r--documentation-embargoed-hardware-issues.rst-clean-out-empty-and-unused-entries.patch44
-rw-r--r--pmu_attr_visible.patch4
-rw-r--r--series2
6 files changed, 91 insertions, 49 deletions
diff --git a/0001-driver-core-add-printk-debugging.patch b/0001-driver-core-add-printk-debugging.patch
new file mode 100644
index 00000000000000..1d5af6d396fa1a
--- /dev/null
+++ b/0001-driver-core-add-printk-debugging.patch
@@ -0,0 +1,86 @@
+From 1c7672d60f8deea4f2310b44a9641f505882a0da Mon Sep 17 00:00:00 2001
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+Date: Tue, 16 May 2023 16:11:57 +0200
+Subject: [PATCH] driver core: add printk debugging
+
+Helps when trying to find leaks
+---
+ drivers/base/bus.c | 2 ++
+ drivers/base/class.c | 3 +++
+ drivers/base/core.c | 3 +++
+ drivers/usb/core/endpoint.c | 1 +
+ 4 files changed, 9 insertions(+)
+
+--- a/drivers/base/bus.c
++++ b/drivers/base/bus.c
+@@ -208,6 +208,7 @@ static void bus_release(struct kobject *
+ struct subsys_private *priv = to_subsys_private(kobj);
+
+ lockdep_unregister_key(&priv->lock_key);
++ pr_debug("bus: '%s': %s\n", kobject_name(kobj), __func__);
+ kfree(priv);
+ }
+
+@@ -1191,6 +1192,7 @@ EXPORT_SYMBOL_GPL(subsys_interface_unreg
+
+ static void system_root_device_release(struct device *dev)
+ {
++ pr_debug("device: '%s': %s\n", dev_name(dev), __func__);
+ kfree(dev);
+ }
+
+--- a/drivers/base/class.c
++++ b/drivers/base/class.c
+@@ -8,6 +8,8 @@
+ * Copyright (c) 2003-2004 IBM Corp.
+ */
+
++#define DEBUG
++
+ #include <linux/device/class.h>
+ #include <linux/device.h>
+ #include <linux/module.h>
+@@ -575,6 +577,7 @@ EXPORT_SYMBOL_GPL(class_compat_register)
+ */
+ void class_compat_unregister(struct class_compat *cls)
+ {
++ pr_debug("class_compat: '%s': %s\n", kobject_name(cls->kobj), __func__);
+ kobject_put(cls->kobj);
+ kfree(cls);
+ }
+--- a/drivers/base/core.c
++++ b/drivers/base/core.c
+@@ -3851,6 +3851,7 @@ EXPORT_SYMBOL_GPL(device_del);
+ void device_unregister(struct device *dev)
+ {
+ pr_debug("device: '%s': %s\n", dev_name(dev), __func__);
++ printk(KERN_ERR "GKH: device: '%s': %s\n", dev_name(dev), __func__);
+ device_del(dev);
+ put_device(dev);
+ }
+@@ -4275,6 +4276,7 @@ EXPORT_SYMBOL_GPL(root_device_unregister
+ static void device_create_release(struct device *dev)
+ {
+ pr_debug("device: '%s': %s\n", dev_name(dev), __func__);
++ printk(KERN_ERR "GKH: device: '%s': %s\n", dev_name(dev), __func__);
+ kfree(dev);
+ }
+
+@@ -4409,6 +4411,7 @@ void device_destroy(const struct class *
+
+ dev = class_find_device_by_devt(class, devt);
+ if (dev) {
++ printk(KERN_ERR "GKH: device: '%s': %s\n", dev_name(dev), __func__);
+ put_device(dev);
+ device_unregister(dev);
+ }
+--- a/drivers/usb/core/endpoint.c
++++ b/drivers/usb/core/endpoint.c
+@@ -138,6 +138,7 @@ static void ep_device_release(struct dev
+ {
+ struct ep_device *ep_dev = to_ep_device(dev);
+
++ printk(KERN_ERR "GKH: device: '%s': %s\n", dev_name(dev), __func__);
+ kfree(ep_dev);
+ }
+
diff --git a/0001-readfile-implement-readfile-syscall.patch b/0001-readfile-implement-readfile-syscall.patch
index 2a9ab13b86f32e..46e1692154a8cd 100644
--- a/0001-readfile-implement-readfile-syscall.patch
+++ b/0001-readfile-implement-readfile-syscall.patch
@@ -20,7 +20,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
--- a/fs/open.c
+++ b/fs/open.c
-@@ -1572,3 +1572,53 @@ int stream_open(struct inode *inode, str
+@@ -1658,3 +1658,53 @@ int stream_open(struct inode *inode, str
}
EXPORT_SYMBOL(stream_open);
diff --git a/0001-vsmp-driver.patch b/0001-vsmp-driver.patch
index 9194070356ce92..0e7fcb5acc64e8 100644
--- a/0001-vsmp-driver.patch
+++ b/0001-vsmp-driver.patch
@@ -28,7 +28,7 @@ first cut to cleanup
+Description: Shows the full version of the vSMP hypervisor
--- a/MAINTAINERS
+++ b/MAINTAINERS
-@@ -22634,6 +22634,12 @@ F: lib/test_printf.c
+@@ -23125,6 +23125,12 @@ F: lib/test_printf.c
F: lib/test_scanf.c
F: lib/vsprintf.c
diff --git a/documentation-embargoed-hardware-issues.rst-clean-out-empty-and-unused-entries.patch b/documentation-embargoed-hardware-issues.rst-clean-out-empty-and-unused-entries.patch
deleted file mode 100644
index 75851fe943d3ce..00000000000000
--- a/documentation-embargoed-hardware-issues.rst-clean-out-empty-and-unused-entries.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-From foo@baz Fri Jun 16 10:09:56 AM CEST 2023
-Date: Fri, 16 Jun 2023 10:09:56 +0200
-To: Greg KH <gregkh@linuxfoundation.org>
-From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-Subject: [PATCH] Documentation: embargoed-hardware-issues.rst: clean out empty and unused entries
-
-There are a few empty entries in the company/project list, which
-confuses people as to why they are there, so remove them entirely, and
-also remove an entry that doesn't wish to participate in this process.
-
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- Documentation/process/embargoed-hardware-issues.rst | 4 ----
- 1 file changed, 4 deletions(-)
-
---- a/Documentation/process/embargoed-hardware-issues.rst
-+++ b/Documentation/process/embargoed-hardware-issues.rst
-@@ -244,7 +244,6 @@ disclosure of a particular issue, unless
- an involved disclosed party. The current ambassadors list:
-
- ============= ========================================================
-- AMD Tom Lendacky <thomas.lendacky@amd.com>
- Ampere Darren Hart <darren@os.amperecomputing.com>
- ARM Catalin Marinas <catalin.marinas@arm.com>
- IBM Power Anton Blanchard <anton@linux.ibm.com>
-@@ -254,7 +253,6 @@ an involved disclosed party. The current
- Samsung Javier González <javier.gonz@samsung.com>
-
- Microsoft James Morris <jamorris@linux.microsoft.com>
-- VMware
- Xen Andrew Cooper <andrew.cooper3@citrix.com>
-
- Canonical John Johansen <john.johansen@canonical.com>
-@@ -263,10 +261,8 @@ an involved disclosed party. The current
- Red Hat Josh Poimboeuf <jpoimboe@redhat.com>
- SUSE Jiri Kosina <jkosina@suse.cz>
-
-- Amazon
- Google Kees Cook <keescook@chromium.org>
-
-- GCC
- LLVM Nick Desaulniers <ndesaulniers@google.com>
- ============= ========================================================
-
diff --git a/pmu_attr_visible.patch b/pmu_attr_visible.patch
index f5af16a1b22c59..a728d1983b70f4 100644
--- a/pmu_attr_visible.patch
+++ b/pmu_attr_visible.patch
@@ -4,7 +4,7 @@
--- a/kernel/events/core.c
+++ b/kernel/events/core.c
-@@ -11351,9 +11351,32 @@ static DEVICE_ATTR_RW(perf_event_mux_int
+@@ -11352,9 +11352,32 @@ static DEVICE_ATTR_RW(perf_event_mux_int
static struct attribute *pmu_dev_attrs[] = {
&dev_attr_type.attr,
&dev_attr_perf_event_mux_interval_ms.attr,
@@ -38,7 +38,7 @@
static int pmu_bus_running;
static struct bus_type pmu_bus = {
-@@ -11389,18 +11412,11 @@ static int pmu_dev_alloc(struct pmu *pmu
+@@ -11391,18 +11414,11 @@ static int pmu_dev_alloc(struct pmu *pmu
if (ret)
goto free_dev;
diff --git a/series b/series
index 81b604e97fa7e3..4a2f6ff9a259a3 100644
--- a/series
+++ b/series
@@ -1,6 +1,6 @@
#
+0001-driver-core-add-printk-debugging.patch
pmu_attr_visible.patch
-documentation-embargoed-hardware-issues.rst-clean-out-empty-and-unused-entries.patch
usb.patch
0001-vsmp-driver.patch
0001-driver-core-aux-test-code.patch