[PATCH 0/7] staging: comedi: update the contec_pci_dio driver

2012-08-15 Thread H Hartley Sweeten
Remove the need for the boardinfo, this driver only supports one board type. Convert the driver to use the comedi PCI auto config (attach_pci). Cleanup the digital output insn_bits function. H Hartley Sweeten (7): staging: comedi: contec_pci_dio: remove thisboard macro staging: comedi:

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

2012-08-15 Thread Minchan Kim
On Thu, Aug 16, 2012 at 08:33:23AM +0900, Minchan Kim wrote: > Hi Rik, > > On Wed, Aug 15, 2012 at 02:58:01PM -0400, Rik van Riel wrote: > > 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

3.5.1: WARNING: at include/linux/iocontext.h:140 copy_process.part.56+0x1041/0x1190()

2012-08-15 Thread Justin Piszcz
Hi, Kernel: 3.5.1 x86_64 Just FYI, this may have been due to an NFS issue (remote host turned off during dump possibly) but reporting just incase: [41793.725267] [ cut here ] [41793.725273] WARNING: at include/linux/iocontext.h:140 copy_process.part.56+0x1041/0x1190()

Re: [PATCH v3] mm: Restructure kmem_cache_create() to move debug cache integrity checks into a new function

2012-08-15 Thread Andrew Morton
On Sun, 12 Aug 2012 10:40:18 -0600 Shuah Khan wrote: > kmem_cache_create() does cache integrity checks when CONFIG_DEBUG_VM > is defined. These checks interspersed with the regular code path has > lead to compile time warnings when compiled without CONFIG_DEBUG_VM > defined. Restructuring the

Re: O_DIRECT to md raid 6 is slow

2012-08-15 Thread Stan Hoeppner
On 8/15/2012 5:10 PM, Andy Lutomirski wrote: > On Wed, Aug 15, 2012 at 3:00 PM, Stan Hoeppner wrote: >> On 8/15/2012 12:57 PM, Andy Lutomirski wrote: >>> 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

[PATCH v2 1/4] [RFC] clk: new locking scheme for reentrancy

2012-08-15 Thread Mike Turquette
The global prepare_lock mutex prevents concurrent operations in the clk api. This incurs a performance penalty when unrelated clock subtrees are contending for the lock. Additionally there are use cases which benefit from reentrancy into the clk api. A simple example is reparenting a mux clock

[PATCH v2 2/4] [RFC] clk: notifier handler for dynamic voltage scaling

2012-08-15 Thread Mike Turquette
Dynamic voltage and frequency scaling (dvfs) is a common power saving technique in many of today's modern processors. This patch introduces a common clk rate-change notifier handler which scales voltage appropriately whenever clk_set_rate is called on an affected clock. There are three

[PATCH v2 4/4] [RFC] omap3+: clk: dpll: call clk_prepare directly

2012-08-15 Thread Mike Turquette
In the commit titled "clk: new locking scheme for reentrancy" it became possible for nested calls to the clock api. The OMAP3+ DPLL .set_rate callback has been using the __clk_prepare and __clk_unprepare calls as a way around this limitation, but these calls are no longer needed with the

[PATCH v2 0/4] [RFC] reentrancy in the common clk framework

2012-08-15 Thread Mike Turquette
The second version of the reentrancy/dvfs rfc differs from the original[1] in that the former used per-clk mutexes and this version uses a global lock to protect access to a per-clk enum. The enum can be in one of two states, LOCKED or UNLOCKED. The second patch in the series introduces a new

[PATCH v2 3/4] [RFC] cpufreq: omap: scale regulator from clk notifier

2012-08-15 Thread Mike Turquette
This patch moves direct control of the MPU voltage regulator out of the cpufreq driver .target callback and instead uses the common dvfs clk rate-change notifier infrastructure. Ideally it would be nice to reduce the .target callback for omap's cpufreq driver to a simple call to clk_set_rate.

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

2012-08-15 Thread Minchan Kim
Hi Rik, On Wed, Aug 15, 2012 at 02:58:01PM -0400, Rik van Riel wrote: > 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 >

Re: [PATCH 09/19] Input: MT - Handle frame synchronization in core

2012-08-15 Thread Ping Cheng
On Sun, Aug 12, 2012 at 2:42 PM, Henrik Rydberg wrote: > Collect common frame synchronization tasks in a new function, > input_mt_sync_frame(). Depending on the flags set, it drops > unseen contacts and performs pointer emulation. > > Signed-off-by: Henrik Rydberg I went through the patchset

[ANNOUNCE] Git v1.7.12-rc3

2012-08-15 Thread Junio C Hamano
A release candidate Git v1.7.12-rc3 is now available for testing at the usual places. The release tarballs are found at: http://code.google.com/p/git-core/downloads/list and their SHA-1 checksums are: 8719af22c3479b3e21845a6fba0b9c56087a0280 git-1.7.12.rc3.tar.gz

[ANNOUNCE] Git v1.7.11.5

2012-08-15 Thread Junio C Hamano
The latest maintenance release Git v1.7.11.5 is now available at the usual places. The release tarballs are found at: http://code.google.com/p/git-core/downloads/list and their SHA-1 checksums are: 44013d9418ef23dd8bb67e80b27c9327356bfae8 git-1.7.11.5.tar.gz

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

2012-08-15 Thread Minchan Kim
Hi Michal, On Tue, Aug 14, 2012 at 04:19:55PM +0200, Michal Nazarewicz wrote: > Minchan Kim writes: > > 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

Re: [PATCH] [media] ddbridge: fix error handling in module_init_ddbridge()

2012-08-15 Thread Mauro Carvalho Chehab
Em 15-08-2012 18:00, Lars Hanisch escreveu: > Hi, > > Am 15.08.2012 22:42, schrieb Alexey Khoroshilov: >> If pci_register_driver() failed, resources allocated in >> ddb_class_create() are leaked. The patch fixes it. >> >> Found by Linux Driver Verification project (linuxtesting.org). >> >>

Re: [Linaro-mm-sig] [PATCH 4/4] dma-buf-mgr: multiple dma-buf synchronization (v3)

2012-08-15 Thread Daniel Vetter
Hi Maarten, Ok, here comes the promised review (finally!), but it's rather a high-level thingy. I've mostly thought about how we could create a neat api with the following points. For a bit of clarity, I've grouped the different considerations a bit. Easy Integration Where I

Re: O_DIRECT to md raid 6 is slow

2012-08-15 Thread Miquel van Smoorenburg
In article you write: >It's time to blow away the array and start over. You're already >misaligned, and a 512KB chunk is insanely unsuitable for parity RAID, >but for a handful of niche all streaming workloads with little/no >rewrite, such as video surveillance or DVR workloads. > >Yes, 512KB is

Re: [PATCH] A possible deadlock with stacked devices (was: [PATCH v4 08/12] block: Introduce new bio_split())

2012-08-15 Thread Kent Overstreet
> Both md and dm use __GFP_WAIT allocations from mempools in > generic_make_request. > > I think you found an interesting bug here. Suppose that we have three > stacked devices: d1 depends on d2 and d2 depends on d3. > > Now, a bio b1 comes to d1. d1 splits it to two bios: b2.1 and b2.2 and >

Re: [patch v2] hugetlb: correct page offset index for sharing pmd

2012-08-15 Thread Andrew Morton
On Mon, 6 Aug 2012 21:37:45 +0800 Hillf Danton wrote: > On Mon, Aug 6, 2012 at 9:24 PM, Michal Hocko wrote: > > On Sat 04-08-12 14:08:31, Hillf Danton wrote: > >> The computation of page offset index is incorrect to be used in scanning > >> prio tree, as huge page offset is required, and is

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

2012-08-15 Thread Rakib Mullick
On Wed, Aug 15, 2012 at 8:55 PM, Peter Zijlstra wrote: > On Wed, 2012-08-15 at 20:24 +0600, Rakib Mullick wrote: >> How do you plan to test this power saving scheme? Using powertop? Or, >> is there any other tools? > > We should start out simple enough that we can validate it by looking at > task

Re: [PATCH] SGI XPC fails to load when cpu 0 is out of IRQ resources.

2012-08-15 Thread Andrew Morton
On Fri, 3 Aug 2012 14:46:29 -0500 Robin Holt wrote: > On many of our larger systems, CPU 0 has had all of its IRQ resources > consumed before XPC loads. Worse cases on machines with multiple > 10 GigE cards and multiple IB cards have depleted the entire first > socket of IRQs. That patch makes

Re: [PATCH] [RFC] cross-arch: don't corrupt personality flags upon exec()

2012-08-15 Thread Andrew Morton
On Mon, 13 Aug 2012 15:19:40 +0200 (CEST) Jiri Kosina wrote: > On Fri, 3 Aug 2012, Jiri Kosina wrote: > > > Historically, the top three bytes of personality have been used for things > > such as ADDR_NO_RANDOMIZE, which made sense only for specific > > architectures. > > > > We now, however,

Re: [PATCH 1/7] drm/i915: Allow VGA on CRTC 2

2012-08-15 Thread Daniel Vetter
On Mon, Aug 13, 2012 at 09:34:45PM -0700, Keith Packard wrote: > This is left over from the old PLL sharing code and isn't useful now > that PLLs are shared when possible. > > Signed-off-by: Keith Packard Queued for -next, thanks for the patch. I'll hold off a bit on the others until it's a bit

Re: [PATCH 0/3]: ezusb cleanup, FX2 support, firmware downloading support

2012-08-15 Thread Greg KH
On Fri, Aug 03, 2012 at 05:06:27PM +0200, René Bürgel wrote: > Hello, > > this is a patches-series for controllers using the ezusb-functions. > > ezusb: remove dependency to usb_serial interface > euzsb: add support for Cypress FX2LP > ezusb: add functions for firmware download Nice series,

Re: [PATCH v5 05/12] block: Kill bi_destructor

2012-08-15 Thread Kent Overstreet
On Wed, Aug 08, 2012 at 11:34:09PM -0700, Tejun Heo wrote: > Hello, > > On Wed, Aug 8, 2012 at 11:12 PM, Kent Overstreet > wrote: > > But if it's a pointer to heap allocated memory, but the bio was embedded > > in another struct? I've seen a fair number of instances of that (md, off > > the top

[PATCH] tpm: Do not dereference NULL pointer if acpi_os_map_memory() fails.

2012-08-15 Thread Jesper Juhl
In drivers/char/tpm/tpm_acpi.c::read_log() we call acpi_os_map_memory(). That call may fail for a number of reasons (invalid address, out of memory etc). If the call fails it returns NULL and we just pass that to memcpy() unconditionally, which will go bad when it tries to dereference the pointer.

Re: [patch net-next v2 01/15] net: introduce upper device lists

2012-08-15 Thread David Miller
From: Jiri Pirko Date: Wed, 15 Aug 2012 09:46:12 +0200 > You are probably right. I'm not sure how to handle this correctly > though. Adding some hard limit number might not be correct. I would just use a hard limit of something like 8 for now, and if we need to expand this limit we can consider

Re: [patch net-next v2 01/15] net: introduce upper device lists

2012-08-15 Thread David Miller
From: Ben Hutchings Date: Tue, 14 Aug 2012 23:33:44 +0100 > I think we will also need to limit the depth of the device stack so we > don't run out of stack space here. __netif_receive() implements a kind > of tail recursion whenever a packet is passed up, but > __netdev_has_upper_dev() can't

Re: O_DIRECT to md raid 6 is slow

2012-08-15 Thread Andy Lutomirski
On Wed, Aug 15, 2012 at 3:00 PM, Stan Hoeppner wrote: > On 8/15/2012 12:57 PM, Andy Lutomirski wrote: >> 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 >>> >>> [...] >>>

Re: [PATCH] bridge: fix rcu dereference outside of rcu_read_lock

2012-08-15 Thread David Miller
From: Stephen Hemminger Date: Tue, 14 Aug 2012 08:19:33 -0700 > Alternative solution for problem found by Linux Driver Verification > project (linuxtesting.org). > > As it noted in the comment before the br_handle_frame_finish > function, this function should be called under rcu_read_lock. > >

Re: [patch 4/8] fs, exportfs: Add export_encode_inode_fh helper

2012-08-15 Thread J. Bruce Fields
On Thu, Aug 16, 2012 at 01:02:37AM +0400, Cyrill Gorcunov wrote: > On Wed, Aug 15, 2012 at 04:45:46PM -0400, J. Bruce Fields wrote: > > On Wed, Aug 15, 2012 at 01:21:20PM +0400, Cyrill Gorcunov wrote: > > > To provide fsnotify object inodes being watched without > > > binding to alphabetical path

Re: [PATCH] [ALPHA] Redefine ATOMIC_INIT and ATOMIC64_INIT to drop the casts

2012-08-15 Thread Andrew Morton
On Sun, 12 Aug 2012 10:14:05 +0800 Fengguang Wu wrote: > From: Mel Gorman > > The following build error occurred during an alpha build: > > net/core/sock.c:274:36: error: initializer element is not constant > > Dave Anglin says: > > Here is the line in sock.i: > > > > struct static_key

Re: [PATCH] tpm: Do not dereference NULL pointer if acpi_os_map_memory() fails.

2012-08-15 Thread Jesper Juhl
On Wed, 15 Aug 2012, Kent Yoder wrote: > Hi Jesper, > > > > Unfortunately we just get NULL back, so we can't really tell the user > > > exactely what went wrong, but we can at least avoid crashing and > > > return an error (-EIO seemed more generic and more suitable here than > > > -ENOMEM or

Re: O_DIRECT to md raid 6 is slow

2012-08-15 Thread Stan Hoeppner
On 8/15/2012 12:57 PM, Andy Lutomirski wrote: > 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

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

2012-08-15 Thread Benjamin Herrenschmidt
On Wed, 2012-08-15 at 18:59 +0200, Oleg Nesterov wrote: > 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...

[PATCH 02/14] atm: fix info leak via getsockname()

2012-08-15 Thread Mathias Krause
The ATM code fails to initialize the two padding bytes of struct sockaddr_atmpvc inserted for alignment. Add an explicit memset(0) before filling the structure to avoid the info leak. Signed-off-by: Mathias Krause --- net/atm/pvc.c |1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 01/14] atm: fix info leak in getsockopt(SO_ATMPVC)

2012-08-15 Thread Mathias Krause
The ATM code fails to initialize the two padding bytes of struct sockaddr_atmpvc inserted for alignment. Add an explicit memset(0) before filling the structure to avoid the info leak. Signed-off-by: Mathias Krause --- net/atm/common.c |1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 00/14] net: info leaks and other bugs

2012-08-15 Thread Mathias Krause
Hi David, this series fixes quite a bunch of info leaks under net/. There is also one NULL pointer deref fix ("dccp: check ccid before..") that could be abused for privilege escalation. The info leak fixes might be material for stable, too. But I leave the decision up to you. On request, test

[PATCH 05/14] Bluetooth: RFCOMM - Fix info leak in getsockopt(BT_SECURITY)

2012-08-15 Thread Mathias Krause
The RFCOMM code fails to initialize the key_size member of struct bt_security before copying it to userland -- that for leaking one byte kernel stack. Initialize key_size with 0 to avoid the info leak. Signed-off-by: Mathias Krause Cc: Marcel Holtmann Cc: Gustavo Padovan Cc: Johan Hedberg ---

[PATCH 07/14] Bluetooth: RFCOMM - Fix info leak via getsockname()

2012-08-15 Thread Mathias Krause
The RFCOMM code fails to initialize the trailing padding byte of struct sockaddr_rc added for alignment. It that for leaks one byte kernel stack via the getsockname() syscall. Add an explicit memset(0) before filling the structure to avoid the info leak. Signed-off-by: Mathias Krause Cc: Marcel

[PATCH 08/14] Bluetooth: L2CAP - Fix info leak via getsockname()

2012-08-15 Thread Mathias Krause
The L2CAP code fails to initialize the l2_bdaddr_type member of struct sockaddr_l2 and the padding byte added for alignment. It that for leaks two bytes kernel stack via the getsockname() syscall. Add an explicit memset(0) before filling the structure to avoid the info leak. Signed-off-by:

[PATCH 04/14] Bluetooth: HCI - Fix info leak via getsockname()

2012-08-15 Thread Mathias Krause
The HCI code fails to initialize the hci_channel member of struct sockaddr_hci and that for leaks two bytes kernel stack via the getsockname() syscall. Initialize hci_channel with 0 to avoid the info leak. Signed-off-by: Mathias Krause Cc: Marcel Holtmann Cc: Gustavo Padovan Cc: Johan Hedberg

[PATCH 03/14] Bluetooth: HCI - Fix info leak in getsockopt(HCI_FILTER)

2012-08-15 Thread Mathias Krause
The HCI code fails to initialize the two padding bytes of struct hci_ufilter before copying it to userland -- that for leaking two bytes kernel stack. Add an explicit memset(0) before filling the structure to avoid the info leak. Signed-off-by: Mathias Krause Cc: Marcel Holtmann Cc: Gustavo

[PATCH 09/14] l2tp: fix info leak via getsockname()

2012-08-15 Thread Mathias Krause
The L2TP code for IPv6 fails to initialize the l2tp_unused member of struct sockaddr_l2tpip6 and that for leaks two bytes kernel stack via the getsockname() syscall. Initialize l2tp_unused with 0 to avoid the info leak. Signed-off-by: Mathias Krause Cc: James Chapman --- net/l2tp/l2tp_ip6.c |

Re: [patch 3/8] procfs: Add ability to plug in auxiliary fdinfo providers

2012-08-15 Thread Cyrill Gorcunov
On Wed, Aug 15, 2012 at 10:29:27PM +0100, Al Viro wrote: > > This, BTW, is too convoluted for its own good. What you need is > something like > struct whatever { > struct seq_file *m; > struct file *f; > int flags; > }; > with single allocation of that sucker in your ->open().

[PATCH 11/14] dccp: check ccid before dereferencing

2012-08-15 Thread Mathias Krause
ccid_hc_rx_getsockopt() and ccid_hc_tx_getsockopt() might be called with a NULL ccid pointer leading to a NULL pointer dereference. This could lead to a privilege escalation if the attacker is able to map page 0 and prepare it with a fake ccid_ops pointer. Signed-off-by: Mathias Krause Cc:

[PATCH 13/14] ipvs: fix info leak in getsockopt(IP_VS_SO_GET_TIMEOUT)

2012-08-15 Thread Mathias Krause
If at least one of CONFIG_IP_VS_PROTO_TCP or CONFIG_IP_VS_PROTO_UDP is not set, __ip_vs_get_timeouts() does not fully initialize the structure that gets copied to userland and that for leaks up to 12 bytes of kernel stack. Add an explicit memset(0) before passing the structure to

[PATCH 06/14] Bluetooth: RFCOMM - Fix info leak in ioctl(RFCOMMGETDEVLIST)

2012-08-15 Thread Mathias Krause
The RFCOMM code fails to initialize the two padding bytes of struct rfcomm_dev_list_req inserted for alignment before copying it to userland. Additionally there are two padding bytes in each instance of struct rfcomm_dev_info. The ioctl() that for disclosures two bytes plus dev_num times two bytes

[PATCH 14/14] net: fix info leak in compat dev_ifconf()

2012-08-15 Thread Mathias Krause
The implementation of dev_ifconf() for the compat ioctl interface uses an intermediate ifc structure allocated in userland for the duration of the syscall. Though, it fails to initialize the padding bytes inserted for alignment and that for leaks four bytes of kernel stack. Add an explicit

[PATCH 12/14] dccp: fix info leak via getsockopt(DCCP_SOCKOPT_CCID_TX_INFO)

2012-08-15 Thread Mathias Krause
The CCID3 code fails to initialize the trailing padding bytes of struct tfrc_tx_info added for alignment on 64 bit architectures. It that for potentially leaks four bytes kernel stack via the getsockopt() syscall. Add an explicit memset(0) before filling the structure to avoid the info leak.

[PATCH 10/14] llc: fix info leak via getsockname()

2012-08-15 Thread Mathias Krause
The LLC code wrongly returns 0, i.e. "success", when the socket is zapped. Together with the uninitialized uaddrlen pointer argument from sys_getsockname this leads to an arbitrary memory leak of up to 128 bytes kernel stack via the getsockname() syscall. Return an error instead when the socket

Re: [PATCH 0/7] HID: picoLCD updates

2012-08-15 Thread Jiri Kosina
On Wed, 15 Aug 2012, Bruno Prémont wrote: > > I see. Alan Stern has fixed a huge pile of things in this area in 3.6-rc1. > > I have expected all of those to actually be on theoretical problems not > > ever having happened in the wild, but it might be that you are actually > > chasing on of

Re: [PATCH V5 13/18] drm: Define SAREA_MAX for Loongson (PageSize = 16KB).

2012-08-15 Thread Ralf Baechle
On Sat, Aug 11, 2012 at 05:32:18PM +0800, Huacai Chen wrote: > Subject: [PATCH V5 13/18] drm: Define SAREA_MAX for Loongson (PageSize = > 16KB). But your code doesn't define it just for Loongsson as the log message claims but rather for all MIPS. > diff --git a/include/drm/drm_sarea.h

Re: [patch 3/8] procfs: Add ability to plug in auxiliary fdinfo providers

2012-08-15 Thread Cyrill Gorcunov
On Wed, Aug 15, 2012 at 10:16:28PM +0100, Al Viro wrote: > On Wed, Aug 15, 2012 at 01:21:19PM +0400, Cyrill Gorcunov wrote: > > -static int fdinfo_open_helper(struct inode *inode, int *f_flags, struct > > path *path) > > +static int fdinfo_open_helper(struct inode *inode, int *f_flags, struct >

Re: [patch 3/8] procfs: Add ability to plug in auxiliary fdinfo providers

2012-08-15 Thread Al Viro
On Wed, Aug 15, 2012 at 01:21:19PM +0400, Cyrill Gorcunov wrote: > struct proc_fdinfo { > - loff_t f_pos; > - int f_flags; > + struct file *f_file; > + int f_flags; > }; > + struct proc_fdinfo *fdinfo; > + struct seq_file *m; > + int ret; > >

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

2012-08-15 Thread Eric W. Biederman
"H. Peter Anvin" writes: > On 08/15/2012 12:49 PM, Eric W. Biederman wrote: >> >> There is also the trick of getting a shorter directory name using >> /proc/self/fd if you are threaded and can't change the directory. >> >> The obvious choices at this point are >> - Teach bind and connect and

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

2012-08-15 Thread Steven Rostedt
On Wed, 2012-08-15 at 16:37 -0300, Ezequiel Garcia wrote: > > I forgot to add this work is part of a project funded by CE workgroup. > You can find more details here: > > http://elinux.org/Kernel_dynamic_memory_allocation_tracking_and_reduction > Thanks, I'll try to get some time tomorrow to

Re: [patch 3/8] procfs: Add ability to plug in auxiliary fdinfo providers

2012-08-15 Thread Al Viro
On Wed, Aug 15, 2012 at 01:21:19PM +0400, Cyrill Gorcunov wrote: > -static int fdinfo_open_helper(struct inode *inode, int *f_flags, struct path > *path) > +static int fdinfo_open_helper(struct inode *inode, int *f_flags, struct file > **f_file, struct path *path) Bloody bad taste, that...

Re: [RFC v2 4/7] modsig: add integrity_module_check hook

2012-08-15 Thread Kasatkin, Dmitry
On Wed, Aug 15, 2012 at 11:16 PM, Serge Hallyn wrote: > Quoting Dmitry Kasatkin (dmitry.kasat...@intel.com): >> IMA measures/appraises modules when modprobe or insmod opens and read them. >> Unfortunately, there are no guarantees between what is read by userspace and >> what is passed to the

Re: [RFC v2 1/7] integrity: added digest calculation function

2012-08-15 Thread Kasatkin, Dmitry
On Wed, Aug 15, 2012 at 11:11 PM, Serge Hallyn wrote: > Quoting Dmitry Kasatkin (dmitry.kasat...@intel.com): >> There are several functions, that need to calculate digest. >> This patch adds common function for use by integrity subsystem. >> >> Signed-off-by: Dmitry Kasatkin >> --- >>

Re: [PATCH] [media] ddbridge: fix error handling in module_init_ddbridge()

2012-08-15 Thread Lars Hanisch
Hi, Am 15.08.2012 22:42, schrieb Alexey Khoroshilov: > If pci_register_driver() failed, resources allocated in > ddb_class_create() are leaked. The patch fixes it. > > Found by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Alexey Khoroshilov > --- >

Re: regression with poll(2)?

2012-08-15 Thread Sage Weil
On Wed, 15 Aug 2012, Atchley, Scott wrote: > On Aug 15, 2012, at 3:46 PM, Sage Weil wrote: > > > 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

Re: [patch 4/8] fs, exportfs: Add export_encode_inode_fh helper

2012-08-15 Thread Cyrill Gorcunov
On Wed, Aug 15, 2012 at 04:45:46PM -0400, J. Bruce Fields wrote: > On Wed, Aug 15, 2012 at 01:21:20PM +0400, Cyrill Gorcunov wrote: > > To provide fsnotify object inodes being watched without > > binding to alphabetical path we need to encode them with > > exportfs help. This patch adds a helper

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

2012-08-15 Thread H. Peter Anvin
On 08/15/2012 12:49 PM, Eric W. Biederman wrote: > > There is also the trick of getting a shorter directory name using > /proc/self/fd if you are threaded and can't change the directory. > > The obvious choices at this point are > - Teach bind and connect and af_unix sockets to take longer

Re: regression with poll(2)?

2012-08-15 Thread Atchley, Scott
On Aug 15, 2012, at 3:46 PM, Sage Weil wrote: > 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. > >

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

2012-08-15 Thread Michel Lespinasse
On Wed, Aug 15, 2012 at 9:36 AM, Catalin Marinas wrote: > Couldn't test it because the patch got messed up somewhere on the > email path (tabs replaced with spaces). Is there a Git tree I can grab > it from (or you could just send it to me separately as attachment)? Sorry about that. The

Re: [v2.6.34-stable 035/165] md: Fix handling for devices from 2TB to 4TB in 0.90 metadata.

2012-08-15 Thread Paul Gortmaker
On 12-08-15 04:46 PM, NeilBrown wrote: > On Wed, 15 Aug 2012 15:46:19 -0400 Paul Gortmaker > wrote: > >> From: NeilBrown >> >>--- >> This is a commit scheduled for the next v2.6.34 longterm release. >>

Re: [v2.6.34-stable 035/165] md: Fix handling for devices from 2TB to 4TB in 0.90 metadata.

2012-08-15 Thread NeilBrown
On Wed, 15 Aug 2012 15:46:19 -0400 Paul Gortmaker wrote: > 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

Re: [PATCH v5 02/12] dm: Use bioset's front_pad for dm_rq_clone_bio_info

2012-08-15 Thread Kent Overstreet
On Tue, Aug 14, 2012 at 02:33:20PM +0900, Jun'ichi Nomura wrote: > On 08/07/12 07:08, Kent Overstreet wrote: > > struct dm_rq_clone_bio_info { > > struct bio *orig; > > struct dm_rq_target_io *tio; > > + struct bio clone; > > }; > ... > > - pools->bs = bioset_create(pool_size, 0); >

Re: [patch 4/8] fs, exportfs: Add export_encode_inode_fh helper

2012-08-15 Thread J. Bruce Fields
On Wed, Aug 15, 2012 at 01:21:20PM +0400, Cyrill Gorcunov wrote: > To provide fsnotify object inodes being watched without > binding to alphabetical path we need to encode them with > exportfs help. This patch adds a helper which operates > with plain inodes directly. I don't get it--this seems

Re: [vmw_vmci 11/11] Apply the header code to make VMCI build

2012-08-15 Thread Jan Engelhardt
On Thursday 2012-08-02 22:22, Sam Ravnborg wrote: >> On Friday 2012-07-27 12:34, Sam Ravnborg wrote: >> >> +#ifndef _VMCI_COMMONINT_H_ >> >> +#define _VMCI_COMMONINT_H_ >> >> + >> >> +#include >> >> +#include >> > >> >Use inverse chrismas tree here. >> >Longer include lines first, and soret

[PATCH] [media] ddbridge: fix error handling in module_init_ddbridge()

2012-08-15 Thread Alexey Khoroshilov
If pci_register_driver() failed, resources allocated in ddb_class_create() are leaked. The patch fixes it. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/media/dvb/ddbridge/ddbridge-core.c |6 +- 1 file changed, 5

[v2.6.34-stable 000/165] v2.6.34.13 longterm review

2012-08-15 Thread Paul Gortmaker
This is the start of the longterm review cycle for the v2.6.34.13 release. There are 165 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let us know. If anyone is a maintainer of the proper subsystem, and wants to

[v2.6.34-stable 003/165] fs: assign sb->s_bdi to default_backing_dev_info if the bdi is going away

2012-08-15 Thread Paul Gortmaker
From: Jens Axboe --- 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 008/165] regset: Prevent null pointer reference on readonly regsets

2012-08-15 Thread Paul Gortmaker
From: "H. Peter Anvin" --- 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 010/165] cifs: fix possible memory corruption in CIFSFindNext

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 005/165] rose: Add length checks to CALL_REQUEST parsing

2012-08-15 Thread Paul Gortmaker
From: Ben Hutchings --- 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 014/165] KVM: Remove ability to assign a device without iommu support

2012-08-15 Thread Paul Gortmaker
From: Alex Williamson --- 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 013/165] xfs: Fix possible memory corruption in xfs_readlink

2012-08-15 Thread Paul Gortmaker
From: Carlos Maiolino --- 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 015/165] KVM: Device assignment permission checks

2012-08-15 Thread Paul Gortmaker
From: Alex Williamson --- 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 007/165] perf: overflow/perf_count_sw_cpu_clock crashes recent kernels

2012-08-15 Thread Paul Gortmaker
From: Peter Zijlstra --- 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 009/165] ext4: fix undefined behavior in ext4_fill_flex_info()

2012-08-15 Thread Paul Gortmaker
From: Xi Wang --- 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 004/165] vm: fix vm_pgoff wrap in stack expansion

2012-08-15 Thread Paul Gortmaker
From: Linus Torvalds --- 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 006/165] drm: integer overflow in drm_mode_dirtyfb_ioctl()

2012-08-15 Thread Paul Gortmaker
From: Xi Wang --- 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.

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

2012-08-15 Thread H. Peter Anvin
On 08/15/2012 12:30 PM, Matt Mackall wrote: > 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

[v2.6.34-stable 019/165] KEYS: Fix a NULL pointer deref in the user-defined key type

2012-08-15 Thread Paul Gortmaker
From: David Howells --- 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 017/165] security: fix compile error in commoncap.c

2012-08-15 Thread Paul Gortmaker
From: Jonghwan Choi --- 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 018/165] fcaps: clear the same personality flags as suid when fcaps are used

2012-08-15 Thread Paul Gortmaker
From: Eric Paris --- 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.

[PATCH] rapidio/tsi721: fix unused variable compiler warning

2012-08-15 Thread Alexandre Bounine
Fix unused variable compiler warning when built with CONFIG_RAPIDIO_DEBUG option off. This patch is applicable to kernel versions starting from v3.2 Signed-off-by: Alexandre Bounine Cc: Matt Porter --- drivers/rapidio/devices/tsi721.c |5 - 1 files changed, 4 insertions(+), 1

[v2.6.34-stable 025/165] sparc: Allow handling signals when stack is corrupted.

2012-08-15 Thread Paul Gortmaker
From: "David S. Miller" --- 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 020/165] locks: fix checking of fcntl_setlease argument

2012-08-15 Thread Paul Gortmaker
From: "J. Bruce Fields" --- 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 021/165] USB: ftdi_sio: add Calao reference board support

2012-08-15 Thread Paul Gortmaker
From: Jean-Christophe PLAGNIOL-VILLARD --- 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 012/165] hfsplus: Fix potential buffer overflows

2012-08-15 Thread Paul Gortmaker
From: Greg Kroah-Hartman --- 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 023/165] rt2x00: do not drop usb dev reference counter on suspend

2012-08-15 Thread Paul Gortmaker
From: Stanislaw Gruszka --- 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 002/165] nl80211: fix overflow in ssid_len

2012-08-15 Thread Paul Gortmaker
From: Luciano Coelho --- 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 027/165] ipv6: Add GSO support on forwarding path

2012-08-15 Thread Paul Gortmaker
From: Herbert Xu --- 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 022/165] USB: EHCI: Do not rely on PORT_SUSPEND to stop USB resuming in ehci_bus_resume().

2012-08-15 Thread Paul Gortmaker
From: Wang Zhi --- 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 033/165] xen/smp: Warn user why they keel over - nosmp or noapic and what to use instead.

2012-08-15 Thread Paul Gortmaker
From: Konrad Rzeszutek Wilk --- 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 029/165] xen-blkfront: fix data size for xenbus_gather in blkfront_connect

2012-08-15 Thread Paul Gortmaker
From: Marek Marczykowski --- 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   9   10   >