Page 1 of 1

aufs bug kernel issue - solved

Posted: Thu Mar 10, 2022 4:59 am
by ozsouth

I've had failures with several kernel compiling attempts using kernel-kit master, over the last few weeks.
The kernel compiles, and when booted is ok. When you exit, crashes, with error: au_fsctx_parse_monolithic
I've just discovered there is a bug, which @peebee and sfjro just tested.
....aufs_sources/fs/aufs/fsctx.c has an error (in line 1094?): while (1) should be while (str)
See: https://github.com/sfjro/aufs5-standalone/issues/9

Recent 5.10, 5.15 & 5.16 kernels affected. 2 patch tries were posted on github.

EDIT: 14/3/22 - BUG NOW FIXED - PATCHES NO LONGER NEEDED.


Re: aufs issue

Posted: Thu Mar 10, 2022 6:10 am
by Grey
ozsouth wrote: Thu Mar 10, 2022 4:59 am

The kernel compiles, and when booted is ok. When you exit, crashes, with error: au_fsctx_parse_monolithic

Excellent :thumbup: I think I recognize my problem from this post (null pointer dereference). Now the problem should go away.


Re: aufs issue

Posted: Thu Mar 10, 2022 9:12 am
by BarryK
ozsouth wrote: Thu Mar 10, 2022 4:59 am

I've had failures with several kernel compiling attempts using kernel-kit master, over the last few weeks.
The kernel compiles, and when booted is ok. When you exit, crashes, with error: au_fsctx_parse_monolithic
I've just discovered there is a bug, which @peebee and sfjro just tested.
....aufs_sources/fs/aufs/fsctx.c has an error (in line 1094?): while (1) should be while (str)
See: https://github.com/sfjro/aufs5-standalone/issues/9

I made a 5.10.104 64bit kernel to test fix - works. Recent 5.4, 5.15, 5.16 kernels affected too.\

EDIT: I made a file from sfjro's github entry, attached below. Remove .fake.gz & make executable.

Would you mind clarifying something?
On that gihub issues page it was determined that only the one-line patch is required, but your patch is multiline. Why?

From reading that github page, the multiline patch isn't required. Or have I missed something?


Re: aufs issue

Posted: Thu Mar 10, 2022 10:22 am
by ozsouth

@BarryK - I tried just making the substitution when kernel-kit paused for menuconfig selection and
it seemed to be accepted, but new kernel hung on exit again, so I copied sfjro's 2nd patch from github, put
it in ..patches/aufs_sources & edited 'apply' to run it. Only then would compiled kernel not hang on exit.
This may have behind our recent woes.


Re: aufs issue

Posted: Thu Mar 10, 2022 9:42 pm
by ozsouth

I see @peebee has confirmed the 1st (smaller patch at github) works.
I have compiled a 5.15.27 kernel to test that - confirmed working.
I've attached patch 1 to the first post.


Re: aufs bug kernel issue -solved

Posted: Mon Mar 14, 2022 6:38 am
by ozsouth

Aufs updated - patch no longer needed


Re: aufs bug causes issue with kernels

Posted: Mon Mar 14, 2022 7:08 am
by Grey
ozsouth wrote: Mon Mar 14, 2022 6:38 am

Aufs updated - patch no longer needed

At least one good news in the morning :) I keep forgetting to add some patch when compiling :)
Oh, there's also Aufs version 5.17-rc7. The rc8 kernel version was released yesterday.