Bug 192741 - iproute2: ip: broken igmp parsing when iface is long
Summary: iproute2: ip: broken igmp parsing when iface is long
Status: RESOLVED CODE_FIX
Alias: None
Product: Networking
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Stephen Hemminger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-17 07:45 UTC by Petr Vorel
Modified: 2017-01-17 21:19 UTC (History)
1 user (show)

See Also:
Kernel Version: kernel 4.9.0 and older, iproute2: current head
Subsystem:
Regression: No
Bisected commit-id:


Attachments
Patch fixing bug (1.17 KB, patch)
2017-01-17 07:47 UTC, Petr Vorel
Details | Diff

Description Petr Vorel 2017-01-17 07:45:06 UTC
Entries with long vhost names in /proc/net/igmp have no whitespace
between name and colon, so sscanf() adds it to vhost and
'ip maddr show iface' doesn't include inet result.
    
This bug was found with help of LTP network scripts.
Comment 1 Petr Vorel 2017-01-17 07:47:16 UTC
Created attachment 252071 [details]
Patch fixing bug
Comment 2 Petr Vorel 2017-01-17 07:48:59 UTC
Patch already send to mailing list (http://marc.info/?l=linux-netdev&m=148461031017743&w=2), here is attached the same version with just mentioned LTP and this bug in the comment.
Comment 3 Petr Vorel 2017-01-17 21:19:12 UTC
Applied in 530903dd9003492edb0714e937ad4a5d1219e376. Thanks!

Note You need to log in before you can comment on or make changes to this bug.