Re: [PATCH v2] tracing: Inform kmemleak of saved_cmdlines allocation

2024-02-14 Thread Kalle Valo
Steven Rostedt writes: > From: "Steven Rostedt (Google)" > > The allocation of the struct saved_cmdlines_buffer structure changed from: > > s = kmalloc(sizeof(*s), GFP_KERNEL); > s->saved_cmdlines = kmalloc_array(TASK_COMM_LEN, val, GFP_KERNEL); > > to: > > orig_size = sizeof

[PATCH v2] tracing: Inform kmemleak of saved_cmdlines allocation

2024-02-14 Thread Steven Rostedt
From: "Steven Rostedt (Google)" The allocation of the struct saved_cmdlines_buffer structure changed from: s = kmalloc(sizeof(*s), GFP_KERNEL); s->saved_cmdlines = kmalloc_array(TASK_COMM_LEN, val, GFP_KERNEL); to: orig_size = sizeof(*s) + val * TASK_COMM_LEN; o