Bug 192741

Summary: iproute2: ip: broken igmp parsing when iface is long
Product: Networking Reporter: Petr Vorel (petr.vorel)
Component: OtherAssignee: Stephen Hemminger (stephen)
Status: RESOLVED CODE_FIX    
Severity: normal CC: petr.vorel
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: kernel 4.9.0 and older, iproute2: current head Subsystem:
Regression: No Bisected commit-id:
Attachments: Patch fixing bug

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!