Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 855182 - sys-fs/zfs-kmod-2.1.5 with kernel linux-5.18.8-gentoo and 12.1.1_p20220625 - zfs-2.1.5/module/lua/ldo.c:172:9: error: infinite recursion detected [-Werror=infinite-recursion]
Summary: sys-fs/zfs-kmod-2.1.5 with kernel linux-5.18.8-gentoo and 12.1.1_p20220625 - ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2022-06-29 22:43 UTC by Furude Rika
Modified: 2022-08-03 18:55 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info '=sys-fs/zfs-kmod-2.1.5' (a.txt,6.23 KB, text/plain)
2022-06-29 22:43 UTC, Furude Rika
Details
build.log (zfs-kmod-2.1.5:20220629-222513.log.xz,22.77 KB, application/x-xz)
2022-06-29 22:45 UTC, Furude Rika
Details
The patch which is working for this bug (Silence_-Winfinite-recursion_warning_in_luaD_throw.patch,2.21 KB, patch)
2022-06-30 00:09 UTC, Furude Rika
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Furude Rika 2022-06-29 22:43:08 UTC
Created attachment 788798 [details]
emerge --info '=sys-fs/zfs-kmod-2.1.5'

See title
Comment 1 Furude Rika 2022-06-29 22:45:37 UTC
Created attachment 788801 [details]
build.log
Comment 2 Furude Rika 2022-06-29 22:52:06 UTC
The relevant bit from the build.log:

  x86_64-pc-linux-gnu-gcc -Wp,-MMD,/var/tmp/portage/sys-fs/zfs-kmod-2.1.5/work/zfs-2.1.5/module/zfs/.lz4.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -fno-jump-tables -mharden-sls=all -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Werror -Wno-array-bounds -Wimplicit-fallthrough=5 -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -fomit-frame-pointer -ftrivial-auto-var-init=zero -fno-stack-clash-protection -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-alloc-size-larger-than -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -std=gnu99 -Wno-declaration-after-statement -Wmissing-prototypes -Wno-format-zero-length -include /var/tmp/portage/sys-fs/zfs-kmod-2.1.5/work/zfs-2.1.5/zfs_config.h -I/var/tmp/portage/sys-fs/zfs-kmod-2.1.5/work/zfs-2.1.5/include -I/var/tmp/portage/sys-fs/zfs-kmod-2.1.5/work/zfs-2.1.5/include/os/linux/kernel -I/var/tmp/portage/sys-fs/zfs-kmod-2.1.5/work/zfs-2.1.5/include/os/linux/spl -I/var/tmp/portage/sys-fs/zfs-kmod-2.1.5/work/zfs-2.1.5/include/os/linux/zfs -I/var/tmp/portage/sys-fs/zfs-kmod-2.1.5/work/zfs-2.1.5/include -D_KERNEL -UDEBUG -DNDEBUG  -DMODULE  -DKBUILD_BASENAME='"lz4"' -DKBUILD_MODNAME='"zfs"' -D__KBUILD_MODNAME=kmod_zfs -c -o /var/tmp/portage/sys-fs/zfs-kmod-2.1.5/work/zfs-2.1.5/module/zfs/lz4.o /var/tmp/portage/sys-fs/zfs-kmod-2.1.5/work/zfs-2.1.5/module/zfs/lz4.c  ; ./tools/objtool/objtool orc generate  --module   --no-fp   --retpoline  --uaccess   --sls /var/tmp/portage/sys-fs/zfs-kmod-2.1.5/work/zfs-2.1.5/module/zfs/lz4.o
/var/tmp/portage/sys-fs/zfs-kmod-2.1.5/work/zfs-2.1.5/module/lua/ldo.c: In function ‘luaD_throw’:
/var/tmp/portage/sys-fs/zfs-kmod-2.1.5/work/zfs-2.1.5/module/lua/ldo.c:172:9: error: infinite recursion detected [-Werror=infinite-recursion]
  172 | l_noret luaD_throw (lua_State *L, int errcode) {
      |         ^~~~~~~~~~
/var/tmp/portage/sys-fs/zfs-kmod-2.1.5/work/zfs-2.1.5/module/lua/ldo.c:181:7: note: recursive call
  181 |       luaD_throw(G(L)->mainthread, errcode);  /* re-throw in main thread */
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[5]: *** [scripts/Makefile.build:288: /var/tmp/portage/sys-fs/zfs-kmod-2.1.5/work/zfs-2.1.5/module/lua/ldo.o] Error 1
Comment 3 Furude Rika 2022-06-29 23:27:40 UTC
Related commit for fixing this bug
https://github.com/openzfs/zfs/commit/60e389ca10085acfa7cd35f79ab4465d968a942f
Comment 4 Furude Rika 2022-06-29 23:39:27 UTC
Related commit for fixing this bug 
https://github.com/openzfs/zfs/commit/a6e8113fed8a508ffda13cf1c4d8da99a4e8133a
Comment 5 Furude Rika 2022-06-30 00:09:21 UTC
Created attachment 788804 [details, diff]
The patch which is working for this bug
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-30 00:24:42 UTC
Thanks, was on list to backport once merged upstream and it was yesterday.
Comment 7 Larry the Git Cow gentoo-dev 2022-06-30 10:37:56 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=468b165fb4ef100a9fb630dffa4feda1ed3089c5

commit 468b165fb4ef100a9fb630dffa4feda1ed3089c5
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-30 10:37:42 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-30 10:37:49 +0000

    sys-fs/zfs-kmod: backport build fixes
    
    Closes: https://bugs.gentoo.org/855182
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-fs/zfs-kmod/files/2.1.5-build-issues.patch | 74 ++++++++++++++++++++++++++
 sys-fs/zfs-kmod/zfs-kmod-2.1.5.ebuild          |  5 ++
 2 files changed, 79 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cfd4165530beb09e3e75d91fe56b2dcce910aadc

commit cfd4165530beb09e3e75d91fe56b2dcce910aadc
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-30 01:55:16 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-30 10:37:49 +0000

    sys-fs/zfs: backport build fixes and non-root dracut boot fix
    
    Closes: https://bugs.gentoo.org/855182
    Closes: https://bugs.gentoo.org/854333
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-fs/zfs/files/2.1.5-build-issues.patch    |  74 +++++++
 sys-fs/zfs/files/2.1.5-dracut-non-root.patch |  33 +++
 sys-fs/zfs/zfs-2.1.5-r1.ebuild               | 310 +++++++++++++++++++++++++++
 3 files changed, 417 insertions(+)
Comment 8 Larry the Git Cow gentoo-dev 2022-08-03 04:35:58 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9059463a8b642a8d4a8d5a2a25fb38a49be8c2e6

commit 9059463a8b642a8d4a8d5a2a25fb38a49be8c2e6
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-08-03 04:18:58 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-08-03 04:35:46 +0000

    sys-fs/zfs: backport various fixes
    
    Mostly build fixes (https://github.com/openzfs/zfs/pull/13684)
    but also https://github.com/openzfs/zfs/pull/13714.
    
    All from upstream zfs-2.1.6-staging branch.
    
    Temporarily unkeyworded.
    
    Bug: https://bugs.gentoo.org/863212
    Bug: https://bugs.gentoo.org/855182
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-fs/zfs/Manifest                               |   1 +
 sys-fs/zfs/zfs-2.1.5-r5.ebuild                    | 334 ++++++++++++++++++++++
 sys-libs/compiler-rt/compiler-rt-14.0.6-r1.ebuild | 138 +++++++++
 3 files changed, 473 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b658334aaa40c30c08d1e003c11135507b83174

commit 2b658334aaa40c30c08d1e003c11135507b83174
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-08-03 04:18:24 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-08-03 04:35:22 +0000

    sys-fs/zfs-kmod: backport various fixes
    
    Mostly build fixes (https://github.com/openzfs/zfs/pull/13684)
    but also https://github.com/openzfs/zfs/pull/13714.
    
    All from upstream zfs-2.1.6-staging branch.
    
    Temporarily unkeyworded.
    
    Bug: https://bugs.gentoo.org/855182
    Bug: https://bugs.gentoo.org/863212
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-fs/zfs-kmod/Manifest                 |   1 +
 sys-fs/zfs-kmod/zfs-kmod-2.1.5-r1.ebuild | 221 +++++++++++++++++++++++++++++++
 2 files changed, 222 insertions(+)
Comment 9 Larry the Git Cow gentoo-dev 2022-08-03 18:55:12 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=153564d2412de6e1a4c73ef9589de972b694210d

commit 153564d2412de6e1a4c73ef9589de972b694210d
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-08-03 18:55:00 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-08-03 18:55:00 +0000

    sys-fs/zfs-kmod: keyword 2.1.5-r1
    
    Bug: https://bugs.gentoo.org/863212
    Bug: https://bugs.gentoo.org/855182
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-fs/zfs-kmod/zfs-kmod-2.1.5-r1.ebuild | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d88628119552af50c68386c1e0174f99bd54eab5

commit d88628119552af50c68386c1e0174f99bd54eab5
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-08-03 18:54:39 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-08-03 18:54:39 +0000

    sys-fs/zfs: keyword 2.1.5-r5
    
    Bug: https://bugs.gentoo.org/863212
    Bug: https://bugs.gentoo.org/855182
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-fs/zfs/zfs-2.1.5-r5.ebuild | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)