Re: [Linux-kernel-mentees] [PATCH v3] media/v4l2-core: Fix kernel-infoleak in video_put_user()

From: Dan Carpenter
Date: Mon Jul 27 2020 - 10:46:37 EST


On Mon, Jul 27, 2020 at 10:14:16AM -0400, Peilin Ye wrote:
> Yes, I would like to! I will start from:
>
> drivers/firewire/core-cdev.c:463

My prefered fix for this would be to add a memset at the start of
fill_bus_reset_event().

memset(event, 0, sizeof(*event));

spin_lock_irq(&card->lock);

event->closure = client->bus_reset_closure;


> drivers/input/misc/uinput.c:743

I don't think this is a bug.

regards,
dan carpenter