]> git.hungrycats.org Git - linux/commit
staging: vc04_services: fix information leak in create_component()
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 13 Mar 2024 18:07:43 +0000 (21:07 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2024 13:11:54 +0000 (15:11 +0200)
commit840c1f333757420ac49109eb17c87dd3a2e3a487
tree0b43a00c6dbe9d097fab0127fd17d2530d24088d
parent8155a50a1978b887c5fed69aa29e0b1ab06a8758
staging: vc04_services: fix information leak in create_component()

commit f37e76abd614b68987abc8e5c22d986013349771 upstream.

The m.u.component_create.pid field is for debugging and in the mainline
kernel it's not used anything.  However, it still needs to be set to
something to prevent disclosing uninitialized stack data.  Set it to
zero.

Fixes: 7b3ad5abf027 ("staging: Import the BCM2835 MMAL-based V4L2 camera driver.")
Cc: stable <stable@kernel.org>
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/2d972847-9ebd-481b-b6f9-af390f5aabd3@moroto.mountain
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c