]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
drop scsi-core-remove-the-proc-scsi-proc_name-directory-earlier.patch from everywhere
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:18:58 +0000 (09:18 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:18:58 +0000 (09:18 +0100)
14 files changed:
queue-4.14/scsi-core-remove-the-proc-scsi-proc_name-directory-earlier.patch [deleted file]
queue-4.14/series
queue-4.19/scsi-core-remove-the-proc-scsi-proc_name-directory-earlier.patch [deleted file]
queue-4.19/series
queue-5.10/scsi-core-remove-the-proc-scsi-proc_name-directory-earlier.patch [deleted file]
queue-5.10/series
queue-5.15/scsi-core-remove-the-proc-scsi-proc_name-directory-earlier.patch [deleted file]
queue-5.15/series
queue-5.4/scsi-core-remove-the-proc-scsi-proc_name-directory-earlier.patch [deleted file]
queue-5.4/series
queue-6.1/scsi-core-remove-the-proc-scsi-proc_name-directory-earlier.patch [deleted file]
queue-6.1/series
queue-6.2/scsi-core-remove-the-proc-scsi-proc_name-directory-earlier.patch [deleted file]
queue-6.2/series

diff --git a/queue-4.14/scsi-core-remove-the-proc-scsi-proc_name-directory-earlier.patch b/queue-4.14/scsi-core-remove-the-proc-scsi-proc_name-directory-earlier.patch
deleted file mode 100644 (file)
index 146091a..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-From fc663711b94468f4e1427ebe289c9f05669699c9 Mon Sep 17 00:00:00 2001
-From: Bart Van Assche <bvanassche@acm.org>
-Date: Fri, 10 Feb 2023 12:52:00 -0800
-Subject: scsi: core: Remove the /proc/scsi/${proc_name} directory earlier
-
-From: Bart Van Assche <bvanassche@acm.org>
-
-commit fc663711b94468f4e1427ebe289c9f05669699c9 upstream.
-
-Remove the /proc/scsi/${proc_name} directory earlier to fix a race
-condition between unloading and reloading kernel modules. This fixes a bug
-introduced in 2009 by commit 77c019768f06 ("[SCSI] fix /proc memory leak in
-the SCSI core").
-
-Fix the following kernel warning:
-
-proc_dir_entry 'scsi/scsi_debug' already registered
-WARNING: CPU: 19 PID: 27986 at fs/proc/generic.c:376 proc_register+0x27d/0x2e0
-Call Trace:
- proc_mkdir+0xb5/0xe0
- scsi_proc_hostdir_add+0xb5/0x170
- scsi_host_alloc+0x683/0x6c0
- sdebug_driver_probe+0x6b/0x2d0 [scsi_debug]
- really_probe+0x159/0x540
- __driver_probe_device+0xdc/0x230
- driver_probe_device+0x4f/0x120
- __device_attach_driver+0xef/0x180
- bus_for_each_drv+0xe5/0x130
- __device_attach+0x127/0x290
- device_initial_probe+0x17/0x20
- bus_probe_device+0x110/0x130
- device_add+0x673/0xc80
- device_register+0x1e/0x30
- sdebug_add_host_helper+0x1a7/0x3b0 [scsi_debug]
- scsi_debug_init+0x64f/0x1000 [scsi_debug]
- do_one_initcall+0xd7/0x470
- do_init_module+0xe7/0x330
- load_module+0x122a/0x12c0
- __do_sys_finit_module+0x124/0x1a0
- __x64_sys_finit_module+0x46/0x50
- do_syscall_64+0x38/0x80
- entry_SYSCALL_64_after_hwframe+0x46/0xb0
-
-Link: https://lore.kernel.org/r/20230210205200.36973-3-bvanassche@acm.org
-Cc: Alan Stern <stern@rowland.harvard.edu>
-Cc: Yi Zhang <yi.zhang@redhat.com>
-Cc: stable@vger.kernel.org
-Fixes: 77c019768f06 ("[SCSI] fix /proc memory leak in the SCSI core")
-Reported-by: Yi Zhang <yi.zhang@redhat.com>
-Signed-off-by: Bart Van Assche <bvanassche@acm.org>
-Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- drivers/scsi/hosts.c |    2 ++
- 1 file changed, 2 insertions(+)
-
---- a/drivers/scsi/hosts.c
-+++ b/drivers/scsi/hosts.c
-@@ -173,6 +173,7 @@ void scsi_remove_host(struct Scsi_Host *
-       scsi_forget_host(shost);
-       mutex_unlock(&shost->scan_mutex);
-       scsi_proc_host_rm(shost);
-+      scsi_proc_hostdir_rm(shost->hostt);
-       spin_lock_irqsave(shost->host_lock, flags);
-       if (scsi_host_set_state(shost, SHOST_DEL))
-@@ -324,6 +325,7 @@ static void scsi_host_dev_release(struct
-       struct Scsi_Host *shost = dev_to_shost(dev);
-       struct device *parent = dev->parent;
-+      /* In case scsi_remove_host() has not been called. */
-       scsi_proc_hostdir_rm(shost->hostt);
-       /* Wait for functions invoked through call_rcu(&shost->rcu, ...) */
index a13c922d4c40d7d8117264d8dd238eeced36de18..4ecc2e156453c0ada22744371f89d25e01a56c80 100644 (file)
@@ -136,7 +136,6 @@ rbd-avoid-use-after-free-in-do_rbd_add-when-rbd_dev_create-fails.patch
 alpha-fix-fen-fault-handling.patch
 mips-fix-syscall_get_nr.patch
 ktest.pl-fix-missing-end_monitor-when-machine-check-fails.patch
-scsi-core-remove-the-proc-scsi-proc_name-directory-earlier.patch
 scsi-qla2xxx-fix-link-failure-in-npiv-environment.patch
 scsi-qla2xxx-fix-erroneous-link-down.patch
 scsi-ses-don-t-attach-if-enclosure-has-no-components.patch
diff --git a/queue-4.19/scsi-core-remove-the-proc-scsi-proc_name-directory-earlier.patch b/queue-4.19/scsi-core-remove-the-proc-scsi-proc_name-directory-earlier.patch
deleted file mode 100644 (file)
index 902af7a..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-From fc663711b94468f4e1427ebe289c9f05669699c9 Mon Sep 17 00:00:00 2001
-From: Bart Van Assche <bvanassche@acm.org>
-Date: Fri, 10 Feb 2023 12:52:00 -0800
-Subject: scsi: core: Remove the /proc/scsi/${proc_name} directory earlier
-
-From: Bart Van Assche <bvanassche@acm.org>
-
-commit fc663711b94468f4e1427ebe289c9f05669699c9 upstream.
-
-Remove the /proc/scsi/${proc_name} directory earlier to fix a race
-condition between unloading and reloading kernel modules. This fixes a bug
-introduced in 2009 by commit 77c019768f06 ("[SCSI] fix /proc memory leak in
-the SCSI core").
-
-Fix the following kernel warning:
-
-proc_dir_entry 'scsi/scsi_debug' already registered
-WARNING: CPU: 19 PID: 27986 at fs/proc/generic.c:376 proc_register+0x27d/0x2e0
-Call Trace:
- proc_mkdir+0xb5/0xe0
- scsi_proc_hostdir_add+0xb5/0x170
- scsi_host_alloc+0x683/0x6c0
- sdebug_driver_probe+0x6b/0x2d0 [scsi_debug]
- really_probe+0x159/0x540
- __driver_probe_device+0xdc/0x230
- driver_probe_device+0x4f/0x120
- __device_attach_driver+0xef/0x180
- bus_for_each_drv+0xe5/0x130
- __device_attach+0x127/0x290
- device_initial_probe+0x17/0x20
- bus_probe_device+0x110/0x130
- device_add+0x673/0xc80
- device_register+0x1e/0x30
- sdebug_add_host_helper+0x1a7/0x3b0 [scsi_debug]
- scsi_debug_init+0x64f/0x1000 [scsi_debug]
- do_one_initcall+0xd7/0x470
- do_init_module+0xe7/0x330
- load_module+0x122a/0x12c0
- __do_sys_finit_module+0x124/0x1a0
- __x64_sys_finit_module+0x46/0x50
- do_syscall_64+0x38/0x80
- entry_SYSCALL_64_after_hwframe+0x46/0xb0
-
-Link: https://lore.kernel.org/r/20230210205200.36973-3-bvanassche@acm.org
-Cc: Alan Stern <stern@rowland.harvard.edu>
-Cc: Yi Zhang <yi.zhang@redhat.com>
-Cc: stable@vger.kernel.org
-Fixes: 77c019768f06 ("[SCSI] fix /proc memory leak in the SCSI core")
-Reported-by: Yi Zhang <yi.zhang@redhat.com>
-Signed-off-by: Bart Van Assche <bvanassche@acm.org>
-Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- drivers/scsi/hosts.c |    2 ++
- 1 file changed, 2 insertions(+)
-
---- a/drivers/scsi/hosts.c
-+++ b/drivers/scsi/hosts.c
-@@ -178,6 +178,7 @@ void scsi_remove_host(struct Scsi_Host *
-       scsi_forget_host(shost);
-       mutex_unlock(&shost->scan_mutex);
-       scsi_proc_host_rm(shost);
-+      scsi_proc_hostdir_rm(shost->hostt);
-       spin_lock_irqsave(shost->host_lock, flags);
-       if (scsi_host_set_state(shost, SHOST_DEL))
-@@ -329,6 +330,7 @@ static void scsi_host_dev_release(struct
-       struct Scsi_Host *shost = dev_to_shost(dev);
-       struct device *parent = dev->parent;
-+      /* In case scsi_remove_host() has not been called. */
-       scsi_proc_hostdir_rm(shost->hostt);
-       /* Wait for functions invoked through call_rcu(&shost->rcu, ...) */
index e3c8a8a7a6a00e9ecbe5a29ae803632e1782bfc7..05939407b7d1f227cb580897f3aaa00390697f77 100644 (file)
@@ -183,7 +183,6 @@ media-ipu3-cio2-fix-pm-runtime-usage_count-in-driver-unbind.patch
 ktest.pl-give-back-console-on-ctrt-c-on-monitor.patch
 ktest.pl-fix-missing-end_monitor-when-machine-check-fails.patch
 ktest.pl-add-run_timeout-option-with-default-unlimited.patch
-scsi-core-remove-the-proc-scsi-proc_name-directory-earlier.patch
 scsi-qla2xxx-fix-link-failure-in-npiv-environment.patch
 scsi-qla2xxx-fix-erroneous-link-down.patch
 scsi-ses-don-t-attach-if-enclosure-has-no-components.patch
diff --git a/queue-5.10/scsi-core-remove-the-proc-scsi-proc_name-directory-earlier.patch b/queue-5.10/scsi-core-remove-the-proc-scsi-proc_name-directory-earlier.patch
deleted file mode 100644 (file)
index 5988727..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-From fc663711b94468f4e1427ebe289c9f05669699c9 Mon Sep 17 00:00:00 2001
-From: Bart Van Assche <bvanassche@acm.org>
-Date: Fri, 10 Feb 2023 12:52:00 -0800
-Subject: scsi: core: Remove the /proc/scsi/${proc_name} directory earlier
-
-From: Bart Van Assche <bvanassche@acm.org>
-
-commit fc663711b94468f4e1427ebe289c9f05669699c9 upstream.
-
-Remove the /proc/scsi/${proc_name} directory earlier to fix a race
-condition between unloading and reloading kernel modules. This fixes a bug
-introduced in 2009 by commit 77c019768f06 ("[SCSI] fix /proc memory leak in
-the SCSI core").
-
-Fix the following kernel warning:
-
-proc_dir_entry 'scsi/scsi_debug' already registered
-WARNING: CPU: 19 PID: 27986 at fs/proc/generic.c:376 proc_register+0x27d/0x2e0
-Call Trace:
- proc_mkdir+0xb5/0xe0
- scsi_proc_hostdir_add+0xb5/0x170
- scsi_host_alloc+0x683/0x6c0
- sdebug_driver_probe+0x6b/0x2d0 [scsi_debug]
- really_probe+0x159/0x540
- __driver_probe_device+0xdc/0x230
- driver_probe_device+0x4f/0x120
- __device_attach_driver+0xef/0x180
- bus_for_each_drv+0xe5/0x130
- __device_attach+0x127/0x290
- device_initial_probe+0x17/0x20
- bus_probe_device+0x110/0x130
- device_add+0x673/0xc80
- device_register+0x1e/0x30
- sdebug_add_host_helper+0x1a7/0x3b0 [scsi_debug]
- scsi_debug_init+0x64f/0x1000 [scsi_debug]
- do_one_initcall+0xd7/0x470
- do_init_module+0xe7/0x330
- load_module+0x122a/0x12c0
- __do_sys_finit_module+0x124/0x1a0
- __x64_sys_finit_module+0x46/0x50
- do_syscall_64+0x38/0x80
- entry_SYSCALL_64_after_hwframe+0x46/0xb0
-
-Link: https://lore.kernel.org/r/20230210205200.36973-3-bvanassche@acm.org
-Cc: Alan Stern <stern@rowland.harvard.edu>
-Cc: Yi Zhang <yi.zhang@redhat.com>
-Cc: stable@vger.kernel.org
-Fixes: 77c019768f06 ("[SCSI] fix /proc memory leak in the SCSI core")
-Reported-by: Yi Zhang <yi.zhang@redhat.com>
-Signed-off-by: Bart Van Assche <bvanassche@acm.org>
-Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- drivers/scsi/hosts.c |    2 ++
- 1 file changed, 2 insertions(+)
-
---- a/drivers/scsi/hosts.c
-+++ b/drivers/scsi/hosts.c
-@@ -180,6 +180,7 @@ void scsi_remove_host(struct Scsi_Host *
-       scsi_forget_host(shost);
-       mutex_unlock(&shost->scan_mutex);
-       scsi_proc_host_rm(shost);
-+      scsi_proc_hostdir_rm(shost->hostt);
-       spin_lock_irqsave(shost->host_lock, flags);
-       if (scsi_host_set_state(shost, SHOST_DEL))
-@@ -321,6 +322,7 @@ static void scsi_host_dev_release(struct
-       struct Scsi_Host *shost = dev_to_shost(dev);
-       struct device *parent = dev->parent;
-+      /* In case scsi_remove_host() has not been called. */
-       scsi_proc_hostdir_rm(shost->hostt);
-       /* Wait for functions invoked through call_rcu(&shost->rcu, ...) */
index a9b313ad14c13cc199404d39f9754d32dda2240b..995077c395fda08d921ab729a49df3611e6e9d84 100644 (file)
@@ -408,7 +408,6 @@ ktest.pl-give-back-console-on-ctrt-c-on-monitor.patch
 ktest.pl-fix-missing-end_monitor-when-machine-check-fails.patch
 ktest.pl-add-run_timeout-option-with-default-unlimited.patch
 ring-buffer-handle-race-between-rb_move_tail-and-rb_check_pages.patch
-scsi-core-remove-the-proc-scsi-proc_name-directory-earlier.patch
 scsi-qla2xxx-fix-link-failure-in-npiv-environment.patch
 scsi-qla2xxx-fix-dma-api-call-trace-on-nvme-ls-requests.patch
 scsi-qla2xxx-fix-erroneous-link-down.patch
diff --git a/queue-5.15/scsi-core-remove-the-proc-scsi-proc_name-directory-earlier.patch b/queue-5.15/scsi-core-remove-the-proc-scsi-proc_name-directory-earlier.patch
deleted file mode 100644 (file)
index 1d6deb9..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-From fc663711b94468f4e1427ebe289c9f05669699c9 Mon Sep 17 00:00:00 2001
-From: Bart Van Assche <bvanassche@acm.org>
-Date: Fri, 10 Feb 2023 12:52:00 -0800
-Subject: scsi: core: Remove the /proc/scsi/${proc_name} directory earlier
-
-From: Bart Van Assche <bvanassche@acm.org>
-
-commit fc663711b94468f4e1427ebe289c9f05669699c9 upstream.
-
-Remove the /proc/scsi/${proc_name} directory earlier to fix a race
-condition between unloading and reloading kernel modules. This fixes a bug
-introduced in 2009 by commit 77c019768f06 ("[SCSI] fix /proc memory leak in
-the SCSI core").
-
-Fix the following kernel warning:
-
-proc_dir_entry 'scsi/scsi_debug' already registered
-WARNING: CPU: 19 PID: 27986 at fs/proc/generic.c:376 proc_register+0x27d/0x2e0
-Call Trace:
- proc_mkdir+0xb5/0xe0
- scsi_proc_hostdir_add+0xb5/0x170
- scsi_host_alloc+0x683/0x6c0
- sdebug_driver_probe+0x6b/0x2d0 [scsi_debug]
- really_probe+0x159/0x540
- __driver_probe_device+0xdc/0x230
- driver_probe_device+0x4f/0x120
- __device_attach_driver+0xef/0x180
- bus_for_each_drv+0xe5/0x130
- __device_attach+0x127/0x290
- device_initial_probe+0x17/0x20
- bus_probe_device+0x110/0x130
- device_add+0x673/0xc80
- device_register+0x1e/0x30
- sdebug_add_host_helper+0x1a7/0x3b0 [scsi_debug]
- scsi_debug_init+0x64f/0x1000 [scsi_debug]
- do_one_initcall+0xd7/0x470
- do_init_module+0xe7/0x330
- load_module+0x122a/0x12c0
- __do_sys_finit_module+0x124/0x1a0
- __x64_sys_finit_module+0x46/0x50
- do_syscall_64+0x38/0x80
- entry_SYSCALL_64_after_hwframe+0x46/0xb0
-
-Link: https://lore.kernel.org/r/20230210205200.36973-3-bvanassche@acm.org
-Cc: Alan Stern <stern@rowland.harvard.edu>
-Cc: Yi Zhang <yi.zhang@redhat.com>
-Cc: stable@vger.kernel.org
-Fixes: 77c019768f06 ("[SCSI] fix /proc memory leak in the SCSI core")
-Reported-by: Yi Zhang <yi.zhang@redhat.com>
-Signed-off-by: Bart Van Assche <bvanassche@acm.org>
-Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- drivers/scsi/hosts.c |    2 ++
- 1 file changed, 2 insertions(+)
-
---- a/drivers/scsi/hosts.c
-+++ b/drivers/scsi/hosts.c
-@@ -180,6 +180,7 @@ void scsi_remove_host(struct Scsi_Host *
-       scsi_forget_host(shost);
-       mutex_unlock(&shost->scan_mutex);
-       scsi_proc_host_rm(shost);
-+      scsi_proc_hostdir_rm(shost->hostt);
-       spin_lock_irqsave(shost->host_lock, flags);
-       if (scsi_host_set_state(shost, SHOST_DEL))
-@@ -321,6 +322,7 @@ static void scsi_host_dev_release(struct
-       struct Scsi_Host *shost = dev_to_shost(dev);
-       struct device *parent = dev->parent;
-+      /* In case scsi_remove_host() has not been called. */
-       scsi_proc_hostdir_rm(shost->hostt);
-       /* Wait for functions invoked through call_rcu(&scmd->rcu, ...) */
index 5db16afb45a76b1bf4a6e60ec477fee3742f799f..93b80d58f4ccf0a98ad88d23b095ad3e5044d95e 100644 (file)
@@ -532,7 +532,6 @@ ktest.pl-fix-missing-end_monitor-when-machine-check-fails.patch
 ktest.pl-add-run_timeout-option-with-default-unlimited.patch
 ring-buffer-handle-race-between-rb_move_tail-and-rb_check_pages.patch
 tools-bootconfig-fix-single-used-for-logical-condition.patch
-scsi-core-remove-the-proc-scsi-proc_name-directory-earlier.patch
 scsi-qla2xxx-fix-link-failure-in-npiv-environment.patch
 scsi-qla2xxx-check-if-port-is-online-before-sending-els.patch
 scsi-qla2xxx-fix-dma-api-call-trace-on-nvme-ls-requests.patch
diff --git a/queue-5.4/scsi-core-remove-the-proc-scsi-proc_name-directory-earlier.patch b/queue-5.4/scsi-core-remove-the-proc-scsi-proc_name-directory-earlier.patch
deleted file mode 100644 (file)
index cbfe1da..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-From fc663711b94468f4e1427ebe289c9f05669699c9 Mon Sep 17 00:00:00 2001
-From: Bart Van Assche <bvanassche@acm.org>
-Date: Fri, 10 Feb 2023 12:52:00 -0800
-Subject: scsi: core: Remove the /proc/scsi/${proc_name} directory earlier
-
-From: Bart Van Assche <bvanassche@acm.org>
-
-commit fc663711b94468f4e1427ebe289c9f05669699c9 upstream.
-
-Remove the /proc/scsi/${proc_name} directory earlier to fix a race
-condition between unloading and reloading kernel modules. This fixes a bug
-introduced in 2009 by commit 77c019768f06 ("[SCSI] fix /proc memory leak in
-the SCSI core").
-
-Fix the following kernel warning:
-
-proc_dir_entry 'scsi/scsi_debug' already registered
-WARNING: CPU: 19 PID: 27986 at fs/proc/generic.c:376 proc_register+0x27d/0x2e0
-Call Trace:
- proc_mkdir+0xb5/0xe0
- scsi_proc_hostdir_add+0xb5/0x170
- scsi_host_alloc+0x683/0x6c0
- sdebug_driver_probe+0x6b/0x2d0 [scsi_debug]
- really_probe+0x159/0x540
- __driver_probe_device+0xdc/0x230
- driver_probe_device+0x4f/0x120
- __device_attach_driver+0xef/0x180
- bus_for_each_drv+0xe5/0x130
- __device_attach+0x127/0x290
- device_initial_probe+0x17/0x20
- bus_probe_device+0x110/0x130
- device_add+0x673/0xc80
- device_register+0x1e/0x30
- sdebug_add_host_helper+0x1a7/0x3b0 [scsi_debug]
- scsi_debug_init+0x64f/0x1000 [scsi_debug]
- do_one_initcall+0xd7/0x470
- do_init_module+0xe7/0x330
- load_module+0x122a/0x12c0
- __do_sys_finit_module+0x124/0x1a0
- __x64_sys_finit_module+0x46/0x50
- do_syscall_64+0x38/0x80
- entry_SYSCALL_64_after_hwframe+0x46/0xb0
-
-Link: https://lore.kernel.org/r/20230210205200.36973-3-bvanassche@acm.org
-Cc: Alan Stern <stern@rowland.harvard.edu>
-Cc: Yi Zhang <yi.zhang@redhat.com>
-Cc: stable@vger.kernel.org
-Fixes: 77c019768f06 ("[SCSI] fix /proc memory leak in the SCSI core")
-Reported-by: Yi Zhang <yi.zhang@redhat.com>
-Signed-off-by: Bart Van Assche <bvanassche@acm.org>
-Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- drivers/scsi/hosts.c |    2 ++
- 1 file changed, 2 insertions(+)
-
---- a/drivers/scsi/hosts.c
-+++ b/drivers/scsi/hosts.c
-@@ -179,6 +179,7 @@ void scsi_remove_host(struct Scsi_Host *
-       scsi_forget_host(shost);
-       mutex_unlock(&shost->scan_mutex);
-       scsi_proc_host_rm(shost);
-+      scsi_proc_hostdir_rm(shost->hostt);
-       spin_lock_irqsave(shost->host_lock, flags);
-       if (scsi_host_set_state(shost, SHOST_DEL))
-@@ -318,6 +319,7 @@ static void scsi_host_dev_release(struct
-       struct Scsi_Host *shost = dev_to_shost(dev);
-       struct device *parent = dev->parent;
-+      /* In case scsi_remove_host() has not been called. */
-       scsi_proc_hostdir_rm(shost->hostt);
-       /* Wait for functions invoked through call_rcu(&shost->rcu, ...) */
index cd4ac9b1a1bffd709a3734eecb700c8f5f2918b6..c7eecb204688489e2f21fe835e2bee4f57e9a043 100644 (file)
@@ -266,7 +266,6 @@ mm-thp-check-and-bail-out-if-page-in-deferred-queue-already.patch
 ktest.pl-give-back-console-on-ctrt-c-on-monitor.patch
 ktest.pl-fix-missing-end_monitor-when-machine-check-fails.patch
 ktest.pl-add-run_timeout-option-with-default-unlimited.patch
-scsi-core-remove-the-proc-scsi-proc_name-directory-earlier.patch
 scsi-qla2xxx-fix-link-failure-in-npiv-environment.patch
 scsi-qla2xxx-fix-dma-api-call-trace-on-nvme-ls-requests.patch
 scsi-qla2xxx-fix-erroneous-link-down.patch
diff --git a/queue-6.1/scsi-core-remove-the-proc-scsi-proc_name-directory-earlier.patch b/queue-6.1/scsi-core-remove-the-proc-scsi-proc_name-directory-earlier.patch
deleted file mode 100644 (file)
index dbebf36..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-From fc663711b94468f4e1427ebe289c9f05669699c9 Mon Sep 17 00:00:00 2001
-From: Bart Van Assche <bvanassche@acm.org>
-Date: Fri, 10 Feb 2023 12:52:00 -0800
-Subject: scsi: core: Remove the /proc/scsi/${proc_name} directory earlier
-
-From: Bart Van Assche <bvanassche@acm.org>
-
-commit fc663711b94468f4e1427ebe289c9f05669699c9 upstream.
-
-Remove the /proc/scsi/${proc_name} directory earlier to fix a race
-condition between unloading and reloading kernel modules. This fixes a bug
-introduced in 2009 by commit 77c019768f06 ("[SCSI] fix /proc memory leak in
-the SCSI core").
-
-Fix the following kernel warning:
-
-proc_dir_entry 'scsi/scsi_debug' already registered
-WARNING: CPU: 19 PID: 27986 at fs/proc/generic.c:376 proc_register+0x27d/0x2e0
-Call Trace:
- proc_mkdir+0xb5/0xe0
- scsi_proc_hostdir_add+0xb5/0x170
- scsi_host_alloc+0x683/0x6c0
- sdebug_driver_probe+0x6b/0x2d0 [scsi_debug]
- really_probe+0x159/0x540
- __driver_probe_device+0xdc/0x230
- driver_probe_device+0x4f/0x120
- __device_attach_driver+0xef/0x180
- bus_for_each_drv+0xe5/0x130
- __device_attach+0x127/0x290
- device_initial_probe+0x17/0x20
- bus_probe_device+0x110/0x130
- device_add+0x673/0xc80
- device_register+0x1e/0x30
- sdebug_add_host_helper+0x1a7/0x3b0 [scsi_debug]
- scsi_debug_init+0x64f/0x1000 [scsi_debug]
- do_one_initcall+0xd7/0x470
- do_init_module+0xe7/0x330
- load_module+0x122a/0x12c0
- __do_sys_finit_module+0x124/0x1a0
- __x64_sys_finit_module+0x46/0x50
- do_syscall_64+0x38/0x80
- entry_SYSCALL_64_after_hwframe+0x46/0xb0
-
-Link: https://lore.kernel.org/r/20230210205200.36973-3-bvanassche@acm.org
-Cc: Alan Stern <stern@rowland.harvard.edu>
-Cc: Yi Zhang <yi.zhang@redhat.com>
-Cc: stable@vger.kernel.org
-Fixes: 77c019768f06 ("[SCSI] fix /proc memory leak in the SCSI core")
-Reported-by: Yi Zhang <yi.zhang@redhat.com>
-Signed-off-by: Bart Van Assche <bvanassche@acm.org>
-Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- drivers/scsi/hosts.c |    2 ++
- 1 file changed, 2 insertions(+)
-
---- a/drivers/scsi/hosts.c
-+++ b/drivers/scsi/hosts.c
-@@ -181,6 +181,7 @@ void scsi_remove_host(struct Scsi_Host *
-       scsi_forget_host(shost);
-       mutex_unlock(&shost->scan_mutex);
-       scsi_proc_host_rm(shost);
-+      scsi_proc_hostdir_rm(shost->hostt);
-       /*
-        * New SCSI devices cannot be attached anymore because of the SCSI host
-@@ -340,6 +341,7 @@ static void scsi_host_dev_release(struct
-       struct Scsi_Host *shost = dev_to_shost(dev);
-       struct device *parent = dev->parent;
-+      /* In case scsi_remove_host() has not been called. */
-       scsi_proc_hostdir_rm(shost->hostt);
-       /* Wait for functions invoked through call_rcu(&scmd->rcu, ...) */
index 3f071c831d370717669bc0bea93b4eb6fcf5a254..bec3cba8540fefe2f7970d3dd4d00f49aedaf51a 100644 (file)
@@ -838,7 +838,6 @@ tracing-eprobe-fix-to-add-filter-on-eprobe-description-in-readme-file.patch
 iommu-amd-add-a-length-limitation-for-the-ivrs_acpihid-command-line-parameter.patch
 iommu-amd-improve-page-fault-error-reporting.patch
 scsi-aacraid-allocate-cmd_priv-with-scsicmd.patch
-scsi-core-remove-the-proc-scsi-proc_name-directory-earlier.patch
 scsi-qla2xxx-fix-link-failure-in-npiv-environment.patch
 scsi-qla2xxx-check-if-port-is-online-before-sending-els.patch
 scsi-qla2xxx-fix-dma-api-call-trace-on-nvme-ls-requests.patch
diff --git a/queue-6.2/scsi-core-remove-the-proc-scsi-proc_name-directory-earlier.patch b/queue-6.2/scsi-core-remove-the-proc-scsi-proc_name-directory-earlier.patch
deleted file mode 100644 (file)
index dbebf36..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-From fc663711b94468f4e1427ebe289c9f05669699c9 Mon Sep 17 00:00:00 2001
-From: Bart Van Assche <bvanassche@acm.org>
-Date: Fri, 10 Feb 2023 12:52:00 -0800
-Subject: scsi: core: Remove the /proc/scsi/${proc_name} directory earlier
-
-From: Bart Van Assche <bvanassche@acm.org>
-
-commit fc663711b94468f4e1427ebe289c9f05669699c9 upstream.
-
-Remove the /proc/scsi/${proc_name} directory earlier to fix a race
-condition between unloading and reloading kernel modules. This fixes a bug
-introduced in 2009 by commit 77c019768f06 ("[SCSI] fix /proc memory leak in
-the SCSI core").
-
-Fix the following kernel warning:
-
-proc_dir_entry 'scsi/scsi_debug' already registered
-WARNING: CPU: 19 PID: 27986 at fs/proc/generic.c:376 proc_register+0x27d/0x2e0
-Call Trace:
- proc_mkdir+0xb5/0xe0
- scsi_proc_hostdir_add+0xb5/0x170
- scsi_host_alloc+0x683/0x6c0
- sdebug_driver_probe+0x6b/0x2d0 [scsi_debug]
- really_probe+0x159/0x540
- __driver_probe_device+0xdc/0x230
- driver_probe_device+0x4f/0x120
- __device_attach_driver+0xef/0x180
- bus_for_each_drv+0xe5/0x130
- __device_attach+0x127/0x290
- device_initial_probe+0x17/0x20
- bus_probe_device+0x110/0x130
- device_add+0x673/0xc80
- device_register+0x1e/0x30
- sdebug_add_host_helper+0x1a7/0x3b0 [scsi_debug]
- scsi_debug_init+0x64f/0x1000 [scsi_debug]
- do_one_initcall+0xd7/0x470
- do_init_module+0xe7/0x330
- load_module+0x122a/0x12c0
- __do_sys_finit_module+0x124/0x1a0
- __x64_sys_finit_module+0x46/0x50
- do_syscall_64+0x38/0x80
- entry_SYSCALL_64_after_hwframe+0x46/0xb0
-
-Link: https://lore.kernel.org/r/20230210205200.36973-3-bvanassche@acm.org
-Cc: Alan Stern <stern@rowland.harvard.edu>
-Cc: Yi Zhang <yi.zhang@redhat.com>
-Cc: stable@vger.kernel.org
-Fixes: 77c019768f06 ("[SCSI] fix /proc memory leak in the SCSI core")
-Reported-by: Yi Zhang <yi.zhang@redhat.com>
-Signed-off-by: Bart Van Assche <bvanassche@acm.org>
-Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- drivers/scsi/hosts.c |    2 ++
- 1 file changed, 2 insertions(+)
-
---- a/drivers/scsi/hosts.c
-+++ b/drivers/scsi/hosts.c
-@@ -181,6 +181,7 @@ void scsi_remove_host(struct Scsi_Host *
-       scsi_forget_host(shost);
-       mutex_unlock(&shost->scan_mutex);
-       scsi_proc_host_rm(shost);
-+      scsi_proc_hostdir_rm(shost->hostt);
-       /*
-        * New SCSI devices cannot be attached anymore because of the SCSI host
-@@ -340,6 +341,7 @@ static void scsi_host_dev_release(struct
-       struct Scsi_Host *shost = dev_to_shost(dev);
-       struct device *parent = dev->parent;
-+      /* In case scsi_remove_host() has not been called. */
-       scsi_proc_hostdir_rm(shost->hostt);
-       /* Wait for functions invoked through call_rcu(&scmd->rcu, ...) */
index c35897016be3841a65d9099916a510b38e60f7ff..828212c74428bb6a98434a8cf8650cd67ad123f7 100644 (file)
@@ -949,7 +949,6 @@ tools-bootconfig-fix-single-used-for-logical-condition.patch
 tracing-eprobe-fix-to-add-filter-on-eprobe-description-in-readme-file.patch
 iommu-amd-add-a-length-limitation-for-the-ivrs_acpihid-command-line-parameter.patch
 scsi-aacraid-allocate-cmd_priv-with-scsicmd.patch
-scsi-core-remove-the-proc-scsi-proc_name-directory-earlier.patch
 scsi-qla2xxx-fix-link-failure-in-npiv-environment.patch
 scsi-qla2xxx-check-if-port-is-online-before-sending-els.patch
 scsi-qla2xxx-fix-dma-api-call-trace-on-nvme-ls-requests.patch