1. 26 4月, 2007 2 次提交
  2. 19 4月, 2007 1 次提交
    • O
      [IrDA]: Correctly handling socket error · bfb6709d
      Olaf Kirch 提交于
      This patch fixes an oops first reported in mid 2006 - see
      http://lkml.org/lkml/2006/8/29/358 The cause of this bug report is that
      when an error is signalled on the socket, irda_recvmsg_stream returns
      without removing a local wait_queue variable from the socket's sk_sleep
      queue. This causes havoc further down the road.
      
      In response to this problem, a patch was made that invoked sock_orphan on
      the socket when receiving a disconnect indication. This is not a good fix,
      as this sets sk_sleep to NULL, causing applications sleeping in recvmsg
      (and other places) to oops.
      
      This is against the latest net-2.6 and should be considered for -stable
      inclusion. 
      Signed-off-by: NOlaf Kirch <olaf.kirch@oracle.com>
      Signed-off-by: NSamuel Ortiz <samuel@sortiz.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      bfb6709d
  3. 20 3月, 2007 2 次提交
  4. 27 2月, 2007 1 次提交
  5. 15 2月, 2007 2 次提交
    • E
      [PATCH] sysctl: remove insert_at_head from register_sysctl · 0b4d4147
      Eric W. Biederman 提交于
      The semantic effect of insert_at_head is that it would allow new registered
      sysctl entries to override existing sysctl entries of the same name.  Which is
      pain for caching and the proc interface never implemented.
      
      I have done an audit and discovered that none of the current users of
      register_sysctl care as (excpet for directories) they do not register
      duplicate sysctl entries.
      
      So this patch simply removes the support for overriding existing entries in
      the sys_sysctl interface since no one uses it or cares and it makes future
      enhancments harder.
      Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
      Acked-by: NRalf Baechle <ralf@linux-mips.org>
      Acked-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Cc: David Howells <dhowells@redhat.com>
      Cc: "Luck, Tony" <tony.luck@intel.com>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: Andi Kleen <ak@muc.de>
      Cc: Jens Axboe <axboe@kernel.dk>
      Cc: Corey Minyard <minyard@acm.org>
      Cc: Neil Brown <neilb@suse.de>
      Cc: "John W. Linville" <linville@tuxdriver.com>
      Cc: James Bottomley <James.Bottomley@steeleye.com>
      Cc: Jan Kara <jack@ucw.cz>
      Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
      Cc: Mark Fasheh <mark.fasheh@oracle.com>
      Cc: David Chinner <dgc@sgi.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Patrick McHardy <kaber@trash.net>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      0b4d4147
    • T
      [PATCH] remove many unneeded #includes of sched.h · cd354f1a
      Tim Schmielau 提交于
      After Al Viro (finally) succeeded in removing the sched.h #include in module.h
      recently, it makes sense again to remove other superfluous sched.h includes.
      There are quite a lot of files which include it but don't actually need
      anything defined in there.  Presumably these includes were once needed for
      macros that used to live in sched.h, but moved to other header files in the
      course of cleaning it up.
      
      To ease the pain, this time I did not fiddle with any header files and only
      removed #includes from .c-files, which tend to cause less trouble.
      
      Compile tested against 2.6.20-rc2 and 2.6.20-rc2-mm2 (with offsets) on alpha,
      arm, i386, ia64, mips, powerpc, and x86_64 with allnoconfig, defconfig,
      allmodconfig, and allyesconfig as well as a few randconfigs on x86_64 and all
      configs in arch/arm/configs on arm.  I also checked that no new warnings were
      introduced by the patch (actually, some warnings are removed that were emitted
      by unnecessarily included header files).
      Signed-off-by: NTim Schmielau <tim@physik3.uni-rostock.de>
      Acked-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      cd354f1a
  6. 13 2月, 2007 2 次提交
  7. 11 2月, 2007 1 次提交
  8. 09 2月, 2007 2 次提交
  9. 09 12月, 2006 1 次提交
    • A
      [PATCH] tty: switch to ktermios and new framework · edc6afc5
      Alan Cox 提交于
      This is the core of the switch to the new framework.  I've split it from the
      driver patches which are mostly search/replace and would encourage people to
      give this one a good hard stare.
      
      The references to BOTHER and ISHIFT are the termios values that must be
      defined by a platform once it wants to turn on "new style" ioctl support.  The
      code patches here ensure that providing
      
      1. The termios overlays the ktermios in memory
      2. The only new kernel only fields are c_ispeed/c_ospeed (or none)
      
      the existing behaviour is retained.  This is true for the patches at this
      point in time.
      
      Future patches will define BOTHER, ISHIFT and enable newer termios structures
      for each architecture, and once they are all done some of the ifdefs also
      vanish.
      
      [akpm@osdl.org: warning fix]
      [akpm@osdl.org: IRDA fix]
      Signed-off-by: NAlan Cox <alan@redhat.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      edc6afc5
  10. 07 12月, 2006 1 次提交
  11. 04 12月, 2006 1 次提交
  12. 03 12月, 2006 2 次提交
  13. 22 11月, 2006 2 次提交
    • D
      WorkStruct: make allyesconfig · c4028958
      David Howells 提交于
      Fix up for make allyesconfig.
      Signed-Off-By: NDavid Howells <dhowells@redhat.com>
      c4028958
    • P
      [IRDA]: Lockdep fix. · 700f9672
      Peter Zijlstra 提交于
      On Sat, 2006-11-18 at 16:12 +0300, Andrey Borzenkov wrote:
      
      > =============================================
      > [ INFO: possible recursive locking detected ]
      > 2.6.19-rc5-2avb #2
      > - ---------------------------------------------
      > pppd/26425 is trying to acquire lock:
      >  (&hashbin->hb_spinlock){....}, at: [<dfdea87a>] irlmp_slsap_inuse+0x5a/0x170
      > [irda]
      >
      > but task is already holding lock:
      >  (&hashbin->hb_spinlock){....}, at: [<dfdea857>] irlmp_slsap_inuse+0x37/0x170
      > [irda]
      >
      > other info that might help us debug this:
      > 1 lock held by pppd/26425:
      >  #0:  (&hashbin->hb_spinlock){....}, at: [<dfdea857>]
      > irlmp_slsap_inuse+0x37/0x170 [irda]
      >
      > stack backtrace:
      >  [<c010413c>] dump_trace+0x1cc/0x200
      >  [<c010418a>] show_trace_log_lvl+0x1a/0x30
      >  [<c01047f2>] show_trace+0x12/0x20
      >  [<c01048c9>] dump_stack+0x19/0x20
      >  [<c01346ca>] __lock_acquire+0x8fa/0xc20
      >  [<c0134d2d>] lock_acquire+0x5d/0x80
      >  [<c02a851c>] _spin_lock+0x2c/0x40
      >  [<dfdea87a>] irlmp_slsap_inuse+0x5a/0x170 [irda]
      >  [<dfdebab2>] irlmp_open_lsap+0x62/0x180 [irda]
      >  [<dfdf35d1>] irttp_open_tsap+0x181/0x230 [irda]
      >  [<dfdc0c3d>] ircomm_open_tsap+0x5d/0xa0 [ircomm]
      >  [<dfdc05d8>] ircomm_open+0xb8/0xd0 [ircomm]
      >  [<dfdd0477>] ircomm_tty_open+0x4f7/0x570 [ircomm_tty]
      >  [<c020bbe4>] tty_open+0x174/0x340
      >  [<c016bd69>] chrdev_open+0x89/0x170
      >  [<c0167bd6>] __dentry_open+0xa6/0x1d0
      >  [<c0167da5>] nameidata_to_filp+0x35/0x40
      >  [<c0167df9>] do_filp_open+0x49/0x50
      >  [<c0167e47>] do_sys_open+0x47/0xd0
      >  [<c0167f0c>] sys_open+0x1c/0x20
      >  [<c010307d>] sysenter_past_esp+0x56/0x8d
      >  [<b7f86410>] 0xb7f86410
      >  =======================
      
      The comment at the nesting lock says:
      
      	/* Careful for priority inversions here !
      	 * irlmp->links is never taken while another IrDA
      	 * spinlock is held, so we are safe. Jean II */
      
      So, under the assumption the author was right, it just needs a lockdep
      annotation.
      Signed-off-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
      Acked-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      700f9672
  14. 11 10月, 2006 1 次提交
  15. 02 10月, 2006 1 次提交
    • J
      [PATCH] const struct tty_operations · b68e31d0
      Jeff Dike 提交于
      As part of an SMP cleanliness pass over UML, I consted a bunch of
      structures in order to not have to document their locking.  One of these
      structures was a struct tty_operations.  In order to const it in UML
      without introducing compiler complaints, the declaration of
      tty_set_operations needs to be changed, and then all of its callers need to
      be fixed.
      
      This patch declares all struct tty_operations in the tree as const.  In all
      cases, they are static and used only as input to tty_set_operations.  As an
      extra check, I ran an i386 allyesconfig build which produced no extra
      warnings.
      
      53 drivers are affected.  I checked the history of a bunch of them, and in
      most cases, there have been only a handful of maintenance changes in the
      last six months.  serial_core.c was the busiest one that I looked at.
      Signed-off-by: NJeff Dike <jdike@addtoit.com>
      Acked-by: NAlan Cox <alan@redhat.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      b68e31d0
  16. 29 9月, 2006 2 次提交
  17. 22 7月, 2006 2 次提交
  18. 01 7月, 2006 1 次提交
  19. 30 6月, 2006 1 次提交
  20. 27 6月, 2006 2 次提交
  21. 18 6月, 2006 1 次提交
  22. 06 6月, 2006 1 次提交
  23. 23 5月, 2006 1 次提交
  24. 10 5月, 2006 1 次提交
  25. 29 3月, 2006 2 次提交
  26. 10 2月, 2006 2 次提交
  27. 12 1月, 2006 2 次提交