Re: [PATCH] slub: try to get cpu partial slab even if we get enough objects for cpu freelist

2012-08-15 Thread JoonSoo Kim
2012/8/16 Christoph Lameter : > On Thu, 16 Aug 2012, Joonsoo Kim wrote: > >> s->cpu_partial determine the maximum number of objects kept >> in the per cpu partial lists of a processor. Currently, it is used for >> not only per cpu partial list but also cpu freelist. Therefore >> get_partial_node()

Re: [PATCH 3/5] kmemleak: use rbtree instead of prio tree

2012-08-15 Thread Catalin Marinas
On 9 August 2012 09:31, Catalin Marinas wrote: > On Wed, Aug 08, 2012 at 06:07:39PM +0100, Michel Lespinasse wrote: >> kmemleak uses a tree where each node represents an allocated memory object >> in order to quickly find out what object a given address is part of. >> However, the objects don't ov

Re: [PATCH v2 06/11] memcg: kmem controller infrastructure

2012-08-15 Thread Greg Thelen
On Wed, Aug 15 2012, Glauber Costa wrote: > On 08/14/2012 10:58 PM, Greg Thelen wrote: >> On Mon, Aug 13 2012, Glauber Costa wrote: >> >> +WARN_ON(mem_cgroup_is_root(memcg)); >> +size = (1 << order) << PAGE_SHIFT; >> +memcg_uncharge_kmem(memcg, size); >> +

Re: [PATCH] perf: Let O= makes handle relative paths

2012-08-15 Thread Borislav Petkov
On Wed, Aug 15, 2012 at 11:59:35AM -0300, Arnaldo Carvalho de Melo wrote: > Of course! Those are the ultimate kernel killers! Haha, this is what I'm answering next time I'm asked about what I do for a living :-). How about this? -- From: Steven Rostedt Date: Mon, 13 Aug 2012 10:23:02 -0400 Subj

Re: [RFC PATCH 5/5] syscall: sys_fbind() introduced

2012-08-15 Thread Stanislav Kinsbursky
15.08.2012 20:30, H. Peter Anvin пишет: On 08/15/2012 09:22 AM, Stanislav Kinsbursky wrote: This syscall allows to bind socket to specified file descriptor. Descriptor can be gained by simple open with O_PATH flag. Socket node can be created by sys_mknod(). Signed-off-by: Stanislav Kinsbursky

Re: [PATCH v2 04/31] arm64: MMU definitions

2012-08-15 Thread Catalin Marinas
On Wed, Aug 15, 2012 at 05:34:46PM +0100, Geert Uytterhoeven wrote: > On Wed, Aug 15, 2012 at 3:30 PM, Arnd Bergmann wrote: > >> +#define TCR_IPS_40BIT(2 << 32) > > By default, constants are int, i.e. 32-bit. So you must write > > 2ULL << 32 > > >> +#define TCR_ASID16

Re: [PATCH v8 1/6] kvm: Allow filtering of acked irqs

2012-08-15 Thread Alex Williamson
On Wed, 2012-08-15 at 15:27 +0300, Michael S. Tsirkin wrote: > On Fri, Aug 10, 2012 at 04:37:17PM -0600, Alex Williamson wrote: > > Registering an kvm_irq_ack_notifier with kian.irq_source_id < 0 > > retains existing behavior, filling in the actual irq_source_id results > > in the callback only bei

Re: [PATCH 0/4] i2c: tegra: required clock support for controller

2012-08-15 Thread Stephen Warren
On 08/08/2012 11:57 AM, Stephen Warren wrote: > On 08/08/2012 01:51 AM, Laxman Dewangan wrote: >> The Tegra's i2c controller required two clock sources for proper >> operation named as div-clk and fast-clk. >> >> Adding support to make sure that driver will get these clocks and >> enable before an

Re: [PATCH 12/13] ovl: switch to __inode_permission()

2012-08-15 Thread Casey Schaufler
On 8/15/2012 8:48 AM, Miklos Szeredi wrote: > From: Andy Whitcroft > > When checking permissions on an overlayfs inode we do not take into > account either device cgroup restrictions nor security permissions. > This allows a user to mount an overlayfs layer over a restricted device > directory and

Re: [PATCH v3 2/2] powerpc: Uprobes port to powerpc

2012-08-15 Thread Oleg Nesterov
On 07/26, Ananth N Mavinakayanahalli wrote: > > From: Ananth N Mavinakayanahalli > > This is the port of uprobes to powerpc. Usage is similar to x86. I am just curious why this series was ignored by powerpc maintainers... Of course I can not review this code, I know nothing about powerpc, but th

Re: [PATCH v2 06/11] memcg: kmem controller infrastructure

2012-08-15 Thread Glauber Costa
On 08/15/2012 08:38 PM, Greg Thelen wrote: > On Wed, Aug 15 2012, Glauber Costa wrote: > >> On 08/14/2012 10:58 PM, Greg Thelen wrote: >>> On Mon, Aug 13 2012, Glauber Costa wrote: >>> >>> + WARN_ON(mem_cgroup_is_root(memcg)); >>> + size = (1 << order) << PAGE_SHIFT; >>> +

Re: [PATCH v8 2/6] kvm: Expose IRQ source IDs to userspace

2012-08-15 Thread Alex Williamson
On Wed, 2012-08-15 at 15:59 +0300, Michael S. Tsirkin wrote: > On Fri, Aug 10, 2012 at 04:37:25PM -0600, Alex Williamson wrote: > > Introduce KVM_IRQ_SOURCE_ID and KVM_CAP_NR_IRQ_SOURCE_ID to allow > > user allocation of IRQ source IDs and querying both the capability > > and the total count of IRQ

Re: [PATCH v2 02/31] arm64: Kernel booting and initialisation

2012-08-15 Thread Olof Johansson
On Wed, Aug 15, 2012 at 01:20:02PM +, Arnd Bergmann wrote: > On Tuesday 14 August 2012, Catalin Marinas wrote: > > > +The AArch64 exception model is made up of a number of exception levels > > +(EL0 - EL3), with EL0 and EL1 having a secure and a non-secure > > +counterpart. EL2 is the hypervi

Re: [PATCH 12/13] ovl: switch to __inode_permission()

2012-08-15 Thread Andy Whitcroft
On Wed, Aug 15, 2012 at 09:59:51AM -0700, Casey Schaufler wrote: > On 8/15/2012 8:48 AM, Miklos Szeredi wrote: > > From: Andy Whitcroft > > > > When checking permissions on an overlayfs inode we do not take into > > account either device cgroup restrictions nor security permissions. > > This allow

[PATCH v3 0/6] ARM: dove: DT support for Marvell Dove

2012-08-15 Thread Sebastian Hesselbarth
This patch set adds DT support for Marvell Dove SoC and three boards equipped with this SoC. The work is based on device tree support for Marvell Orion based SoCs introduced in 3.6-rc1. The first three patches move mach-dove closer to Marvell Kirkwood's setup code by unifying the clock setup routi

[PATCH v3 2/6] ARM: dove: add clock gating control

2012-08-15 Thread Sebastian Hesselbarth
This patch adds clock gates from the clock gating control register available on dove. All clock gates are hooked up to tclk, except for gigabit ethernet controller (ge) which is a child of gephy to allow both enabled/disabled at the same time. Signed-off-by: Sebastian Hesselbarth --- Cc: Russell

Re: [PATCH v8 3/6] kvm: Add IRQ source ID option to KVM_IRQFD

2012-08-15 Thread Alex Williamson
On Wed, 2012-08-15 at 16:49 +0300, Michael S. Tsirkin wrote: > On Fri, Aug 10, 2012 at 04:37:33PM -0600, Alex Williamson wrote: > > This allows specifying an IRQ source ID to be used when injecting an > > interrupt. When not specified KVM_USERSPACE_IRQ_SOURCE_ID is used. > > > > Signed-off-by: Al

[PATCH v3 4/6] ARM: dove: add device tree based machine descriptor

2012-08-15 Thread Sebastian Hesselbarth
This adds a generic DT_MACHINE for mach-dove. As with other orion based SoCs there still is some glue code required to make all internal devices work, i.e. auxdata is provided to pass clocks to corresponding device drivers. Signed-off-by: Sebastian Hesselbarth --- Cc: Russell King Cc: Jason Coop

[PATCH v3 6/6] ARM: dove: SolidRun CuBox DT

2012-08-15 Thread Sebastian Hesselbarth
This patch adds basic support for the SolidRun CuBox to DT based mach-dove. There are still some issues related to ongoing orion/mvebu development, e.g. gpio-led will not work as there is no DT pinctrl for dove yet and we don't have board specific setup code. Nevertheless, the DT description is alr

Re: [PATCH 1/1] [RFC] uartclk from serial_core exposed to sysfs

2012-08-15 Thread Tomas Hlavacek
Hello Marek, On Tue, Aug 14, 2012 at 2:50 PM, Marek Vasut wrote: > Dear Tomas Hlavacek, > >> +static ssize_t get_attr_uartclk(struct device *dev, >> + struct device_attribute *attr, char *buf) >> +{ >> + int ret; >> + >> + struct uart_state *state = (struct uart_state *)(dev_g

[PATCH v3 5/6] ARM: dove: add device tree descriptors

2012-08-15 Thread Sebastian Hesselbarth
This patch adds device tree decriptors for dove SoC and currently supported boards. Signed-off-by: Sebastian Hesselbarth --- Cc: Russell King Cc: Jason Cooper Cc: Andrew Lunn Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: Rabeeh Khoury Cc: Ian Molton Cc: Maen S

[PATCH v3 1/6] ARM: dove: unify clock setup

2012-08-15 Thread Sebastian Hesselbarth
This patch synchronizes the clock setup of dove with other orion-based platforms. In dove_find_tclk there was a note about DOVE_SAMPLE_HI/LO register to detect tclk. While it might be possible to set a different tclk frequency with reset strapping the Dove datasheets don't tell anything about tclk

[PATCHv2 1/1] [RFC] uartclk from serial_core exposed to sysfs

2012-08-15 Thread Tomas Hlavacek
Added file /sys/devices/.../tty/ttySX/uartclk to allow read/modify uartclk value in struct uart_port in serial_core via sysfs. It simplifies initialization of no-name cards that have non-standard oscillator speed while having no distinguishing PCI IDs to allow autodetection. Signed-off-by: Tomas

Re: [PATCH v2 06/11] memcg: kmem controller infrastructure

2012-08-15 Thread Greg Thelen
On Wed, Aug 15 2012, Glauber Costa wrote: > On 08/15/2012 08:38 PM, Greg Thelen wrote: >> On Wed, Aug 15 2012, Glauber Costa wrote: >> >>> On 08/14/2012 10:58 PM, Greg Thelen wrote: On Mon, Aug 13 2012, Glauber Costa wrote: + WARN_ON(mem_cgroup_is_root(memcg)); +

Re: [PATCH 00/13] overlay filesystem: request for inclusion (v14)

2012-08-15 Thread Sedat Dilek
On Wed, Aug 15, 2012 at 5:48 PM, Miklos Szeredi wrote: > Here's the latest version of the overlayfs series. > > Git tree is here: > > git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git overlayfs.v14 > > Please consider for 3.7. > [ Stephen (linux-next) maintainer ] Wouldn't it be a

Re: [PATCH 11/13] vfs: export __inode_permission() to modules

2012-08-15 Thread Sedat Dilek
On Wed, Aug 15, 2012 at 5:48 PM, Miklos Szeredi wrote: > From: Miklos Szeredi > > We need to be able to check inode permissions (but not filesystem implied > permissions) for stackable filesystems. Expose this interface for overlayfs. > This patch can go through Al's vfs tree? It's an addendum

Re: [PATCH v8 5/6] kvm: KVM_IRQ_ACKFD

2012-08-15 Thread Alex Williamson
On Wed, 2012-08-15 at 17:05 +0300, Michael S. Tsirkin wrote: > On Fri, Aug 10, 2012 at 04:37:48PM -0600, Alex Williamson wrote: > > Enable a mechanism for IRQ ACKs to be exposed through an eventfd. The > > user can specify the GSI and optionally an IRQ source ID and have the > > provided eventfd t

Re: [RFC PATCH 0/5] net: socket bind to file descriptor introduced

2012-08-15 Thread Ben Pfaff
Stanislav Kinsbursky writes: > This system call is especially required for UNIX sockets, which has name > lenght limitation. The worst of the name length limitations can be worked around by opening the directory where the socket is to go as a file descriptor, then using /proc/self/fd// as the na

Re: [PATCH 01/13] vfs: add i_op->open()

2012-08-15 Thread J. Bruce Fields
On Wed, Aug 15, 2012 at 05:48:08PM +0200, Miklos Szeredi wrote: > From: Miklos Szeredi > > Add a new inode operation i_op->open(). This is for stacked Shouldn't that "->open()" be "->dentry_open()" ? --b. > filesystems that want to return a struct file from a different > filesystem. > > Sign

Re: [PATCH v8 6/6] kvm: Add de-assert option to KVM_IRQ_ACKFD

2012-08-15 Thread Alex Williamson
On Wed, 2012-08-15 at 17:11 +0300, Michael S. Tsirkin wrote: > On Fri, Aug 10, 2012 at 04:37:56PM -0600, Alex Williamson wrote: > > It's likely (vfio) that one of the reasons to watch for an IRQ ACK > > is to de-assert and re-enable an interrupt. As the IRQ ACK notfier > > is already watching a GS

Re: [PATCH v2 04/11] kmem accounting basic infrastructure

2012-08-15 Thread Christoph Lameter
On Wed, 15 Aug 2012, Glauber Costa wrote: > Remember we copy over the metadata and create copies of the caches > per-memcg. Therefore, a dentry belongs to a memcg if it was allocated > from the slab pertaining to that memcg. The dentry could be used by other processes in the system though. F.e. d

Re: [PATCH] xconfig: Display dependency values in debug_info

2012-08-15 Thread Randy Dunlap
On 08/15/2012 09:32 AM, Salar Ali Mumtaz wrote: > On 12-08-10 08:39 PM, Randy Dunlap wrote: >> On 08/09/2012 11:54 AM, Salar Ali Mumtaz wrote: >> >>> On 12-08-07 12:55 PM, Randy Dunlap wrote: >>> In Kconfig language, is "" the same as 'n' ? If so, I'm OK with your proposal above. >>

Re: [PATCH] slub: try to get cpu partial slab even if we get enough objects for cpu freelist

2012-08-15 Thread Christoph Lameter
On Thu, 16 Aug 2012, JoonSoo Kim wrote: > > Maybe I do not understand you correctly. Could you explain this in some > > more detail? > > I assume that cpu slab and cpu partial slab are not same thing. > > In my definition, > cpu slab is in c->page, > cpu partial slab is in c->partial Correct. >

Re: [PATCH] crypto: twofish - add x86_64/avx assembler implementation

2012-08-15 Thread Jussi Kivilinna
Quoting Borislav Petkov : > On Wed, Aug 15, 2012 at 05:22:03PM +0300, Jussi Kivilinna wrote: > >> Patch replaces 'movb' instructions with 'movzbl' to break false >> register dependencies and interleaves instructions better for >> out-of-order scheduling. >> >> Also move common round code to separa

Re: [PATCH 12/13] ovl: switch to __inode_permission()

2012-08-15 Thread Casey Schaufler
On 8/15/2012 10:07 AM, Andy Whitcroft wrote: > On Wed, Aug 15, 2012 at 09:59:51AM -0700, Casey Schaufler wrote: >> On 8/15/2012 8:48 AM, Miklos Szeredi wrote: >>> From: Andy Whitcroft >>> >>> When checking permissions on an overlayfs inode we do not take into >>> account either device cgroup restr

Re: [PATCH v8 0/6] kvm: level irqfd support

2012-08-15 Thread Alex Williamson
On Wed, 2012-08-15 at 17:28 +0300, Michael S. Tsirkin wrote: > On Fri, Aug 10, 2012 at 04:37:08PM -0600, Alex Williamson wrote: > > v8: > > > > Trying a new approach. Nobody seems to like the internal IRQ > > source ID object and the interactions it implies between irqfd > > and eoifd, so let's g

Re: [PATCH v2 02/31] arm64: Kernel booting and initialisation

2012-08-15 Thread Catalin Marinas
Hi Olof, On Wed, Aug 15, 2012 at 12:06:45AM +0100, Olof Johansson wrote: > On Tue, Aug 14, 2012 at 06:52:03PM +0100, Catalin Marinas wrote: > > +Before jumping into the kernel, the following conditions must be met: > > + > > +- Quiesce all DMA capable devices so that memory does not get > > + cor

Re: [PATCH v3] Hardware breakpoints: Invoke __perf_event_disable() if interrupts are already disabled

2012-08-15 Thread Naveen N. Rao
Hi Frederick, Did you get a chance to take a look at this? Regards, Naveen On 08/02/2012 01:46 PM, Naveen N. Rao wrote: Hi Frederick, I've added a check to make sure we are targeting the current task. This applies on top of v3.5. Kindly review. Thanks, Naveen History: v3: Added check to make

Re: [RFC PATCH 0/5] net: socket bind to file descriptor introduced

2012-08-15 Thread H. Peter Anvin
On 08/15/2012 09:52 AM, Ben Pfaff wrote: > Stanislav Kinsbursky writes: > >> This system call is especially required for UNIX sockets, which has name >> lenght limitation. > > The worst of the name length limitations can be worked around by > opening the directory where the socket is to go as a

Re: O_DIRECT to md raid 6 is slow

2012-08-15 Thread Andy Lutomirski
On Wed, Aug 15, 2012 at 4:50 AM, John Robinson wrote: > On 15/08/2012 01:49, Andy Lutomirski wrote: >> >> If I do: >> # dd if=/dev/zero of=/dev/md0p1 bs=8M > > [...] > >> It looks like md isn't recognizing that I'm writing whole stripes when >> I'm in O_DIRECT mode. > > > I see your md device is p

Re: [discussion]sched: a rough proposal to enable power saving in scheduler

2012-08-15 Thread Arjan van de Ven
On 8/15/2012 8:04 AM, Peter Zijlstra wrote: > This all sounds far too complicated.. we're talking about simple > spreading and packing balancers without deep arch knowledge and knobs, > we couldn't possibly evaluate anything like that. > > I was really more thinking of something useful for the lap

Re: [PATCH v5 00/12] KVM: introduce readonly memslot

2012-08-15 Thread Marcelo Tosatti
On Wed, Aug 15, 2012 at 01:44:14PM +0300, Avi Kivity wrote: > On 08/14/2012 06:51 PM, Marcelo Tosatti wrote: > >> > >> Userspace may want to modify the ROM (for example, when programming a > >> flash device). It is also possible to map an hva range rw through one > >> slot and ro through another.

Re: yama_ptrace_access_check(): possible recursive locking detected

2012-08-15 Thread Oleg Nesterov
On 08/15, Peter Zijlstra wrote: > > On Wed, 2012-08-15 at 15:01 +0200, Oleg Nesterov wrote: > > BTW, set_task_comm()->wmb() and memset() should die. There are > > not needed afaics, and the comment is misleading. > > As long as we guarantee there's always a terminating '\0', Yes, but we already ha

Re: [PATCH v2 04/11] kmem accounting basic infrastructure

2012-08-15 Thread Ying Han
On Wed, Aug 15, 2012 at 5:39 AM, Michal Hocko wrote: > On Wed 15-08-12 13:33:55, Glauber Costa wrote: > [...] >> > This can >> > be quite confusing. I am still not sure whether we should mix the two >> > things together. If somebody wants to limit the kernel memory he has to >> > touch the other

Re: [discussion]sched: a rough proposal to enable power saving in scheduler

2012-08-15 Thread Arjan van de Ven
On 8/15/2012 9:34 AM, Matthew Garrett wrote: > On Wed, Aug 15, 2012 at 01:05:38PM +0200, Peter Zijlstra wrote: >> On Mon, 2012-08-13 at 20:21 +0800, Alex Shi wrote: >>> It bases on the following assumption: >>> 1, If there are many task crowd in system, just let few domain cpus >>> running and let

Re: [PATCH 1/1] boot: Put initcall_debug into its own Kconfig option DEBUG_INITCALL

2012-08-15 Thread Tim Bird
Thai, How can I find out more about this project to reduce the size of the Linux kernel? I have been doing some research at Sony on ways to reduce the Linux kernel to very small sizes, without introducing persistent source code changes or config options. The reason for this is to avoid the inevi

Re: [PATCH v2 04/11] kmem accounting basic infrastructure

2012-08-15 Thread Glauber Costa
On 08/15/2012 10:01 PM, Ying Han wrote: > On Wed, Aug 15, 2012 at 5:39 AM, Michal Hocko wrote: >> On Wed 15-08-12 13:33:55, Glauber Costa wrote: >> [...] This can be quite confusing. I am still not sure whether we should mix the two things together. If somebody wants to limit the k

Re: [PATCH v2 04/11] kmem accounting basic infrastructure

2012-08-15 Thread Ying Han
On Wed, Aug 15, 2012 at 8:11 AM, Glauber Costa wrote: > On 08/15/2012 06:47 PM, Christoph Lameter wrote: >> On Wed, 15 Aug 2012, Michal Hocko wrote: >> That is not what the kernel does, in general. We assume that if he wants that memory and we can serve it, we should. Also, not all kerne

Re: yama_ptrace_access_check(): possible recursive locking detected

2012-08-15 Thread Kees Cook
On Wed, Aug 15, 2012 at 10:56 AM, Oleg Nesterov wrote: > On 08/15, Peter Zijlstra wrote: >> >> On Wed, 2012-08-15 at 15:01 +0200, Oleg Nesterov wrote: >> > BTW, set_task_comm()->wmb() and memset() should die. There are >> > not needed afaics, and the comment is misleading. >> >> As long as we guar

[Update][PATCH 3/3] PM / Runtime: Check device PM QoS setting before "no callbacks" check

2012-08-15 Thread Rafael J. Wysocki
On Wednesday, August 15, 2012, Alan Stern wrote: > On Tue, 14 Aug 2012, Rafael J. Wysocki wrote: > > > > > If __dev_pm_qos_read_value(dev) returns a negative value, > > rpm_suspend() should return -EPERM for dev even if its > > power.no_callbacks flag is set. For this to happen, the device's > >

Re: [PATCH v2 04/11] kmem accounting basic infrastructure

2012-08-15 Thread Ying Han
On Wed, Aug 15, 2012 at 8:34 AM, Christoph Lameter wrote: > On Wed, 15 Aug 2012, Glauber Costa wrote: > >> On 08/15/2012 06:47 PM, Christoph Lameter wrote: >> > On Wed, 15 Aug 2012, Michal Hocko wrote: >> > >> >>> That is not what the kernel does, in general. We assume that if he wants >> >>> that

Re: yama_ptrace_access_check(): possible recursive locking detected

2012-08-15 Thread Oleg Nesterov
On 08/15, Kees Cook wrote: > > It sounds like get_task_comm shouldn't have locking at all then? It > should just do a length-limited copy Without task_lock() get_task_comm() can copy incomplete new name. Honestly, I do not know any user which "strictly" needs the correct name. may be proc. > and

Re: [NEW DRIVER V3 2/8] DA9058 ADC driver

2012-08-15 Thread Lars-Peter Clausen
On 08/15/2012 05:05 PM, Anthony Olech wrote: > This is the ADC component driver of the Dialog DA9058 PMIC. > This driver is just one component of the whole DA9058 PMIC > driver. It depends on the DA9058 CORE component driver. > The HWMON and BATTERY component drivers depend on this ADC > component

Re: [Update][PATCH 3/3] PM / Runtime: Check device PM QoS setting before "no callbacks" check

2012-08-15 Thread Alan Stern
On Wed, 15 Aug 2012, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > Subject: PM / Runtime: Check device PM QoS setting before "no callbacks" > > If __dev_pm_qos_read_value(dev) returns a negative value, > rpm_suspend() should return -EPERM for dev even if its > power.no_callbacks flag is s

Re: [PATCH v2 04/11] kmem accounting basic infrastructure

2012-08-15 Thread Christoph Lameter
On Wed, 15 Aug 2012, Ying Han wrote: > > How can you figure out which objects belong to which memcg? The ownerships > > of dentries and inodes is a dubious concept already. > > I figured it out based on the kernel slab accounting. > obj->page->kmem_cache->memcg Well that is only the memcg which a

Re: [ 36/44] x86, microcode: Sanitize per-cpu microcode reloading interface

2012-08-15 Thread Greg Kroah-Hartman
On Wed, Aug 15, 2012 at 01:30:46PM -0300, Henrique de Moraes Holschuh wrote: > On Wed, 15 Aug 2012, Greg Kroah-Hartman wrote: > > On Tue, Aug 14, 2012 at 09:26:54PM -0300, Henrique de Moraes Holschuh wrote: > > > I believe the patch bellow, which was required on 3.2, will also be > > > necessary. >

Re: yama_ptrace_access_check(): possible recursive locking detected

2012-08-15 Thread Kees Cook
On Wed, Aug 15, 2012 at 11:17 AM, Oleg Nesterov wrote: > On 08/15, Kees Cook wrote: >> >> It sounds like get_task_comm shouldn't have locking at all then? It >> should just do a length-limited copy > > Without task_lock() get_task_comm() can copy incomplete new name. > > Honestly, I do not know an

NULL pointer dereference in ext4_ext_remove_space on 3.5.1

2012-08-15 Thread Marti Raudsepp
Hi list, I was moving and deleting some files between two of my ext4 partitions when it suddenly crashed and dropped me into an kernel oops screen (below). I'm using ext4 on kernel 3.5.1 (Arch Linux). Both likely suspect file systems are stored on LVM2, mounted with data=writeback,errors=remount-r

Re: [NEW DRIVER V3 5/8] DA9058 RTC driver

2012-08-15 Thread Lars-Peter Clausen
On 08/15/2012 05:05 PM, Anthony Olech wrote: > This is the RTC component driver of the Dialog DA9058 PMIC. > This driver is just one component of the whole DA9058 PMIC driver. > It depends on the CORE component driver of the DA9058 MFD. How much is this one actually different from the da9052 rtc c

Re: yama_ptrace_access_check(): possible recursive locking detected

2012-08-15 Thread Alan Cox
> It sounds like get_task_comm shouldn't have locking at all then? It > should just do a length-limited copy and make sure there is a trailing > 0-byte? It has locking so that it has a consistent state and more importantly it has an accessor function Directly accessing it is asking for bugs in fu

[PATCH v2] Yama: access task_struct->comm directly

2012-08-15 Thread Kees Cook
The core ptrace access checking routine holds a task lock, and when reporting a failure, Yama takes a separate task lock. To avoid a potential deadlock with two ptracers taking the opposite locks, do not use get_task_comm() and just use ->comm directly since accuracy is not important for the report

Re: [PATCH v3] Hardware breakpoints: Invoke __perf_event_disable() if interrupts are already disabled

2012-08-15 Thread Frederic Weisbecker
On Wed, Aug 15, 2012 at 11:07:01PM +0530, Naveen N. Rao wrote: > Hi Frederick, > Did you get a chance to take a look at this? > > Regards, > Naveen Yeah, I'm ok with the patch. Peter, are you ok with it? Thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the bo

Re: yama_ptrace_access_check(): possible recursive locking detected

2012-08-15 Thread Kees Cook
On Wed, Aug 15, 2012 at 11:44 AM, Alan Cox wrote: >> It sounds like get_task_comm shouldn't have locking at all then? It >> should just do a length-limited copy and make sure there is a trailing >> 0-byte? > > It has locking so that it has a consistent state and more importantly it > has an access

Re: [RFC 1/2] cma: remove __reclaim_pages

2012-08-15 Thread Rik van Riel
On 08/14/2012 04:57 AM, Minchan Kim wrote: Now cma reclaims too many pages by __reclaim_pages which says following as * Reclaim enough pages to make sure that contiguous allocation * will not starve the system. Starve? What does it starve the system? The function which allocat

Re: [NEW DRIVER V3 1/8] DA9058 MFD core driver

2012-08-15 Thread Mark Brown
On Wed, Aug 15, 2012 at 04:05:21PM +0100, Anthony Olech wrote: > > if HAS_IOMEM > + > menu "Multifunction device drivers" This random change is still present from the first version > + /* > + * the init_board_irq() call-back function should be defined in > + * the machine d

Re: [RFC 2/2] cma: support MIGRATE_DISCARD

2012-08-15 Thread Rik van Riel
On 08/14/2012 04:57 AM, Minchan Kim wrote: This patch introudes MIGRATE_DISCARD mode in migration. It drop clean cache pages instead of migration so that migration latency could be reduced. Of course, it could evict code pages but latency of big contiguous memory is more important than some backg

Re: [PATCH v2 02/31] arm64: Kernel booting and initialisation

2012-08-15 Thread Olof Johansson
Hi, On Wed, Aug 15, 2012 at 06:37:11PM +0100, Catalin Marinas wrote: > Hi Olof, > > > Given the recent development of ARM platforms, you might want to mandate > > the state of IOMMUs as well (they should probably be off, since there > > should be no active DMA activity). Graphics would be the exc

Linux 3.0.41

2012-08-15 Thread Greg KH
I'm announcing the release of the 3.0.41 kernel. All users of the 3.0 kernel series must upgrade. The updated 3.0.y git tree can be found at: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.0.y and can be browsed at the normal kernel.org git web browser:

Re: [PATCH 1/4] cputime: Generalize CONFIG_VIRT_CPU_ACCOUNTING

2012-08-15 Thread Frederic Weisbecker
On Wed, Aug 15, 2012 at 05:03:47PM +0200, Martin Schwidefsky wrote: > On Tue, 14 Aug 2012 16:16:47 +0200 > Frederic Weisbecker wrote: > > > S390, ia64 and powerpc all define their own version > > of CONFIG_VIRT_CPU_ACCOUNTING. Generalize the config > > and its description to a single place to avo

Re: [PATCH V2] KVM: x86: disable stealtime on reboot to avoid mem corruption

2012-08-15 Thread Marcelo Tosatti
On Wed, Aug 15, 2012 at 04:00:40PM +0200, Florian Westphal wrote: > else, host continues to update stealtime after reboot, > which can corrupt e.g. initramfs area. > found when tracking down initramfs unpack error on initial reboot > (with qemu-kvm -smp 2, no problem with single-core). > > Signed-

Re: [Resend with Ack][PATCH v1] PCI: allow acpiphp to handle PCIe ports without native PCIe hotplug capability

2012-08-15 Thread Bjorn Helgaas
On Mon, Jun 4, 2012 at 1:44 AM, Jiang Liu wrote: > Commit 0d52f54e2ef64c189dedc332e680b2eb4a34590a (PCI / ACPI: Make acpiphp > ignore root bridges using PCIe native hotplug) added code that made the > acpiphp driver completely ignore PCIe root complexes for which the kernel > had been granted cont

Re: [PATCH] PCI: EHCI: fix crash during hibernation on ASUS computers

2012-08-15 Thread Bjorn Helgaas
On Sun, Aug 12, 2012 at 3:26 PM, Rafael J. Wysocki wrote: > > Commit dbf0e4c (PCI: EHCI: fix crash during suspend on ASUS > computers) added a workaround for an ASUS suspend issue related to > USB EHCI and a bug in a number of ASUS BIOSes that attemt to shut > down the EHCI controller during syste

[PATCH] ARM: SAMSUNG: use spin_lock_irqsave() in clk_set_parent

2012-08-15 Thread Mandeep Singh Baines
>From 0cdf3aff, "ARM: SAMSUNG: use spin_lock_irqsave() in clk_{enable,disable}": The clk_enable()and clk_disable() can be used process and ISR either. And actually it is used for real product and other platforms use it now. So spin_lock_irqsave() should be used instead. We need to make a si

Re: [Resend][PATCH] PCI / PM: Fix messages printed by acpi_pci_set_power_state()

2012-08-15 Thread Bjorn Helgaas
On Sat, Aug 4, 2012 at 3:27 PM, Rafael J. Wysocki wrote: > > If a PCI device is put into D3_cold by acpi_bus_set_power(), > the message printed by acpi_pci_set_power_state() says that its > power state has been changed to D4, which doesn't make sense. > In turn, if the device is put into D3_hot, t

Re: [PATCH v8 0/6] kvm: level irqfd support

2012-08-15 Thread Michael S. Tsirkin
On Wed, Aug 15, 2012 at 11:36:31AM -0600, Alex Williamson wrote: > On Wed, 2012-08-15 at 17:28 +0300, Michael S. Tsirkin wrote: > > On Fri, Aug 10, 2012 at 04:37:08PM -0600, Alex Williamson wrote: > > > v8: > > > > > > Trying a new approach. Nobody seems to like the internal IRQ > > > source ID o

Re: [PATCH v8 1/6] kvm: Allow filtering of acked irqs

2012-08-15 Thread Michael S. Tsirkin
On Wed, Aug 15, 2012 at 10:47:38AM -0600, Alex Williamson wrote: > On Wed, 2012-08-15 at 15:27 +0300, Michael S. Tsirkin wrote: > > On Fri, Aug 10, 2012 at 04:37:17PM -0600, Alex Williamson wrote: > > > Registering an kvm_irq_ack_notifier with kian.irq_source_id < 0 > > > retains existing behavior,

Re: [PATCHv2 0/8] *** ARM: Update arch-vt8500 to Devicetree ***

2012-08-15 Thread Stephen Warren
On 08/08/2012 07:54 PM, Tony Prisk wrote: > This patchset updates arch-vt8500 to devicetree and removes all the old-style > code. Support for WM8650 has also been added. Sorry for taking such a long time to re-review this. I scanned the series looking for just the changes to the issues I raised o

Re: [PATCH v2 04/11] kmem accounting basic infrastructure

2012-08-15 Thread Glauber Costa
On 08/15/2012 10:25 PM, Christoph Lameter wrote: > On Wed, 15 Aug 2012, Ying Han wrote: > >>> How can you figure out which objects belong to which memcg? The ownerships >>> of dentries and inodes is a dubious concept already. >> >> I figured it out based on the kernel slab accounting. >> obj->page

Re: [PATCH 3/4] cputime: Consolidate vtime handling on context switch

2012-08-15 Thread Frederic Weisbecker
On Wed, Aug 15, 2012 at 05:22:19PM +0200, Martin Schwidefsky wrote: > On Tue, 14 Aug 2012 16:16:49 +0200 > Frederic Weisbecker wrote: > > > The archs that implement virtual cputime accounting all > > flush the cputime of a task when it gets descheduled > > and sometimes set up some ground initial

Re: [PATCH RFC] random: Account for entropy loss due to overwrites

2012-08-15 Thread Matt Mackall
On Mon, 2012-08-13 at 10:26 -0700, H. Peter Anvin wrote: > From: "H. Peter Anvin" > > When we write entropy into a non-empty pool, we currently don't > account at all for the fact that we will probabilistically overwrite > some of the entropy in that pool. Technically, no, nothing is overwritten

[PATCH] HID: hidraw: improve error handling in hidraw_init()

2012-08-15 Thread Alexey Khoroshilov
Several improvements in error handling: - do not report success if alloc_chrdev_region() failed - check for error code of cdev_add() - use unregister_chrdev_region() instead of unregister_chrdev() if class_create() failed Found by Linux Driver Verification project (linuxtesting.org). Signed-off

[ANNOUNCE] util-linux v2.22-rc2

2012-08-15 Thread Karel Zak
The util-linux release v2.22-rc2 is available at ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.22/ Feedback and bug reports, as always, are welcomed. Karel -- Karel Zak http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" i

Re: [PATCH v2 06/11] memcg: kmem controller infrastructure

2012-08-15 Thread Glauber Costa
On 08/15/2012 09:12 PM, Greg Thelen wrote: > On Wed, Aug 15 2012, Glauber Costa wrote: > >> On 08/15/2012 08:38 PM, Greg Thelen wrote: >>> On Wed, Aug 15 2012, Glauber Costa wrote: >>> On 08/14/2012 10:58 PM, Greg Thelen wrote: > On Mon, Aug 13 2012, Glauber Costa wrote: > > +

Re: [RFC PATCH 0/1] trace: Add early event trace support

2012-08-15 Thread Ezequiel Garcia
On Wed, Aug 15, 2012 at 12:20 PM, Ezequiel Garcia wrote: > Hi Steven, > > This patch is my first attempt to address the "early tracing issue". > Right now, trace events are registered on fs_initcall, which is very late > if you want to capture boot-up events. > > This feature is in developers wish

Re: [PATCH] HID: hidraw: improve error handling in hidraw_init()

2012-08-15 Thread Jiri Kosina
On Wed, 15 Aug 2012, Alexey Khoroshilov wrote: > Several improvements in error handling: > - do not report success if alloc_chrdev_region() failed > - check for error code of cdev_add() > - use unregister_chrdev_region() instead of unregister_chrdev() > if class_create() failed > > Found by Lin

[PATCH v2 0/4] pinctrl: add support for samsung pinctrl driver

2012-08-15 Thread Thomas Abraham
Changes since v1: - Added support for external gpio and wakeup interrupts for Exynos4. This patch series adds a common pinctrl driver for all Samsung platforms and enables the pinctrl driver support for Exynos4210 based device tree enabled platforms. The scope of this driver is limited to only dev

[PATCH v2 1/4] pinctrl: add samsung pinctrl and gpiolib driver

2012-08-15 Thread Thomas Abraham
Add a new device tree enabled pinctrl and gpiolib driver for Samsung SoC's. This driver provides a common and extensible framework for all Samsung SoC's to interface with the pinctrl and gpiolib subsystems. This driver supports only device tree based instantiation and hence can be used only on thos

[PATCH v2 3/4] gpio: exynos4: skip gpiolib registration if pinctrl driver is used

2012-08-15 Thread Thomas Abraham
Pinctrl driver, when enabled, registers all the gpio pins and hence the registration of gpio pins by this driver can be skipped. Acked-by: Grant Likely Acked-by: Linus Walleij Signed-off-by: Thomas Abraham --- drivers/gpio/gpio-samsung.c | 21 + 1 files changed, 21 insert

[PATCH v2 4/4] ARM: EXYNOS: skip wakeup interrupt setup if pinctrl driver is used

2012-08-15 Thread Thomas Abraham
Pinctrl driver includes support for configuring the external wakeup interrupts. On exynos platforms that use pinctrl driver, the setup of wakeup interrupts in the exynos platform code can be skipped. Cc: Kukjin Kim Signed-off-by: Thomas Abraham --- arch/arm/mach-exynos/common.c | 26 +

[PATCH v2 2/4] pinctrl: add exynos4210 specific extensions for samsung pinctrl driver

2012-08-15 Thread Thomas Abraham
Add information about the Exynos4210 pin banks and driver data which is used by the Samsung pinctrl driver. In addition to this, the support for external gpio and wakeup interrupt support is included and hooked up with the Samsung pinctrl driver. Cc: Linus Walleij Cc: Kukjin Kim Signed-off-by: T

regression with poll(2)?

2012-08-15 Thread Sage Weil
I'm experiencing a stall with Ceph daemons communicating over TCP that occurs reliably with 3.6-rc1 (and linus/master) but not 3.5. The basic situation is: - the socket is two processes communicating over TCP on the same host, e.g. tcp0 2164849 10.214.132.38:6801 10.214.132.38:5

Re: [PATCH] PCI / ACPI: Do not request control of ASPM if the BIOS has disabled it

2012-08-15 Thread Bjorn Helgaas
On Thu, May 24, 2012 at 2:45 PM, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > We want to report that the kernel supports ASPM to the BIOS even if > the BIOS signals us that it doesn't. So, we need the flags to include > (OSC_ACTIVE_STATE_PWR_SUPPORT | OSC_CLOCK_PWR_CAPABILITY_SUPPORT)

[v2.6.34-stable 001/165] net_sched: Fix qdisc_notify()

2012-08-15 Thread Paul Gortmaker
From: Eric Dumazet --- This is a commit scheduled for the next v2.6.34 longterm release. http://git.kernel.org/?p=linux/kernel/git/paulg/longterm-queue-2.6.34.git If you see a problem with using this for longterm, please comment. -

[v2.6.34-stable 011/165] cifs: fix dentry refcount leak when opening a FIFO on lookup

2012-08-15 Thread Paul Gortmaker
From: Jeff Layton --- This is a commit scheduled for the next v2.6.34 longterm release. http://git.kernel.org/?p=linux/kernel/git/paulg/longterm-queue-2.6.34.git If you see a problem with using this for longterm, please comment. --

[v2.6.34-stable 016/165] KVM: Ensure all vcpus are consistent with in-kernel irqchip settings

2012-08-15 Thread Paul Gortmaker
From: Avi Kivity --- This is a commit scheduled for the next v2.6.34 longterm release. http://git.kernel.org/?p=linux/kernel/git/paulg/longterm-queue-2.6.34.git If you see a problem with using this for longterm, please comment. ---

[v2.6.34-stable 024/165] atm: br2684: Fix oops due to skb->dev being NULL

2012-08-15 Thread Paul Gortmaker
From: Daniel Schwierzeck --- This is a commit scheduled for the next v2.6.34 longterm release. http://git.kernel.org/?p=linux/kernel/git/paulg/longterm-queue-2.6.34.git If you see a problem with using this for longterm, please comment.

[v2.6.34-stable 026/165] sparc: fix array bounds error setting up PCIC NMI trap

2012-08-15 Thread Paul Gortmaker
From: Ian Campbell --- This is a commit scheduled for the next v2.6.34 longterm release. http://git.kernel.org/?p=linux/kernel/git/paulg/longterm-queue-2.6.34.git If you see a problem with using this for longterm, please comment. -

[v2.6.34-stable 030/165] md/linear: avoid corrupting structure while waiting for rcu_free to complete.

2012-08-15 Thread Paul Gortmaker
From: NeilBrown --- This is a commit scheduled for the next v2.6.34 longterm release. http://git.kernel.org/?p=linux/kernel/git/paulg/longterm-queue-2.6.34.git If you see a problem with using this for longterm, please comment.

[v2.6.34-stable 031/165] powerpc/pci: Check devices status property when scanning OF tree

2012-08-15 Thread Paul Gortmaker
From: Sonny Rao --- This is a commit scheduled for the next v2.6.34 longterm release. http://git.kernel.org/?p=linux/kernel/git/paulg/longterm-queue-2.6.34.git If you see a problem with using this for longterm, please comment.

[v2.6.34-stable 040/165] qla2xxx: Correct inadvertent loop state transitions during port-update handling.

2012-08-15 Thread Paul Gortmaker
From: Andrew Vasquez --- This is a commit scheduled for the next v2.6.34 longterm release. http://git.kernel.org/?p=linux/kernel/git/paulg/longterm-queue-2.6.34.git If you see a problem with using this for longterm, please comment.

<    1   2   3   4   5   6   7   8   >