iproute2: seg fault with 'ip link type gre ...' commands
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
iproute2 (Debian) |
Fix Released
|
Unknown
|
|||
iproute2 (Ubuntu) |
Fix Released
|
High
|
Kick In |
Bug Description
This upstream patch needs to be backported:
bde5baa5476c gre: raising the size of the buffer holding nl messages.
https:/
Example:
root@ubuntu1404:~# ip link add dummy1 type dummy
root@ubuntu1404:~# ip a a 10.200.0.1/24 dev dummy1
root@ubuntu1404:~# ip link add gre2 type gre local 10.200.0.1 remote 10.200.0.2 dev dummy1
root@ubuntu1404:~# ip link set gre2 type gre ttl 32
addattr_l ERROR: message exceeded bound of 1024
addattr_l ERROR: message exceeded bound of 1024
addattr_l ERROR: message exceeded bound of 1024
addattr_l ERROR: message exceeded bound of 1024
addattr_l ERROR: message exceeded bound of 1024
addattr_l ERROR: message exceeded bound of 1024
addattr_l ERROR: message exceeded bound of 1024
addattr_l ERROR: message exceeded bound of 1024
addattr_l ERROR: message exceeded bound of 1024
*** stack smashing detected ***: ip terminated
Aborted
root@ubuntu1404:~# uname -a
Linux ubuntu1404 3.13.0-66-generic #108-Ubuntu SMP Wed Oct 7 15:20:27 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
root@ubuntu1404:~# ip -V
ip utility, iproute2-ss131122
root@ubuntu1404:~#
Changed in iproute2 (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → High |
tags: | added: bitesize |
tags: | added: 6wind |
Changed in iproute2 (Debian): | |
status: | Unknown → New |
Changed in iproute2 (Ubuntu): | |
assignee: | nobody → Kick In (kick-d) |
Changed in iproute2 (Debian): | |
status: | New → Fix Released |
After this patch, there is still another segfault:
$ ip -f inet6 tunnel add gre2 mode ip6gre local fd00:125::1:1 remote fd00:125::1:2 dev eth1
$ ip link set gre2 type ip6gre hoplimit 32
Here is the fix: patchwork. ozlabs. org/patch/ 552378/ /git.kernel. org/cgit/ linux/kernel/ git/shemminger/ iproute2. git/commit/ ?id=c079e121a73 a
http://
This fix depends on commit https:/