| From | Subject | Date |
|---|---|---|
| Grant Likely | [PATCH] net: fix OF fixed-link property handling on Freescal...
From: Grant Likely <grant.likely@secretlab.ca>
The MDIO rework patches broke the handling of fixed MII links. This
patch adds parsing of the fixed-link property to the gianfar, ucc-geth
and fs_eth network drivers, and ensures that the MAC will work without
a PHY attachment.
Note: This patch does not use the dummy phy approach previously used as I
think it is an abuse of the MDIO bus infrastructure and it doesn't account
for the possibility of MAC devices using a different binding for the
...
| Jul 3, 6:20 pm 2009 |
| Camelot Group | (no subject)
--
Contact Mr David Green for a sum pay out of 1,230,310 GBP. Provide Your
Name: Address: Age: Sex: Occupation:Email:cgnlcg2009@9.cn)for
Verification immediately.
--
| Jul 3, 2:52 pm 2009 |
| Camelot Group | (no subject)
--
Contact Mr David Green for a sum pay out of 1,230,310 GBP. Provide Your
Name: Address: Age: Sex: Occupation:Email:cgnlcg2009@9.cn)for
Verification immediately.
--
| Jul 3, 2:50 pm 2009 |
| Upgrade Team | Upgrade Team
We are contacting you in regards to an unusual activity that was
identified in your Mailbox. As a result, access to your mailbox has been
limited. Youare required verify your mailbox by providing the following information
before your mailbox will be reactivated;Verify your mailbox details
IT Service
Mail to: uk.upgradedept99@gmail.com<uk.upgradedept99@gmail.com>
Username:
Password:
Retype password:
Please verify your mailbox otherwise due to security reasons we may have
to ...
| Jul 3, 10:29 am 2009 |
| Lennert Buytenhek | [PATCH] dsa: fix 88e6xxx statistics counter snapshotting
From: Stephane Contri <Stephane.Contri@grassvalley.com>
The bit that tells us whether a statistics counter snapshot operation
has completed is located in the GLOBAL register block, not in the
GLOBAL2 register block, so fix up mv88e6xxx_stats_wait() to poll the
right register address.
Signed-off-by: Stephane Contri <Stephane.Contri@grassvalley.com>
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Cc: stable@kernel.org
diff --git a/net/dsa/mv88e6xxx.c b/net/dsa/mv88e6xxx....
| Jul 3, 5:26 am 2009 |
| Jiri Olsa | [PATCHv5 0/2] net: fix race in the receive/select
This patchset fixies the race within the poll_wait call and the receive callbacks,
by adding memory barrier.
- 1/2 includes the actual fix
- 2/2 includes optimization for the x86 arch
It is discussed and described in the following discussions:
http://lkml.org/lkml/2009/6/18/124
http://lkml.org/lkml/2009/6/25/188
http://lkml.org/lkml/2009/6/29/216
Patchset is made on top of Linus'es tree 7c5371c403abb29f01bc6cff6c5096abdf2dc524 .
Booted on x86_64.
wbr,
jirka
---
arch/x86/include/a...
| Jul 3, 4:12 am 2009 |
| Jiri Olsa | [PATCHv5 2/2] memory barrier: adding smp_mb__after_lock
Adding smp_mb__after_lock define to be used as a smp_mb call after
a lock.
Making it nop for x86, since {read|write|spin}_lock() on x86 are
full memory barriers.
wbr,
jirka
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
---
arch/x86/include/asm/spinlock.h | 3 +++
include/linux/spinlock.h | 5 +++++
include/net/sock.h | 5 ++++-
3 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/arch/x86/include/asm/spinlock.h b/arch/x86/include/asm/spi...
| Jul 3, 4:14 am 2009 |
| Ingo Molnar | Re: [PATCHv5 2/2] memory barrier: adding smp_mb__after_lock
Two small stylistic comments, please make this an inline function:
static inline void smp_mb__after_lock(void) { }
#define smp_mb__after_lock
ditto.
Ingo
--
| Jul 3, 5:06 am 2009 |
| Mathieu Desnoyers | Re: [PATCHv5 2/2] memory barrier: adding smp_mb__after_lock
Hm. Looking at http://lkml.org/lkml/2009/6/23/192, a very basic question
comes to my mind :
Why don't we create a read_lock without acquire semantic instead (e.g.
read_lock_nomb(), or something with a better name like __read_lock()) ?
On architectures where memory barriers are needed to provide the acquire
semantic, it would be faster to do :
__read_lock();
smp_mb();
than :
read_lock(); <- e.g. lwsync + isync or something like that
smp_mb(); <- full sync.
Second point : __add_wa...
| Jul 3, 10:04 am 2009 |
| Herbert Xu | Re: [PATCHv5 2/2] memory barrier: adding smp_mb__after_lock
Hmm, why do we even care when read_lock should just die?
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
| Jul 3, 11:29 am 2009 |
| Mathieu Desnoyers | Re: [PATCHv5 2/2] memory barrier: adding smp_mb__after_lock
I guess you are proposing migration from rwlock to RCU ?
Well, in cases where critical sections are in the order of 20000
cycles or more, and with 8 to 64-core machines, there is no significant
gain in using RCU vs rwlocks, so the added complexity might not be
justified if the critical sections are very long.
But then it's a case by case thing. We would have to see what exactly is
protected by this read lock and how long the critical section is.
However, in any case, you are right: rwlocks are ...
| Jul 3, 11:40 am 2009 |
| Eric Dumazet | Re: [PATCHv5 2/2] memory barrier: adding smp_mb__after_lock
+1 :)
Do you mean using a spinlock instead or what ?
Also, how many arches are able to have a true __read_lock()
(or __spin_lock() if that matters), without acquire semantic ?
--
| Jul 3, 11:37 am 2009 |
| Mathieu Desnoyers | Re: [PATCHv5 2/2] memory barrier: adding smp_mb__after_lock
At least PowerPC, MIPS, recent ARM, alpha.
Mathieu
--
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
--
| Jul 3, 11:47 am 2009 |
| Paul E. McKenney | Re: [PATCHv5 2/2] memory barrier: adding smp_mb__after_lock
Are you guys sure you are in agreement about what you all mean by
"acquire semantics"?
Clearly, any correct __read_lock() implementation must enforce ordering
with respect to the most recent __write_unlock(), but this does not
necesarily imply all possible definitions of "acquire semantics".
Thanx, Paul
--
| Jul 3, 1:06 pm 2009 |
| Mathieu Desnoyers | Re: [PATCHv5 2/2] memory barrier: adding smp_mb__after_lock
I use acquire/release semantic with the following meaning :
...
read A
read_unlock()
read B
read_lock();
read C
read_unlock would provide release semantic by disallowing read A to move
after the read_unlock.
read_lock would provide acquire semantic by disallowing read C to move
before read_lock.
Yes, you are right. We could never remove _all_ memory barriers from
__read_lock()/__read_unlock implementations even if we require something
such as :
__read_lock()
smp_mb()
crit...
| Jul 3, 1:31 pm 2009 |
| Eric Dumazet | Re: [PATCHv5 2/2] memory barrier: adding smp_mb__after_lock
This was following existing implementations of various smp_mb__??? helpers :
# grep -4 smp_mb__before_clear_bit include/asm-generic/bitops.h
/*
* clear_bit may not imply a memory barrier
*/
#ifndef smp_mb__before_clear_bit
#define smp_mb__before_clear_bit() smp_mb()
#define smp_mb__after_clear_bit() smp_mb()
#endif
--
| Jul 3, 5:20 am 2009 |
| Ingo Molnar | Re: [PATCHv5 2/2] memory barrier: adding smp_mb__after_lock
Did i mention that those should be fixed too? :-)
Ingo
--
| Jul 3, 5:24 am 2009 |
| Jiri Olsa | Re: [PATCHv5 2/2] memory barrier: adding smp_mb__after_lock
ok, could I include it in the 2/2 or you prefer separate patch?
jirka
--
| Jul 3, 5:56 am 2009 |
| Ingo Molnar | Re: [PATCHv5 2/2] memory barrier: adding smp_mb__after_lock
depends on whether it will regress ;-)
If it regresses, it's better to have it separate. If it wont, it can
be included. If unsure, default to the more conservative option.
Ingo
--
| Jul 3, 6:25 am 2009 |
| Jiri Olsa | Re: [PATCHv5 2/2] memory barrier: adding smp_mb__after_lock
how about this..
and similar change for smp_mb__before_clear_bit in a separate patch
diff --git a/arch/x86/include/asm/spinlock.h b/arch/x86/include/asm/spinlock.h
index b7e5db8..4e77853 100644
--- a/arch/x86/include/asm/spinlock.h
+++ b/arch/x86/include/asm/spinlock.h
@@ -302,4 +302,8 @@ static inline void __raw_write_unlock(raw_rwlock_t *rw)
#define _raw_read_relax(lock) cpu_relax()
#define _raw_write_relax(lock) cpu_relax()
+/* The {read|write|spin}_lock() on x86 are full memory ba...
| Jul 3, 7:18 am 2009 |
| Jarek Poplawski | Re: [PATCHv5 2/2] memory barrier: adding smp_mb__after_lock
On Fri, Jul 03, 2009 at 01:18:48PM +0200, Jiri Olsa wrote:
Btw.:
- * The sk_has_helper is always called right after a call to read_lock, so we
+ * The sk_has_sleeper is always called right after a call to read_lock, so we
Jarek P.
--
| Jul 3, 7:30 am 2009 |
| Jiri Olsa | Re: [PATCHv5 2/2] memory barrier: adding smp_mb__after_lock
oops, thanks
--
| Jul 3, 7:43 am 2009 |
| Jiri Olsa | [PATCHv5 1/2] net: adding memory barrier to the poll and rec...
Adding memory barrier after the poll_wait function, paired with
receive callbacks. Adding fuctions sk_poll_wait and sk_has_sleeper
to wrap the memory barrier.
Without the memory barrier, following race can happen.
The race fires, when following code paths meet, and the tp->rcv_nxt
and __add_wait_queue updates stay in CPU caches.
CPU1 CPU2
sys_select receive packet
... ...
__add_wait_queue update tp->rcv_nx...
| Jul 3, 4:13 am 2009 |
| Wei Yongjun | [PATCH 1/2] xfrm4: fix the ports decode of sctp protocol
The SCTP pushed the skb data above the sctp chunk header, so the check
of pskb_may_pull(skb, xprth + 4 - skb->data) in _decode_session4() will
never return 0 because xprth + 4 - skb->data < 0, the ports decode of
sctp will always fail.
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
---
net/ipv4/xfrm4_policy.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/net/ipv4/xfrm4_policy.c b/net/ipv4/xfrm4_policy.c
index 60d918c..0071ee6 100644
--- a/net/ipv4...
| Jul 2, 10:57 pm 2009 |
| Herbert Xu | Re: [PATCH 1/2] xfrm4: fix the ports decode of sctp protocol
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Longer term I wonder if we can move this stuff into the protocol
code, i.e., before they call xfrm_policy_check.
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
| Jul 2, 11:48 pm 2009 |
| Wei Yongjun | [PATCH 2/2] xfrm6: fix the proto and ports decode of sctp pr...
The SCTP pushed the skb above the sctp chunk header, so the
check of pskb_may_pull(skb, nh + offset + 1 - skb->data) in
_decode_session6() will never return 0 and the ports decode
of sctp will always fail. (nh + offset + 1 - skb->data < 0)
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
---
net/ipv6/xfrm6_policy.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/net/ipv6/xfrm6_policy.c b/net/ipv6/xfrm6_policy.c
index b4b16a4..3a3c677 100644
--- a/n...
| Jul 2, 10:59 pm 2009 |
| Herbert Xu | Re: [PATCH 2/2] xfrm6: fix the proto and ports decode of sct...
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
| Jul 2, 11:49 pm 2009 |
| Andres Freund | Re: Soft-Lockup/Race in networking in 2.6.31-rc1+195 (
Ok. I finally see the light. I bisected the issue down to
eea08f32adb3f97553d49a4f79a119833036000a : timers: Logic to move non
pinned timers
Disabling timer migration like provided in the earlier commit stops the issue
from occuring.
That it is related to timers is sensible in the light of my findings, that I
could trigger the issue only when using delay in netem - that is the codepath
using qdisc_watchdog...
Andres
--
| Jul 2, 9:31 pm 2009 |
| Jarek Poplawski | Re: Soft-Lockup/Race in networking in 2.6.31-rc1+195 ( possi...
On Fri, Jul 03, 2009 at 03:31:31AM +0200, Andres Freund wrote:
Andres, thanks for your work and time. It saved me a lot of searching,
because I wasn't able to trigger this on my old box.
Jarek P.
--
| Jul 3, 2:12 am 2009 |
| Andres Freund | Re: Soft-Lockup/Race in networking in 2.6.31-rc1+195 ( possi...
Thanks. It allowed me to go through some of my remaining paperwork ;-)
Does anybody of you have an idea where the problem actually resides?
qdisc_watchdog_schedule looks innocent enough for my uneducated eyes - and the
patch/infrastructure from Arun goes over my head...
I will happily test some ideas/patches.
Aside from that - is the whole PSCHED_TICKS2NS/PSCHED_NS2TICKS conversion
business purely backward compatibility?
Andres
--
| Jul 3, 7:26 am 2009 |
| Jarek Poplawski | Re: Soft-Lockup/Race in networking in 2.6.31-rc1+195 ( possi...
The whole PSCHED_ conversion was to get finer resolution without
breaking backward compatibility, I hope.;-)
Jarek P.
--
| Jul 3, 8:03 am 2009 |
| David Miller | Re: Soft-Lockup/Race in networking in 2.6.31-rc1+195 ( possi...
From: Jarek Poplawski <jarkao2@gmail.com>
Well, if you look at that commit the bisect pointed to Jarek, it is a
change which starts causing a situation which never happened before.
Namely, timers added on one cpu can be migrated and fire on another.
So this could be exposing races in the networking that technically
always existed.
--
| Jul 3, 4:22 pm 2009 |
| Jarek Poplawski | Re: Soft-Lockup/Race in networking in 2.6.31-rc1+195 ( possi...
I'm not sure I get your point; could you give some example?
Actually, I've suspected races in timers code.
Jarek P.
--
| Jul 3, 6:56 pm 2009 |
| Andres Freund | Re: Soft-Lockup/Race in networking in 2.6.31-rc1+195 ( possi...
I have no ideas how/if the timers are actually broken or if the problem does
reside somewhere else and is just made visible by the timer changes.
I haven't seen any problems - just curious ;-)
Andres
--
| Jul 3, 8:30 am 2009 |
| Gerrit Renker | Re: [Bugme-new] [Bug 13692] New: dccp_ipv4 has >1 usage c...
| > http://bugzilla.kernel.org/show_bug.cgi?id=13692
| >
| > Summary: dccp_ipv4 has >1 usage count and cannot be removed
<snip>
| >
| > Upon loading of dccp_ipv4 (either through autoload or explicitly, with
| > modprobe) the usage count of the module is immediately set to 2 and the module
| > can not be unloaded.
| >
| > Usage count seems to be correctly incremented/decremented during operation, but
| > never gets lower than 2.
| >
I am no...
| Jul 3, 3:41 pm 2009 |
| Ingo Molnar | Re: [PATCH] check spinlock_t/rwlock_t argument type on non-S...
Wondering - can the wrappers be moved from CPP land to C land by
turning them into inlines? (i havent checked all usages so there
might be some surprises, but by and large it ought to be possible.)
Ingo
--
| Jul 3, 3:38 am 2009 |
| Dave | Re: [PATCH] check spinlock_t/rwlock_t argument type on non-S...
I thought about doing it that way. I decided not to because I suspected
it would be harder to verify that the behaviour is unchanged.
Also the _lock_irqsave functions output to the flags parameter (which
isn't a pointer) so that has to remain a macro.
If you'd really rather an inline version, I can spend some time looking
into it.
Dave.
--
| Jul 3, 3:02 pm 2009 |
| Michal Soltys | Re: HFSC link sharing behavior related query
Regarding this scenario, from what I can see - realtime curves will
cause discrepancy between virtual times of all leaf classes. Excess
bandwidth is small and LS will be unable to compensate for these
differences - so the virtual time will drift apart with passing time.
But - if any of the classes becomes passive briefly, next time it
becomes active, HFSC updates virtual time using mean of max and min
virtual time of its sibling classes. Considering that vts are always
different in this exam...
| Jul 3, 7:03 pm 2009 |
| Jiri Olsa | Re: [PATCHv4 2/2] memory barrier: adding smp_mb__after_lock
ok, I'll add it to the 1/2 part in v5
jirka
--
| Jul 3, 3:41 am 2009 |
| Jiri Olsa | Re: [PATCHv4 2/2] memory barrier: adding smp_mb__after_lock
actually I see the 2/2 would be better :)
jirka
--
| Jul 3, 3:50 am 2009 |
| Jarek Poplawski | Re: [PATCHv4 2/2] memory barrier: adding smp_mb__after_lock
Btw., there is a tiny typo:
- receive callbacks. Adding fuctions sock_poll_wait and sock_has_sleeper
+ receive callbacks. Adding fuctions sock_poll_wait and sk_has_sleeper
Jarek P.
--
| Jul 3, 3:47 am 2009 |
| Jiri Olsa | Re: [PATCHv4 2/2] memory barrier: adding smp_mb__after_lock
thanks, jirka
--
| Jul 3, 3:51 am 2009 |
| David Miller | Re: [GIT]: Networking
From: Ayaz Abdulla <aabdulla@nvidia.com>
Why? If you BCC linux-kernel, then followups don't get
logged there, that's completely and utterly pointless.
Either CC: it or don't include it at all.
--
| Jul 2, 9:32 pm 2009 |
| Eric Dumazet | Re: [GIT]: Networking
Sorry, I dont get it. You are referring to softirqs, while I speak
of hardware (NIC) interrupts, that can be masked for ever.
With your patch :
CPU0 CPU1
napi_complete();
/* please note there is no smp_wmb()
in __napi_complete() after
clear_bit(NAPI_STATE_SCHED, &n->state);
(It's implied on x86 because of lock prefix)
*/
writel(np->irqmask, base + NvRegIrqMask)
writel(0, base + NvRegIrqMask);
...
| Jul 2, 8:07 pm 2009 |
| Ayaz Abdulla | RE: [GIT]: Networking
Our hw only runs on architectures that provide coherency. i.e x86
I'm fine with keeping it with both napi_schedule_prep() and __napi_schedule() if you want it to be similar to other drivers.
Thanks!
________________________________________
From: Eric Dumazet [eric.dumazet@gmail.com]
Sent: Thursday, July 02, 2009 5:07 PM
To: Ayaz Abdulla
Cc: David Miller; netdev@vger.kernel.org
Subject: Re: [GIT]: Networking
Sorry, I dont get it. You are referring to softirqs, while I speak
of hardware (NIC...
| Jul 2, 9:11 pm 2009 |
| David Miller | Re: [GIT]: Networking
From: Ayaz Abdulla <AAbdulla@nvidia.com>
It has nothing to do with "coherency".
Re-read Eric's emails, the race can happen on x86 quite trivially.
--
| Jul 2, 9:30 pm 2009 |
| Ingo Molnar | Re: [GIT]: Networking
update: that forcedeth system is still working fine.
I triggered other networking problems today though, a trylock
failure message in netconsole, plus a dma-debug assert from e1000e:
[ 1275.442025] Hangcheck: hangcheck value past margin!
[ 1451.860024] ------------[ cut here ]------------
[ 1451.860024] BUG: spinlock trylock failure on UP on CPU#0, distcc/32540
[ 1451.860024] lock: f5318760, .magic: dead4ead, .owner: distcc/32540, .owner_cpu: 0
[ 1451.860024] Pid: 32540, comm: distcc Tainte...
| Jul 3, 5:46 pm 2009 |
| Herbert Xu | Re: tun netns BUG()
Sorry, catching up with emails (hmm, maybe I should stop doing
that and read some new emails :)
This just turns a wide-open race into a less likely one (that's
why it appears to fix the problem). The crux of the issue is that
__tun_get(tfile) != NULL has nothing to do with whether the device
has been unregistered.
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Ke...
| Jul 3, 4:35 am 2009 |
| Herbert Xu | Re: tun netns BUG()
tun: Fix device unregister race
It is currently possible for an asynchronous device unregister
to cause the same tun device to be unregistered twice. This
is because the unregister in tun_chr_close only checks whether
__tun_get(tfile) != NULL. This however has nothing to do with
whether the device has already been unregistered. All it tells
you is whether __tun_detach has been called.
This patch fixes this by using the most obvious thing to test
whether the device has been unregistered.
...
| Jul 3, 5:03 am 2009 |
| Eric W. Biederman | Re: tun netns BUG()
Not so.
unregister_netdevice
rollback_registered
tun_net_unit
__tun_detach.
Further we need rtnl_lock around __tun_detach.
--
| Jul 3, 10:52 am 2009 |
| previous day | today | next day |
|---|---|---|
| July 2, 2009 | July 3, 2009 | July 4, 2009 |
| Davide Libenzi | Re: [patch 7/8] fdmap v2 - implement sys_socket2 |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Greg Kroah-Hartman | [PATCH 005/196] Chinese: add translation of SubmittingDrivers |
| Mariusz Kozlowski | [KJ PATCHES] mostly kmalloc + memset conversion to k[cz]alloc |
git: | |
| KOSAKI Motohiro | [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
| Stefan Richter | Re: [GIT]: Networking |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
