When I try to build nvidia drivers for newer kernels (e.g., 5.18.X), the build fails because some files in the kernel tree have only read permissions for root. To build the drivers (emerge @module-rebuild), one has to first chmod -R +rX the content of the kernel tree directory (/usr/src/linux/). This did not happen with the stable kernels but I need the 5.18 series for its vastly improved Intel Alder Lake processor scheduler. Reproducible: Always
It sounds like you started using a different umask as root (like umask 0027 rather than 0022, can confirm by running `umask`) and when you build your kernel it created built files without world read permissions.
Thanks for the hint. Although I do not set the mask for root, the user from which I "su -" does. The surprise is that the su -l command keeps the user's mask. I don't know if this has always been the case because I have never seen this problem while using the same configuration for the user and the root for years. If this mask inheritance is considered the correct behavior, then the problem can be closed.