HACK: disable strchr call in overlay-fs

A patch from »String optimizations and call support in alternatives« in state Mainline for linux-kernel

From: Heiko Stuebner <heiko@...> Date: Thu, 3 Nov 2022 14:56:45 +0100

Commit-Message

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@...>

Patch-Comment

fs/overlayfs/super.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

Statistics

  • 2 lines added
  • 1 lines removed

Changes

----------------------------- fs/overlayfs/super.c -----------------------------
index a29a8afe9b26..9e36d0bd7f02 100644
@@ -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;
 
 

Recent Patches

About Us

Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum vel, tempor at, varius non, purus. Mauris vitae nisl nec metus placerat consectetuer.

Read More...