Files
android_kernel_xiaomi_sm8450/net
Vegard Nossum c6bf514c6e Bluetooth: Fix leak of uninitialized data to userspace
struct hci_dev_list_req {
            __u16  dev_num;
            struct hci_dev_req dev_req[0];  /* hci_dev_req structures */
    };

sizeof(struct hci_dev_list_req) == 4, so the two bytes immediately
following "dev_num" will never be initialized. When this structure
is copied to userspace, these uninitialized bytes are leaked.

Fix by using kzalloc() instead of kmalloc(). Found using kmemcheck.

Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
2008-11-30 12:17:19 +01:00
..
2008-11-19 22:42:41 -08:00
2008-11-25 01:02:08 -08:00
2008-11-03 18:21:05 -08:00
2008-09-30 03:03:35 -07:00
2008-11-25 17:59:00 -08:00
2008-11-03 18:21:05 -08:00
2008-10-31 00:54:56 -07:00
2008-11-28 03:06:46 -08:00
2008-11-03 18:21:05 -08:00
2008-11-25 18:00:48 -08:00
2008-11-19 18:49:57 -08:00
2008-11-25 01:02:08 -08:00