]>
git.karo-electronics.de Git - karo-tx-linux.git/log
Andy Whitcroft [Wed, 24 Aug 2011 23:46:15 +0000 (09:46 +1000)]
Since the commit below which added O_PATH support to the *at() calls, the
error return for readlink/readlinkat for the empty pathname has switched
from ENOENT to EINVAL:
commit
65cfc6722361570bfe255698d9cd4dccaf47570d
Author: Al Viro <viro@zeniv.linux.org.uk>
Date: Sun Mar 13 15:56:26 2011 -0400
readlinkat(), fchownat() and fstatat() with empty relative pathnames
This is both unexpected for userspace and makes readlink/readlinkat
inconsistant with all other interfaces; and inconsistant with our stated
return for these pathnames.
As the readlinkat call does not have a flags parameter we cannot use the
AT_EMPTY_PATH approach used in the other calls. Therefore expose whether
the original path is infact entry via a new user_path_at_empty() path
lookup function. Use this to determine whether to default to EINVAL or
ENOENT for failures.
BugLink: http://bugs.launchpad.net/bugs/817187
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
hank [Wed, 24 Aug 2011 23:46:14 +0000 (09:46 +1000)]
The parameter's origin type is long. On an i386 architecture, it can
easily be larger than 0x80000000, causing this function to convert it to a
sign-extended u64 type. Change the type to unsigned long so we get the
correct result.
[akpm@linux-foundation.org: build fix]
Signed-off-by: hank <pyu@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: John Stultz <john.stultz@linaro.org>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
WANG Cong [Wed, 24 Aug 2011 23:46:14 +0000 (09:46 +1000)]
Fix the following memory leak:
unreferenced object 0xffff880107266800 (size 512):
comm "sched-powersave", pid 3718, jiffies
4323097853 (age 27495.450s)
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<
ffffffff81133940 >] create_object+0x187/0x28b
[<
ffffffff814ac103 >] kmemleak_alloc+0x73/0x98
[<
ffffffff811232ba >] __kmalloc_node+0x104/0x159
[<
ffffffff81044b98 >] kzalloc_node.clone.97+0x15/0x17
[<
ffffffff8104cb90 >] build_sched_domains+0xb7/0x7f3
[<
ffffffff8104d4df >] partition_sched_domains+0x1db/0x24a
[<
ffffffff8109ee4a >] do_rebuild_sched_domains+0x3b/0x47
[<
ffffffff810a00c7 >] rebuild_sched_domains+0x10/0x12
[<
ffffffff8104d5ba >] sched_power_savings_store+0x6c/0x7b
[<
ffffffff8104d5df >] sched_mc_power_savings_store+0x16/0x18
[<
ffffffff8131322c >] sysdev_class_store+0x20/0x22
[<
ffffffff81193876 >] sysfs_write_file+0x108/0x144
[<
ffffffff81135b10 >] vfs_write+0xaf/0x102
[<
ffffffff81135d23 >] sys_write+0x4d/0x74
[<
ffffffff814c8a42 >] system_call_fastpath+0x16/0x1b
[<
ffffffffffffffff >] 0xffffffffffffffff
Signed-off-by: WANG Cong <amwang@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Randy Dunlap [Wed, 24 Aug 2011 23:46:13 +0000 (09:46 +1000)]
Fix kconfig unmet dependency warning. BACKLIGHT_CLASS_DEVICE depends on
BACKLIGHT_LCD_SUPPORT, so select the latter along with the former.
warning: (DRM_RADEON_KMS && DRM_I915 && STUB_POULSBO && FB_BACKLIGHT && PANEL_SHARP_LS037V7DW01 && PANEL_ACX565AKM && USB_APPLEDISPLAY && FB_OLPC_DCON && ASUS_LAPTOP && SONY_LAPTOP && THINKPAD_ACPI && EEEPC_LAPTOP && ACPI_ASUS && ACPI_CMPC && SAMSUNG_Q10) selects BACKLIGHT_CLASS_DEVICE which has unmet direct dependencies (HAS_IOMEM && BACKLIGHT_LCD_SUPPORT)
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Cc: David Airlie <airlied@linux.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Carsten Emde [Wed, 24 Aug 2011 23:46:13 +0000 (09:46 +1000)]
When no floppy is found the module code can be released while a timer
function is pending or about to be executed.
CPU0 CPU1
floppy_init()
timer_softirq()
spin_lock_irq(&base->lock);
detach_timer();
spin_unlock_irq(&base->lock);
-> Interrupt
del_timer();
return -ENODEV;
module_cleanup();
<- EOI
call_timer_fn();
OOPS
Use del_timer_sync() to prevent this.
Signed-off-by: Carsten Emde <C.Emde@osadl.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
KAMEZAWA Hiroyuki [Wed, 24 Aug 2011 23:46:12 +0000 (09:46 +1000)]
Because of x86-implement-strict-user-copy-checks-for-x86_64.patch
When compiling mm/mempolicy.c the following warning is shown.
In file included from arch/x86/include/asm/uaccess.h:572,
from include/linux/uaccess.h:5,
from include/linux/highmem.h:7,
from include/linux/pagemap.h:10,
from include/linux/mempolicy.h:70,
from mm/mempolicy.c:68:
In function `copy_from_user',
inlined from `compat_sys_get_mempolicy' at mm/mempolicy.c:1415:
arch/x86/include/asm/uaccess_64.h:64: warning: call to `copy_from_user_overflow' declared with attribute warning: copy_from_user() buffer size is not provably correct
LD mm/built-in.o
Fix this by passing correct buffer size value.
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Stephen Rothwell [Wed, 31 Aug 2011 04:21:16 +0000 (14:21 +1000)]
Merge remote-tracking branch 'kvmtool/master'
Conflicts:
include/net/9p/9p.h
Stephen Rothwell [Wed, 31 Aug 2011 04:14:33 +0000 (14:14 +1000)]
Merge remote-tracking branch 'moduleh/module.h-split'
Conflicts:
arch/arm/mach-bcmring/mm.c
drivers/scsi/libfc/fc_lport.c
include/linux/dmaengine.h
Stephen Rothwell [Wed, 31 Aug 2011 04:09:28 +0000 (14:09 +1000)]
Merge remote-tracking branch 'tmem/linux-next'
Stephen Rothwell [Wed, 31 Aug 2011 04:05:29 +0000 (14:05 +1000)]
Merge remote-tracking branch 'staging/staging-next'
Conflicts:
drivers/staging/rtl8192e/r8192E_core.c
drivers/staging/xgifb/XGI_main_26.c
Stephen Rothwell [Wed, 31 Aug 2011 04:00:48 +0000 (14:00 +1000)]
Merge remote-tracking branch 'usb/usb-next'
Stephen Rothwell [Wed, 31 Aug 2011 03:58:47 +0000 (13:58 +1000)]
Merge remote-tracking branch 'tty/tty-next'
Stephen Rothwell [Wed, 31 Aug 2011 03:52:26 +0000 (13:52 +1000)]
Merge remote-tracking branch 'driver-core/driver-core-next'
Conflicts:
arch/arm/plat-mxc/devices.c
Stephen Rothwell [Wed, 31 Aug 2011 03:50:57 +0000 (13:50 +1000)]
Merge remote-tracking branch 'regmap/for-next'
Stephen Rothwell [Wed, 31 Aug 2011 03:49:36 +0000 (13:49 +1000)]
Merge remote-tracking branch 'namespace/master'
Stephen Rothwell [Wed, 31 Aug 2011 03:48:16 +0000 (13:48 +1000)]
Merge remote-tracking branch 'sysctl/master'
Stephen Rothwell [Wed, 31 Aug 2011 03:46:46 +0000 (13:46 +1000)]
Merge remote-tracking branch 'percpu/for-next'
Stephen Rothwell [Wed, 31 Aug 2011 03:45:27 +0000 (13:45 +1000)]
Merge remote-tracking branch 'edac-amd/for-next'
Stephen Rothwell [Wed, 31 Aug 2011 03:44:02 +0000 (13:44 +1000)]
Merge remote-tracking branch 'xen-two/linux-next'
Stephen Rothwell [Wed, 31 Aug 2011 03:38:36 +0000 (13:38 +1000)]
Merge remote-tracking branch 'xen/upstream/xen'
Stephen Rothwell [Wed, 31 Aug 2011 03:32:46 +0000 (13:32 +1000)]
Merge remote-tracking branch 'ptrace/ptrace'
Stephen Rothwell [Wed, 31 Aug 2011 03:31:20 +0000 (13:31 +1000)]
Merge remote-tracking branch 'kvm/linux-next'
Stephen Rothwell [Wed, 31 Aug 2011 03:24:55 +0000 (13:24 +1000)]
Merge remote-tracking branch 'rcu/rcu/next'
Stephen Rothwell [Wed, 31 Aug 2011 03:19:06 +0000 (13:19 +1000)]
Revert "Merge branch 'x86/spinlocks' into auto-latest"
This reverts commit
6f8fa39c81f12d98540598db42a1eaff65bba0ce , reversing
changes made to
4977f9bf2d9b511d36199ab3451a2592d6bc3793 .
Stephen Rothwell [Wed, 31 Aug 2011 03:10:11 +0000 (13:10 +1000)]
Merge remote-tracking branch 'tip/auto-latest'
Conflicts:
arch/x86/mm/fault.c
Stephen Rothwell [Wed, 31 Aug 2011 03:09:52 +0000 (13:09 +1000)]
Merge remote-tracking branch 'devicetree/devicetree/next'
Conflicts:
drivers/of/base.c
Stephen Rothwell [Wed, 31 Aug 2011 03:08:31 +0000 (13:08 +1000)]
Merge remote-tracking branch 'i7300_edac/linux_next'
Conflicts:
arch/x86/kernel/cpu/mcheck/mce.c
Stephen Rothwell [Wed, 31 Aug 2011 03:06:47 +0000 (13:06 +1000)]
Merge remote-tracking branch 'i7core_edac/linux_next'
Stephen Rothwell [Wed, 31 Aug 2011 03:04:03 +0000 (13:04 +1000)]
Merge remote-tracking branch 'fsnotify/for-next'
Stephen Rothwell [Wed, 31 Aug 2011 03:02:41 +0000 (13:02 +1000)]
Merge remote-tracking branch 'apm/for-next'
Stephen Rothwell [Wed, 31 Aug 2011 02:56:22 +0000 (12:56 +1000)]
Merge remote-tracking branch 'pm/linux-next'
Conflicts:
arch/arm/mach-shmobile/board-ap4evb.c
arch/s390/include/asm/thread_info.h
drivers/mfd/twl4030-irq.c
Stephen Rothwell [Wed, 31 Aug 2011 02:54:57 +0000 (12:54 +1000)]
Merge remote-tracking branch 'trivial/for-next'
Stephen Rothwell [Wed, 31 Aug 2011 02:53:35 +0000 (12:53 +1000)]
Merge remote-tracking branch 'osd/linux-next'
Stephen Rothwell [Wed, 31 Aug 2011 02:52:16 +0000 (12:52 +1000)]
Merge remote-tracking branch 'iommu/next'
Stephen Rothwell [Wed, 31 Aug 2011 02:50:49 +0000 (12:50 +1000)]
Merge remote-tracking branch 'watchdog/master'
Stephen Rothwell [Wed, 31 Aug 2011 02:50:09 +0000 (12:50 +1000)]
Merge remote-tracking branch 'agp/agp-next'
Stephen Rothwell [Wed, 31 Aug 2011 02:47:36 +0000 (12:47 +1000)]
Merge remote-tracking branch 'security/next'
Conflicts:
fs/ocfs2/xattr.c
Stephen Rothwell [Wed, 31 Aug 2011 02:46:13 +0000 (12:46 +1000)]
Merge remote-tracking branch 'voltage/for-next'
Stephen Rothwell [Wed, 31 Aug 2011 02:44:49 +0000 (12:44 +1000)]
Merge remote-tracking branch 'viafb/viafb-next'
Stephen Rothwell [Wed, 31 Aug 2011 02:43:27 +0000 (12:43 +1000)]
Merge remote-tracking branch 'fbdev/fbdev-next'
Stephen Rothwell [Wed, 31 Aug 2011 02:42:03 +0000 (12:42 +1000)]
Merge remote-tracking branch 'mfd/for-next'
Stephen Rothwell [Wed, 31 Aug 2011 02:35:43 +0000 (12:35 +1000)]
Merge remote-tracking branch 'slab/for-next'
Stephen Rothwell [Wed, 31 Aug 2011 02:35:34 +0000 (12:35 +1000)]
Merge remote-tracking branch 'kgdb/kgdb-next'
Stephen Rothwell [Wed, 31 Aug 2011 02:34:13 +0000 (12:34 +1000)]
Merge remote-tracking branch 'mmc/mmc-next'
Stephen Rothwell [Wed, 31 Aug 2011 02:34:06 +0000 (12:34 +1000)]
Merge remote-tracking branch 'leds/for-mm'
Conflicts:
drivers/leds/Kconfig
Stephen Rothwell [Wed, 31 Aug 2011 02:32:21 +0000 (12:32 +1000)]
Merge remote-tracking branch 'battery/master'
Stephen Rothwell [Wed, 31 Aug 2011 02:30:51 +0000 (12:30 +1000)]
Merge branch 'quilt/device-mapper'
Stephen Rothwell [Wed, 31 Aug 2011 02:24:58 +0000 (12:24 +1000)]
Merge remote-tracking branch 'block/for-next'
Stephen Rothwell [Wed, 31 Aug 2011 02:23:13 +0000 (12:23 +1000)]
Merge remote-tracking branch 'input/next'
Stephen Rothwell [Wed, 31 Aug 2011 02:21:54 +0000 (12:21 +1000)]
Merge branch 'quilt/rr'
Stephen Rothwell [Wed, 31 Aug 2011 02:20:37 +0000 (12:20 +1000)]
Merge remote-tracking branch 'cpufreq/next'
Stephen Rothwell [Wed, 31 Aug 2011 02:19:20 +0000 (12:19 +1000)]
Merge remote-tracking branch 'sound-asoc/for-next'
Stephen Rothwell [Wed, 31 Aug 2011 02:17:54 +0000 (12:17 +1000)]
Merge remote-tracking branch 'sound/for-next'
Stephen Rothwell [Wed, 31 Aug 2011 02:12:36 +0000 (12:12 +1000)]
Merge remote-tracking branch 'crypto/master'
Stephen Rothwell [Wed, 31 Aug 2011 02:11:18 +0000 (12:11 +1000)]
Merge remote-tracking branch 'l2-mtd/master'
Conflicts:
drivers/mtd/maps/lantiq-flash.c
Stephen Rothwell [Wed, 31 Aug 2011 02:09:53 +0000 (12:09 +1000)]
Merge remote-tracking branch 'bluetooth/master'
Stephen Rothwell [Wed, 31 Aug 2011 02:08:20 +0000 (12:08 +1000)]
Merge remote-tracking branch 'wireless/master'
Conflicts:
drivers/net/wireless/iwlwifi/iwl-pci.c
Stephen Rothwell [Wed, 31 Aug 2011 02:02:48 +0000 (12:02 +1000)]
Merge remote-tracking branch 'net/master'
Conflicts:
arch/powerpc/configs/40x/hcu4_defconfig
Stephen Rothwell [Wed, 31 Aug 2011 01:57:49 +0000 (11:57 +1000)]
Merge remote-tracking branch 'slave-dma/next'
Conflicts:
drivers/dma/amba-pl08x.c
Stephen Rothwell [Wed, 31 Aug 2011 01:55:42 +0000 (11:55 +1000)]
Merge remote-tracking branch 'scsi/master'
Stephen Rothwell [Wed, 31 Aug 2011 01:55:38 +0000 (11:55 +1000)]
Merge remote-tracking branch 'ibft/master'
Stephen Rothwell [Wed, 31 Aug 2011 01:55:32 +0000 (11:55 +1000)]
Merge remote-tracking branch 'swiotlb/master'
Stephen Rothwell [Wed, 31 Aug 2011 01:54:08 +0000 (11:54 +1000)]
Merge remote-tracking branch 'acpi/test'
Stephen Rothwell [Wed, 31 Aug 2011 01:52:49 +0000 (11:52 +1000)]
Merge remote-tracking branch 'libata/NEXT'
Stephen Rothwell [Wed, 31 Aug 2011 01:52:44 +0000 (11:52 +1000)]
Merge remote-tracking branch 'kconfig/for-next'
Stephen Rothwell [Wed, 31 Aug 2011 01:51:21 +0000 (11:51 +1000)]
Merge remote-tracking branch 'kbuild/for-next'
Stephen Rothwell [Wed, 31 Aug 2011 01:50:01 +0000 (11:50 +1000)]
Merge remote-tracking branch 'docs/docs-move'
Stephen Rothwell [Wed, 31 Aug 2011 01:48:48 +0000 (11:48 +1000)]
Merge branch 'quilt/kernel-doc'
Stephen Rothwell [Wed, 31 Aug 2011 01:47:37 +0000 (11:47 +1000)]
Merge remote-tracking branch 'hwmon-staging/hwmon-next'
Stephen Rothwell [Wed, 31 Aug 2011 01:46:25 +0000 (11:46 +1000)]
Merge branch 'quilt/jdelvare-hwmon'
Stephen Rothwell [Wed, 31 Aug 2011 01:45:07 +0000 (11:45 +1000)]
Merge remote-tracking branch 'bjdooks-i2c/next-i2c'
Stephen Rothwell [Wed, 31 Aug 2011 01:43:55 +0000 (11:43 +1000)]
Merge branch 'quilt/i2c'
Stephen Rothwell [Wed, 31 Aug 2011 01:42:39 +0000 (11:42 +1000)]
Merge remote-tracking branch 'hid/for-next'
Conflicts:
drivers/hid/hid-core.c
drivers/hid/hid-ids.h
Stephen Rothwell [Wed, 31 Aug 2011 01:41:23 +0000 (11:41 +1000)]
Merge remote-tracking branch 'xfs/master'
Stephen Rothwell [Wed, 31 Aug 2011 01:40:11 +0000 (11:40 +1000)]
Merge remote-tracking branch 'ubifs/linux-next'
Stephen Rothwell [Wed, 31 Aug 2011 01:38:59 +0000 (11:38 +1000)]
Merge remote-tracking branch 'v9fs/for-next'
Stephen Rothwell [Wed, 31 Aug 2011 01:37:34 +0000 (11:37 +1000)]
Merge remote-tracking branch 'ocfs2/linux-next'
Stephen Rothwell [Wed, 31 Aug 2011 01:31:40 +0000 (11:31 +1000)]
Merge remote-tracking branch 'nfsd/nfsd-next'
Stephen Rothwell [Wed, 31 Aug 2011 01:30:26 +0000 (11:30 +1000)]
Merge remote-tracking branch 'nfs/linux-next'
Stephen Rothwell [Wed, 31 Aug 2011 01:29:13 +0000 (11:29 +1000)]
Merge remote-tracking branch 'logfs/master'
Stephen Rothwell [Wed, 31 Aug 2011 01:28:00 +0000 (11:28 +1000)]
Merge remote-tracking branch 'gfs2/master'
Stephen Rothwell [Wed, 31 Aug 2011 01:26:42 +0000 (11:26 +1000)]
Merge remote-tracking branch 'ext4/dev'
Stephen Rothwell [Wed, 31 Aug 2011 01:25:25 +0000 (11:25 +1000)]
Merge remote-tracking branch 'cifs/master'
Stephen Rothwell [Wed, 31 Aug 2011 01:24:12 +0000 (11:24 +1000)]
Merge remote-tracking branch 'ceph/for-next'
Stephen Rothwell [Wed, 31 Aug 2011 01:23:01 +0000 (11:23 +1000)]
Merge remote-tracking branch 'xtensa/master'
Stephen Rothwell [Wed, 31 Aug 2011 01:21:51 +0000 (11:21 +1000)]
Merge remote-tracking branch 'unicore32/unicore32'
Stephen Rothwell [Wed, 31 Aug 2011 01:20:40 +0000 (11:20 +1000)]
Merge remote-tracking branch 'tile/master'
Stephen Rothwell [Wed, 31 Aug 2011 01:19:27 +0000 (11:19 +1000)]
Merge remote-tracking branch 'rmobile/rmobile-latest'
Stephen Rothwell [Wed, 31 Aug 2011 01:18:16 +0000 (11:18 +1000)]
Merge remote-tracking branch 'sh/sh-latest'
Stephen Rothwell [Wed, 31 Aug 2011 01:17:05 +0000 (11:17 +1000)]
Merge remote-tracking branch 's390/features'
Stephen Rothwell [Wed, 31 Aug 2011 01:15:49 +0000 (11:15 +1000)]
Merge remote-tracking branch '52xx-and-virtex/powerpc/next'
Stephen Rothwell [Wed, 31 Aug 2011 01:14:37 +0000 (11:14 +1000)]
Merge remote-tracking branch '4xx/next'
Stephen Rothwell [Wed, 31 Aug 2011 01:13:25 +0000 (11:13 +1000)]
Merge remote-tracking branch 'openrisc/for-upstream'
Stephen Rothwell [Wed, 31 Aug 2011 01:12:09 +0000 (11:12 +1000)]
Merge remote-tracking branch 'mips/mips-for-linux-next'
Stephen Rothwell [Wed, 31 Aug 2011 01:10:53 +0000 (11:10 +1000)]
Merge remote-tracking branch 'm68knommu/for-next'
Stephen Rothwell [Wed, 31 Aug 2011 01:09:43 +0000 (11:09 +1000)]
Merge remote-tracking branch 'm68k/for-next'
Stephen Rothwell [Wed, 31 Aug 2011 01:08:31 +0000 (11:08 +1000)]
Merge remote-tracking branch 'ia64/test'
Stephen Rothwell [Wed, 31 Aug 2011 01:07:14 +0000 (11:07 +1000)]
Merge remote-tracking branch 'cris/for-next'
Stephen Rothwell [Wed, 31 Aug 2011 01:06:02 +0000 (11:06 +1000)]
Merge remote-tracking branch 'blackfin/for-linus'
Stephen Rothwell [Wed, 31 Aug 2011 01:04:51 +0000 (11:04 +1000)]
Merge remote-tracking branch 'ux500-core/ux500-core'