[syzbot] [audit?] general protection fault in smack_log_callback

Paul Moore paul at paul-moore.com
Thu Sep 19 16:05:29 UTC 2024


On Thu, Sep 19, 2024 at 9:23 AM syzbot
<syzbot+044fdf24e96093584232 at syzkaller.appspotmail.com> wrote:
>
> Hello,
>
> syzbot found the following issue on:
>
> HEAD commit:    bdf56c7580d2 Merge tag 'slab-for-6.12' of git://git.kernel..
> git tree:       upstream
> console output: https://syzkaller.appspot.com/x/log.txt?x=12584b00580000
> kernel config:  https://syzkaller.appspot.com/x/.config?x=4540f5bcdd31e3de
> dashboard link: https://syzkaller.appspot.com/bug?extid=044fdf24e96093584232
> compiler:       Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
> syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=155cffc7980000
> C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=16ad24a9980000
>
> Downloadable assets:
> disk image: https://storage.googleapis.com/syzbot-assets/cec9f3c675f1/disk-bdf56c75.raw.xz
> vmlinux: https://storage.googleapis.com/syzbot-assets/21e06ae5b159/vmlinux-bdf56c75.xz
> kernel image: https://storage.googleapis.com/syzbot-assets/1e936c954b8b/bzImage-bdf56c75.xz
>
> The issue was bisected to:
>
> commit 5f8d28f6d7d568dbbc8c5bce94894474c07afd4f
> Author: Casey Schaufler <casey at schaufler-ca.com>
> Date:   Wed Jul 10 21:32:26 2024 +0000
>
>     lsm: infrastructure management of the key security blob
>
> bisection log:  https://syzkaller.appspot.com/x/bisect.txt?x=1124d69f980000
> final oops:     https://syzkaller.appspot.com/x/report.txt?x=1324d69f980000
> console output: https://syzkaller.appspot.com/x/log.txt?x=1524d69f980000

I just posted a patch which I believe should fix the problem, but I'd
like to get Casey's ACK on it before submitting upstream as it does
touch Smack code; lore link below:

https://lore.kernel.org/linux-security-module/20240919155740.29539-2-paul@paul-moore.com

... in the meantime, I'm attaching the patch here so syzbot can verify
that it solves the problem.

#syz test

-- 
paul-moore.com


More information about the Linux-security-module-archive mailing list