On November 4, 2026 11:30:58 AM PST, Christian Brauner <[email protected]> wrote: > [...] >+static int pde_init_seq_direct(struct proc_dir_entry *pde) >+{ >+ struct seq_operations *ops; >+ >+ if (!pde_is_seq_file(pde)) >+ return 0; >+ ops = kmalloc(sizeof(*ops), GFP_KERNEL); Please use the new style typed allocation calls for objects: ops = kmalloc_obj(*ops); (This happened to jump out at me, but please check the other patches for this pattern.) > dp->open = kzalloc(sizeof(*dp->open), GFP_KERNEL); Same, etc. -- Kees Cook
- [PATCH RESEND v2 06/51] powerpc/pseries: put the n... Christian Brauner
- [PATCH RESEND v2 28/51] ntfs3: don't warn when a h... Christian Brauner
- [PATCH RESEND v2 35/51] proc: warn about entries l... Christian Brauner
- [PATCH RESEND v2 37/51] proc/vmcore: don't let vmc... Christian Brauner
- [PATCH RESEND v2 00/23] proc: let procfs own the data p... Christian Brauner
- [PATCH RESEND v2 03/23] proc: share the readdir cu... Christian Brauner
- [PATCH RESEND v2 04/23] proc: wait for the last us... Christian Brauner
- [PATCH RESEND v2 05/23] proc: keep the open files ... Christian Brauner
- [PATCH RESEND v2 06/23] proc: make room for more e... Christian Brauner
- [PATCH RESEND v2 07/23] proc: let procfs own the s... Christian Brauner
- Re: [PATCH RESEND v2 07/23] proc: let procfs o... Kees Cook
- Re: [PATCH RESEND v2 07/23] proc: let proc... Christian Brauner
- [PATCH RESEND v2 08/23] proc: let procfs own the s... Christian Brauner
- [PATCH RESEND v2 09/23] proc: let procfs own the s... Christian Brauner
- [PATCH RESEND v2 10/23] treewide: let procfs own t... Christian Brauner
- [PATCH RESEND v2 12/23] seq_file: add seq_prealloc... Christian Brauner
- [PATCH RESEND v2 13/23] proc: let procfs own the s... Christian Brauner
- [PATCH RESEND v2 11/23] selftests/proc: check that... Christian Brauner
- [PATCH RESEND v2 16/23] proc: let procfs copy out ... Christian Brauner
- Re: [PATCH RESEND v2 16/23] proc: let procfs c... Geert Uytterhoeven
- [PATCH RESEND v2 18/23] proc: let procfs copy ioct... Christian Brauner
