lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Sun, 19 Jul 2015 22:38:54 +0800
From:	Zhenwei Pi <p_ace@....com>
To:	netdev@...r.kernel.org
Subject: patch for udp_sendmsg

Dear Sirs,

Commit : the max length of udp msg is (0xFFFF - sizeof(struct udphdr) - 
sizeof(struct iphdr). return -EMSGSIZE in udp_sendmsg.
Patch : as the attached file

____________________________________________________________
| IP header |  UDP header | udp data ........                             |
|___________|______________|_________________________________|
|--> Total Length : 
0xffff                                                       <--|


If length of "data" is between (0xFFFF - sizeof(struct udphdr) - 
sizeof(struct iphdr) and 0xFFFF, sendto will fail because of ip_make_skb.
Should kernel return -EMSGSIZE as soon as possible ?


-- 
Zhenwei Pi
Rather than love ,than money ,than faith,than fame,than fairness,give me truth.


View attachment "diff" of type "text/plain" (294 bytes)

View attachment "udp.c" of type "text/x-csrc" (65268 bytes)

View attachment "udp.c.orig" of type "text/plain" (65219 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ