|
|
Re: [V2 PATCH] net: sock: validate data_len before allocating skb in sock_alloc_send_pskb() |
On 06/01/2012 06:21 AM, David Miller wrote:
From: Jason Wang<jasowang@xxxxxxxxxx> Date: Thu, 31 May 2012 15:18:10 +0800We need to validate the number of pages consumed by data_len, otherwise frags array could be overflowed by userspace. So this patch validate data_len and return -EMSGSIZE when data_len may occupies more frags than MAX_SKB_FRAGS. Signed-off-by: Jason Wang<jasowang@xxxxxxxxxx>Applied and queued up for -stable. Please do not add explicit stable CC:'s to networking patches, I queue appropriate changes up myself, and submit them only when I feel that the change has had sufficient exposure and testing in Linus's tree.
Sure, would pay attention next time.
-- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
-- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
[Linux Kernel Discussion] [Ethernet Bridging] [Linux Wireless Networking] [Linux Bluetooth Networking] [Linux Networking Users] [VLAN] [Git] [IETF Annouce] [Linux Assembly] [Security] [Bugtraq] [Photo] [Singles Social Networking] [Yosemite Information] [MIPS Linux] [ARM Linux Kernel] [ARM Linux] [Linux Virtualization] [Linux Security] [Linux IDE] [Linux RAID] [Linux SCSI] [Free Dating]
![]() |
![]() |