aufs bug kernel issue - solved

Moderator: Forum moderators

Post Reply
ozsouth
Posts: 1569
Joined: Sun Jul 12, 2020 2:38 am
Location: S.E. Australia
Has thanked: 241 times
Been thanked: 704 times

aufs bug kernel issue - solved

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

Last edited by ozsouth on Tue Mar 15, 2022 12:48 pm, edited 21 times in total.
User avatar
Grey
Posts: 2024
Joined: Wed Jul 22, 2020 12:33 am
Location: Russia
Has thanked: 76 times
Been thanked: 376 times

Re: aufs issue

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

Fossapup OS, Ryzen 5 3600 CPU, 64 GB RAM, GeForce GTX 1050 Ti 4 GB, Sound Blaster Audigy Rx with amplifier + Yamaha speakers for loud sound, USB Sound Blaster X-Fi Surround 5.1 Pro V3 + headphones for quiet sound.

User avatar
BarryK
Posts: 2694
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 132 times
Been thanked: 738 times

Re: aufs issue

Post 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?

ozsouth
Posts: 1569
Joined: Sun Jul 12, 2020 2:38 am
Location: S.E. Australia
Has thanked: 241 times
Been thanked: 704 times

Re: aufs issue

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

ozsouth
Posts: 1569
Joined: Sun Jul 12, 2020 2:38 am
Location: S.E. Australia
Has thanked: 241 times
Been thanked: 704 times

Re: aufs issue

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

ozsouth
Posts: 1569
Joined: Sun Jul 12, 2020 2:38 am
Location: S.E. Australia
Has thanked: 241 times
Been thanked: 704 times

Re: aufs bug kernel issue -solved

Post by ozsouth »

Aufs updated - patch no longer needed

Last edited by ozsouth on Mon Mar 14, 2022 7:08 am, edited 1 time in total.
User avatar
Grey
Posts: 2024
Joined: Wed Jul 22, 2020 12:33 am
Location: Russia
Has thanked: 76 times
Been thanked: 376 times

Re: aufs bug causes issue with kernels

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

Fossapup OS, Ryzen 5 3600 CPU, 64 GB RAM, GeForce GTX 1050 Ti 4 GB, Sound Blaster Audigy Rx with amplifier + Yamaha speakers for loud sound, USB Sound Blaster X-Fi Surround 5.1 Pro V3 + headphones for quiet sound.

Post Reply

Return to “Kernels”