Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'staging-6.9-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging

Pull staging driver fixes from Greg KH:
"Here are two small staging driver fixes for the vc04_services driver
that resolve reported problems:

- strncpy fix for information leak

- another information leak discovered by the previous strncpy fix

Both of these have been in linux-next all this past week with no
reported issues"

* tag 'staging-6.9-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
staging: vc04_services: fix information leak in create_component()
staging: vc04_services: changen strncpy() to strscpy_pad()

+3 -2
+3 -2
drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c
··· 937 937 /* build component create message */ 938 938 m.h.type = MMAL_MSG_TYPE_COMPONENT_CREATE; 939 939 m.u.component_create.client_component = component->client_component; 940 - strncpy(m.u.component_create.name, name, 941 - sizeof(m.u.component_create.name)); 940 + strscpy_pad(m.u.component_create.name, name, 941 + sizeof(m.u.component_create.name)); 942 + m.u.component_create.pid = 0; 942 943 943 944 ret = send_synchronous_mmal_msg(instance, &m, 944 945 sizeof(m.u.component_create),