netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Butskoy <buc@odusz.so-cdu.ru>
To: "YOSHIFUJI Hideaki / 吉藤英明" <yoshfuji@linux-ipv6.org>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH] [IPV6]: bug 10437: MSG_ERRQUEUE messages do not pass to connected raw sockets
Date: Fri, 11 Apr 2008 15:39:52 +0400	[thread overview]
Message-ID: <47FF4E08.8060209@odu.neva.ru> (raw)
In-Reply-To: <20080411.201201.91849801.yoshfuji@linux-ipv6.org>

[-- Attachment #1: Type: text/plain, Size: 936 bytes --]

YOSHIFUJI Hideaki / 吉藤英明 wrote:
> In article <47FF455C.2070205@odu.neva.ru> (at Fri, 11 Apr 2008 15:02:52 +0400), Dmitry Butskoy <buc@odusz.so-cdu.ru> says:
>
>   
>> Andrew Morton wrote:
>>     
>>> Dmitry, I'd suggest that you send the patch via email to
>>> netdev@vger.kernel.org 
>>>       
>> OK, resend
>>
>>     
>>> and to YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>.
>>>   
>>>       
>> It seems that I cannot reach this e-mail address from my country :( (some terrible antispam?)
>>
>>
>>
>> The small patch to fix bug #10437 .
>>
>> See description of the bug at 
>> http://bugzilla.kernel.org/show_bug.cgi?id=10437
>>     
>
> I'm going to agree.
>
> Your patch is for 2.6.24-stable
> Can you provide patches for linux-2.6.25-rc, please?
>   

Attached.

Could it be fixed for, say 2.6.24.5, as well?

If it is possible, please, report me at what next stable kernel version 
it will appear to be fixed...


~buc



[-- Attachment #2: ipv6-2.6.25-raw_socket_msg_errqueue.patch --]
[-- Type: text/x-diff, Size: 521 bytes --]

diff -Nrbu ipv6/raw.c ipv6.OK/raw.c
--- ipv6/raw.c	2008-04-01 23:44:26.000000000 +0400
+++ ipv6.OK/raw.c	2008-04-11 15:33:30.000000000 +0400
@@ -372,8 +372,8 @@
 	read_lock(&raw_v6_hashinfo.lock);
 	sk = sk_head(&raw_v6_hashinfo.ht[hash]);
 	if (sk != NULL) {
-		saddr = &ipv6_hdr(skb)->saddr;
-		daddr = &ipv6_hdr(skb)->daddr;
+		saddr = &((struct ipv6hdr *)skb->data)->saddr;
+		daddr = &((struct ipv6hdr *)skb->data)->daddr;
 		net = skb->dev->nd_net;
 
 		while ((sk = __raw_v6_lookup(net, sk, nexthdr, saddr, daddr,

  reply	other threads:[~2008-04-11 11:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-10437-10286@http.bugzilla.kernel.org/>
2008-04-10 17:34 ` [Bugme-new] [Bug 10437] New: MSG_ERRQUEUE messages do not pass to connected raw sockets Andrew Morton
2008-04-11 11:02   ` [PATCH] [IPV6]: bug 10437: " Dmitry Butskoy
2008-04-11 11:12     ` YOSHIFUJI Hideaki / 吉藤英明
2008-04-11 11:39       ` Dmitry Butskoy [this message]
2008-04-14  6:15   ` [Bugme-new] [Bug 10437] New: " David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47FF4E08.8060209@odu.neva.ru \
    --to=buc@odusz.so-cdu.ru \
    --cc=netdev@vger.kernel.org \
    --cc=yoshfuji@linux-ipv6.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).