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 16/26] hwmon: (dell-smm) let proc... Christian Brauner
- [PATCH RESEND v2 01/26] nubus: let procfs own the ... Christian Brauner
- [PATCH RESEND v2 12/26] selftests/proc: check that... Christian Brauner
- [PATCH RESEND v2 26/26] ALSA: info: drop the poll_... Christian Brauner
- [PATCH RESEND v2 06/26] md: let procfs own the seq... Christian Brauner
- [PATCH RESEND v2 09/26] s390/cio: let procfs copy ... Christian Brauner
- [PATCH RESEND v2 00/23] proc: let procfs own the data p... Christian Brauner
- [PATCH RESEND v2 02/23] proc: add pde_pin() and pd... Christian Brauner
- [PATCH RESEND v2 03/23] proc: share the readdir cu... 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 12/23] seq_file: add seq_prealloc... Christian Brauner
- [PATCH RESEND v2 14/23] proc: let procfs copy in w... Christian Brauner
- Re: [PATCH RESEND v2 14/23] proc: let procfs c... Geert Uytterhoeven
- Re: [PATCH RESEND v2 14/23] proc: let proc... Christian Brauner
- Re: [PATCH RESEND v2 14/23] proc: let ... David Laight
- Re: [PATCH RESEND v2 14/23] proc:... Maciej W. Rozycki
