login
Header Space

 
 

linux-netdev mailing list

FromSubjectsort iconDate
PJ Waskiewicz
[PATCH] ARCH: Fix 32-bit x86 MSI-X allocation leakage
This bug was introduced in the 2.6.24 i386/x86_64 tree merge, where MSI-X vector allocation will eventually fail. The cause is the new bit array tracking used vectors is not getting cleared properly on IRQ destruction on the 32-bit APIC code. This can be seen easily using the ixgbe 10 GbE driver on multi-core systems by simply loading and unloading the driver a few times. Depending on the number of available vectors on the host system, the MSI-X allocation will eventually fail, and the driver will...
Apr 25, 8:58 pm 2008
PJ Waskiewicz
[PATCH] ARCH 2.6.25.y: Fix 32-bit x86 MSI-X allocation leakage
This bug was introduced in the 2.6.24 i386/x86_64 tree merge, where MSI-X vector allocation will eventually fail. The cause is the new bit array tracking used vectors is not getting cleared properly on IRQ destruction on the 32-bit APIC code. This can be seen easily using the ixgbe 10 GbE driver on multi-core systems by simply loading and unloading the driver a few times. Depending on the number of available vectors on the host system, the MSI-X allocation will eventually fail, and the driver will...
Apr 25, 9:00 pm 2008
PJ Waskiewicz
[PATCH] ARCH 2.6.24.y: Fix 32-bit x86 MSI-X allocation leakage
This bug was introduced in the 2.6.24 i386/x86_64 tree merge, where MSI-X vector allocation will eventually fail. The cause is the new bit array tracking used vectors is not getting cleared properly on IRQ destruction on the 32-bit APIC code. This can be seen easily using the ixgbe 10 GbE driver on multi-core systems by simply loading and unloading the driver a few times. Depending on the number of available vectors on the host system, the MSI-X allocation will eventually fail, and the driver will...
Apr 25, 8:59 pm 2008
Jason Riedy
[PATCH] Allow building iwl3945 without iwl4965.
If IWL3945 ever depends on IWLCORE, the silent, user-invisible IWLWIFI option can go away. Signed-off-by: Jason Riedy <jason@acm.org> --- The breakage made it to Linus's tree but isn't in the wireless forest (as far as I can see). Commit 49186b4a083655 is a "part 2" without a "part 1", so perhaps that "part 1" avoided the problem? drivers/net/wireless/Makefile | 2 +- drivers/net/wireless/iwlwifi/Kconfig | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletions(-) ...
Apr 26, 6:27 pm 2008
Ulrich Drepper
[PATCH] paccept, socket, socketpair w/flags
This version of the patch hopefully integrates all of the requested changes: - the sock_map_fd interface is changed and all in-tree users changed. No additional function anymore - there is a helper function to convert the new socket flags into file flags. Shared by all three functions - the new accept interface is now paccept() which adds the flag parameter as well as a signal mask. - not changed from the last version: the paccet() function takes a flags parameter with the same val...
Apr 26, 6:24 pm 2008
Arnaud Ebalard
[BUG,NETFILTER] nfqnl_mangle() not requesting enough space f...
Hi, While reinjecting *bigger* modified versions of IPv6 packets using libnetfilter_queue, things work fine on a 2.6.24 kernel (2.6.22 too) but I get the following on recents kernels (2.6.25, trace below is against today's net-2.6 git tree): skb_over_panic: text:c04fddb0 len:696 put:632 head:f7592c00 data:f7592c00 tail:0xf7592eb8 end:0xf7592e80 dev:eth0 ------------[ cut here ]------------ invalid opcode: 0000 [#1] PREEMPT Process sendd (pid: 3657, ti=f6014000 task=f77c31d0 task.ti=f6014000) S...
Apr 26, 1:24 pm 2008
Andrew Morton
Re: [Bugme-new] [Bug 10556] New: IPVS sync_backup oops
Also, BUG: unable to handle kernel NULL pointer dereference at virtual address 00000014 printing eip: c030659e *pde = 00000000 Oops: 0000 [#1] SMP Modules linked in: xt_tcpudp iptable_mangle xt_MARK xt_multiport ip_tables x_tables ip_vs_wrr ip_vs_wlc ip_vs_sh ip_vs_sed ip_vs_rr ip_vs_nq ip_vs_lc ip_vs_lblcr ip_vs_lblc ip_vs_ftp ip_vs_dh pcnet32 crc32 e1000 e100 mii Pid: 3960, comm: ipvs_syncbackup Not tainted (2.6.24.4 #3) EIP: 0060:[<c030659e>] EFLAGS: 00010246 CPU: 0 EIP is at sy...
Apr 26, 7:04 am 2008
Julian Anastasov
Re: [Bugme-new] [Bug 10556] New: IPVS sync_backup oops
Hello, I can not fully understand the above oops but hope following fix can help (not tested). It is for 2.6.25. I can provide patch for 2.6.24 if needed (there are rejects): Result from ip_vs_proto_get() should be checked because protocol value can be invalid or unsupported in backup. Also, add checks to validate message limits and connection state. Signed-off-by: Julian Anastasov <ja@ssi.bg> --- diff -urp v2.6.25/linux/include/net/ip_vs.h linux/include/net/ip_vs.h --- v2.6...
Apr 26, 1:48 pm 2008
Evgeniy Polyakov
Re: [Bugme-new] [Bug 10556] New: IPVS sync_backup oops
Hi. Any chance to run gdb ./vmlinux $ l *(sync_thread+0x919) for that kernel, and if it was not compiled with debug info try to do I'm not ipvs guru, but that will give us at least some hint... -- Evgeniy Polyakov --
Apr 26, 12:31 pm 2008
M. Istehbab
TCP connection failure in kernel 2.6.25
Package: linux-image-2.6.24-1-686 Version: 2.6.24-6 Severity: critical I have tried it with kernels from debian between 2.6.18-5-686 - 2.6.25. Be it vanilla versions/sources from kernel.org or debian built kernels. I have the same issue. The problem is random TCP connection failure for ipv4. I have seen a severe issue of this problem in my transparent proxy setup. This problem also occurs at times when it is not redirecting traffic, rather accepting it directly. Increasing the number of file...
Apr 26, 5:17 am 2008
H. Willstrand
Re: TCP connection failure in kernel 2.6.25
Is the proxy server accepting connections after the issue has occurred? Or do you need to re-boot? Or do you have to wait for a number of seconds or what? Cheers, --
Apr 26, 6:18 am 2008
M. Istehbab
Re: TCP connection failure in kernel 2.6.25
Yes, after a while (it can be a few seconds, minutes, or 1+ hour) the proxy server starts accepting connections again. I don't need to reboot the box when this happens. This happens randomely to anyone behind it. Then, after a while, it starts working again by itself. M. Istehbab --
Apr 26, 8:16 am 2008
H. Willstrand
Re: TCP connection failure in kernel 2.6.25
Well, there are too many possibilities for failures... the Linux distribution (RHEL 3 workstation) was built for 2.4.21 (around year 2003) and you try 2.6.x Maybe you should stick to one of the later 2.4.x kernels or even better upgrade the Linux distribution. Cheers, --
Apr 26, 4:27 pm 2008
David Miller
Re: [PATCH][CAN]: Fix copy_from_user() results interpretation.
From: socketcan-core-owner@lists.berlios.de Please folks, don't CC: mailing lists non-subscribers cannot post to. Many people fine this _extremely_ irritating! --
Apr 26, 2:33 am 2008
Wolfgang Grandegger
Re: [PATCH][CAN]: Fix copy_from_user() results interpretation.
What about removing the assignment "err =" in that case. It's confusing otherwise and maybe the variable err is even obsolete. Wolfgang. --
Apr 26, 2:19 am 2008
Sam Ravnborg
Re: [PATCH][CAN]: Fix copy_from_user() results interpretation.
Preferred. See sample patch below (made on top of -linus so it does likely not apply but made it only to see the difference anyway). Sam diffstat: net/can/raw.c | 21 ++++++++++----------- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/net/can/raw.c b/net/can/raw.c index 201cbfc..69877b8 100644 --- a/net/can/raw.c +++ b/net/can/raw.c @@ -435,15 +435,13 @@ static int raw_setsockopt(struct socket *sock, int level, int optname, if (!filter) return ...
Apr 26, 2:40 am 2008
Oliver Hartkopp
Re: [PATCH][CAN]: Fix copy_from_user() results interpretation.
I can definitely follow Daves remarks regarding the ability to review local bugfixes. In this case two commits should be used. Btw. the cleanup an removal of the err variable usage in the pointed cases is a good suggestion. So even when the two latest changes in Sam's patch are not that obvious to be able to be reviewed locally i would like to ack this patch. It should apply fine on Linus' tree and the current net-2.6. Thanks to all of you & have a nice weekend. Oliver -- ...
Apr 26, 4:26 am 2008
David Miller
Re: [PATCH][CAN]: Fix copy_from_user() results interpretation.
From: Oliver Hartkopp <oliver@hartkopp.net> Right, I also have no problem with Sam's patch at all and plan to apply it. Thanks. --
Apr 26, 5:10 am 2008
Sam Ravnborg
[PATCH][CAN]: Fix copy_from_user() results interpretation
Both copy_to_ and _from_user return the number of bytes, that failed to reach their destination, not the 0/-EXXX values. Based on patch from Pavel Emelyanov <xemul@openvz.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Acked-by: Oliver Hartkopp <oliver.hartkopp@volkswagen.de> Cc: Pavel Emelyanov <xemul@openvz.org> Cc: Wolfgang Grandegger <wg@grandegger.com> --- OK - here is a proper patch. Actual patch is the same - I just added a proper changelog. Sam ...
Apr 26, 5:59 am 2008
David Miller
Re: [PATCH][CAN]: Fix copy_from_user() results interpretation
From: Sam Ravnborg <sam@ravnborg.org> What's this? :-) --
Apr 26, 6:01 am 2008
Sam Ravnborg
Re: [PATCH][CAN]: Fix copy_from_user() results interpretation
Sorry! Workaround for a newly introduced kbuild bug and I did not review my patch properly. I hand edited it out in first mail but should have done so in my queued patch to prevent this. Sam --
Apr 26, 6:05 am 2008
David Miller
Re: [PATCH][CAN]: Fix copy_from_user() results interpretation.
From: Sam Ravnborg <sam@ravnborg.org> I want to make one comment, directed at Wolfgang. You are absolutely wrong, Wolfgang, in saying that Pavel's original patch isn't easier to review than just changing this code to go: if (copy_*_user()) return -EFAULT; In fact, recoding things like this is an immense extra hardship on a reviewer. I'll explain why. If I see a patch that changes: err = SOMETHING; break; into: err = SOMETHING_ELSE; break; I know, WITH JUST READ...
Apr 26, 3:03 am 2008
Wolfgang Grandegger
Re: [PATCH][CAN]: Fix copy_from_user() results interpretation.
OK, I see, if you have to review a lot of patches, it does matter, indeed. Wolfgang. --
Apr 26, 9:04 am 2008
David Miller
Re: [PATCH][CAN]: Fix copy_from_user() results interpretation.
From: Wolfgang Grandegger <wg@grandegger.com> Sure, but when fixing a bug it's better to have a completely localized change like this. Not something which restructures the code unnecessarily at the same time, that make it so much harder to review and validate. --
Apr 26, 2:23 am 2008
Wolfgang Grandegger
Re: [PATCH][CAN]: Fix copy_from_user() results interpretation.
Well, really, if (func(x)) return -EFAULT; instead of err = func(x); if (err) return -EFAULT; is more straight forward and less confusing and I do not understand, why it should be harder to review. Wolfgang. --
Apr 26, 2:35 am 2008
Ben Hutchings
Re: [git patches] net driver updates
Still no sfc driver? I thought you accepted it a couple of weeks ago. Ben. -- Ben Hutchings, Senior Software Engineer, Solarflare Communications Not speaking for my employer; that's the marketing department's job. --
Apr 26, 6:07 pm 2008
Evgeniy Polyakov
Re: Slab Corruption with ipv6 and tcp6fuzz
Hi. Ok, I can not reproduce it, so lets try hard way. Can you test attached patch, its idea is described above and I checked multiple times, that it is forbidden to free skb and return non-zero value from tcp_rcv_established(). This behaviour was introduced with TCP defer accept changes in 2.6.25 with ec3c0982a2dd1e671bad8e9d26c28dcba0039d87 commit. Please test. This bug affects both ipv6 and ipv4 code actually. diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index ac9b848..0298f80...
Apr 26, 12:05 pm 2008
David Stevens
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ...
Here's what I have for setsockopt, v4 & v6 and tested with both. I discovered that the aligned attribute is only a minimum, so aligned by itself has no effect on padding. GNU documentation says you need both aligned and packed to make the pad be a certain value. In this case, because the items that are padded are 32 bit, they are identical with and without on all architectures, but I stuck in the aligned all the same. Patch is against 2.6.18, but it applies to 2.6.25 too. I'll get to work...
Apr 25, 8:24 pm 2008
YOSHIFUJI Hideaki /
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ...
Sorry, you cannot do this. Build with allmodconfig. --yoshfuji --
Apr 26, 1:14 am 2008
David Miller
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ...
From: YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org> Indeed, that will not work. --
Apr 26, 1:33 am 2008
YOSHIFUJI Hideaki /
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ...
Please define __compat_sockaddr_storage{} with attribute((aligned(4))). net/compat.c is not the right place. Please put this in net/ipv4/compat.c or so. __copy_in_user(). Maybe we can use __copy_in_user for u32? --yoshfuji --
Apr 25, 11:33 pm 2008
David Stevens
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ...
YOSHIFUJI Hideaki / $B5HF#1QL@(B <yoshfuji@linux-ipv6.org> wrote on 04/25/2008 __copy_in_user seems to be an alias for copy_from_user (ie, user-to-kernel), which is totally different from copy_in_user (user to user). It's terrible naming, but I think copy_in_user() is what we want. On aligned(4) and packed, I think the net effect of the discussion last night is to leave it alone. The only change in this version is to replace cross references of the setso...
Apr 26, 7:55 pm 2008
David Stevens
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ...
YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org> wrote on 04/25/2008 I just tried it and the compiler seems to do that for this case, but the gcc documentation says explicitly that you need both packed and aligned if you want it to be a specific value. aligned(4) is a minimum only and the compiler would be free to add pad still as long as the padded value was also 4-byte aligned. In this case, we want no pad, so packed is the relevant part. If had a char followed by...
Apr 26, 12:36 am 2008
David Miller
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ...
From: David Stevens <dlstevens@us.ibm.com> Regardless, using packed has several other side effects you absolutely do not want. It causes words to be loaded using byte loads on RISC architectures, because no alignment assumptions can be made at all about packed objects. Right. --
Apr 26, 1:31 am 2008
David Stevens
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ...
Isn't that appropriate in the general case? If the architecture actually required 8-byte alignment to access the type and we only have 4-byte alignment because the app was compiled with different (32 bit) alignment rules, then we'd fault if we forced the alignment and accessed it directly. That's why we don't access it directly. In these, we're using the (byte) copy functions to get the (totally inappropriately aligned because it wasn't compiled in 64-bit mode) data to the well behaved and ...
Apr 26, 3:00 am 2008
David Miller
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ...
From: David Stevens <dlstevens@us.ibm.com> You're right about this point of course: -------------------- struct foo { int a; unsigned long b; }; struct foo_align4 { int a; unsigned long b; } __attribute__((aligned(4))); int main(void) { printf("Normal: 'b' offset is %Zu\n", __builtin_offsetof(struct foo, b)); printf("Align4: 'b' offset is %Zu\n", __builtin_offsetof(struct foo_align4, b)); return 0; } -------------------- gives: ------------------...
Apr 26, 3:09 am 2008
YOSHIFUJI Hideaki /
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ...
__compat_sockaddr_storage{} is intended for defining **self-containing** sockaddr_stroage{} aligned like 32bit archs - aligned(4). Even your code - sockaddr_storage{} might be aligned on 64bit even on 32bit archs. If the alignment rules of 32bit were different between 32bit and 64bit, most (if not all) compat layers must have been changed. See? The attribute((packed)) is overkill and evil. Please remove that. Per-member attribute is ugly and the definition is not self-contained. So, please d...
Apr 26, 1:09 am 2008
YOSHIFUJI Hideaki /
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ...
We've been putting ipv4/ipv6 common things in net/ipv4/*.c, We put most (if not all) compat structures in headers. Sparse definitions are not good. --yoshfuji --
Apr 26, 12:53 am 2008
David Miller
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ...
From: YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org> I see no reason not to put this in net/compat.c, it's acting like fs/compat_ioctl.c which even has networking compat ioctls implemented there, among other things ;-) --
Apr 26, 1:32 am 2008
YOSHIFUJI Hideaki / Apr 26, 1:56 am 2008
David Miller
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ...
From: YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org> Actually, it is a problem. I take back what I said. There is no easy way to call into the ipv6 code from this built-in code if IPV6 is built modular. So it really does have to go into ipv4 and ipv6 subdirectories, respectively. David, please make this adjustment. Thanks! --
Apr 26, 2:01 am 2008
David Stevens
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ...
OK, what about this: I considered passing the the real setsockopt function as an argument to what is now compat_mc_setsockopt() before putting the direct calls in. By doing that, we can only get in there with a v6 setsockopt when v6 is loaded, since the calls to it are from the corresponding compat_setsockopt. Is that too ugly? Could also make these return pointers to the new koptval and koptlen, which is really the only thing we need outside the compat_ipXX_setsockopt()'s. ...
Apr 26, 2:25 am 2008
David Miller
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ...
From: David Stevens <dlstevens@us.ibm.com> If you're going to use callbacks, and I'd be also asking you to guard this code with CONFIG_IPV6 as appropriate, why not simply put it into the ipv6 socket option handling code? I really see no value putting this in some generic location if we have to deal with those issues, by adding callbacks and ifdef'ery. --
Apr 26, 2:31 am 2008
David Stevens
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ...
Well, I didn't want to make 2 copies of completely identical code and then just change the protocol setsockopt code we call at the end of it. If we did this: compat_ipv6_setsockopt() { if (got an MCAST* optval) return compat_mc_setsockopt(....optval, optlen, ipv6_setsockopt); } and in compat_mc_setsockopt: int compat_mc_setsockopt(...., func decl) { ...all common code that twiddles args for both IPv6 and IPv4 return func(....); } ...
Apr 26, 3:13 am 2008
David Miller
Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit ...
From: David Stevens <dlstevens@us.ibm.com> Fair enough, code this up so I can see what it looks like. Thanks for all of this work David! --
Apr 26, 5:07 am 2008
dean gaudet
Re: [PATCH] alternative to sys_indirect, part 1
invent FD_CLOEXEC_INHERITED to handle accept()? -dean --
Apr 26, 6:41 pm 2008
Benjamin Herrenschmidt
Re: [PATCH] ibm_newemac: Increase MDIO timeouts
Hrm ... yeah allright I missed my initial typo and I missed Bill joke :-) looks like another case of replying while still half asleep ... Ben. --
Apr 25, 11:35 pm 2008
Frans Pop
Re: [git patches] ISDN cleanups (modularization prep)
Even manually insmod'ing them does not work: you'll really need to resolve Using a kernel with both Teles and ITK support unselected, depmod -a no longer complains. First I left the old modprobe config: options hisax type=9,11 protocol=2,2 irq=10 io=0x398 When I modprobe hisaxdiva with that, I get: # modprobe hisaxdiva WARNING: Error inserting hisax (/lib/modules/2.6.25-isdn/kernel/drivers/isdn/hisax/hisax.ko): No such device WARNING: Error inserting libhisax (/lib/modules/2.6...
Apr 26, 3:42 pm 2008
Martin Michlmayr
Re: [PATCH] Driver for IXP4xx built-in Ethernet ports
Are there any comments on this driver? We've been using it for a while now in Debian and it would be great see it in the mainline kernel. -- Martin Michlmayr http://www.cyrius.com/ --
Apr 26, 5:29 am 2008
Mikael Pettersson
Re: [PATCH] Driver for IXP4xx built-in Ethernet ports
Martin Michlmayr writes: > * Krzysztof Halasa <khc@pm.waw.pl> [2008-04-20 19:06]: > > Adds a driver for built-in IXP4xx Ethernet ports. > > Are there any comments on this driver? We've been using it for a > while now in Debian and it would be great see it in the mainline > kernel. Same here. I've been using it on my IXP42x-based ARM box for three months now, and it (a) hasn't caused a single problem of any kind, and (b) is a massive improvement over having to de...
Apr 26, 6:16 am 2008
previous daytodaynext day
April 25, 2008April 26, 2008April 27, 2008
speck-geostationary