Control: found -1 3.2.101-1
Control: tag -1 upstream fixed-upstream patch

On Mon, 2018-05-07 at 09:49 +0200, Fred Boiteux wrote:
> Package: src:linux
> Version: 3.16.56-1
> Severity: normal
> 
> Dear Maintainer,
> 
> With latest Debian Jessie Linux kernel (3.16.56-1) version,
> my SCTP application, which uses an IPv6 socket to get IPv4 or IPv6 messages,
> can retrieve anymore IPv4 addresses from peers, using sctp_getpaddrs() 
> function.
> 
> I've identified the impacting patch :r
> sctp: Fixup v4mapped behaviour to comply with Sock API
> 
> I've rebuilt a kernel with this patch reverted, and my application works
> well with
> 
> I retrieve IPv4 peer addresses in a IPv6-mapped format, like :
> 0x00: 0A 00 A5 B8 C0 A8 FE B2 00 00 00 00  ............
> 0x0C: 00 00 00 00 00 00 FF FF C0 A8 FE B2  ............
> 0x18: 30 3B C0 1F                          0;..
> which means : ::ffff:192.168.254.178%532691760 -> 192.168.254.178

Note that the flowinfo and scope_id were garbage here.

> But with the latest Jessie kernel, i get :
> 0x00: 0A 00 A5 B8 00 00 00 00 00 00 00 00  ............
> 0x0C: 00 00 00 00 00 00 FF FF 00 00 00 00  ............
> 0x18: 00 00 00 00                          ....
> which translates to : ::ffff:0.0.0.0
> 
> 
> I've stated the same bug with latest Debian Wheezy kernel
> (linux-image-3.2.0-6-amd64 package, 3.2.101-1 version) :
> I don't know if i should add a separate bug report ?
[...]

No need; the bug tracking system can handle multiple versions.

It looks like this was fixed upstream by:

commit 9302d7bb0c5cd46be5706859301f18c137b2439f
Author: Jason Gunthorpe <jguntho...@obsidianresearch.com>
Date:   Tue May 26 17:30:17 2015 -0600

    sctp: Fix mangled IPv4 addresses on a IPv6 listening socket

and I should apply that fix as well.

Ben.

-- 
Ben Hutchings
Life is what happens to you while you're busy making other plans.
                                                          - John Lennon

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to