[PATCH] keys: Protect the type name while describing a key

Cen Zhang zzzccc427 at gmail.com
Fri Oct 9 05:07:35 UTC 2026


Hi Jarkko,

Jarkko Sakkinen <jarkko at kernel.org> 于2026年10月9日周五 01:56写道:
>
> Just a small nit. Cut just the snippet of the report that is necessary.
> >
> >     BUG: unable to handle page fault for address: fffffbfff8054794
> >     #PF: supervisor read access in kernel mode
> >     #PF: error_code(0x0000) - not-present page
> >     PGD 1a7ff6067 P4D 1a7ff6067 PUD 1a7ff2067 PMD 100b0b067 PTE 0
> >     Oops: Oops: 0000 [#1] SMP KASAN NOPTI
> >     CPU: 0 UID: 0 PID: 500 Comm: key-fixture Tainted: G           O        7.2.0-rc5-pmb-bt-functional-v1+ #1 PREEMPT(lazy)
> >     Tainted: [O]=OOT_MODULE
> >     Hardware name: QEMU Ubuntu 24.04 PC v2 (i440FX + PIIX, arch_caps fix, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
> >     RIP: 0010:string+0x23f/0x470
> >     Code: 48 8b 04 24 48 83 c3 01 41 83 c6 01 48 39 c5 74 34 e8 f5 2e 5e fb 48 89 ef 48 83 c5 01 48 89 f8 48 89 fa 48 c1 e8 03 83 e2 07 <42> 0f b6 04 38 38 d0 7f 08 84 c0 0f 85 d6 01 00 00 44 0f b6 65 ff
> >     RSP: 0018:ffff888116307b80 EFLAGS: 00010246
> >     RAX: 1ffffffff8054794 RBX: ffff88810a4a52c0 RCX: ffffffff8626be7b
> >     RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffffffffc02a3ca0
> >     RBP: ffffffffc02a3ca1 R08: 0000000000000001 R09: 0000000000000001
> >     R10: ffffffff893cfe57 R11: ffff88811404d700 R12: 00000000ffffffff
> >     R13: ffff88810a4a52d4 R14: 0000000000000000 R15: dffffc0000000000
> >     FS:  00007fad30f2a780(0000) GS:ffff8881fd7d6000(0000) knlGS:0000000000000000
> >     CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> >     CR2: fffffbfff8054794 CR3: 0000000104fb7004 CR4: 0000000000770ef0
> >     PKRU: 55555554
> >     Call Trace:
> >      <TASK>
> >      ? __pfx_string+0x10/0x10
> >      vsnprintf+0x330/0x1110
>
> I would cut away the rest (what follows).

Thanks for the review. I've trimmed the KASAN report for v2.

Best regards,
Cen Zhang



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