Linux 2.6.11.7
Subsystems (7)
As the -stable patch review cycle is now over, I've released the 2.6.11.7 kernel in the normal kernel.org places. Yes, I'm still using bk for this release, as we don't have any other system in place just yet...
The diffstat and short summary of the fixes are below.
I'll also be replying to this message with a copy of the patch between 2.6.11.6 and 2.6.11.7, as it is small enough to do so.
thanks,
greg k-h
------
Makefile | 2 +- arch/ia64/kernel/fsys.S | 4 +++- arch/ia64/kernel/signal.c | 3 ++- arch/um/kernel/skas/uaccess.c | 3 ++- drivers/i2c/chips/eeprom.c | 3 ++- fs/jbd/transaction.c | 6 +++--- lib/rwsem-spinlock.c | 42 ++++++++++++++++++++++++++---------------- lib/rwsem.c | 16 ++++++++++------ net/ipv4/tcp_input.c | 5 ++++- net/ipv4/xfrm4_output.c | 12 ++++++------ net/ipv6/xfrm6_output.c | 12 ++++++------ sound/core/timer.c | 5 ++++- 12 files changed, 69 insertions(+), 44 deletions(-)
Summary of changes from v2.6.11.6 to v2.6.11.7
==============================================
Amy Griffis:
o fix ia64 syscall auditing
David Howells:
o rwsem fix
David S. Miller:
o Fix BIC congestion avoidance algorithm error
Greg Kroah-Hartman:
o Linux 2.6.11.7
Jean Delvare:
o I2C: Fix oops in eeprom driver
Paolo 'Blaisorblade' Giarrusso:
o [patch 1/1] uml: va_copy fix
Patrick McHardy:
o Do not hold state lock while checking size
Stephen C. Tweedie:
o Prevent race condition in jbd
Takashi Iwai:
o Fix Oops with ALSA timer event notification
Makefile +1 -1
@@ -1,7 +1,7 @@ VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 11 -EXTRAVERSION = .6 +EXTRAVERSION = .7 NAME=Woozy Numbat # *DOCUMENTATION*
arch/ia64/kernel/fsys.S +3 -1
@@ -611,8 +611,10 @@ movl r2=ia64_ret_from_syscall ;; mov rp=r2 // set the real return addr - tbit.z p8,p0=r3,TIF_SYSCALL_TRACE + and r3=_TIF_SYSCALL_TRACEAUDIT,r3 ;; + cmp.eq p8,p0=r3,r0 + (p10) br.cond.spnt.many ia64_ret_from_syscall // p10==true means out registers are more than 8 (p8) br.call.sptk.many b6=b6 // ignore this return addr br.cond.sptk ia64_trace_syscall
arch/ia64/kernel/signal.c +2 -1
@@ -224,7 +224,8 @@* could be corrupted. */ retval = (long ) &ia64_leave_kernel; -if (test_thread_flag (TIF_SYSCALL_TRACE )) +if (test_thread_flag (TIF_SYSCALL_TRACE ) + ||test_thread_flag (TIF_SYSCALL_AUDIT ))/* * strace expects to be notified after sigreturn returns even though the * context to which we return may not be in the middle of a syscall.
arch/um/kernel/skas/uaccess.c +2 -1
@@ -61,7 +61,8 @@void *arg;int *res; -va_copy (args, *(va_list *)arg_ptr); +/* Some old gccs recognize __va_copy, but not va_copy */ +__va_copy (args, *(va_list *)arg_ptr); addr = va_arg(args, unsigned long); len =va_arg (args, int); is_write =va_arg (args, int);
drivers/i2c/chips/eeprom.c +2 -1
@@ -130,7 +130,8 @@/* Hide Vaio security settings to regular users (16 first bytes) */ if (data->nature ==VAIO && off <16 && !capable (CAP_SYS_ADMIN )) { -int in_row1 =16 - off; +size_t in_row1 =16 - off; + in_row1 =min (in_row1, count);memset (buf,0 , in_row1);if (count - in_row1 >0 )memcpy (buf + in_row1, &data->data[16 ], count - in_row1);
fs/jbd/transaction.c +3 -3
@@ -1775,10 +1775,10 @@JBUFFER_TRACE (jh,"checkpointed: add to BJ_Forget" ); ret =__dispose_buffer (jh, journal->j_running_transaction); +journal_put_journal_head (jh);spin_unlock (&journal->j_list_lock);jbd_unlock_bh_state (bh);spin_unlock (&journal->j_state_lock); -journal_put_journal_head (jh);return ret; }else {/* There is no currently-running transaction. So the
@@ -1789,10 +1789,10 @@JBUFFER_TRACE (jh,"give to committing trans" ); ret =__dispose_buffer (jh, journal->j_committing_transaction); +journal_put_journal_head (jh);spin_unlock (&journal->j_list_lock);jbd_unlock_bh_state (bh);spin_unlock (&journal->j_state_lock); -journal_put_journal_head (jh);return ret; }else {/* The orphan record's transaction has
@@ -1813,10 +1813,10 @@ journal->j_running_transaction); jh->b_next_transaction =NULL ; } +journal_put_journal_head (jh);spin_unlock (&journal->j_list_lock);jbd_unlock_bh_state (bh);spin_unlock (&journal->j_state_lock); -journal_put_journal_head (jh);return 0 ; }else {/* Good, the buffer belongs to the running transaction.
lib/rwsem-spinlock.c +26 -16
142 lines not on this page · raw message
lib/rwsem.c +10 -6
@@ -150,7 +150,7 @@set_task_state (tsk,TASK_UNINTERRUPTIBLE );/* set up my own style of waitqueue */ -spin_lock (&sem->wait_lock); +spin_lock_irq (&sem->wait_lock); waiter->task = tsk;get_task_struct (tsk);
@@ -163,7 +163,7 @@if (!(count &RWSEM_ACTIVE_MASK )) sem =__rwsem_do_wake (sem,0 ); -spin_unlock (&sem->wait_lock); +spin_unlock_irq (&sem->wait_lock);/* wait to be given the lock */ for (;;) {
@@ -219,15 +219,17 @@*/ struct rw_semaphore fastcall *rwsem_wake(struct rw_semaphore *sem) { +unsigned long flags; +rwsemtrace (sem,"Entering rwsem_wake" ); -spin_lock (&sem->wait_lock); +spin_lock_irqsave (&sem->wait_lock, flags);/* do nothing if list empty */ if (!list_empty (&sem->wait_list)) sem =__rwsem_do_wake (sem,0 ); -spin_unlock (&sem->wait_lock); +spin_unlock_irqrestore (&sem->wait_lock, flags);rwsemtrace (sem,"Leaving rwsem_wake" );
@@ -241,15 +243,17 @@*/ struct rw_semaphore fastcall *rwsem_downgrade_wake(struct rw_semaphore *sem) { +unsigned long flags; +rwsemtrace (sem,"Entering rwsem_downgrade_wake" ); -spin_lock (&sem->wait_lock); +spin_lock_irqsave (&sem->wait_lock, flags);/* do nothing if list empty */ if (!list_empty (&sem->wait_list)) sem =__rwsem_do_wake (sem,1 ); -spin_unlock (&sem->wait_lock); +spin_unlock_irqrestore (&sem->wait_lock, flags);rwsemtrace (sem,"Leaving rwsem_downgrade_wake" );return sem;
net/ipv4/tcp_input.c +4 -1
@@ -1653,7 +1653,10 @@static void tcp_undo_cwr (struct tcp_sock *tp,int undo) {if (tp->prior_ssthresh) { - tp->snd_cwnd =max (tp->snd_cwnd, tp->snd_ssthresh<<1 ); +if (tcp_is_bic (tp)) + tp->snd_cwnd =max (tp->snd_cwnd, tp->bictcp.last_max_cwnd); +else + tp->snd_cwnd =max (tp->snd_cwnd, tp->snd_ssthresh<<1 );if (undo && tp->prior_ssthresh > tp->snd_ssthresh) { tp->snd_ssthresh = tp->prior_ssthresh;
net/ipv4/xfrm4_output.c +6 -6
@@ -103,16 +103,16 @@ goto error_nolock; } -spin_lock_bh (&x->lock); - err =xfrm_state_check (x, skb); -if (err) - goto error; -if (x->props.mode) { err =xfrm4_tunnel_check_size (skb);if (err) - goto error; + goto error_nolock; } + +spin_lock_bh (&x->lock); + err =xfrm_state_check (x, skb); +if (err) + goto error;xfrm4_encap (skb);
net/ipv6/xfrm6_output.c +6 -6
@@ -103,16 +103,16 @@ goto error_nolock; } -spin_lock_bh (&x->lock); - err =xfrm_state_check (x, skb); -if (err) - goto error; -if (x->props.mode) { err =xfrm6_tunnel_check_size (skb);if (err) - goto error; + goto error_nolock; } + +spin_lock_bh (&x->lock); + err =xfrm_state_check (x, skb); +if (err) + goto error;xfrm6_encap (skb);
sound/core/timer.c +4 -1
@@ -1117,7 +1117,8 @@if (tu->qused >= tu->queue_size) { tu->overrun++; }else { -memcpy (&tu->queue[tu->qtail++], tread,sizeof (*tread)); +memcpy (&tu->tqueue[tu->qtail++], tread,sizeof (*tread)); + tu->qtail %= tu->queue_size; tu->qused++; } }
@@ -1140,6 +1141,8 @@spin_lock (&tu->qlock);snd_timer_user_append_to_tqueue (tu, &r1);spin_unlock (&tu->qlock); +kill_fasync (&tu->fasync,SIGIO ,POLL_IN ); +wake_up (&tu->qchange_sleep); } static void snd_timer_user_tinterrupt(snd_timer_instance_t *timeri,