1. 24 Oct, 2010 6 commits
  2. 20 Oct, 2010 1 commit
  3. 19 Oct, 2010 2 commits
  4. 18 Oct, 2010 18 commits
  5. 17 Oct, 2010 4 commits
  6. 16 Oct, 2010 4 commits
  7. 15 Oct, 2010 5 commits
    • Eric Paris's avatar
      types.h: define __aligned_u64 and expose to userspace · 79b5dc0c
      Eric Paris authored
      We currently have a kernel internal type called aligned_u64 which aligns
      __u64's on 8 bytes boundaries even on systems which would normally align
      them on 4 byte boundaries.  This patch creates a new type __aligned_u64
      which does the same thing but which is exposed to userspace rather than
      being kernel internal.
      
      [akpm: merge early as both the net and audit trees want this]
      
      [akpm@linux-foundation.org: enhance the comment describing the reasons for using aligned_u64.  Via Andreas and Andi.]
      Based-on-patch-by: default avatarAndreas Gruenbacher <agruen@suse.de>
      Signed-off-by: default avatarEric Paris <eparis@redhat.com>
      Cc: Jan Engelhardt <jengelh@medozas.de>
      Cc: David Miller <davem@davemloft.net>
      Cc: Andi Kleen <andi@firstfloor.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      79b5dc0c
    • FUJITA Tomonori's avatar
      uml: fix build · e3c6cf61
      FUJITA Tomonori authored
      Fix a build error introduced by d6d1b650 ("param: simple
      locking for sysfs-writable charp parameters").
      
          CC      arch/um/kernel/trap.o
        arch/um/drivers/hostaudio_kern.c: In function 'hostaudio_open':
        arch/um/drivers/hostaudio_kern.c:204: error: '__param_dsp' undeclared (first use in this function)
        arch/um/drivers/hostaudio_kern.c:204: error: (Each undeclared identifier is reported only once
        arch/um/drivers/hostaudio_kern.c:204: error: for each function it appears in.)
        arch/um/drivers/hostaudio_kern.c: In function 'hostmixer_open_mixdev':
        arch/um/drivers/hostaudio_kern.c:265: error: '__param_mixer' undeclared (first use in this function)
        arch/um/drivers/hostaudio_kern.c:272: error: '__param_dsp' undeclared (first use in this function)
      Reported-by: default avatarToralf Förster <toralf.foerster@gmx.de>
      Tested-by: default avatarToralf Förster <toralf.foerster@gmx.de>
      Cc: Rusty Russell <rusty@rustcorp.com.au>
      Cc: Takashi Iwai <tiwai@suse.de>
      Cc: Jeff Dike <jdike@addtoit.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      e3c6cf61
    • Eric Dumazet's avatar
      sysctl: min/max bounds are optional · a9febbb4
      Eric Dumazet authored
      sysctl check complains with a WARN() when proc_doulongvec_minmax() or
      proc_doulongvec_ms_jiffies_minmax() are used by a vector of longs (with
      more than one element), with no min or max value specified.
      
      This is unexpected, given we had a bug on this min/max handling :)
      Reported-by: default avatarJiri Slaby <jirislaby@gmail.com>
      Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
      Cc: "Eric W. Biederman" <ebiederm@xmission.com>
      Cc: David Miller <davem@davemloft.net>
      Acked-by: default avatarWANG Cong <xiyou.wangcong@gmail.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      a9febbb4
    • Linus Torvalds's avatar
      v4l1: fix 32-bit compat microcode loading translation · 3e645d6b
      Linus Torvalds authored
      The compat code for the VIDIOCSMICROCODE ioctl is totally buggered.
      It's only used by the VIDEO_STRADIS driver, and that one is scheduled to
      staging and eventually removed unless somebody steps up to maintain it
      (at which point it should use request_firmware() rather than some magic
      ioctl).  So we'll get rid of it eventually.
      
      But in the meantime, the compatibility ioctl code is broken, and this
      tries to get it to at least limp along (even if Mauro suggested just
      deleting it entirely, which may be the right thing to do - I don't think
      the compatibility translation code has ever worked unless you were very
      lucky).
      Reported-by: default avatarKees Cook <kees.cook@canonical.com>
      Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
      Cc: stable@kernel.org
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      3e645d6b
    • Linus Torvalds's avatar
      De-pessimize rds_page_copy_user · 799c1055
      Linus Torvalds authored
      Don't try to "optimize" rds_page_copy_user() by using kmap_atomic() and
      the unsafe atomic user mode accessor functions.  It's actually slower
      than the straightforward code on any reasonable modern CPU.
      
      Back when the code was written (although probably not by the time it was
      actually merged, though), 32-bit x86 may have been the dominant
      architecture.  And there kmap_atomic() can be a lot faster than kmap()
      (unless you have very good locality, in which case the virtual address
      caching by kmap() can overcome all the downsides).
      
      But these days, x86-64 may not be more populous, but it's getting there
      (and if you care about performance, it's definitely already there -
      you'd have upgraded your CPU's already in the last few years).  And on
      x86-64, the non-kmap_atomic() version is faster, simply because the code
      is simpler and doesn't have the "re-try page fault" case.
      
      People with old hardware are not likely to care about RDS anyway, and
      the optimization for the 32-bit case is simply buggy, since it doesn't
      verify the user addresses properly.
      Reported-by: default avatarDan Rosenberg <drosenberg@vsecurity.com>
      Acked-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Cc: stable@kernel.org
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      799c1055