Re: [PATCH 5/5] virtio-scsi: introduce multiqueue support

2012-09-04 Thread Paolo Bonzini
Il 04/09/2012 16:47, Michael S. Tsirkin ha scritto: static void virtscsi_init_vq(struct virtio_scsi_vq *virtscsi_vq, - struct virtqueue *vq) + struct virtqueue *vq, bool affinity) { spin_lock_init(virtscsi_vq-vq_lock); virtscsi_vq-vq

Re: RCU warning during UBI file system mount

2012-09-04 Thread Paul E. McKenney
On Tue, Sep 04, 2012 at 10:46:36AM +0300, Artem Bityutskiy wrote: Let's CC LKML and Paul. On Sat, 2012-09-01 at 22:19 -0700, Subodh Nijsure wrote: Hello, I am running 3.6-rc4 kernel on my MX28 based board and every time I mount UBI file system I see following warning. Anybody

Re: [PATCH v2] memcg: first step towards hierarchical controller

2012-09-04 Thread Glauber Costa
I believe it would be really great to have a way to turn the default to 1 - and stop the shouting. We already can. You can use /etc/cgconfig (if you are using libcgroup) or do it manually. Even if you are doing it in OpenSUSE as a patch, an upstream patch means at least that every

Re: [PATCH v7 9/9] block: Avoid deadlocks with bio allocation by stacking drivers

2012-09-04 Thread Vivek Goyal
On Fri, Aug 31, 2012 at 07:13:48PM -0700, Tejun Heo wrote: Hello, Vivek. On Thu, Aug 30, 2012 at 06:07:45PM -0400, Vivek Goyal wrote: Here is one quick and dirty proof of concept patch. It checks for stack depth and if remaining space is less than 20% of stack size, then it defers the

Re: [PATCH 5/5] virtio-scsi: introduce multiqueue support

2012-09-04 Thread Michael S. Tsirkin
On Tue, Sep 04, 2012 at 04:55:56PM +0200, Paolo Bonzini wrote: Il 04/09/2012 16:47, Michael S. Tsirkin ha scritto: static void virtscsi_init_vq(struct virtio_scsi_vq *virtscsi_vq, - struct virtqueue *vq) + struct virtqueue *vq,

Re: [PATCH v3] hwmon: add Maxim MAX197 support

2012-09-04 Thread anish kumar
On Sun, 2012-09-02 at 07:51 -0700, Guenter Roeck wrote: On Sat, Sep 01, 2012 at 11:31:11AM +0200, Lars-Peter Clausen wrote: On 08/31/2012 06:04 PM, Guenter Roeck wrote: On Thu, Aug 30, 2012 at 09:42:57PM -0400, Vivien Didelot wrote: The MAX197 is an A/D converter, made by Maxim. This

Re: [RFC] module: signature infrastructure

2012-09-04 Thread Kasatkin, Dmitry
On Tue, Sep 4, 2012 at 5:25 PM, Lucas De Marchi lucas.de.mar...@gmail.com wrote: Hi Rusty, On Tue, Sep 4, 2012 at 2:55 AM, Rusty Russell ru...@rustcorp.com.au wrote: OK, I took a look at the module.c parts of David and Dmitry's patchsets, and didn't really like either, but I stole parts of

Re: [PATCH] [RFC]power: battery: Generic battery driver using IIO

2012-09-04 Thread anish kumar
On Sun, 2012-09-02 at 14:34 -0700, Anton Vorontsov wrote: On Sun, Sep 02, 2012 at 09:44:04PM +0530, Sannu K wrote: [...] Just Curious what is the use of this module? Is there any user space program uses this? When ACPI drivers for battery is available how useful will this be? That's

[PATCH] KVM: tsc deadline timer works only when hrtimer high resolution configured

2012-09-04 Thread Liu, Jinsong
From 728a17e2de591b557c3c8ba31076b4bf2ca5ab42 Mon Sep 17 00:00:00 2001 From: Liu, Jinsong jinsong@intel.com Date: Wed, 5 Sep 2012 03:18:15 +0800 Subject: [PATCH] KVM: tsc deadline timer works only when hrtimer high resolution configured This is for 2 reasons: 1. it's pointless to enable tsc

Re: [RFC] [PATCH] HID: remove Paul Walmsley's copyright from places where it shouldn't be

2012-09-04 Thread Paul Walmsley
Hello Jiří, On Tue, 4 Sep 2012, Jiri Kosina wrote: Paul Walmsley has implemented dynamic quirk handling back in 2007 through commits: 2eb5dc30eb (USB HID: encapsulate quirk handling into hid-quirks.c) 8222fbe67c (USB HID: clarify static quirk handling as squirks) 8cef908235 (USB HID: add

Re: [PATCH] USB/host: Cleanup unneccessary irq disable code

2012-09-04 Thread Alan Stern
On Sat, 1 Sep 2012, Liu, Chuansheng wrote: From: liu chuansheng chuansheng@intel.com Subject: [PATCH] USB/host: Cleanup unneccessary irq disable code Because the IRQF_DISABLED as the flag is now a NOOP and has been deprecated and in hardirq context the interrupt is disabled. so in

[PATCH 00/16] ipack: autoload IP module drivers

2012-09-04 Thread Samuel Iglesias Gonsálvez
Hello, This bunch of patches adds support to autoload IP module drivers when they are detected by the ipack bus driver. Also, it changes the endianness of the carrier device to Big Endian as it is defined in the Industry Pack standard. Due to that, the source code is simplified too. There are

[PATCH 03/16] Staging: ipack/devices/ipoctal: Convert ipoctal to directly use ioread/write functions.

2012-09-04 Thread Samuel Iglesias Gonsálvez
From: Jens Taprogge jens.tapro...@taprogge.org Before it was using the functions in ipack_bus_ops. Signed-off-by: Jens Taprogge jens.tapro...@taprogge.org Signed-off-by: Samuel Iglesias Gonsálvez sigles...@igalia.com --- drivers/staging/ipack/devices/ipoctal.c | 29

[PATCH 01/16] Staging: ipack/bridges/tpci200: Reorganize tpci200_probe in preparation for functional changes.

2012-09-04 Thread Samuel Iglesias Gonsálvez
From: Jens Taprogge jens.tapro...@taprogge.org These changes make it easier to add more initialization steps later on. Signed-off-by: Jens Taprogge jens.tapro...@taprogge.org Signed-off-by: Samuel Iglesias Gonsálvez sigles...@igalia.com --- drivers/staging/ipack/bridges/tpci200.c | 25

[PATCH 05/16] Staging: ipack: remove read/write operations from ipack_bus_ops

2012-09-04 Thread Samuel Iglesias Gonsálvez
They are not used any longer. Signed-off-by: Jens Taprogge jens.tapro...@taprogge.org Signed-off-by: Samuel Iglesias Gonsálvez sigles...@igalia.com --- drivers/staging/ipack/ipack.h | 12 1 file changed, 12 deletions(-) diff --git a/drivers/staging/ipack/ipack.h

[PATCH 11/16] Staging: ipack: Move device ids from ipoctal.c to ipack_ids.h.

2012-09-04 Thread Samuel Iglesias Gonsálvez
From: Jens Taprogge jens.tapro...@taprogge.org Rename them in the process. Signed-off-by: Jens Taprogge jens.tapro...@taprogge.org Signed-off-by: Samuel Iglesias Gonsálvez sigles...@igalia.com --- drivers/staging/ipack/devices/ipoctal.c | 26 +++---

[PATCH 07/16] Staging: ipack/devices/ipoctal: Tidy up ipoctal some more.

2012-09-04 Thread Samuel Iglesias Gonsálvez
From: Jens Taprogge jens.tapro...@taprogge.org No need to have a struct when it has only one field. Signed-off-by: Jens Taprogge jens.tapro...@taprogge.org Signed-off-by: Samuel Iglesias Gonsálvez sigles...@igalia.com --- drivers/staging/ipack/devices/ipoctal.c | 82 +++---

[PATCH 10/16] Staging: ipack: Parse vendor and device id.

2012-09-04 Thread Samuel Iglesias Gonsálvez
From: Jens Taprogge jens.tapro...@taprogge.org Also expose the values through sysfs. Signed-off-by: Jens Taprogge jens.tapro...@taprogge.org Signed-off-by: Samuel Iglesias Gonsálvez sigles...@igalia.com --- drivers/staging/ipack/ipack.c | 81 +++--

[PATCH 15/16] Staging: ipack: Expose modalias through sysfs.

2012-09-04 Thread Samuel Iglesias Gonsálvez
From: Jens Taprogge jens.tapro...@taprogge.org Also include it in the hotplug event so that udev can provide the respective driver. Signed-off-by: Jens Taprogge jens.tapro...@taprogge.org Signed-off-by: Samuel Iglesias Gonsálvez sigles...@igalia.com --- drivers/staging/ipack/ipack.c | 36

[PATCH 16/16] Staging: ipack: Provide ID Prom through sysfs.

2012-09-04 Thread Samuel Iglesias Gonsálvez
From: Jens Taprogge jens.tapro...@taprogge.org Signed-off-by: Jens Taprogge jens.tapro...@taprogge.org Signed-off-by: Samuel Iglesias Gonsálvez sigles...@igalia.com --- drivers/staging/ipack/ipack.c | 31 +++ 1 file changed, 31 insertions(+) diff --git

Re: [PATCH v3] UDF: Add support for O_DIRECT

2012-09-04 Thread Ian Abbott
On 2012-09-04 15:39, Jan Kara wrote: Hello, first, you have my address wrong (you had suze instead of suse) which is why I wasn't getting your email and not replying (missed the patch in LKML traffic). Second, it's good to CC also linux-fsdevel for UDF related matters (I tend to use that

[PATCH 12/16] Staging: ipack: Make ipack_driver_ops const.

2012-09-04 Thread Samuel Iglesias Gonsálvez
From: Jens Taprogge jens.tapro...@taprogge.org Signed-off-by: Jens Taprogge jens.tapro...@taprogge.org Signed-off-by: Samuel Iglesias Gonsálvez sigles...@igalia.com --- drivers/staging/ipack/devices/ipoctal.c |8 +--- drivers/staging/ipack/ipack.h |2 +- 2 files changed, 6

[PATCH 13/16] Staging: ipack/devices/ipoctal: Expose DEVICE_TABLE for ipoctal.

2012-09-04 Thread Samuel Iglesias Gonsálvez
From: Jens Taprogge jens.tapro...@taprogge.org The modalias entries for the module are now created. Signed-off-by: Jens Taprogge jens.tapro...@taprogge.org Signed-off-by: Samuel Iglesias Gonsálvez sigles...@igalia.com --- drivers/staging/ipack/devices/ipoctal.c | 13 + 1 file

[PATCH 14/16] Staging: ipack: Implement device matching on the bus level.

2012-09-04 Thread Samuel Iglesias Gonsálvez
From: Jens Taprogge jens.tapro...@taprogge.org Devices are match based upon their vendor and device ids. Since the individual drivers provide a list of supported ids they do not need to implement the matching themselves. Signed-off-by: Jens Taprogge jens.tapro...@taprogge.org Signed-off-by:

Re: [Xen-devel] [PATCH 1/1] XEN: Use correct masking in xen_swiotlb_alloc_coherent.

2012-09-04 Thread Stefano Panella
On 09/04/2012 03:55 PM, David Vrabel wrote: On 04/09/12 15:37, Konrad Rzeszutek Wilk wrote: On Tue, Sep 04, 2012 at 03:07:42PM +0100, Stefano Panella wrote: So if hwdev-coherent_dma_mask is set to 0x our dma_mask will be u64 set to 0x even if we set it to

[PATCH 09/16] Staging: ipack: Read the ID space during device registration.

2012-09-04 Thread Samuel Iglesias Gonsálvez
From: Jens Taprogge jens.tapro...@taprogge.org We keep a copy of the ID space for later use. Signed-off-by: Jens Taprogge jens.tapro...@taprogge.org Signed-off-by: Samuel Iglesias Gonsálvez sigles...@igalia.com --- drivers/staging/ipack/ipack.c | 80 +

[PATCH 08/16] Staging: ipack: implement ipack device table.

2012-09-04 Thread Samuel Iglesias Gonsálvez
From: Jens Taprogge jens.tapro...@taprogge.org The modaliases look like ipack:fXvNdM, where X is the format version (8 bit) and N and M are the vendor and device ID represented as 32 bit hexadecimal numbers each. Using 32 bits allows us to define IPACK_ANY_ID as (~0) without interfering with the

[PATCH 04/16] Staging: ipack/bridges/tpci200: Remove the read/write functions from ipack_bus_ops.

2012-09-04 Thread Samuel Iglesias Gonsálvez
From: Jens Taprogge jens.tapro...@taprogge.org They are not used any longer. Signed-off-by: Jens Taprogge jens.tapro...@taprogge.org Signed-off-by: Samuel Iglesias Gonsálvez sigles...@igalia.com --- drivers/staging/ipack/bridges/tpci200.c | 218 --- 1 file changed,

[RFC] packet: change call of synchronize_net to call_rcu

2012-09-04 Thread Iulius Curt
synchronize_net is called every time we close a PF_PACKET socket which is causing performance loss when doing this on many sockets. Signed-off-by: Sorin Dumitru sdumi...@ixiacom.com Signed-off-by: Iulius Curt ic...@ixiacom.com --- Statistics using test program [1] Sockets count | Not patched

[PATCH 06/16] Staging: ipack/devices/ipoctal: ipoctal cleanups.

2012-09-04 Thread Samuel Iglesias Gonsálvez
From: Jens Taprogge jens.tapro...@taprogge.org Define memory address space, fix sparse warnings and mark the structs reflecting hardware memory layout packed to be on the safe side. Signed-off-by: Jens Taprogge jens.tapro...@taprogge.org Signed-off-by: Samuel Iglesias Gonsálvez

[PATCH 02/16] Staging: ipack/bridges/tpci200: Use the TPCI200 in big endian mode.

2012-09-04 Thread Samuel Iglesias Gonsálvez
From: Jens Taprogge jens.tapro...@taprogge.org During initialization we configure the TPCI200 so it does not swap data lanes on IndustryPack module access. The read and write functions are changed accordingly. We are taking this approach in the hope that all IP Carriers are able to present the

Re: i386, v3.6-rc3: Kernel panic - not syncing: Fatal exception in interrupt

2012-09-04 Thread Steven Rostedt
On Tue, 2012-08-28 at 10:12 +0200, Robert Richter wrote: On 27.08.12 17:14:27, Robert Richter wrote: Steven and Ingo, while running profiling tests on 32 bit I got a Kernel panic - not syncing: Fatal exception in interrupt Sorry for the late response, was too busy drinking with

Re: [RFC] packet: change call of synchronize_net to call_rcu

2012-09-04 Thread Daniel Borkmann
On Tue, Sep 4, 2012 at 4:16 PM, Iulius Curt iulius.c...@gmail.com wrote: synchronize_net is called every time we close a PF_PACKET socket which is causing performance loss when doing this on many sockets. Do you have any particular use case in mind? I can imagine if you are closing a PF_PACKET

Re: [RFC PATCH 2/2] mm: Batch page_check_references in shrink_page_list sharing the same i_mmap_mutex

2012-09-04 Thread Tim Chen
On Tue, 2012-08-21 at 17:48 -0700, Tim Chen wrote: Thanks to Matthew's suggestions on improving the patch. Here's the updated version. It seems to be sane when I booted my machine up. I will put it through more testing when I get a chance. Tim Matthew, The new patch seems to be

Re: i386, v3.6-rc3: Kernel panic - not syncing: Fatal exception in interrupt

2012-09-04 Thread Robert Richter
On 04.09.12 11:16:16, Steven Rostedt wrote: On Tue, 2012-08-28 at 10:12 +0200, Robert Richter wrote: BUG: unable to handle kernel NULL pointer dereference at 0040 IP: [c100422f] print_context_stack+0x6e/0x8d *pde = Oops: [#1] SMP Modules linked in: Pid: 15531,

Re: [PATCH v3 01/17] hashtable: introduce a small and naive hashtable

2012-09-04 Thread Steven Rostedt
On Tue, 2012-08-28 at 19:00 -0400, Mathieu Desnoyers wrote: Looking again at: +#define hash_for_each_size(name, bits, bkt, node, obj, member) \ + for (bkt = 0; bkt HASH_SIZE(bits); bkt++) \ + hlist_for_each_entry(obj,

Re: [RFC] semantics of singlestepping vs. tracer exiting

2012-09-04 Thread Oleg Nesterov
On 09/03, Al Viro wrote: On Mon, Sep 03, 2012 at 06:05:38PM +0200, Oleg Nesterov wrote: This is not easy to fix. ptrace_disable() and user_disable_single_step() is arch dependant, but at least on x86 it assumes that the tracee is not running, so exit_ptrace() can't do this. True (IOW,

Re: [PATCH] Add feature-removal-schedule.txt removal to feature-removal-schedule.txt

2012-09-04 Thread Steven Rostedt
On Wed, 2012-08-29 at 09:28 +0800, Cong Wang wrote: On Tue, Aug 28, 2012 at 2:22 AM, Steven Rostedt rost...@goodmis.org wrote: The file feature-removal-schedule.txt is ignored by most people except for people that add to it. It's more of a global TODO list for developers than being anything

Re: [PATCH v5 1/4] mfd: add syscon driver based on regmap

2012-09-04 Thread Andi Shyti
On Tue, Sep 04, 2012 at 07:46:02PM +0800, Dong Aisheng wrote: On Tue, Sep 04, 2012 at 07:35:45PM +0800, Andi Shyti wrote: Hi Dong, On Tue, Sep 04, 2012 at 11:20:08AM +0800, Dong Aisheng wrote: +static int __devinit syscon_probe(struct platform_device *pdev) +{ + struct device *dev

Re: A workaround for request_firmware() stuck in module_init

2012-09-04 Thread Ming Lei
On Tue, Sep 4, 2012 at 9:06 PM, Takashi Iwai ti...@suse.de wrote: Hi, as I've got recently a few bug reports regarding the stuck with request_firmware() in module_init of some sound drivers, I started looking at the issue. Strangely, the problem doesn't happen on openSUSE 12.2 although it

[PATCH 03/11] x86: Lock down IO port access in secure boot environments

2012-09-04 Thread Matthew Garrett
IO port access would permit users to gain access to PCI configuration registers, which in turn (on a lot of hardware) give access to MMIO register space. This would potentially permit root to trigger arbitrary DMA, so lock it down by default. Signed-off-by: Matthew Garrett m...@redhat.com ---

[PATCH 08/11] Secure boot: Add a dummy kernel parameter that will switch on Secure Boot mode

2012-09-04 Thread Matthew Garrett
From: Josh Boyer jwbo...@redhat.com This forcibly drops CAP_SECURE_FIRMWARE from both cap_permitted and cap_bset in the init_cred struct, which everything else inherits from. This works on any machine and can be used to develop even if the box doesn't have UEFI. Signed-off-by: Josh Boyer

[RFC] First attempt at kernel secure boot support

2012-09-04 Thread Matthew Garrett
The UEFI Secure Boot trust model is based on it not being possible for a user to cause a signed OS to boot an unsigned OS, even if that user has administrative privileges. This is an initial attempt at a set of patches to reduce root's ability to modify the kernel. We've done this with an

[PATCH 09/11] efi: Enable secure boot lockdown automatically when enabled in firmware

2012-09-04 Thread Matthew Garrett
The firmware has a set of flags that indicate whether secure boot is enabled and enforcing. Use them to indicate whether the kernel should lock itself down. Signed-off-by: Matthew Garrett m...@redhat.com --- Documentation/x86/zero-page.txt | 2 ++ arch/x86/boot/compressed/eboot.c | 32

[PATCH 07/11] kexec: Disable in a secure boot environment

2012-09-04 Thread Matthew Garrett
kexec could be used as a vector for a malicious user to use a signed kernel to circumvent the secure boot trust model. In the long run we'll want to support signed kexec payloads, but for the moment we should just disable loading entirely in that situation. Signed-off-by: Matthew Garrett

[PATCH 06/11] Restrict /dev/mem and /dev/kmem in secure boot setups

2012-09-04 Thread Matthew Garrett
Allowing users to write to address space makes it possible for the kernel to be subverted. Restrict this when we need to protect the kernel. Signed-off-by: Matthew Garrett m...@redhat.com --- drivers/char/mem.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/char/mem.c

[PATCH 01/11] Secure boot: Add new capability

2012-09-04 Thread Matthew Garrett
Secure boot adds certain policy requirements, including that root must not be able to do anything that could cause the kernel to execute arbitrary code. The simplest way to handle this would seem to be to add a new capability and gate various functionality on that. We'll then strip it from the

[PATCH 05/11] asus-wmi: Restrict debugfs interface

2012-09-04 Thread Matthew Garrett
We have no way of validating what all of the Asus WMI methods do on a given machine, and there's a risk that some will allow hardware state to be manipulated in such a way that arbitrary code can be executed in the kernel. Add a capability check to prevent that. Signed-off-by: Matthew Garrett

[PATCH v2 0/5] fat: make persistent inode numbers and stablize for NFS.

2012-09-04 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com This patch-set eliminates the client side ESTALE errors when a FAT partition exported over NFS has its dentries evicted from the cache. One of the reasons for this error is lack of permanent inode numbers on FAT which makes it difficult to construct

[PATCH 04/11] ACPI: Limit access to custom_method

2012-09-04 Thread Matthew Garrett
It must be impossible for even root to get code executed in kernel context under a secure boot environment. custom_method effectively allows arbitrary access to system memory, so it needs to have a capability check here. Signed-off-by: Matthew Garrett m...@redhat.com ---

[PATCH v2 2/5] fat (exportfs): rebuild inode if ilookup() fails

2012-09-04 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com Since the previous patch in this patch-set uses i_pos as the inode number, we can use it to find the directory entry of the inode and subsequently rebuild the inode if the cache lookups fail. Since this involves accessing the FAT media,it is better to

[PATCH v2 3/5] fat (exportfs): rebuild directory-inode if fat_dget()

2012-09-04 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com This patch enables rebuilding of directory inodes which are not present in the cache.This is done by traversing the disk clusters to find the directory entry of the parent directory and using its i_pos to build the inode. Signed-off-by: Namjae Jeon

[PATCH v2 4/5] fat: eliminate orphaned inode number allocation

2012-09-04 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com Maintain a list of inode(i_pos) numbers of orphaned inodes (i.e the inodes that have been unlinked but still having open file descriptors).At file/directory creation time, skip using such i_pos values.Removal of the i_pos from the list is done during

[PATCH v2 5/5] Documentation: update nfs option in filesystem/vfat.txt

2012-09-04 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com update nfs option in filesystem/vfat.txt Signed-off-by: Namjae Jeon namjae.j...@samsung.com Signed-off-by: Ravishankar N ravi...@samsung.com Signed-off-by: Amit Sahrawat a.sahra...@samsung.com --- Documentation/filesystems/vfat.txt |3 ++- 1 file

[PATCH v2 1/5] fat: allocate persistent inode numbers

2012-09-04 Thread Namjae Jeon
From: Namjae Jeon namjae.j...@samsung.com All the files on a FAT partition have an on-disk directory entry. The location of these entries, i_pos, is unique and is constructed by the fat_make_i_pos() function.We can use this as the inode number making it peristent across remounts. Signed-off-by:

[PATCH 02/11] PCI: Lock down BAR access in secure boot environments

2012-09-04 Thread Matthew Garrett
Any hardware that can potentially generate DMA has to be locked down from userspace in order to avoid it being possible for an attacker to cause arbitrary kernel behaviour. Default to paranoid - in future we can potentially relax this for sufficiently IOMMU-isolated devices. Signed-off-by:

Re: [PATCH]Perf top: Add ability to detect new threads dynamically during 'perf top -p 'pid'' is running

2012-09-04 Thread David Ahern
On 8/22/12 8:37 AM, chenggang qin wrote: From: Chenggang Qin chenggang@gmail.com While we use perf top -p 'pid' to monitor the symbols of specified processes, some new threads would be created by the monitored processes during perf top is running. In current version, these new threads

Re: [PATCH] kernel: limit a value of ns_last_pid to (0, max_pid)

2012-09-04 Thread Oleg Nesterov
On 09/04, Andrew Vagin wrote: The kernel doesn't check pid on a negative values, so if you would try to write -2 in /proc/sys/kernel/ns_last_pid, you will get a kernel panic. In this case the next pid is -1, and alloc_pidmap will try to access to a nonexistent pidmap. map =

Re: [RFC] First attempt at kernel secure boot support

2012-09-04 Thread Alan Cox
On Tue, 4 Sep 2012 11:55:06 -0400 Matthew Garrett m...@redhat.com wrote: The UEFI Secure Boot trust model is based on it not being possible for a user to cause a signed OS to boot an unsigned OS Unfortunately you can't fix this at kernel level because an untrusted application can at GUI level

Re: [PATCH] perf: allow user to indicate path to objdump in command line

2012-09-04 Thread David Ahern
On 9/4/12 4:32 AM, Maciek Borzecki wrote: When analyzing perf data from hosts of other architecture than one of the local host it's useful to call objdump that is part of a toolchain for that architecture. Instead of calling regular objdump, call one that user specified in command line. Why

Re: [PATCH 05/11] asus-wmi: Restrict debugfs interface

2012-09-04 Thread Alan Cox
On Tue, 4 Sep 2012 11:55:11 -0400 Matthew Garrett m...@redhat.com wrote: We have no way of validating what all of the Asus WMI methods do on a given machine, and there's a risk that some will allow hardware state to be manipulated in such a way that arbitrary code can be executed in the

Re: [RFC] semantics of singlestepping vs. tracer exiting

2012-09-04 Thread Al Viro
On Tue, Sep 04, 2012 at 05:39:38PM +0200, Oleg Nesterov wrote: BTW, speaking of alpha, what about PTRACE_SINGLESTEP when the task is stopped on syscall entry/exit after previous PTRACE_SYSCALL, BTW? Looks like it will be like PTRACE_CONT until we hit the first signal, at which point

Re: [PATCH 0/4] cbus/retu drivers to mainline

2012-09-04 Thread Andi Shyti
Hi Aaro, On Mon, Sep 03, 2012 at 11:23:21PM +0300, Aaro Koskinen wrote: This patch set introduces drivers for CBUS access and Retu multifunction chip found on Nokia Internet Tablets (770, N800, N810). It would be nice get these patches applied as the functionality of these devices is severely

Re: A workaround for request_firmware() stuck in module_init

2012-09-04 Thread Takashi Iwai
At Tue, 4 Sep 2012 23:52:15 +0800, Ming Lei wrote: On Tue, Sep 4, 2012 at 9:06 PM, Takashi Iwai ti...@suse.de wrote: Hi, as I've got recently a few bug reports regarding the stuck with request_firmware() in module_init of some sound drivers, I started looking at the issue. Strangely,

Re: [PATCH 03/11] x86: Lock down IO port access in secure boot environments

2012-09-04 Thread Alan Cox
On Tue, 4 Sep 2012 11:55:09 -0400 Matthew Garrett m...@redhat.com wrote: IO port access would permit users to gain access to PCI configuration registers, which in turn (on a lot of hardware) give access to MMIO register space. This would potentially permit root to trigger arbitrary DMA, so

Re: [RFC] First attempt at kernel secure boot support

2012-09-04 Thread Matthew Garrett
On Tue, Sep 04, 2012 at 05:08:53PM +0100, Alan Cox wrote: On Tue, 4 Sep 2012 11:55:06 -0400 Matthew Garrett m...@redhat.com wrote: The UEFI Secure Boot trust model is based on it not being possible for a user to cause a signed OS to boot an unsigned OS Unfortunately you can't fix this

Re: [PATCH 05/11] asus-wmi: Restrict debugfs interface

2012-09-04 Thread Matthew Garrett
On Tue, Sep 04, 2012 at 05:12:05PM +0100, Alan Cox wrote: On Tue, 4 Sep 2012 11:55:11 -0400 Matthew Garrett m...@redhat.com wrote: We have no way of validating what all of the Asus WMI methods do on a given machine, and there's a risk that some will allow hardware state to be

[PATCH 2/5] drivers/media/platform/s5p-tv/sdo_drv.c: fix error return code

2012-09-04 Thread Peter Senna Tschudin
From: Peter Senna Tschudin peter.se...@gmail.com Convert a nonnegative error return code to a negative one, as returned elsewhere in the function. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // smpl ( if@p1 (\(ret 0\|ret !=

[PATCH 4/5] drivers/media/platform/vino.c: fix error return code

2012-09-04 Thread Peter Senna Tschudin
From: Peter Senna Tschudin peter.se...@gmail.com Convert a nonnegative error return code to a negative one, as returned elsewhere in the function. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // smpl ( if@p1 (\(ret 0\|ret !=

[PATCH 1/5] drivers/media/platform/davinci/vpbe.c: fix error return code

2012-09-04 Thread Peter Senna Tschudin
From: Peter Senna Tschudin peter.se...@gmail.com Convert a nonnegative error return code to a negative one, as returned elsewhere in the function. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // smpl ( if@p1 (\(ret 0\|ret !=

[PATCH 5/5] drivers/media/platform/omap3isp/isp.c: fix error return code

2012-09-04 Thread Peter Senna Tschudin
From: Peter Senna Tschudin peter.se...@gmail.com Convert a nonnegative error return code to a negative one, as returned elsewhere in the function. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // smpl ( if@p1 (\(ret 0\|ret !=

[PATCH 3/5] drivers/media/platform/s5p-tv/mixer_video.c: fix error return code

2012-09-04 Thread Peter Senna Tschudin
From: Peter Senna Tschudin peter.se...@gmail.com Convert a nonnegative error return code to a negative one, as returned elsewhere in the function. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // smpl ( if@p1 (\(ret 0\|ret !=

Re: [PATCH 03/11] x86: Lock down IO port access in secure boot environments

2012-09-04 Thread Matthew Garrett
On Tue, Sep 04, 2012 at 05:16:03PM +0100, Alan Cox wrote: On Tue, 4 Sep 2012 11:55:09 -0400 Matthew Garrett m...@redhat.com wrote: IO port access would permit users to gain access to PCI configuration registers, which in turn (on a lot of hardware) give access to MMIO register space.

[PATCH 10/11] acpi: Ignore acpi_rsdp kernel parameter in a secure boot environment

2012-09-04 Thread Matthew Garrett
From: Josh Boyer jwbo...@redhat.com This option allows userspace to pass the RSDP address to the kernel. This could potentially be used to circumvent the secure boot trust model. We ignore the setting if we don't have the CAP_SECURE_FIRMWARE capability. Signed-off-by: Josh Boyer

[PATCH 11/11] SELinux: define mapping for new Secure Boot capability

2012-09-04 Thread Matthew Garrett
From: Josh Boyer jwbo...@redhat.com Add the name of the new Secure Boot capability. This allows SELinux policies to properly map CAP_SECURE_FIRMWARE to the appropriate capability class. Signed-off-by: Josh Boyer jwbo...@redhat.com --- security/selinux/include/classmap.h | 4 ++-- 1 file

Re: [PATCH v2 1/5] fat: allocate persistent inode numbers

2012-09-04 Thread Al Viro
On Wed, Sep 05, 2012 at 12:57:44AM +0900, Namjae Jeon wrote: From: Namjae Jeon namjae.j...@samsung.com All the files on a FAT partition have an on-disk directory entry. The location of these entries, i_pos, is unique and is constructed by the fat_make_i_pos() function.We can use this as the

Re: [PATCH 2/2] hwmon/lm70: Adds support for LM71 and LM74

2012-09-04 Thread Guenter Roeck
On Tue, Sep 04, 2012 at 10:41:34AM +0200, Christophe Leroy wrote: Adding support for LM74 and LM71 chips Signed-off-by: Christophe Leroy christophe.le...@c-s.fr Hi Christophe, couple of comments below. diff -u linux-3.5-vanilla/drivers/hwmon/Kconfig linux-3.5/drivers/hwmon/Kconfig ---

Re: [PATCH v2] memcg: first step towards hierarchical controller

2012-09-04 Thread Michal Hocko
On Tue 04-09-12 18:54:08, Glauber Costa wrote: [...] I'd personally believe merging both our patches together would achieve a good result. I am still not sure we want to add a config option for something that is meant to go away. But let's see what others think. So what you

Re: [PATCH 1/2] hwmon/lm70: Allow 4wire SPI bus with LM70

2012-09-04 Thread Guenter Roeck
On Tue, Sep 04, 2012 at 10:40:44AM +0200, Christophe Leroy wrote: Removing the 3wire limitation on LM70 as the component also allows operation on 4wire SPI bus Signed-off-by: Christophe Leroy christophe.le...@c-s.fr Applied to -next. Thanks, Guenter diff -u

[PATCH 0/3] Documentation/rbtree.txt changes

2012-09-04 Thread Ian Abbott
Some rbtree documentation fixes/changes. After applying these changes, the rb_entry() macro only gets a single mention in the document to say it does the same thing as container_of(). 1) Documentation/rbtree.txt: Fix possible typo in example 2) Documentation/rbtree.txt: Remove bogus description

[PATCH 2/3] Documentation/rbtree.txt: Remove bogus description of rb_entry()

2012-09-04 Thread Ian Abbott
In two places, the document mentions that individual members of the containing structure of the struct rb_node may be accessed by a macro call such as rb_entry(node, type, member). This is bogus, so remove the offending text. The example code used to amplify this bogosity, but that was fixed in

[PATCH 1/3] Documentation/rbtree.txt: Fix possible typo in example

2012-09-04 Thread Ian Abbott
The example code for rb_erase() usage has a function call to mysearch(). Presumably this ought to be my_search() to match the example code earlier in the document. Signed-off-by: Ian Abbott abbo...@mev.co.uk --- Documentation/rbtree.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH 3/3] Documentation/rbtree.txt: Mention rb_entry()

2012-09-04 Thread Ian Abbott
Mention that rb_entry() can be used as a synonym for the standard container_of() macro. Signed-off-by: Ian Abbott abbo...@mev.co.uk --- Documentation/rbtree.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/rbtree.txt b/Documentation/rbtree.txt index

Re: [PATCH] tpm: fix tpm_acpi sparse warning on different address spaces

2012-09-04 Thread Kent Yoder
On Sun, Sep 02, 2012 at 09:30:30AM -0700, Dan Carpenter wrote: Sparse finds that bug as well. ;) drivers/acpi/acpica/tbfadt.c:247:15: warning: incorrect type in assignment (different address spaces) drivers/acpi/acpica/tbfadt.c:247:15:expected struct acpi_table_header *table

Re: [PATCH 10/11] acpi: Ignore acpi_rsdp kernel parameter in a secure boot environment

2012-09-04 Thread Shuah Khan
On Tue, Sep 4, 2012 at 9:55 AM, Matthew Garrett m...@redhat.com wrote: From: Josh Boyer jwbo...@redhat.com This option allows userspace to pass the RSDP address to the kernel. This could potentially be used to circumvent the secure boot trust model. We ignore the setting if we don't have the

Re: [PATCH v3 01/17] hashtable: introduce a small and naive hashtable

2012-09-04 Thread Pedro Alves
On 09/04/2012 04:35 PM, Steven Rostedt wrote: On Tue, 2012-08-28 at 19:00 -0400, Mathieu Desnoyers wrote: Looking again at: +#define hash_for_each_size(name, bits, bkt, node, obj, member) \ + for (bkt = 0; bkt HASH_SIZE(bits); bkt++) \

Re: [PATCH v3 01/17] hashtable: introduce a small and naive hashtable

2012-09-04 Thread Mathieu Desnoyers
* Steven Rostedt (rost...@goodmis.org) wrote: On Tue, 2012-08-28 at 19:00 -0400, Mathieu Desnoyers wrote: Looking again at: +#define hash_for_each_size(name, bits, bkt, node, obj, member) \ + for (bkt = 0; bkt HASH_SIZE(bits); bkt++)

Re: [PATCH] ACPI: Enable SCI_EMULATE to manually simulate physical hotplug testing.

2012-09-04 Thread Toshi Kani
On Mon, 2012-09-03 at 14:27 -0700, Yinghai Lu wrote: From: Ashok Raj ashok@intel.com Emulate an ACPI SCI interrupt to emulate a hot-plug event. Useful for testing ACPI based hot-plug on systems that don't have the necessary firmware support. Enable CONFIG_ACPI_SCI_EMULATE on kernel

Re: [PATCH v3 2/2] virtio-ring: Allocate indirect buffers from cache when possible

2012-09-04 Thread Avi Kivity
On 08/31/2012 12:56 PM, Michael S. Tsirkin wrote: On Fri, Aug 31, 2012 at 11:36:07AM +0200, Sasha Levin wrote: On 08/30/2012 03:38 PM, Michael S. Tsirkin wrote: +static unsigned int indirect_alloc_thresh = 16; Why 16? Please make is MAX_SG + 1 this makes some sense. Wouldn't MAX_SG mean

Re: [PATCH v3 2/2] virtio-ring: Allocate indirect buffers from cache when possible

2012-09-04 Thread Avi Kivity
On 09/04/2012 07:34 PM, Avi Kivity wrote: On 08/31/2012 12:56 PM, Michael S. Tsirkin wrote: On Fri, Aug 31, 2012 at 11:36:07AM +0200, Sasha Levin wrote: On 08/30/2012 03:38 PM, Michael S. Tsirkin wrote: +static unsigned int indirect_alloc_thresh = 16; Why 16? Please make is MAX_SG + 1 this

[PATCH] tpm: fix tpm_acpi sparse warning on different address spaces

2012-09-04 Thread Kent Yoder
acpi_os_map_memory expects its return value to be in the __iomem address space. Tag the variable we're using as such and use memcpy_fromio to avoid further sparse warnings. Signed-off-by: Kent Yoder k...@linux.vnet.ibm.com --- drivers/char/tpm/tpm_acpi.c | 4 ++-- 1 file changed, 2

Re: [PATCH 10/11] acpi: Ignore acpi_rsdp kernel parameter in a secure boot environment

2012-09-04 Thread Matthew Garrett
On Tue, Sep 04, 2012 at 10:30:46AM -0600, Shuah Khan wrote: On Tue, Sep 4, 2012 at 9:55 AM, Matthew Garrett m...@redhat.com wrote: From: Josh Boyer jwbo...@redhat.com This option allows userspace to pass the RSDP address to the kernel. This could potentially be used to circumvent the

Re: [RFC] packet: change call of synchronize_net to call_rcu

2012-09-04 Thread David Miller
From: Daniel Borkmann danborkm...@iogearbox.net Date: Tue, 4 Sep 2012 16:53:06 +0200 On Tue, Sep 4, 2012 at 4:16 PM, Iulius Curt iulius.c...@gmail.com wrote: synchronize_net is called every time we close a PF_PACKET socket which is causing performance loss when doing this on many sockets.

Re: [PATCH 0/4 V2] Use get_online_cpus to avoid races involving CPU hotplug

2012-09-04 Thread Silas Boyd-Wickizer
Hi Rusty, I used libsparse and kernel source annotations to check that code uses for_each_online_cpu in contexts with hotplug disabled (e.g. get_online_cpus(), preempt_disable, ..). I compiled with an x86 64-bit allyesconfig, so I missed other architecture specific usages. The checker code isn't

Re: [PATCH v3 01/17] hashtable: introduce a small and naive hashtable

2012-09-04 Thread Pedro Alves
On 09/04/2012 05:30 PM, Pedro Alves wrote: On 09/04/2012 04:35 PM, Steven Rostedt wrote: On Tue, 2012-08-28 at 19:00 -0400, Mathieu Desnoyers wrote: Looking again at: +#define hash_for_each_size(name, bits, bkt, node, obj, member) \ + for (bkt = 0; bkt

Re: [Xen-devel] [PATCH 1/1] XEN: Use correct masking in xen_swiotlb_alloc_coherent.

2012-09-04 Thread David Vrabel
On 04/09/12 16:12, Stefano Panella wrote: On 09/04/2012 03:55 PM, David Vrabel wrote: On 04/09/12 15:37, Konrad Rzeszutek Wilk wrote: On Tue, Sep 04, 2012 at 03:07:42PM +0100, Stefano Panella wrote: So if hwdev-coherent_dma_mask is set to 0x our dma_mask will be u64 set to

Re: [PATCH 10/11] acpi: Ignore acpi_rsdp kernel parameter in a secure boot environment

2012-09-04 Thread Shuah Khan
On Tue, Sep 4, 2012 at 10:38 AM, Matthew Garrett m...@redhat.com wrote: On Tue, Sep 04, 2012 at 10:30:46AM -0600, Shuah Khan wrote: On Tue, Sep 4, 2012 at 9:55 AM, Matthew Garrett m...@redhat.com wrote: From: Josh Boyer jwbo...@redhat.com This option allows userspace to pass the RSDP

Re: [Xen-devel] [PATCH 1/1] XEN: Use correct masking in xen_swiotlb_alloc_coherent.

2012-09-04 Thread Konrad Rzeszutek Wilk
On Tue, Sep 04, 2012 at 05:44:46PM +0100, David Vrabel wrote: On 04/09/12 16:12, Stefano Panella wrote: On 09/04/2012 03:55 PM, David Vrabel wrote: On 04/09/12 15:37, Konrad Rzeszutek Wilk wrote: On Tue, Sep 04, 2012 at 03:07:42PM +0100, Stefano Panella wrote: So if

Re: [RFC] semantics of singlestepping vs. tracer exiting

2012-09-04 Thread Oleg Nesterov
On 09/04, Al Viro wrote: On Tue, Sep 04, 2012 at 05:39:38PM +0200, Oleg Nesterov wrote: BTW, speaking of alpha, what about PTRACE_SINGLESTEP when the task is stopped on syscall entry/exit after previous PTRACE_SYSCALL, BTW? Looks like it will be like PTRACE_CONT until we hit

Re: [RFC 1/2] virtio_console: Add support for DMA memory allocation

2012-09-04 Thread Sjur Brændeland
Hi Michael, Exactly. Though if we just fail load it will be much less code. Generally, using a feature bit for this is a bit of a problem though: normally driver is expected to be able to simply ignore a feature bit. In this case driver is required to do something so a feature bit is not a

<    1   2   3   4   5   6   7   8   9   10   >