From 93047d957ed93c8f0841504e7267892856fa26fe Mon Sep 17 00:00:00 2001
From: Heiko Stuebner <heiko@sntech.de>
Date: Thu, 3 Nov 2022 14:56:45 +0100
Subject: [PATCH RFC 9/9] HACK: disable strchr call in overlay-fs

Although the standard strchr function does _not_
use strlen at all, the compiled result with the str*-alternatives
somehow wants to link against a then-nonexistent strlen symbol.

All real strlen invocations everywhere else will use the
correct functions though.

Need to investigate what happens here.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
---
 fs/overlayfs/super.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c
index a29a8afe9b26..9e36d0bd7f02 100644
--- a/fs/overlayfs/super.c
+++ b/fs/overlayfs/super.c
@@ -1833,7 +1833,8 @@ static struct ovl_entry *ovl_get_lowerstack(struct super_block *sb,
 		if (err)
 			goto out_err;
 
-		lower = strchr(lower, '\0') + 1;
+//FIXME: this somehow then wants to access a non-existent _strlen_ symbol
+//		lower = strchr(lower, '\0') + 1;
 	}
 
 	err = -EINVAL;
-- 
2.35.1

