Re: [BUG] Oops in sidtab_context_to_sid

From: Paul Moore
Date: Sat Apr 03 2021 - 10:33:41 EST


On Fri, Apr 2, 2021 at 6:35 PM Vijay Balakrishna
<vijayb@xxxxxxxxxxxxxxxxxxx> wrote:
>
> Seeing oops in 5.4.83 sidtab_context_to_sid(). I checked with Tyler (copied), he said it might be
>
> https://lore.kernel.org/selinux/CAFqZXNu8s5edDbSZuSutetTsy58i08vPuP2h-n9=kT34HcPc4w@xxxxxxxxxxxxxx/
>
> Ondrej, can you confirm? Unfortunately, we don't have a on demand repro.

I'm guessing this may be the problem that Tyler reported earlier and
which appeared to be fixed by the patch below:

https://lore.kernel.org/selinux/20210318215303.2578052-3-omosnace@xxxxxxxxxx

... which was merged into Linus' tree during the v5.12-rcX development
phase, any chance you could try that patch to see if it resolves your
issue? There are still some issues to be sorted out, but if you
aren't reloading policy it shouldn't be a concern.

Tyler, since both of you are at Microsoft, do you have a patched
kernel that Vijay could try?

--
paul moore
www.paul-moore.com