Skip to contentSkip to conversation

rds: rdma: Add ability to force GFP_NOIO

PATCH In review Håkon Bugge 4 participants 17 messages May 22, 2024 – May 23, 2024

Subsystems (7)
lore
Share & tools
lore
#0 lore raw

v3 cover rds: rdma: Add ability to force GFP_NOIO

This series enables RDS and the RDMA stack to be used as a block I/O device. This to support a filesystem on top of a raw block device which uses RDS and the RDMA stack as the network transport layer.

Under intense memory pressure, we get memory reclaims. Assume the filesystem reclaims memory, goes to the raw block device, which calls into RDS, which calls the RDMA stack. Now, if regular GFP_KERNEL allocations in RDS or the RDMA stack require reclaims to be fulfilled, we end up in a circular dependency.

We break this circular dependency by:

1. Force all allocations in RDS and the relevant RDMA stack to use GFP_NOIO, by means of a parenthetic use of memalloc_noio_{save,restore} on all relevant entry points.

2. Make sure work-queues inherits current->flags wrt. PF_MEMALLOC*, such that work executed on the work-queue inherits the same flag(s).

Håkon Bugge (6):
workqueue: Inherit per-process allocation flags
rds: Brute force GFP_NOIO
RDMA/cma: Brute force GFP_NOIO
RDMA/cm: Brute force GFP_NOIO
RDMA/mlx5: Brute force GFP_NOIO
net/mlx5: Brute force GFP_NOIO

 drivers/infiniband/core/cm.c                  | 15 ++++-
 drivers/infiniband/core/cma.c                 | 20 ++++++-
 drivers/infiniband/hw/mlx5/main.c             | 22 +++++--
 .../net/ethernet/mellanox/mlx5/core/main.c    | 14 ++++-
 include/linux/workqueue.h                     |  9 +++
 kernel/workqueue.c                            | 60 +++++++++++++++++++
 net/rds/af_rds.c                              | 59 +++++++++++++++++-
 7 files changed, 187 insertions(+), 12 deletions(-)

--
2.31.1

#1 lore raw

PATCH v3 1/6 workqueue: Inherit per-process allocation flags

For drivers/modules running inside a memalloc_flags_{save,restore} region, if a work-queue is created, we make sure work executed on the work-queue inherits the same flag(s).

This in order to conditionally enable drivers to work aligned with block I/O devices. This commit makes sure that any work queued later on work-queues created during module initialization, when current's flags has any of the PF_MEMALLOC* set, will inherit the same flags.

We do this in order to enable drivers to be used as a network block I/O device. This in order to support XFS or other file-systems on top of a raw block device which uses said drivers as the network transport layer.

Under intense memory pressure, we get memory reclaims. Assume the file-system reclaims memory, goes to the raw block device, which calls into said drivers. Now, if regular GFP_KERNEL allocations in the drivers require reclaims to be fulfilled, we end up in a circular dependency.

We break this circular dependency by:

1. Force all allocations in the drivers to use GFP_NOIO, by means of a parenthetic use of memalloc_flags_{save,restore} on all relevant entry points, setting/clearing the PF_MEMALLOC_NOIO bit.

2. Make sure work-queues inherits current->flags
wrt. PF_MEMALLOC_NOIO, such that work executed on the work-queue inherits the same flag(s). That is what this commit contributes with.

---

v2 -> v3:
* Add support for all PF_MEMALLOC* flags
* Re-worded commit message

v1 -> v2:
* Added missing hunk in alloc_workqueue()

---
 include/linux/workqueue.h |  9 ++++++
 kernel/workqueue.c        | 60 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 69 insertions(+)
include/linux/workqueue.h +9 -0
index fb39938945365..f8c87f824272b 100644
@@ -406,9 +406,18 @@ enum wq_flags {
 	__WQ_DRAINING		= 1 << 16, /* internal: workqueue is draining */
 	__WQ_ORDERED		= 1 << 17, /* internal: workqueue is ordered */
 	__WQ_LEGACY		= 1 << 18, /* internal: create*_workqueue() */
+	__WQ_MEMALLOC		= 1 << 19, /* internal: execute work with MEMALLOC */
+	__WQ_MEMALLOC_NOFS      = 1 << 20, /* internal: execute work with MEMALLOC_NOFS */
+	__WQ_MEMALLOC_NOIO      = 1 << 21, /* internal: execute work with MEMALLOC_NOIO */
+	__WQ_MEMALLOC_NORECLAIM = 1 << 22, /* internal: execute work with MEMALLOC_NORECLAIM */
+	__WQ_MEMALLOC_NOWARN    = 1 << 23, /* internal: execute work with MEMALLOC_NOWARN */
+	__WQ_MEMALLOC_PIN	= 1 << 24, /* internal: execute work with MEMALLOC_PIN */
 
 	/* BH wq only allows the following flags */
 	__WQ_BH_ALLOWS		= WQ_BH | WQ_HIGHPRI,
+
+	__WQ_PF_MEMALLOC_MASK	= PF_MEMALLOC | PF_MEMALLOC_NOFS | PF_MEMALLOC_NOIO |
+				  PF_MEMALLOC_NORECLAIM | PF_MEMALLOC_NOWARN | PF_MEMALLOC_PIN,
 };
 
 enum wq_consts {
kernel/workqueue.c +60 -0

102 lines not on this page · raw message

Signature · 1 line
2.31.1
maintainer
#2 lore raw

Re: [PATCH v3 1/6] workqueue: Inherit per-process allocation flags

Hello,

include/linux/workqueue.h enum wq_flags { · line 414

Quoted 12 lines · Håkon Bugge
include/linux/workqueue.h +6 -0
@@ -406,9 +406,18 @@ enum wq_flags {
 	__WQ_DRAINING		= 1 << 16, /* internal: workqueue is draining */
 	__WQ_ORDERED		= 1 << 17, /* internal: workqueue is ordered */
 	__WQ_LEGACY		= 1 << 18, /* internal: create*_workqueue() */
+	__WQ_MEMALLOC		= 1 << 19, /* internal: execute work with MEMALLOC */
+	__WQ_MEMALLOC_NOFS      = 1 << 20, /* internal: execute work with MEMALLOC_NOFS */
+	__WQ_MEMALLOC_NOIO      = 1 << 21, /* internal: execute work with MEMALLOC_NOIO */
+	__WQ_MEMALLOC_NORECLAIM = 1 << 22, /* internal: execute work with MEMALLOC_NORECLAIM */
+	__WQ_MEMALLOC_NOWARN    = 1 << 23, /* internal: execute work with MEMALLOC_NOWARN */
+	__WQ_MEMALLOC_PIN	= 1 << 24, /* internal: execute work with MEMALLOC_PIN */

Please use a separate field w/ gfp_t. You can probably add it to workqueue_attrs.

Thanks.

Signature · 1 line
tejun
#3 lore raw

PATCH v3 1/6 Orabug_list: Drop 36459425

In reply to Håkon Bugge

From: luci <[email protected]>

Build fix for 6.9 LUCI

---
 uek-rpm/.Orabug_list | 1 +
 1 file changed, 1 insertion(+)
uek-rpm/.Orabug_list +1 -0
index c5b31288c668c..7becf1b0a9be7 100644
@@ -2,3 +2,4 @@
 34116060 # LUCI Maintainer: Disable OpenSSL 3.0 warnings for v5.18
 35455153 # [UEK-NEXT] Manage Original OL Signing Keys
 35641429 # Add uek_kabi.h to LUCI and update check-kabi scripts
+36459425 # Build fix for 6.9 LUCI
Signature · 1 line
2.31.1
#4 lore raw

PATCH v3 2/6 rds: Brute force GFP_NOIO

In reply to Håkon Bugge

For most entry points to RDS, we call memalloc_noio_{save,restore} in a parenthetic fashion when enabled by the module parameter force_noio.

We skip the calls to memalloc_noio_{save,restore} in rds_ioctl(), as no memory allocations are executed in this function or its callees.

The reason we execute memalloc_noio_{save,restore} in rds_poll(), is due to the following call chain:

rds_poll()

        poll_wait()
                __pollwait()
                        poll_get_entry()
                                __get_free_page(GFP_KERNEL)

The function rds_setsockopt() allocates memory in its callee's rds_get_mr() and rds_get_mr_for_dest(). Hence, we need memalloc_noio_{save,restore} in rds_setsockopt().

In rds_getsockopt(), we have rds_info_getsockopt() that allocates memory. Hence, we need memalloc_noio_{save,restore} in rds_getsockopt().

All the above, in order to conditionally enable RDS to become a block I/O device.

---

v1 -> v2:
* s/EXPORT_SYMBOL/static/ for the rds_force_noio variable as pin-pointed by Simon
* Straightened the reverse xmas tree two places
* Fixed C/P error in rds_cancel_sent_to() where I had two _save()s and no _restore() as reported by Simon

---
 net/rds/af_rds.c | 59 +++++++++++++++++++++++++++++++++++++++++++++---
 1 file changed, 56 insertions(+), 3 deletions(-)
net/rds/af_rds.c +56 -3
index 8435a20968ef5..846ad20b3783a 100644
@@ -37,10 +37,15 @@
 #include <linux/in.h>
 #include <linux/ipv6.h>
 #include <linux/poll.h>
+#include <linux/sched/mm.h>
 #include <net/sock.h>
 
 #include "rds.h"
 
+static bool rds_force_noio;
+module_param_named(force_noio, rds_force_noio, bool, 0444);
+MODULE_PARM_DESC(force_noio, "Force the use of GFP_NOIO (Y/N)");
+
 /* this is just used for stats gathering :/ */
 static DEFINE_SPINLOCK(rds_sock_lock);
 static unsigned long rds_sock_count;
@@ -59,8 +64,12 @@ DECLARE_WAIT_QUEUE_HEAD(rds_poll_waitq);
 static int rds_release(struct socket *sock)
 {
 	struct sock *sk = sock->sk;
+	unsigned int noio_flags;
 	struct rds_sock *rs;
 
+	if (rds_force_noio)
+		noio_flags = memalloc_noio_save();
+
 	if (!sk)
 		goto out;
 
@@ -90,6 +99,8 @@ static int rds_release(struct socket *sock)
 	sock->sk = NULL;
 	sock_put(sk);
 out:
+	if (rds_force_noio)
+		memalloc_noio_restore(noio_flags);
 	return 0;
 }
 
@@ -214,9 +225,13 @@ static __poll_t rds_poll(struct file *file, struct socket *sock,
 {
 	struct sock *sk = sock->sk;
 	struct rds_sock *rs = rds_sk_to_rs(sk);
+	unsigned int noio_flags;
 	__poll_t mask = 0;
 	unsigned long flags;
 
+	if (rds_force_noio)
+		noio_flags = memalloc_noio_save();
+
 	poll_wait(file, sk_sleep(sk), wait);
 
 	if (rs->rs_seen_congestion)
@@ -249,6 +264,8 @@ static __poll_t rds_poll(struct file *file, struct socket *sock,
 	if (mask)
 		rs->rs_seen_congestion = 0;
 
+	if (rds_force_noio)
+		memalloc_noio_restore(noio_flags);
 	return mask;
 }
 
@@ -293,9 +310,13 @@ static int rds_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
 static int rds_cancel_sent_to(struct rds_sock *rs, sockptr_t optval, int len)
 {
 	struct sockaddr_in6 sin6;
+	unsigned int noio_flags;
 	struct sockaddr_in sin;
 	int ret = 0;
 
+	if (rds_force_noio)
+		noio_flags = memalloc_noio_save();
+
 	/* racing with another thread binding seems ok here */
 	if (ipv6_addr_any(&rs->rs_bound_addr)) {
 		ret = -ENOTCONN; /* XXX not a great errno */
@@ -324,6 +345,8 @@ static int rds_cancel_sent_to(struct rds_sock *rs, sockptr_t optval, int len)
 
 	rds_send_drop_to(rs, &sin6);
 out:
+	if (rds_force_noio)
+		memalloc_noio_restore(noio_flags);
 	return ret;
 }
 
@@ -485,8 +508,12 @@ static int rds_getsockopt(struct socket *sock, int level, int optname,
 {
 	struct rds_sock *rs = rds_sk_to_rs(sock->sk);
 	int ret = -ENOPROTOOPT, len;
+	unsigned int noio_flags;
 	int trans;
 
+	if (rds_force_noio)
+		noio_flags = memalloc_noio_save();
+
 	if (level != SOL_RDS)
 		goto out;
 
@@ -529,6 +556,8 @@ static int rds_getsockopt(struct socket *sock, int level, int optname,
 	}
 
 out:
+	if (rds_force_noio)
+		memalloc_noio_restore(noio_flags);
 	return ret;
 
 }
@@ -538,12 +567,16 @@ static int rds_connect(struct socket *sock, struct sockaddr *uaddr,
 {
 	struct sock *sk = sock->sk;
 	struct sockaddr_in *sin;
+	unsigned int noio_flags;
 	struct rds_sock *rs = rds_sk_to_rs(sk);
 	int ret = 0;
 
 	if (addr_len < offsetofend(struct sockaddr, sa_family))
 		return -EINVAL;
 
+	if (rds_force_noio)
+		noio_flags = memalloc_noio_save();
+
 	lock_sock(sk);
 
 	switch (uaddr->sa_family) {
@@ -626,6 +659,8 @@ static int rds_connect(struct socket *sock, struct sockaddr *uaddr,
 	}
 
 	release_sock(sk);
+	if (rds_force_noio)
+		memalloc_noio_restore(noio_flags);
 	return ret;
 }
 
@@ -697,16 +732,28 @@ static int __rds_create(struct socket *sock, struct sock *sk, int protocol)
 static int rds_create(struct net *net, struct socket *sock, int protocol,
 		      int kern)
 {
+	unsigned int noio_flags;
 	struct sock *sk;
+	int ret;
 
 	if (sock->type != SOCK_SEQPACKET || protocol)
 		return -ESOCKTNOSUPPORT;
 
+	if (rds_force_noio)
+		noio_flags = memalloc_noio_save();
+
 	sk = sk_alloc(net, AF_RDS, GFP_KERNEL, &rds_proto, kern);
-	if (!sk)
-		return -ENOMEM;
+	if (!sk) {
+		ret = -ENOMEM;
+		goto out;
+	}
 
-	return __rds_create(sock, sk, protocol);
+	ret = __rds_create(sock, sk, protocol);
+out:
+	if (rds_force_noio)
+		memalloc_noio_restore(noio_flags);
+
+	return ret;
 }
 
 void rds_sock_addref(struct rds_sock *rs)
@@ -895,8 +942,12 @@ u32 rds_gen_num;
 
 static int __init rds_init(void)
 {
+	unsigned int noio_flags;
 	int ret;
 
+	if (rds_force_noio)
+		noio_flags = memalloc_noio_save();
+
 	net_get_random_once(&rds_gen_num, sizeof(rds_gen_num));
 
 	ret = rds_bind_lock_init();
@@ -947,6 +998,8 @@ static int __init rds_init(void)
 out_bind:
 	rds_bind_lock_destroy();
 out:
+	if (rds_force_noio)
+		memalloc_noio_restore(noio_flags);
 	return ret;
 }
 module_init(rds_init);
Signature · 1 line
2.31.1
#5 lore raw

PATCH v3 2/6 ml: renaming metadata directory

In reply to Håkon Bugge

From: Luci Bot <[email protected]>

Adjusting the metadata directory name to match the legacy mainline system

---
 {uek-rpm => ml-rpm}/ol8/Module.kabi_aarch64         |   0
 {uek-rpm => ml-rpm}/ol8/Module.kabi_aarch64debug    |   0
 {uek-rpm => ml-rpm}/ol8/Module.kabi_x86_64          |   0
 {uek-rpm => ml-rpm}/ol8/Module.kabi_x86_64debug     |   0
 {uek-rpm => ml-rpm}/ol8/Symtypes.kabi_aarch64       |   0
 {uek-rpm => ml-rpm}/ol8/Symtypes.kabi_aarch64debug  |   0
 {uek-rpm => ml-rpm}/ol8/Symtypes.kabi_x86_64        |   0
 {uek-rpm => ml-rpm}/ol8/Symtypes.kabi_x86_64debug   |   0
 {uek-rpm => ml-rpm}/ol8/check-kabi                  |   0
 {uek-rpm => ml-rpm}/ol8/config-aarch64              |   0
 {uek-rpm => ml-rpm}/ol8/config-aarch64-container    |   0
 {uek-rpm => ml-rpm}/ol8/config-aarch64-debug        |   0
 {uek-rpm => ml-rpm}/ol8/config-aarch64-emb3         |   0
 {uek-rpm => ml-rpm}/ol8/config-aarch64-emb3-debug   |   0
 {uek-rpm => ml-rpm}/ol8/config-x86_64               |   0
 {uek-rpm => ml-rpm}/ol8/config-x86_64-container     |   0
 {uek-rpm => ml-rpm}/ol8/config-x86_64-debug         |   0
 {uek-rpm => ml-rpm}/ol8/core-emb3-aarch64.list      |   0
 {uek-rpm => ml-rpm}/ol8/filter-aarch64.sh           |   0
 {uek-rpm => ml-rpm}/ol8/filter-modules.sh           |   0
 {uek-rpm => ml-rpm}/ol8/filter-x86_64.sh            |   0
 {uek-rpm => ml-rpm}/ol8/find-provides               |   0
 {uek-rpm => ml-rpm}/ol8/generate_bls_conf.sh        |   0
 {uek-rpm => ml-rpm}/ol8/kabi_lockedlist_aarch64     |   0
 .../ol8/kabi_lockedlist_aarch64debug                |   0
 {uek-rpm => ml-rpm}/ol8/kabi_lockedlist_x86_64      |   0
 {uek-rpm => ml-rpm}/ol8/kabi_lockedlist_x86_64debug |   0
 {uek-rpm => ml-rpm}/ol8/kabitool                    |   0
 {uek-rpm => ml-rpm}/ol8/kernel-uek.spec             |   0
 {uek-rpm => ml-rpm}/ol8/mod-denylist.sh             |   0
 {uek-rpm => ml-rpm}/ol8/mod-extra.list              |   0
 {uek-rpm => ml-rpm}/ol8/mod-sign.sh                 |   0
 {uek-rpm => ml-rpm}/ol8/modules-core-aarch64.list   |   0
 {uek-rpm => ml-rpm}/ol8/modules-core-x86_64.list    |   0
 {uek-rpm => ml-rpm}/ol8/perf                        |   0
 {uek-rpm => ml-rpm}/ol8/secureboot.cer              | Bin
 {uek-rpm => ml-rpm}/ol8/secureboot_aarch64.cer      | Bin
 {uek-rpm => ml-rpm}/ol8/securebootca.cer            | Bin
 {uek-rpm => ml-rpm}/ol8/turbostat                   |   0
 {uek-rpm => ml-rpm}/ol8/update-el-aarch64           |   0
 {uek-rpm => ml-rpm}/ol8/update-el-x86               |   0
 {uek-rpm => ml-rpm}/ol8/x509.genkey                 |   0
 {uek-rpm => ml-rpm}/ol8/x86_energy_perf_policy      |   0
 {uek-rpm => ml-rpm}/ol9/Module.kabi_aarch64         |   0
 {uek-rpm => ml-rpm}/ol9/Module.kabi_aarch64debug    |   0
 {uek-rpm => ml-rpm}/ol9/Module.kabi_x86_64          |   0
 {uek-rpm => ml-rpm}/ol9/Module.kabi_x86_64debug     |   0
 {uek-rpm => ml-rpm}/ol9/Symtypes.kabi_aarch64       |   0
 {uek-rpm => ml-rpm}/ol9/Symtypes.kabi_aarch64debug  |   0
 {uek-rpm => ml-rpm}/ol9/Symtypes.kabi_x86_64        |   0
 {uek-rpm => ml-rpm}/ol9/Symtypes.kabi_x86_64debug   |   0
 {uek-rpm => ml-rpm}/ol9/check-kabi                  |   0
 {uek-rpm => ml-rpm}/ol9/config-aarch64              |   0
 {uek-rpm => ml-rpm}/ol9/config-aarch64-container    |   0
 {uek-rpm => ml-rpm}/ol9/config-aarch64-debug        |   0
 {uek-rpm => ml-rpm}/ol9/config-x86_64               |   0
 {uek-rpm => ml-rpm}/ol9/config-x86_64-container     |   0
 {uek-rpm => ml-rpm}/ol9/config-x86_64-debug         |   0
 {uek-rpm => ml-rpm}/ol9/filter-aarch64.sh           |   0
 {uek-rpm => ml-rpm}/ol9/filter-modules.sh           |   0
 {uek-rpm => ml-rpm}/ol9/filter-x86_64.sh            |   0
 {uek-rpm => ml-rpm}/ol9/find-provides               |   0
 {uek-rpm => ml-rpm}/ol9/generate_bls_conf.sh        |   0
 {uek-rpm => ml-rpm}/ol9/kabi_lockedlist_aarch64     |   0
 .../ol9/kabi_lockedlist_aarch64debug                |   0
 {uek-rpm => ml-rpm}/ol9/kabi_lockedlist_x86_64      |   0
 {uek-rpm => ml-rpm}/ol9/kabi_lockedlist_x86_64debug |   0
 {uek-rpm => ml-rpm}/ol9/kabitool                    |   0
 {uek-rpm => ml-rpm}/ol9/kernel-uek.spec             |   0
 {uek-rpm => ml-rpm}/ol9/mod-denylist.sh             |   0
 {uek-rpm => ml-rpm}/ol9/mod-extra.list              |   0
 {uek-rpm => ml-rpm}/ol9/mod-sign.sh                 |   0
 {uek-rpm => ml-rpm}/ol9/modules-core-aarch64.list   |   0
 {uek-rpm => ml-rpm}/ol9/modules-core-x86_64.list    |   0
 {uek-rpm => ml-rpm}/ol9/perf                        |   0
 {uek-rpm => ml-rpm}/ol9/secureboot.cer              | Bin
 {uek-rpm => ml-rpm}/ol9/secureboot_aarch64.cer      | Bin
 {uek-rpm => ml-rpm}/ol9/securebootca.cer            | Bin
 {uek-rpm => ml-rpm}/ol9/turbostat                   |   0
 {uek-rpm => ml-rpm}/ol9/update-el-aarch64           |   0
 {uek-rpm => ml-rpm}/ol9/update-el-x86               |   0
 {uek-rpm => ml-rpm}/ol9/x509.genkey                 |   0
 {uek-rpm => ml-rpm}/ol9/x86_energy_perf_policy      |   0
 {uek-rpm => ml-rpm}/tools/kabi                      |   0
 uek-rpm/.Orabug_list                                |   5 -----
 85 files changed, 5 deletions(-)
 rename {uek-rpm => ml-rpm}/ol8/Module.kabi_aarch64 (100%)
 rename {uek-rpm => ml-rpm}/ol8/Module.kabi_aarch64debug (100%)
 rename {uek-rpm => ml-rpm}/ol8/Module.kabi_x86_64 (100%)
 rename {uek-rpm => ml-rpm}/ol8/Module.kabi_x86_64debug (100%)
 rename {uek-rpm => ml-rpm}/ol8/Symtypes.kabi_aarch64 (100%)
 rename {uek-rpm => ml-rpm}/ol8/Symtypes.kabi_aarch64debug (100%)
 rename {uek-rpm => ml-rpm}/ol8/Symtypes.kabi_x86_64 (100%)
 rename {uek-rpm => ml-rpm}/ol8/Symtypes.kabi_x86_64debug (100%)
 rename {uek-rpm => ml-rpm}/ol8/check-kabi (100%)
 rename {uek-rpm => ml-rpm}/ol8/config-aarch64 (100%)
 rename {uek-rpm => ml-rpm}/ol8/config-aarch64-container (100%)
 rename {uek-rpm => ml-rpm}/ol8/config-aarch64-debug (100%)
 rename {uek-rpm => ml-rpm}/ol8/config-aarch64-emb3 (100%)
 rename {uek-rpm => ml-rpm}/ol8/config-aarch64-emb3-debug (100%)
 rename {uek-rpm => ml-rpm}/ol8/config-x86_64 (100%)
 rename {uek-rpm => ml-rpm}/ol8/config-x86_64-container (100%)
 rename {uek-rpm => ml-rpm}/ol8/config-x86_64-debug (100%)
 rename {uek-rpm => ml-rpm}/ol8/core-emb3-aarch64.list (100%)
 rename {uek-rpm => ml-rpm}/ol8/filter-aarch64.sh (100%)
 rename {uek-rpm => ml-rpm}/ol8/filter-modules.sh (100%)
 rename {uek-rpm => ml-rpm}/ol8/filter-x86_64.sh (100%)
 rename {uek-rpm => ml-rpm}/ol8/find-provides (100%)
 rename {uek-rpm => ml-rpm}/ol8/generate_bls_conf.sh (100%)
 rename {uek-rpm => ml-rpm}/ol8/kabi_lockedlist_aarch64 (100%)
 rename {uek-rpm => ml-rpm}/ol8/kabi_lockedlist_aarch64debug (100%)
 rename {uek-rpm => ml-rpm}/ol8/kabi_lockedlist_x86_64 (100%)
 rename {uek-rpm => ml-rpm}/ol8/kabi_lockedlist_x86_64debug (100%)
 rename {uek-rpm => ml-rpm}/ol8/kabitool (100%)
 rename {uek-rpm => ml-rpm}/ol8/kernel-uek.spec (100%)
 rename {uek-rpm => ml-rpm}/ol8/mod-denylist.sh (100%)
 rename {uek-rpm => ml-rpm}/ol8/mod-extra.list (100%)
 rename {uek-rpm => ml-rpm}/ol8/mod-sign.sh (100%)
 rename {uek-rpm => ml-rpm}/ol8/modules-core-aarch64.list (100%)
 rename {uek-rpm => ml-rpm}/ol8/modules-core-x86_64.list (100%)
 rename {uek-rpm => ml-rpm}/ol8/perf (100%)
 rename {uek-rpm => ml-rpm}/ol8/secureboot.cer (100%)
 rename {uek-rpm => ml-rpm}/ol8/secureboot_aarch64.cer (100%)
 rename {uek-rpm => ml-rpm}/ol8/securebootca.cer (100%)
 rename {uek-rpm => ml-rpm}/ol8/turbostat (100%)
 rename {uek-rpm => ml-rpm}/ol8/update-el-aarch64 (100%)
 rename {uek-rpm => ml-rpm}/ol8/update-el-x86 (100%)
 rename {uek-rpm => ml-rpm}/ol8/x509.genkey (100%)
 rename {uek-rpm => ml-rpm}/ol8/x86_energy_perf_policy (100%)
 rename {uek-rpm => ml-rpm}/ol9/Module.kabi_aarch64 (100%)
 rename {uek-rpm => ml-rpm}/ol9/Module.kabi_aarch64debug (100%)
 rename {uek-rpm => ml-rpm}/ol9/Module.kabi_x86_64 (100%)
 rename {uek-rpm => ml-rpm}/ol9/Module.kabi_x86_64debug (100%)
 rename {uek-rpm => ml-rpm}/ol9/Symtypes.kabi_aarch64 (100%)
 rename {uek-rpm => ml-rpm}/ol9/Symtypes.kabi_aarch64debug (100%)
 rename {uek-rpm => ml-rpm}/ol9/Symtypes.kabi_x86_64 (100%)
 rename {uek-rpm => ml-rpm}/ol9/Symtypes.kabi_x86_64debug (100%)
 rename {uek-rpm => ml-rpm}/ol9/check-kabi (100%)
 rename {uek-rpm => ml-rpm}/ol9/config-aarch64 (100%)
 rename {uek-rpm => ml-rpm}/ol9/config-aarch64-container (100%)
 rename {uek-rpm => ml-rpm}/ol9/config-aarch64-debug (100%)
 rename {uek-rpm => ml-rpm}/ol9/config-x86_64 (100%)
 rename {uek-rpm => ml-rpm}/ol9/config-x86_64-container (100%)
 rename {uek-rpm => ml-rpm}/ol9/config-x86_64-debug (100%)
 rename {uek-rpm => ml-rpm}/ol9/filter-aarch64.sh (100%)
 rename {uek-rpm => ml-rpm}/ol9/filter-modules.sh (100%)
 rename {uek-rpm => ml-rpm}/ol9/filter-x86_64.sh (100%)
 rename {uek-rpm => ml-rpm}/ol9/find-provides (100%)
 rename {uek-rpm => ml-rpm}/ol9/generate_bls_conf.sh (100%)
 rename {uek-rpm => ml-rpm}/ol9/kabi_lockedlist_aarch64 (100%)
 rename {uek-rpm => ml-rpm}/ol9/kabi_lockedlist_aarch64debug (100%)
 rename {uek-rpm => ml-rpm}/ol9/kabi_lockedlist_x86_64 (100%)
 rename {uek-rpm => ml-rpm}/ol9/kabi_lockedlist_x86_64debug (100%)
 rename {uek-rpm => ml-rpm}/ol9/kabitool (100%)
 rename {uek-rpm => ml-rpm}/ol9/kernel-uek.spec (100%)
 rename {uek-rpm => ml-rpm}/ol9/mod-denylist.sh (100%)
 rename {uek-rpm => ml-rpm}/ol9/mod-extra.list (100%)
 rename {uek-rpm => ml-rpm}/ol9/mod-sign.sh (100%)
 rename {uek-rpm => ml-rpm}/ol9/modules-core-aarch64.list (100%)
 rename {uek-rpm => ml-rpm}/ol9/modules-core-x86_64.list (100%)
 rename {uek-rpm => ml-rpm}/ol9/perf (100%)
 rename {uek-rpm => ml-rpm}/ol9/secureboot.cer (100%)
 rename {uek-rpm => ml-rpm}/ol9/secureboot_aarch64.cer (100%)
 rename {uek-rpm => ml-rpm}/ol9/securebootca.cer (100%)
 rename {uek-rpm => ml-rpm}/ol9/turbostat (100%)
 rename {uek-rpm => ml-rpm}/ol9/update-el-aarch64 (100%)
 rename {uek-rpm => ml-rpm}/ol9/update-el-x86 (100%)
 rename {uek-rpm => ml-rpm}/ol9/x509.genkey (100%)
 rename {uek-rpm => ml-rpm}/ol9/x86_energy_perf_policy (100%)
 rename {uek-rpm => ml-rpm}/tools/kabi (100%)
 delete mode 100644 uek-rpm/.Orabug_list
ml-rpm/ol8/Module.kabi_aarch64 renamed from uek-rpm/ol8/Module.kabi_aarch64 +0 -0
similarity index 100%
rename from uek-rpm/ol8/Module.kabi_aarch64
rename to ml-rpm/ol8/Module.kabi_aarch64
ml-rpm/ol8/Module.kabi_aarch64debug renamed from uek-rpm/ol8/Module.kabi_aarch64debug +0 -0
similarity index 100%
rename from uek-rpm/ol8/Module.kabi_aarch64debug
rename to ml-rpm/ol8/Module.kabi_aarch64debug
ml-rpm/ol8/Module.kabi_x86_64 renamed from uek-rpm/ol8/Module.kabi_x86_64 +0 -0
similarity index 100%
rename from uek-rpm/ol8/Module.kabi_x86_64
rename to ml-rpm/ol8/Module.kabi_x86_64
ml-rpm/ol8/Module.kabi_x86_64debug renamed from uek-rpm/ol8/Module.kabi_x86_64debug +0 -0
similarity index 100%
rename from uek-rpm/ol8/Module.kabi_x86_64debug
rename to ml-rpm/ol8/Module.kabi_x86_64debug
ml-rpm/ol8/Symtypes.kabi_aarch64 renamed from uek-rpm/ol8/Symtypes.kabi_aarch64 +0 -0
similarity index 100%
rename from uek-rpm/ol8/Symtypes.kabi_aarch64
rename to ml-rpm/ol8/Symtypes.kabi_aarch64
ml-rpm/ol8/Symtypes.kabi_aarch64debug renamed from uek-rpm/ol8/Symtypes.kabi_aarch64debug +0 -0
similarity index 100%
rename from uek-rpm/ol8/Symtypes.kabi_aarch64debug
rename to ml-rpm/ol8/Symtypes.kabi_aarch64debug
ml-rpm/ol8/Symtypes.kabi_x86_64 renamed from uek-rpm/ol8/Symtypes.kabi_x86_64 +0 -0
similarity index 100%
rename from uek-rpm/ol8/Symtypes.kabi_x86_64
rename to ml-rpm/ol8/Symtypes.kabi_x86_64
ml-rpm/ol8/Symtypes.kabi_x86_64debug renamed from uek-rpm/ol8/Symtypes.kabi_x86_64debug +0 -0
similarity index 100%
rename from uek-rpm/ol8/Symtypes.kabi_x86_64debug
rename to ml-rpm/ol8/Symtypes.kabi_x86_64debug
ml-rpm/ol8/check-kabi renamed from uek-rpm/ol8/check-kabi +0 -0
similarity index 100%
rename from uek-rpm/ol8/check-kabi
rename to ml-rpm/ol8/check-kabi
ml-rpm/ol8/config-aarch64 renamed from uek-rpm/ol8/config-aarch64 +0 -0
similarity index 100%
rename from uek-rpm/ol8/config-aarch64
rename to ml-rpm/ol8/config-aarch64
ml-rpm/ol8/config-aarch64-container renamed from uek-rpm/ol8/config-aarch64-container +0 -0
similarity index 100%
rename from uek-rpm/ol8/config-aarch64-container
rename to ml-rpm/ol8/config-aarch64-container
ml-rpm/ol8/config-aarch64-debug renamed from uek-rpm/ol8/config-aarch64-debug +0 -0
similarity index 100%
rename from uek-rpm/ol8/config-aarch64-debug
rename to ml-rpm/ol8/config-aarch64-debug
ml-rpm/ol8/config-aarch64-emb3 renamed from uek-rpm/ol8/config-aarch64-emb3 +0 -0
similarity index 100%
rename from uek-rpm/ol8/config-aarch64-emb3
rename to ml-rpm/ol8/config-aarch64-emb3
ml-rpm/ol8/config-aarch64-emb3-debug renamed from uek-rpm/ol8/config-aarch64-emb3-debug +0 -0
similarity index 100%
rename from uek-rpm/ol8/config-aarch64-emb3-debug
rename to ml-rpm/ol8/config-aarch64-emb3-debug
ml-rpm/ol8/config-x86_64 renamed from uek-rpm/ol8/config-x86_64 +0 -0
similarity index 100%
rename from uek-rpm/ol8/config-x86_64
rename to ml-rpm/ol8/config-x86_64
ml-rpm/ol8/config-x86_64-container renamed from uek-rpm/ol8/config-x86_64-container +0 -0
similarity index 100%
rename from uek-rpm/ol8/config-x86_64-container
rename to ml-rpm/ol8/config-x86_64-container
ml-rpm/ol8/config-x86_64-debug renamed from uek-rpm/ol8/config-x86_64-debug +0 -0
similarity index 100%
rename from uek-rpm/ol8/config-x86_64-debug
rename to ml-rpm/ol8/config-x86_64-debug
ml-rpm/ol8/core-emb3-aarch64.list renamed from uek-rpm/ol8/core-emb3-aarch64.list +0 -0
similarity index 100%
rename from uek-rpm/ol8/core-emb3-aarch64.list
rename to ml-rpm/ol8/core-emb3-aarch64.list
ml-rpm/ol8/filter-aarch64.sh renamed from uek-rpm/ol8/filter-aarch64.sh +0 -0
similarity index 100%
rename from uek-rpm/ol8/filter-aarch64.sh
rename to ml-rpm/ol8/filter-aarch64.sh
ml-rpm/ol8/filter-modules.sh renamed from uek-rpm/ol8/filter-modules.sh +0 -0
similarity index 100%
rename from uek-rpm/ol8/filter-modules.sh
rename to ml-rpm/ol8/filter-modules.sh
ml-rpm/ol8/filter-x86_64.sh renamed from uek-rpm/ol8/filter-x86_64.sh +0 -0
similarity index 100%
rename from uek-rpm/ol8/filter-x86_64.sh
rename to ml-rpm/ol8/filter-x86_64.sh
ml-rpm/ol8/find-provides renamed from uek-rpm/ol8/find-provides +0 -0
similarity index 100%
rename from uek-rpm/ol8/find-provides
rename to ml-rpm/ol8/find-provides
ml-rpm/ol8/generate_bls_conf.sh renamed from uek-rpm/ol8/generate_bls_conf.sh +0 -0
similarity index 100%
rename from uek-rpm/ol8/generate_bls_conf.sh
rename to ml-rpm/ol8/generate_bls_conf.sh
ml-rpm/ol8/kabi_lockedlist_aarch64 renamed from uek-rpm/ol8/kabi_lockedlist_aarch64 +0 -0
similarity index 100%
rename from uek-rpm/ol8/kabi_lockedlist_aarch64
rename to ml-rpm/ol8/kabi_lockedlist_aarch64
ml-rpm/ol8/kabi_lockedlist_aarch64debug renamed from uek-rpm/ol8/kabi_lockedlist_aarch64debug +0 -0
similarity index 100%
rename from uek-rpm/ol8/kabi_lockedlist_aarch64debug
rename to ml-rpm/ol8/kabi_lockedlist_aarch64debug
ml-rpm/ol8/kabi_lockedlist_x86_64 renamed from uek-rpm/ol8/kabi_lockedlist_x86_64 +0 -0
similarity index 100%
rename from uek-rpm/ol8/kabi_lockedlist_x86_64
rename to ml-rpm/ol8/kabi_lockedlist_x86_64
ml-rpm/ol8/kabi_lockedlist_x86_64debug renamed from uek-rpm/ol8/kabi_lockedlist_x86_64debug +0 -0
similarity index 100%
rename from uek-rpm/ol8/kabi_lockedlist_x86_64debug
rename to ml-rpm/ol8/kabi_lockedlist_x86_64debug
ml-rpm/ol8/kabitool renamed from uek-rpm/ol8/kabitool +0 -0
similarity index 100%
rename from uek-rpm/ol8/kabitool
rename to ml-rpm/ol8/kabitool
ml-rpm/ol8/kernel-uek.spec renamed from uek-rpm/ol8/kernel-uek.spec +0 -0
similarity index 100%
rename from uek-rpm/ol8/kernel-uek.spec
rename to ml-rpm/ol8/kernel-uek.spec
ml-rpm/ol8/mod-denylist.sh renamed from uek-rpm/ol8/mod-denylist.sh +0 -0
similarity index 100%
rename from uek-rpm/ol8/mod-denylist.sh
rename to ml-rpm/ol8/mod-denylist.sh
ml-rpm/ol8/mod-extra.list renamed from uek-rpm/ol8/mod-extra.list +0 -0
similarity index 100%
rename from uek-rpm/ol8/mod-extra.list
rename to ml-rpm/ol8/mod-extra.list
ml-rpm/ol8/mod-sign.sh renamed from uek-rpm/ol8/mod-sign.sh +0 -0
similarity index 100%
rename from uek-rpm/ol8/mod-sign.sh
rename to ml-rpm/ol8/mod-sign.sh
ml-rpm/ol8/modules-core-aarch64.list renamed from uek-rpm/ol8/modules-core-aarch64.list +0 -0
similarity index 100%
rename from uek-rpm/ol8/modules-core-aarch64.list
rename to ml-rpm/ol8/modules-core-aarch64.list
ml-rpm/ol8/modules-core-x86_64.list renamed from uek-rpm/ol8/modules-core-x86_64.list +0 -0
similarity index 100%
rename from uek-rpm/ol8/modules-core-x86_64.list
rename to ml-rpm/ol8/modules-core-x86_64.list
ml-rpm/ol8/perf renamed from uek-rpm/ol8/perf +0 -0
similarity index 100%
rename from uek-rpm/ol8/perf
rename to ml-rpm/ol8/perf
ml-rpm/ol8/secureboot.cer renamed from uek-rpm/ol8/secureboot.cer +0 -0
similarity index 100%
rename from uek-rpm/ol8/secureboot.cer
rename to ml-rpm/ol8/secureboot.cer
ml-rpm/ol8/secureboot_aarch64.cer renamed from uek-rpm/ol8/secureboot_aarch64.cer +0 -0
similarity index 100%
rename from uek-rpm/ol8/secureboot_aarch64.cer
rename to ml-rpm/ol8/secureboot_aarch64.cer
ml-rpm/ol8/securebootca.cer renamed from uek-rpm/ol8/securebootca.cer +0 -0
similarity index 100%
rename from uek-rpm/ol8/securebootca.cer
rename to ml-rpm/ol8/securebootca.cer
ml-rpm/ol8/turbostat renamed from uek-rpm/ol8/turbostat +0 -0
similarity index 100%
rename from uek-rpm/ol8/turbostat
rename to ml-rpm/ol8/turbostat
ml-rpm/ol8/update-el-aarch64 renamed from uek-rpm/ol8/update-el-aarch64 +0 -0
similarity index 100%
rename from uek-rpm/ol8/update-el-aarch64
rename to ml-rpm/ol8/update-el-aarch64
ml-rpm/ol8/update-el-x86 renamed from uek-rpm/ol8/update-el-x86 +0 -0
similarity index 100%
rename from uek-rpm/ol8/update-el-x86
rename to ml-rpm/ol8/update-el-x86
ml-rpm/ol8/x509.genkey renamed from uek-rpm/ol8/x509.genkey +0 -0
similarity index 100%
rename from uek-rpm/ol8/x509.genkey
rename to ml-rpm/ol8/x509.genkey
ml-rpm/ol8/x86_energy_perf_policy renamed from uek-rpm/ol8/x86_energy_perf_policy +0 -0
similarity index 100%
rename from uek-rpm/ol8/x86_energy_perf_policy
rename to ml-rpm/ol8/x86_energy_perf_policy
ml-rpm/ol9/Module.kabi_aarch64 renamed from uek-rpm/ol9/Module.kabi_aarch64 +0 -0
similarity index 100%
rename from uek-rpm/ol9/Module.kabi_aarch64
rename to ml-rpm/ol9/Module.kabi_aarch64
ml-rpm/ol9/Module.kabi_aarch64debug renamed from uek-rpm/ol9/Module.kabi_aarch64debug +0 -0
similarity index 100%
rename from uek-rpm/ol9/Module.kabi_aarch64debug
rename to ml-rpm/ol9/Module.kabi_aarch64debug
ml-rpm/ol9/Module.kabi_x86_64 renamed from uek-rpm/ol9/Module.kabi_x86_64 +0 -0
similarity index 100%
rename from uek-rpm/ol9/Module.kabi_x86_64
rename to ml-rpm/ol9/Module.kabi_x86_64
ml-rpm/ol9/Module.kabi_x86_64debug renamed from uek-rpm/ol9/Module.kabi_x86_64debug +0 -0
similarity index 100%
rename from uek-rpm/ol9/Module.kabi_x86_64debug
rename to ml-rpm/ol9/Module.kabi_x86_64debug
ml-rpm/ol9/Symtypes.kabi_aarch64 renamed from uek-rpm/ol9/Symtypes.kabi_aarch64 +0 -0
similarity index 100%
rename from uek-rpm/ol9/Symtypes.kabi_aarch64
rename to ml-rpm/ol9/Symtypes.kabi_aarch64
ml-rpm/ol9/Symtypes.kabi_aarch64debug renamed from uek-rpm/ol9/Symtypes.kabi_aarch64debug +0 -0
similarity index 100%
rename from uek-rpm/ol9/Symtypes.kabi_aarch64debug
rename to ml-rpm/ol9/Symtypes.kabi_aarch64debug
ml-rpm/ol9/Symtypes.kabi_x86_64 renamed from uek-rpm/ol9/Symtypes.kabi_x86_64 +0 -0
similarity index 100%
rename from uek-rpm/ol9/Symtypes.kabi_x86_64
rename to ml-rpm/ol9/Symtypes.kabi_x86_64
ml-rpm/ol9/Symtypes.kabi_x86_64debug renamed from uek-rpm/ol9/Symtypes.kabi_x86_64debug +0 -0
similarity index 100%
rename from uek-rpm/ol9/Symtypes.kabi_x86_64debug
rename to ml-rpm/ol9/Symtypes.kabi_x86_64debug
ml-rpm/ol9/check-kabi renamed from uek-rpm/ol9/check-kabi +0 -0
similarity index 100%
rename from uek-rpm/ol9/check-kabi
rename to ml-rpm/ol9/check-kabi
ml-rpm/ol9/config-aarch64 renamed from uek-rpm/ol9/config-aarch64 +0 -0
similarity index 100%
rename from uek-rpm/ol9/config-aarch64
rename to ml-rpm/ol9/config-aarch64
ml-rpm/ol9/config-aarch64-container renamed from uek-rpm/ol9/config-aarch64-container +0 -0
similarity index 100%
rename from uek-rpm/ol9/config-aarch64-container
rename to ml-rpm/ol9/config-aarch64-container
ml-rpm/ol9/config-aarch64-debug renamed from uek-rpm/ol9/config-aarch64-debug +0 -0
similarity index 100%
rename from uek-rpm/ol9/config-aarch64-debug
rename to ml-rpm/ol9/config-aarch64-debug
ml-rpm/ol9/config-x86_64 renamed from uek-rpm/ol9/config-x86_64 +0 -0
similarity index 100%
rename from uek-rpm/ol9/config-x86_64
rename to ml-rpm/ol9/config-x86_64
ml-rpm/ol9/config-x86_64-container renamed from uek-rpm/ol9/config-x86_64-container +0 -0
similarity index 100%
rename from uek-rpm/ol9/config-x86_64-container
rename to ml-rpm/ol9/config-x86_64-container
ml-rpm/ol9/config-x86_64-debug renamed from uek-rpm/ol9/config-x86_64-debug +0 -0
similarity index 100%
rename from uek-rpm/ol9/config-x86_64-debug
rename to ml-rpm/ol9/config-x86_64-debug
ml-rpm/ol9/filter-aarch64.sh renamed from uek-rpm/ol9/filter-aarch64.sh +0 -0
similarity index 100%
rename from uek-rpm/ol9/filter-aarch64.sh
rename to ml-rpm/ol9/filter-aarch64.sh
ml-rpm/ol9/filter-modules.sh renamed from uek-rpm/ol9/filter-modules.sh +0 -0
similarity index 100%
rename from uek-rpm/ol9/filter-modules.sh
rename to ml-rpm/ol9/filter-modules.sh
ml-rpm/ol9/filter-x86_64.sh renamed from uek-rpm/ol9/filter-x86_64.sh +0 -0
similarity index 100%
rename from uek-rpm/ol9/filter-x86_64.sh
rename to ml-rpm/ol9/filter-x86_64.sh
ml-rpm/ol9/find-provides renamed from uek-rpm/ol9/find-provides +0 -0
similarity index 100%
rename from uek-rpm/ol9/find-provides
rename to ml-rpm/ol9/find-provides
ml-rpm/ol9/generate_bls_conf.sh renamed from uek-rpm/ol9/generate_bls_conf.sh +0 -0
similarity index 100%
rename from uek-rpm/ol9/generate_bls_conf.sh
rename to ml-rpm/ol9/generate_bls_conf.sh
ml-rpm/ol9/kabi_lockedlist_aarch64 renamed from uek-rpm/ol9/kabi_lockedlist_aarch64 +0 -0
similarity index 100%
rename from uek-rpm/ol9/kabi_lockedlist_aarch64
rename to ml-rpm/ol9/kabi_lockedlist_aarch64
ml-rpm/ol9/kabi_lockedlist_aarch64debug renamed from uek-rpm/ol9/kabi_lockedlist_aarch64debug +0 -0
similarity index 100%
rename from uek-rpm/ol9/kabi_lockedlist_aarch64debug
rename to ml-rpm/ol9/kabi_lockedlist_aarch64debug
ml-rpm/ol9/kabi_lockedlist_x86_64 renamed from uek-rpm/ol9/kabi_lockedlist_x86_64 +0 -0
similarity index 100%
rename from uek-rpm/ol9/kabi_lockedlist_x86_64
rename to ml-rpm/ol9/kabi_lockedlist_x86_64
ml-rpm/ol9/kabi_lockedlist_x86_64debug renamed from uek-rpm/ol9/kabi_lockedlist_x86_64debug +0 -0
similarity index 100%
rename from uek-rpm/ol9/kabi_lockedlist_x86_64debug
rename to ml-rpm/ol9/kabi_lockedlist_x86_64debug
ml-rpm/ol9/kabitool renamed from uek-rpm/ol9/kabitool +0 -0
similarity index 100%
rename from uek-rpm/ol9/kabitool
rename to ml-rpm/ol9/kabitool
ml-rpm/ol9/kernel-uek.spec renamed from uek-rpm/ol9/kernel-uek.spec +0 -0
similarity index 100%
rename from uek-rpm/ol9/kernel-uek.spec
rename to ml-rpm/ol9/kernel-uek.spec
ml-rpm/ol9/mod-denylist.sh renamed from uek-rpm/ol9/mod-denylist.sh +0 -0
similarity index 100%
rename from uek-rpm/ol9/mod-denylist.sh
rename to ml-rpm/ol9/mod-denylist.sh
ml-rpm/ol9/mod-extra.list renamed from uek-rpm/ol9/mod-extra.list +0 -0
similarity index 100%
rename from uek-rpm/ol9/mod-extra.list
rename to ml-rpm/ol9/mod-extra.list
ml-rpm/ol9/mod-sign.sh renamed from uek-rpm/ol9/mod-sign.sh +0 -0
similarity index 100%
rename from uek-rpm/ol9/mod-sign.sh
rename to ml-rpm/ol9/mod-sign.sh
ml-rpm/ol9/modules-core-aarch64.list renamed from uek-rpm/ol9/modules-core-aarch64.list +0 -0
similarity index 100%
rename from uek-rpm/ol9/modules-core-aarch64.list
rename to ml-rpm/ol9/modules-core-aarch64.list
ml-rpm/ol9/modules-core-x86_64.list renamed from uek-rpm/ol9/modules-core-x86_64.list +0 -0
similarity index 100%
rename from uek-rpm/ol9/modules-core-x86_64.list
rename to ml-rpm/ol9/modules-core-x86_64.list
ml-rpm/ol9/perf renamed from uek-rpm/ol9/perf +0 -0
similarity index 100%
rename from uek-rpm/ol9/perf
rename to ml-rpm/ol9/perf
ml-rpm/ol9/secureboot.cer renamed from uek-rpm/ol9/secureboot.cer +0 -0
similarity index 100%
rename from uek-rpm/ol9/secureboot.cer
rename to ml-rpm/ol9/secureboot.cer
ml-rpm/ol9/secureboot_aarch64.cer renamed from uek-rpm/ol9/secureboot_aarch64.cer +0 -0
similarity index 100%
rename from uek-rpm/ol9/secureboot_aarch64.cer
rename to ml-rpm/ol9/secureboot_aarch64.cer
ml-rpm/ol9/securebootca.cer renamed from uek-rpm/ol9/securebootca.cer +0 -0
similarity index 100%
rename from uek-rpm/ol9/securebootca.cer
rename to ml-rpm/ol9/securebootca.cer
ml-rpm/ol9/turbostat renamed from uek-rpm/ol9/turbostat +0 -0
similarity index 100%
rename from uek-rpm/ol9/turbostat
rename to ml-rpm/ol9/turbostat
ml-rpm/ol9/update-el-aarch64 renamed from uek-rpm/ol9/update-el-aarch64 +0 -0
similarity index 100%
rename from uek-rpm/ol9/update-el-aarch64
rename to ml-rpm/ol9/update-el-aarch64
ml-rpm/ol9/update-el-x86 renamed from uek-rpm/ol9/update-el-x86 +0 -0
similarity index 100%
rename from uek-rpm/ol9/update-el-x86
rename to ml-rpm/ol9/update-el-x86
ml-rpm/ol9/x509.genkey renamed from uek-rpm/ol9/x509.genkey +0 -0
similarity index 100%
rename from uek-rpm/ol9/x509.genkey
rename to ml-rpm/ol9/x509.genkey
ml-rpm/ol9/x86_energy_perf_policy renamed from uek-rpm/ol9/x86_energy_perf_policy +0 -0
similarity index 100%
rename from uek-rpm/ol9/x86_energy_perf_policy
rename to ml-rpm/ol9/x86_energy_perf_policy
ml-rpm/tools/kabi renamed from uek-rpm/tools/kabi +0 -0
similarity index 100%
rename from uek-rpm/tools/kabi
rename to ml-rpm/tools/kabi
uek-rpm/.Orabug_list deleted +0 -5
deleted file mode 100644
index 7becf1b0a9be7..0000000000000
@@ -1,5 +0,0 @@
-31961009 # [UEK-NEXT] kexec allows kernel whose signature is in the dbx to be booted
-34116060 # LUCI Maintainer: Disable OpenSSL 3.0 warnings for v5.18
-35455153 # [UEK-NEXT] Manage Original OL Signing Keys
-35641429 # Add uek_kabi.h to LUCI and update check-kabi scripts
-36459425 # Build fix for 6.9 LUCI
Signature · 1 line
2.31.1
#6 lore raw

PATCH v3 3/6 RDMA/cma: Brute force GFP_NOIO

In reply to Håkon Bugge

In cma_init(), we call memalloc_noio_{save,restore} in a parenthetic fashion when enabled by the module parameter force_noio.

This in order to conditionally enable rdma_cm to work aligned with block I/O devices. Any work queued later on work-queues created during module initialization will inherit the PF_MEMALLOC_{NOIO,NOFS} flag(s), due to commit ("workqueue: Inherit NOIO and NOFS alloc flags").

We do this in order to enable ULPs using the RDMA stack to be used as a network block I/O device. This to support a filesystem on top of a raw block device which uses said ULP(s) and the RDMA stack as the network transport layer.

Under intense memory pressure, we get memory reclaims. Assume the filesystem reclaims memory, goes to the raw block device, which calls into the ULP in question, which calls the RDMA stack. Now, if regular GFP_KERNEL allocations in the ULP or the RDMA stack require reclaims to be fulfilled, we end up in a circular dependency.

We break this circular dependency by:

1. Force all allocations in the ULP and the relevant RDMA stack to use GFP_NOIO, by means of a parenthetic use of memalloc_noio_{save,restore} on all relevant entry points.

2. Make sure work-queues inherits current->flags
wrt. PF_MEMALLOC_{NOIO,NOFS}, such that work executed on the work-queue inherits the same flag(s).

---
 drivers/infiniband/core/cma.c | 20 +++++++++++++++++---
 1 file changed, 17 insertions(+), 3 deletions(-)
drivers/infiniband/core/cma.c +17 -3
index 64ace0b968f07..6e82c18aeebb8 100644
@@ -50,6 +50,10 @@ MODULE_LICENSE("Dual BSD/GPL");
 #define CMA_IBOE_PACKET_LIFETIME 16
 #define CMA_PREFERRED_ROCE_GID_TYPE IB_GID_TYPE_ROCE_UDP_ENCAP
 
+static bool cma_force_noio;
+module_param_named(force_noio, cma_force_noio, bool, 0444);
+MODULE_PARM_DESC(force_noio, "Force the use of GFP_NOIO (Y/N)");
+
 static const char * const cma_events[] = {
 	[RDMA_CM_EVENT_ADDR_RESOLVED]	 = "address resolved",
 	[RDMA_CM_EVENT_ADDR_ERROR]	 = "address error",
@@ -5426,6 +5430,10 @@ static struct pernet_operations cma_pernet_operations = {
 static int __init cma_init(void)
 {
 	int ret;
+	unsigned int noio_flags;
+
+	if (cma_force_noio)
+		noio_flags = memalloc_noio_save();
 
 	/*
 	 * There is a rare lock ordering dependency in cma_netdev_callback()
@@ -5441,8 +5449,10 @@ static int __init cma_init(void)
 	}
 
 	cma_wq = alloc_ordered_workqueue("rdma_cm", WQ_MEM_RECLAIM);
-	if (!cma_wq)
-		return -ENOMEM;
+	if (!cma_wq) {
+		ret = -ENOMEM;
+		goto out;
+	}
 
 	ret = register_pernet_subsys(&cma_pernet_operations);
 	if (ret)
@@ -5460,7 +5470,8 @@ static int __init cma_init(void)
 	if (ret)
 		goto err_ib;
 
-	return 0;
+	ret = 0;
+	goto out;
 
 err_ib:
 	ib_unregister_client(&cma_client);
@@ -5471,6 +5482,9 @@ static int __init cma_init(void)
 	unregister_pernet_subsys(&cma_pernet_operations);
 err_wq:
 	destroy_workqueue(cma_wq);
+out:
+	if (cma_force_noio)
+		memalloc_noio_restore(noio_flags);
 	return ret;
 }
 
Signature · 1 line
2.31.1
#7 lore raw

PATCH v3 3/6 ml: adjusting build metadata to reflect mainline

In reply to Håkon Bugge

From: Luci Bot <[email protected]>

Updating defaults to reflect that this is a mainline build

---
 ml-rpm/ol8/{kernel-uek.spec => kernel-mainline.spec} | 2 +-
 ml-rpm/ol9/{kernel-uek.spec => kernel-mainline.spec} | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
 rename ml-rpm/ol8/{kernel-uek.spec => kernel-mainline.spec} (99%)
 rename ml-rpm/ol9/{kernel-uek.spec => kernel-mainline.spec} (99%)
ml-rpm/ol8/kernel-mainline.spec renamed from ml-rpm/ol8/kernel-uek.spec +1 -1
similarity index 99%
rename from ml-rpm/ol8/kernel-uek.spec
rename to ml-rpm/ol8/kernel-mainline.spec
index e9a4e07f43fe7..ed47eb0706a87 100644
@@ -388,7 +388,7 @@ Summary: Oracle Unbreakable Enterprise Kernel Release 8
 %define kernel_prereq  coreutils, systemd >= 203-2, /usr/bin/kernel-install
 %define initrd_prereq  dracut >= 027
 
-%define variant %{?build_variant:%{build_variant}}%{!?build_variant:-luci}
+%define variant %{?build_variant:%{build_variant}}%{!?build_variant:-mainline}
 
 %define installonly_variant_name kernel%{?build_variant:%{build_variant}}%{!?build_variant:-luci}
 
ml-rpm/ol9/kernel-mainline.spec renamed from ml-rpm/ol9/kernel-uek.spec +1 -1
similarity index 99%
rename from ml-rpm/ol9/kernel-uek.spec
rename to ml-rpm/ol9/kernel-mainline.spec
index 0b494c7cf567c..0eb7d20043ed0 100644
@@ -361,7 +361,7 @@ Summary: Oracle Unbreakable Enterprise Kernel Release 8
 %define kernel_prereq  coreutils, systemd >= 203-2, /usr/bin/kernel-install
 %define initrd_prereq  dracut >= 027
 
-%define variant %{?build_variant:%{build_variant}}%{!?build_variant:-luci}
+%define variant %{?build_variant:%{build_variant}}%{!?build_variant:-mainline}
 
 %define installonly_variant_name kernel%{?build_variant:%{build_variant}}%{!?build_variant:-luci}
 
Signature · 1 line
2.31.1
#8 lore raw

PATCH v3 4/6 ml: Remove revocation list

In reply to Håkon Bugge

From: Luci Bot <[email protected]>

Remove revocation list

---
 ml-rpm/ol8/config-aarch64            | 2 --
 ml-rpm/ol8/config-aarch64-container  | 2 --
 ml-rpm/ol8/config-aarch64-debug      | 2 --
 ml-rpm/ol8/config-aarch64-emb3       | 2 --
 ml-rpm/ol8/config-aarch64-emb3-debug | 2 --
 ml-rpm/ol8/config-x86_64             | 2 --
 ml-rpm/ol8/config-x86_64-debug       | 2 --
 ml-rpm/ol9/config-aarch64            | 2 --
 ml-rpm/ol9/config-aarch64-container  | 2 --
 ml-rpm/ol9/config-aarch64-debug      | 2 --
 ml-rpm/ol9/config-x86_64             | 2 --
 ml-rpm/ol9/config-x86_64-debug       | 2 --
 12 files changed, 24 deletions(-)
ml-rpm/ol8/config-aarch64 +0 -2
index a4df0eba125b6..37d717c5a8d33 100644
@@ -2981,8 +2981,6 @@ CONFIG_SYSTEM_EXTRA_CERTIFICATE=y
 CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE=8192
 CONFIG_SECONDARY_TRUSTED_KEYRING=y
 CONFIG_SYSTEM_BLACKLIST_KEYRING=y
-CONFIG_SYSTEM_REVOCATION_LIST=y
-CONFIG_SYSTEM_REVOCATION_KEYS="certs/ol_revocation_keys.pem"
 CONFIG_SWIOTLB_DYNAMIC=y
 CONFIG_DMA_RESTRICTED_POOL=y
 CONFIG_DMA_NUMA_CMA=y
ml-rpm/ol8/config-aarch64-container +0 -2
index d793781f15e3d..0fe9d3ff00c24 100644
@@ -804,8 +804,6 @@ CONFIG_SYSTEM_EXTRA_CERTIFICATE=y
 CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE=8192
 CONFIG_SECONDARY_TRUSTED_KEYRING=y
 CONFIG_SYSTEM_BLACKLIST_KEYRING=y
-CONFIG_SYSTEM_REVOCATION_LIST=y
-CONFIG_SYSTEM_REVOCATION_KEYS="certs/ol_revocation_keys.pem"
 CONFIG_CORDIC=y
 CONFIG_SWIOTLB_DYNAMIC=y
 CONFIG_DMA_RESTRICTED_POOL=y
ml-rpm/ol8/config-aarch64-debug +0 -2
index c32292309a83b..c53800d995e55 100644
@@ -2982,8 +2982,6 @@ CONFIG_SYSTEM_EXTRA_CERTIFICATE=y
 CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE=8192
 CONFIG_SECONDARY_TRUSTED_KEYRING=y
 CONFIG_SYSTEM_BLACKLIST_KEYRING=y
-CONFIG_SYSTEM_REVOCATION_LIST=y
-CONFIG_SYSTEM_REVOCATION_KEYS="certs/ol_revocation_keys.pem"
 CONFIG_SWIOTLB_DYNAMIC=y
 CONFIG_DMA_RESTRICTED_POOL=y
 CONFIG_DMA_NUMA_CMA=y
ml-rpm/ol8/config-aarch64-emb3 +0 -2
index 1cf1cc181a2a5..f3242c8fd1526 100644
@@ -2295,8 +2295,6 @@ CONFIG_SYSTEM_TRUSTED_KEYS="certs/ol_signing_keys.pem"
 CONFIG_SYSTEM_EXTRA_CERTIFICATE=y
 CONFIG_SECONDARY_TRUSTED_KEYRING=y
 CONFIG_SYSTEM_BLACKLIST_KEYRING=y
-CONFIG_SYSTEM_REVOCATION_LIST=y
-CONFIG_SYSTEM_REVOCATION_KEYS="certs/ol_revocation_keys.pem"
 CONFIG_CORDIC=m
 CONFIG_DMA_RESTRICTED_POOL=y
 CONFIG_DMA_CMA=y
ml-rpm/ol8/config-aarch64-emb3-debug +0 -2
index 39835c5ea13a6..b67b24f5f4128 100644
@@ -2295,8 +2295,6 @@ CONFIG_SYSTEM_TRUSTED_KEYS="certs/ol_signing_keys.pem"
 CONFIG_SYSTEM_EXTRA_CERTIFICATE=y
 CONFIG_SECONDARY_TRUSTED_KEYRING=y
 CONFIG_SYSTEM_BLACKLIST_KEYRING=y
-CONFIG_SYSTEM_REVOCATION_LIST=y
-CONFIG_SYSTEM_REVOCATION_KEYS="certs/ol_revocation_keys.pem"
 CONFIG_CORDIC=m
 CONFIG_DMA_RESTRICTED_POOL=y
 CONFIG_DMA_CMA=y
ml-rpm/ol8/config-x86_64 +0 -2
index 6fcf000a07e99..3b64dd1e4d726 100644
@@ -2844,8 +2844,6 @@ CONFIG_SYSTEM_EXTRA_CERTIFICATE=y
 CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE=8192
 CONFIG_SECONDARY_TRUSTED_KEYRING=y
 CONFIG_SYSTEM_BLACKLIST_KEYRING=y
-CONFIG_SYSTEM_REVOCATION_LIST=y
-CONFIG_SYSTEM_REVOCATION_KEYS="certs/ol_revocation_keys.pem"
 CONFIG_CRC16=y
 CONFIG_CRC_T10DIF=y
 CONFIG_SWIOTLB_DYNAMIC=y
ml-rpm/ol8/config-x86_64-debug +0 -2
index 6f416ab81a59f..c7e44a1771a2e 100644
@@ -2864,8 +2864,6 @@ CONFIG_SYSTEM_EXTRA_CERTIFICATE=y
 CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE=8192
 CONFIG_SECONDARY_TRUSTED_KEYRING=y
 CONFIG_SYSTEM_BLACKLIST_KEYRING=y
-CONFIG_SYSTEM_REVOCATION_LIST=y
-CONFIG_SYSTEM_REVOCATION_KEYS="certs/ol_revocation_keys.pem"
 CONFIG_CRC16=y
 CONFIG_CRC_T10DIF=y
 CONFIG_RANDOM32_SELFTEST=y
ml-rpm/ol9/config-aarch64 +0 -2
index 3b5feccf3fac6..52016234394da 100644
@@ -2984,8 +2984,6 @@ CONFIG_SYSTEM_EXTRA_CERTIFICATE=y
 CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE=8192
 CONFIG_SECONDARY_TRUSTED_KEYRING=y
 CONFIG_SYSTEM_BLACKLIST_KEYRING=y
-CONFIG_SYSTEM_REVOCATION_LIST=y
-CONFIG_SYSTEM_REVOCATION_KEYS="certs/ol_revocation_keys.pem"
 CONFIG_SWIOTLB_DYNAMIC=y
 CONFIG_DMA_RESTRICTED_POOL=y
 CONFIG_DMA_NUMA_CMA=y
ml-rpm/ol9/config-aarch64-container +0 -2
index 3a32908836299..10aab8ae56a80 100644
@@ -818,8 +818,6 @@ CONFIG_SYSTEM_EXTRA_CERTIFICATE=y
 CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE=8192
 CONFIG_SECONDARY_TRUSTED_KEYRING=y
 CONFIG_SYSTEM_BLACKLIST_KEYRING=y
-CONFIG_SYSTEM_REVOCATION_LIST=y
-CONFIG_SYSTEM_REVOCATION_KEYS="certs/ol_revocation_keys.pem"
 CONFIG_CORDIC=y
 CONFIG_SWIOTLB_DYNAMIC=y
 CONFIG_DMA_RESTRICTED_POOL=y
ml-rpm/ol9/config-aarch64-debug +0 -2
index a263556e04956..6efe07685e993 100644
@@ -2985,8 +2985,6 @@ CONFIG_SYSTEM_EXTRA_CERTIFICATE=y
 CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE=8192
 CONFIG_SECONDARY_TRUSTED_KEYRING=y
 CONFIG_SYSTEM_BLACKLIST_KEYRING=y
-CONFIG_SYSTEM_REVOCATION_LIST=y
-CONFIG_SYSTEM_REVOCATION_KEYS="certs/ol_revocation_keys.pem"
 CONFIG_SWIOTLB_DYNAMIC=y
 CONFIG_DMA_RESTRICTED_POOL=y
 CONFIG_DMA_NUMA_CMA=y
ml-rpm/ol9/config-x86_64 +0 -2
index fefc2541cb166..dc72342bc78ce 100644
@@ -2836,8 +2836,6 @@ CONFIG_SYSTEM_EXTRA_CERTIFICATE=y
 CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE=8192
 CONFIG_SECONDARY_TRUSTED_KEYRING=y
 CONFIG_SYSTEM_BLACKLIST_KEYRING=y
-CONFIG_SYSTEM_REVOCATION_LIST=y
-CONFIG_SYSTEM_REVOCATION_KEYS="certs/ol_revocation_keys.pem"
 CONFIG_CRC16=y
 CONFIG_CRC_T10DIF=y
 CONFIG_SWIOTLB_DYNAMIC=y
ml-rpm/ol9/config-x86_64-debug +0 -2
index 358b2ab724b04..fb67da8c1c03e 100644
@@ -2856,8 +2856,6 @@ CONFIG_SYSTEM_EXTRA_CERTIFICATE=y
 CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE=8192
 CONFIG_SECONDARY_TRUSTED_KEYRING=y
 CONFIG_SYSTEM_BLACKLIST_KEYRING=y
-CONFIG_SYSTEM_REVOCATION_LIST=y
-CONFIG_SYSTEM_REVOCATION_KEYS="certs/ol_revocation_keys.pem"
 CONFIG_CRC16=y
 CONFIG_CRC_T10DIF=y
 CONFIG_RANDOM32_SELFTEST=y
Signature · 1 line
2.31.1
#9 lore raw

PATCH v3 4/6 RDMA/cm: Brute force GFP_NOIO

In reply to Håkon Bugge

In ib_cm_init(), we call memalloc_noio_{save,restore} in a parenthetic fashion when enabled by the module parameter force_noio.

This in order to conditionally enable ib_cm to work aligned with block I/O devices. Any work queued later on work-queues created during module initialization will inherit the PF_MEMALLOC_{NOIO,NOFS} flag(s), due to commit ("workqueue: Inherit NOIO and NOFS alloc flags").

We do this in order to enable ULPs using the RDMA stack to be used as a network block I/O device. This to support a filesystem on top of a raw block device which uses said ULP(s) and the RDMA stack as the network transport layer.

Under intense memory pressure, we get memory reclaims. Assume the filesystem reclaims memory, goes to the raw block device, which calls into the ULP in question, which calls the RDMA stack. Now, if regular GFP_KERNEL allocations in ULP or the RDMA stack require reclaims to be fulfilled, we end up in a circular dependency.

We break this circular dependency by:

1. Force all allocations in the ULP and the relevant RDMA stack to use GFP_NOIO, by means of a parenthetic use of memalloc_noio_{save,restore} on all relevant entry points.

2. Make sure work-queues inherits current->flags
wrt. PF_MEMALLOC_{NOIO,NOFS}, such that work executed on the work-queue inherits the same flag(s).

---
 drivers/infiniband/core/cm.c | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)
drivers/infiniband/core/cm.c +14 -1
index 07fb8d3c037f0..767eec38eb57d 100644
@@ -22,6 +22,7 @@
 #include <linux/workqueue.h>
 #include <linux/kdev_t.h>
 #include <linux/etherdevice.h>
+#include <linux/sched/mm.h>
 
 #include <rdma/ib_cache.h>
 #include <rdma/ib_cm.h>
@@ -35,6 +36,11 @@ MODULE_DESCRIPTION("InfiniBand CM");
 MODULE_LICENSE("Dual BSD/GPL");
 
 #define CM_DESTROY_ID_WAIT_TIMEOUT 10000 /* msecs */
+
+static bool cm_force_noio;
+module_param_named(force_noio, cm_force_noio, bool, 0444);
+MODULE_PARM_DESC(force_noio, "Force the use of GFP_NOIO (Y/N)");
+
 static const char * const ibcm_rej_reason_strs[] = {
 	[IB_CM_REJ_NO_QP]			= "no QP",
 	[IB_CM_REJ_NO_EEC]			= "no EEC",
@@ -4504,6 +4510,10 @@ static void cm_remove_one(struct ib_device *ib_device, void *client_data)
 static int __init ib_cm_init(void)
 {
 	int ret;
+	unsigned int noio_flags;
+
+	if (cm_force_noio)
+		noio_flags = memalloc_noio_save();
 
 	INIT_LIST_HEAD(&cm.device_list);
 	rwlock_init(&cm.device_lock);
@@ -4527,10 +4537,13 @@ static int __init ib_cm_init(void)
 	if (ret)
 		goto error3;
 
-	return 0;
+	goto error2;
 error3:
 	destroy_workqueue(cm.wq);
 error2:
+	if (cm_force_noio)
+		memalloc_noio_restore(noio_flags);
+
 	return ret;
 }
 
Signature · 1 line
2.31.1
#10 lore raw

RE: [PATCH v3 4/6] RDMA/cm: Brute force GFP_NOIO

Quoted 77 lines

-----Original Message-----
From: Håkon Bugge <[email protected]>
Sent: Wednesday, May 22, 2024 7:25 PM
To: [email protected]; [email protected]; [email protected]; [email protected]
Cc: Jason Gunthorpe <[email protected]>; Leon Romanovsky <[email protected]>; Saeed Mahameed <[email protected]>; Tariq Toukan <[email protected]>; David S . Miller <[email protected]>; Eric Dumazet <[email protected]>; Jakub Kicinski <[email protected]>; Paolo Abeni <[email protected]>; Tejun Heo <[email protected]>; Lai Jiangshan <[email protected]>; Allison Henderson <[email protected]>; Manjunath Patil <[email protected]>; Mark Zhang <[email protected]>; Håkon Bugge <[email protected]>; Chuck Lever <[email protected]>; Shiraz Saleem <[email protected]>; Yang Li <[email protected]>
Subject: [PATCH v3 4/6] RDMA/cm: Brute force GFP_NOIO

In ib_cm_init(), we call memalloc_noio_{save,restore} in a parenthetic fashion when enabled by the module parameter force_noio.

This in order to conditionally enable ib_cm to work aligned with block I/O devices. Any work queued later on work-queues created during module initialization will inherit the PF_MEMALLOC_{NOIO,NOFS} flag(s), due to commit ("workqueue:
Inherit NOIO and NOFS alloc flags").

We do this in order to enable ULPs using the RDMA stack to be used as a network block I/O device. This to support a filesystem on top of a raw block device which uses said ULP(s) and the RDMA stack as the network transport layer.

Under intense memory pressure, we get memory reclaims. Assume the filesystem reclaims memory, goes to the raw block device, which calls into the ULP in question, which calls the RDMA stack. Now, if regular GFP_KERNEL allocations in ULP or the RDMA stack require reclaims to be fulfilled, we end up in a circular dependency.

We break this circular dependency by:

1. Force all allocations in the ULP and the relevant RDMA stack to use GFP_NOIO, by means of a parenthetic use of memalloc_noio_{save,restore} on all relevant entry points.

2. Make sure work-queues inherits current->flags
wrt. PF_MEMALLOC_{NOIO,NOFS}, such that work executed on the work-queue inherits the same flag(s).

---
 drivers/infiniband/core/cm.c | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)
drivers/infiniband/core/cm.c index renamed from drivers/infiniband/core/cm.c +0 -0

07fb8d3c037f0..767eec38eb57d 100644

drivers/infiniband/core/cm.c +6 -0
@@ -22,6 +22,7 @@
 #include <linux/workqueue.h>
 #include <linux/kdev_t.h>
 #include <linux/etherdevice.h>
+#include <linux/sched/mm.h>
 
 #include <rdma/ib_cache.h>
 #include <rdma/ib_cm.h>
@@ -35,6 +36,11 @@ MODULE_DESCRIPTION("InfiniBand CM");
 MODULE_LICENSE("Dual BSD/GPL");
 
 #define CM_DESTROY_ID_WAIT_TIMEOUT 10000 /* msecs */
+
+static bool cm_force_noio;
+module_param_named(force_noio, cm_force_noio, bool, 0444);
+MODULE_PARM_DESC(force_noio, "Force the use of GFP_NOIO (Y/N)");
+
 static const char * const ibcm_rej_reason_strs[] = {
 	[IB_CM_REJ_NO_QP]			= "no QP",
 	[IB_CM_REJ_NO_EEC]			= "no EEC",

drivers/infiniband/core/cm.c static void cm_remove_one(struct ib_device · line 4512

Quoted 3 lines
drivers/infiniband/core/cm.c +1 -0
@@ -4504,6 +4510,10 @@ static void cm_remove_one(struct ib_device
 *ib_device, void *client_data)  static int __init ib_cm_init(void)  {
 	int ret;
+	unsigned int noio_flags;

minor: please follow reverse xmas tree order

Quoted 24 lines
drivers/infiniband/core/cm.c +7 -2
+
+	if (cm_force_noio)
+		noio_flags = memalloc_noio_save();
 
 	INIT_LIST_HEAD(&cm.device_list);
 	rwlock_init(&cm.device_lock);
@@ -4527,10 +4537,13 @@ static int __init ib_cm_init(void)
 	if (ret)
 		goto error3;
 
-	return 0;
+	goto error2;
 error3:
 	destroy_workqueue(cm.wq);
 error2:
+	if (cm_force_noio)
+		memalloc_noio_restore(noio_flags);
+
 	return ret;
 }
 
--

2.31.1

#11 lore raw

PATCH v3 5/6 ml: Add ol_signing_keys.pem in certs dir

In reply to Håkon Bugge

From: Luci Bot <[email protected]>

ol_signing_keys.pem is copied in certs directory

---
 ml-rpm/ol8/kernel-mainline.spec | 11 +++++++++++
 ml-rpm/ol9/kernel-mainline.spec | 11 +++++++++++
 2 files changed, 22 insertions(+)
ml-rpm/ol8/kernel-mainline.spec +11 -0
index ed47eb0706a87..8487d522984a3 100644
@@ -483,6 +483,7 @@ BuildConflicts: rpm < 4.13.0.1-19
 Source0: linux-%{kversion}.tar.bz2
 
 %if %{signkernel}%{signmodules}
+Source9: ol_signing_keys.pem
 Source10: x509.genkey
 %endif
 
@@ -1110,6 +1111,11 @@ BuildContainerKernel() {
     perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = ${ExtraVer}/" Makefile
 
     make %{?make_opts} mrproper
+
+%if %{signkernel}%{signmodules}
+    cp %{SOURCE10} %{SOURCE9} certs/.
+%endif
+
     cp configs/config-container .config
 
     make %{?make_opts} ARCH=$Arch %{?_kernel_cc} olddefconfig > /dev/null
@@ -1159,6 +1165,11 @@ BuildKernel() {
 
     make %{?make_opts} mrproper
 
+%if %{signkernel}%{signmodules}
+    cp %{SOURCE10} %{SOURCE9} certs/.
+%endif
+
+
 %if %{signkernel}%{signmodules}
     cp %{SOURCE10} certs/.
 %endif
ml-rpm/ol9/kernel-mainline.spec +11 -0
index 0eb7d20043ed0..6a84976f01632 100644
@@ -458,6 +458,7 @@ BuildConflicts: rpm < 4.13.0.1-19
 Source0: linux-%{kversion}.tar.bz2
 
 %if %{signkernel}%{signmodules}
+Source9: ol_signing_keys.pem
 Source10: x509.genkey
 %endif
 
@@ -1072,6 +1073,11 @@ BuildContainerKernel() {
     perl -p -i -e "s/^EXTRAVERSION.*/EXTRAVERSION = ${ExtraVer}/" Makefile
 
     make %{?make_opts} mrproper
+
+%if %{signkernel}%{signmodules}
+    cp %{SOURCE10} %{SOURCE9} certs/.
+%endif
+
     cp configs/config-container .config
 
     make %{?make_opts} ARCH=$Arch %{?_kernel_cc} olddefconfig > /dev/null
@@ -1121,6 +1127,11 @@ BuildKernel() {
 
     make %{?make_opts} mrproper
 
+%if %{signkernel}%{signmodules}
+    cp %{SOURCE10} %{SOURCE9} certs/.
+%endif
+
+
 %if %{signkernel}%{signmodules}
     cp %{SOURCE10} certs/.
 %endif
Signature · 1 line
2.31.1
#12 lore raw

PATCH v3 5/6 RDMA/mlx5: Brute force GFP_NOIO

In reply to Håkon Bugge

In mlx5_ib_init(), we call memalloc_noio_{save,restore} in a parenthetic fashion when enabled by the module parameter force_noio.

This in order to conditionally enable mlx5_ib to work aligned with I/O devices. Any work queued later on work-queues created during module initialization will inherit the PF_MEMALLOC_{NOIO,NOFS} flag(s), due to commit ("workqueue: Inherit NOIO and NOFS alloc flags").

We do this in order to enable ULPs using the RDMA stack and the mlx5_ib driver to be used as a network block I/O device. This to support a filesystem on top of a raw block device which uses said ULP(s) and the RDMA stack as the network transport layer.

Under intense memory pressure, we get memory reclaims. Assume the filesystem reclaims memory, goes to the raw block device, which calls into the ULP in question, which calls the RDMA stack. Now, if regular GFP_KERNEL allocations in ULP or the RDMA stack require reclaims to be fulfilled, we end up in a circular dependency.

We break this circular dependency by:

1. Force all allocations in the ULP and the relevant RDMA stack to use GFP_NOIO, by means of a parenthetic use of memalloc_noio_{save,restore} on all relevant entry points.

2. Make sure work-queues inherits current->flags
wrt. PF_MEMALLOC_{NOIO,NOFS}, such that work executed on the work-queue inherits the same flag(s).

---
 drivers/infiniband/hw/mlx5/main.c | 22 ++++++++++++++++++----
 1 file changed, 18 insertions(+), 4 deletions(-)
drivers/infiniband/hw/mlx5/main.c +18 -4
index 2366c46eebc87..d47ef7d48f492 100644
@@ -56,6 +56,10 @@ MODULE_AUTHOR("Eli Cohen <[email protected]>");
 MODULE_DESCRIPTION("Mellanox 5th generation network adapters (ConnectX series) IB driver");
 MODULE_LICENSE("Dual BSD/GPL");
 
+static bool mlx5_ib_force_noio;
+module_param_named(force_noio, mlx5_ib_force_noio, bool, 0444);
+MODULE_PARM_DESC(force_noio, "Force the use of GFP_NOIO (Y/N)");
+
 struct mlx5_ib_event_work {
 	struct work_struct	work;
 	union {
@@ -4488,16 +4492,23 @@ static struct auxiliary_driver mlx5r_driver = {
 
 static int __init mlx5_ib_init(void)
 {
+	unsigned int noio_flags;
 	int ret;
 
+	if (mlx5_ib_force_noio)
+		noio_flags = memalloc_noio_save();
+
 	xlt_emergency_page = (void *)__get_free_page(GFP_KERNEL);
-	if (!xlt_emergency_page)
-		return -ENOMEM;
+	if (!xlt_emergency_page) {
+		ret = -ENOMEM;
+		goto out;
+	}
 
 	mlx5_ib_event_wq = alloc_ordered_workqueue("mlx5_ib_event_wq", 0);
 	if (!mlx5_ib_event_wq) {
 		free_page((unsigned long)xlt_emergency_page);
-		return -ENOMEM;
+		ret = -ENOMEM;
+		goto out;
 	}
 
 	ret = mlx5_ib_qp_event_init();
@@ -4514,7 +4525,7 @@ static int __init mlx5_ib_init(void)
 	ret = auxiliary_driver_register(&mlx5r_driver);
 	if (ret)
 		goto drv_err;
-	return 0;
+	goto out;
 
 drv_err:
 	auxiliary_driver_unregister(&mlx5r_mp_driver);
@@ -4525,6 +4536,9 @@ static int __init mlx5_ib_init(void)
 qp_event_err:
 	destroy_workqueue(mlx5_ib_event_wq);
 	free_page((unsigned long)xlt_emergency_page);
+out:
+	if (mlx5_ib_force_noio)
+		memalloc_noio_restore(noio_flags);
 	return ret;
 }
 
Signature · 1 line
2.31.1
#13 lore raw

PATCH v3 6/6 net/mlx5: Brute force GFP_NOIO

In reply to Håkon Bugge

In mlx5_core_init(), we call memalloc_noio_{save,restore} in a parenthetic fashion when enabled by the module parameter force_noio.

This in order to conditionally enable mlx5_core to work aligned with I/O devices. Any work queued later on work-queues created during module initialization will inherit the PF_MEMALLOC_{NOIO,NOFS} flag(s), due to commit ("workqueue: Inherit NOIO and NOFS alloc flags").

We do this in order to enable ULPs using the RDMA stack and the mlx5_core driver to be used as a network block I/O device. This to support a filesystem on top of a raw block device which uses said ULP(s) and the RDMA stack as the network transport layer.

Under intense memory pressure, we get memory reclaims. Assume the filesystem reclaims memory, goes to the raw block device, which calls into the ULP in question, which calls the RDMA stack. Now, if regular GFP_KERNEL allocations in ULP or the RDMA stack require reclaims to be fulfilled, we end up in a circular dependency.

We break this circular dependency by:

1. Force all allocations in the ULP and the relevant RDMA stack to use GFP_NOIO, by means of a parenthetic use of memalloc_noio_{save,restore} on all relevant entry points.

2. Make sure work-queues inherits current->flags
wrt. PF_MEMALLOC_{NOIO,NOFS}, such that work executed on the work-queue inherits the same flag(s).

---
 drivers/net/ethernet/mellanox/mlx5/core/main.c | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)
drivers/net/ethernet/mellanox/mlx5/core/main.c +13 -1
index 6574c145dc1e2..66cef64a82c61 100644
@@ -48,6 +48,7 @@
 #include <linux/mlx5/vport.h>
 #include <linux/version.h>
 #include <net/devlink.h>
+#include <linux/sched/mm.h>
 #include "mlx5_core.h"
 #include "lib/eq.h"
 #include "fs_core.h"
@@ -87,6 +88,10 @@ static unsigned int prof_sel = MLX5_DEFAULT_PROF;
 module_param_named(prof_sel, prof_sel, uint, 0444);
 MODULE_PARM_DESC(prof_sel, "profile selector. Valid range 0 - 2");
 
+static bool mlx5_core_force_noio;
+module_param_named(force_noio, mlx5_core_force_noio, bool, 0444);
+MODULE_PARM_DESC(force_noio, "Force the use of GFP_NOIO (Y/N)");
+
 static u32 sw_owner_id[4];
 #define MAX_SW_VHCA_ID (BIT(__mlx5_bit_sz(cmd_hca_cap_2, sw_vhca_id)) - 1)
 static DEFINE_IDA(sw_vhca_ida);
@@ -2308,8 +2313,12 @@ static void mlx5_core_verify_params(void)
 
 static int __init mlx5_init(void)
 {
+	unsigned int noio_flags;
 	int err;
 
+	if (mlx5_core_force_noio)
+		noio_flags = memalloc_noio_save();
+
 	WARN_ONCE(strcmp(MLX5_ADEV_NAME, KBUILD_MODNAME),
 		  "mlx5_core name not in sync with kernel module name");
 
@@ -2330,7 +2339,7 @@ static int __init mlx5_init(void)
 	if (err)
 		goto err_pci;
 
-	return 0;
+	goto out;
 
 err_pci:
 	mlx5_sf_driver_unregister();
@@ -2338,6 +2347,9 @@ static int __init mlx5_init(void)
 	mlx5e_cleanup();
 err_debug:
 	mlx5_unregister_debugfs();
+out:
+	if (mlx5_core_force_noio)
+		memalloc_noio_restore(noio_flags);
 	return err;
 }
 
Signature · 1 line
2.31.1
#14 lore raw

PATCH v3 6/6 workqueue: Inherit per-process allocation flags

In reply to Håkon Bugge

For drivers/modules running inside a memalloc_flags_{save,restore} region, if a work-queue is created, we make sure work executed on the work-queue inherits the same flag(s).

This in order to conditionally enable drivers to work aligned with block I/O devices. This commit makes sure that any work queued later on work-queues created during module initialization, when current's flags has any of the PF_MEMALLOC* set, will inherit the same flags.

We do this in order to enable drivers to be used as a network block I/O device. This in order to support XFS or other file-systems on top of a raw block device which uses said drivers as the network transport layer.

Under intense memory pressure, we get memory reclaims. Assume the file-system reclaims memory, goes to the raw block device, which calls into said drivers. Now, if regular GFP_KERNEL allocations in the drivers require reclaims to be fulfilled, we end up in a circular dependency.

We break this circular dependency by:

1. Force all allocations in the drivers to use GFP_NOIO, by means of a parenthetic use of memalloc_flags_{save,restore} on all relevant entry points, setting/clearing the PF_MEMALLOC_NOIO bit.

2. Make sure work-queues inherits current->flags
wrt. PF_MEMALLOC_NOIO, such that work executed on the work-queue inherits the same flag(s). That is what this commit contributes with.

---

v2 -> v3:
* Add support for all PF_MEMALLOC* flags
* Re-worded commit message

v1 -> v2:
* Added missing hunk in alloc_workqueue()

---
 include/linux/workqueue.h |  9 ++++++
 kernel/workqueue.c        | 60 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 69 insertions(+)
include/linux/workqueue.h +9 -0
index fb39938945365..f8c87f824272b 100644
@@ -406,9 +406,18 @@ enum wq_flags {
 	__WQ_DRAINING		= 1 << 16, /* internal: workqueue is draining */
 	__WQ_ORDERED		= 1 << 17, /* internal: workqueue is ordered */
 	__WQ_LEGACY		= 1 << 18, /* internal: create*_workqueue() */
+	__WQ_MEMALLOC		= 1 << 19, /* internal: execute work with MEMALLOC */
+	__WQ_MEMALLOC_NOFS      = 1 << 20, /* internal: execute work with MEMALLOC_NOFS */
+	__WQ_MEMALLOC_NOIO      = 1 << 21, /* internal: execute work with MEMALLOC_NOIO */
+	__WQ_MEMALLOC_NORECLAIM = 1 << 22, /* internal: execute work with MEMALLOC_NORECLAIM */
+	__WQ_MEMALLOC_NOWARN    = 1 << 23, /* internal: execute work with MEMALLOC_NOWARN */
+	__WQ_MEMALLOC_PIN	= 1 << 24, /* internal: execute work with MEMALLOC_PIN */
 
 	/* BH wq only allows the following flags */
 	__WQ_BH_ALLOWS		= WQ_BH | WQ_HIGHPRI,
+
+	__WQ_PF_MEMALLOC_MASK	= PF_MEMALLOC | PF_MEMALLOC_NOFS | PF_MEMALLOC_NOIO |
+				  PF_MEMALLOC_NORECLAIM | PF_MEMALLOC_NOWARN | PF_MEMALLOC_PIN,
 };
 
 enum wq_consts {
kernel/workqueue.c +60 -0

102 lines not on this page · raw message

Signature · 1 line
2.31.1
#16 lore raw
Quoted 5 lines · Christoph Hellwig

Still NAK with the same reason as the previous round.

Understood. Our emails crossed.

Thxs, Håkon