Re: [PATCH] genetlink: Fix uninitialized variable in genl_validate_assign_mc_groups()

2013-11-28 Thread David Miller
From: Geert Uytterhoeven Date: Sat, 23 Nov 2013 13:01:50 +0100 > net/netlink/genetlink.c: In function ‘genl_validate_assign_mc_groups’: > net/netlink/genetlink.c:217: warning: ‘err’ may be used uninitialized in this > function > > Commit 2a94fe48f32ccf7321450a2cc07f2b724a444e5b ("genetlink:

Re: [PATCH] inet: further fixes of possible seqlock deadlocks

2013-11-28 Thread David Miller
From: Hannes Frederic Sowa Date: Thu, 28 Nov 2013 23:19:26 +0100 > I don't really understand why we distinguish between _BH and plain ICMP stat > calls then. > > The non-_BH versions deactivate interrupts when updating the per-cpu counter. This level of distinction exists back in the day where

phpBB new version

2013-11-28 Thread phpbbaid
Hello, phpBB 3.0.12 is now available , please be sure to backup your forum before staring in the update process . we are happy to help you in updating your forum safely, please reply to this email if you are interested in our paid services . thank you -- To unsubscribe from this list: send

[git pull] drm qxl leak fix

2013-11-28 Thread Dave Airlie
As usual 5 mins after I send a trivial pull fix I find a real bug! This fixes a memory leak and I'd like to get it into stable queue asap. Dave. The following changes since commit eec99016e38b740662509f097effb90abc7a1376: drm/nouveau/hwmon: fix compilation without CONFIG_HWMON (2013-11-28

Re: [PATCH v5 2/7] arm64: introduce interfaces to hotpatch kernel and module code

2013-11-28 Thread AKASHI Takahiro
On 11/04/2013 12:55 AM, Jiang Liu wrote: On 10/30/2013 08:12 AM, Will Deacon wrote: Hi Jinag Liu, +static __always_inline u32 aarch64_insn_read(void *addr) +{ + return le32_to_cpu(*(u32 *)addr); +} +static __always_inline void aarch64_insn_write(void *addr, u32 insn) +{ + *(u32

Re: [PATCHv6 1/4] pwm: Add Freescale FTM PWM driver support

2013-11-28 Thread Thierry Reding
On Thu, Nov 28, 2013 at 10:25:11PM +0100, Thierry Reding wrote: > On Tue, Nov 12, 2013 at 09:36:55AM +0800, Xiubo Li wrote: [...] > > +static int fsl_pwm_parse_clk_ps(struct fsl_pwm_chip *fpc) > > +{ > > + int ret; > > + struct of_phandle_args clkspec; > > + struct device_node *np =

Re: [PATCH] inet: further fixes of possible seqlock deadlocks

2013-11-28 Thread Hannes Frederic Sowa
On Thu, Nov 28, 2013 at 10:27:00PM +0100, Hannes Frederic Sowa wrote: > > > @@ -1524,8 +1524,8 @@ int ip6_push_pending_frames(struct sock *sk) > > > if (proto == IPPROTO_ICMPV6) { > > > struct inet6_dev *idev = ip6_dst_idev(skb_dst(skb)); > > > > > > -

RE: 3.12.0: sda2: WRITE SAME failed. Manually zeroing. with 3w-xxxx driver

2013-11-28 Thread Justin Piszcz
-Original Message- From: Martin K. Petersen [mailto:martin.peter...@oracle.com] Sent: Thursday, November 28, 2013 8:13 AM [ .. ] Martin> http://marc.info/?l=linux-scsi=138252394614920=2 Justin> Awesome, thank you! This patch is over a month old, do you know Justin> if is currently

Re: [PATCH 00/13] mfd: menelaus: a few cleanups

2013-11-28 Thread Aaro Koskinen
Hi, On Wed, Nov 27, 2013 at 09:00:34PM -0600, Felipe Balbi wrote: > Awesome, should I add your tested-by ? I also added a few extra patches > on top which I'll send soon. Yes, that's fine. Once you have the final set ready, I can also easily test it once more just in case. A. -- To unsubscribe

Re: [PATCHv6 4/4] Documentation: Add device tree bindings for Freescale FTM PWM.

2013-11-28 Thread Thierry Reding
On Tue, Nov 12, 2013 at 09:36:58AM +0800, Xiubo Li wrote: > This adds the Document for Freescale FTM PWM driver under s/Document/binding documentation/? > Documentation/devicetree/bindings/pwm/. > > Signed-off-by: Xiubo Li > Reviewed-by: Sascha Hauer > Acked-by: Kumar Gala > --- >

Re: [PATCH] inet: further fixes of possible seqlock deadlocks

2013-11-28 Thread Hannes Frederic Sowa
On Thu, Nov 28, 2013 at 01:01:42PM -0800, Eric Dumazet wrote: > On Thu, 2013-11-28 at 20:22 +0100, Hannes Frederic Sowa wrote: > > This fixes more incorrect uses of *_STATS_BH in process context. > > > > Cc: Eric Dumazet > > Signed-off-by: Hannes Frederic Sowa > > --- > > net/ipv4/udp.c

Re: [PATCHv6 2/4] ARM: dts: Add Freescale FTM PWM node for VF610.

2013-11-28 Thread Thierry Reding
On Tue, Nov 12, 2013 at 09:36:56AM +0800, Xiubo Li wrote: > This adds devicetree node for VF610, and there are 8 channels supported > by default. By default? From looking at the driver code it seemed that the device always supports 8 channels. Thierry pgpzZoETovamA.pgp Description: PGP

Re: [PATCHv6 1/4] pwm: Add Freescale FTM PWM driver support

2013-11-28 Thread Thierry Reding
On Tue, Nov 12, 2013 at 09:36:55AM +0800, Xiubo Li wrote: > The FTM PWM device can be found on Vybrid VF610 Tower and Layerscape LS-1 > SoCs. > > Signed-off-by: Xiubo Li > Signed-off-by: Alison Wang > Signed-off-by: Jingchang Lu > Reviewed-by: Sascha Hauer > --- > drivers/pwm/Kconfig

Re: [PATCH 0/5] PM: Enable option of re-use runtime PM callbacks at system suspend

2013-11-28 Thread Rafael J. Wysocki
On Thursday, November 28, 2013 10:58:48 AM Ulf Hansson wrote: > On 27 November 2013 21:42, Rafael J. Wysocki wrote: > > On Wednesday, November 27, 2013 04:34:55 PM Ulf Hansson wrote: > >> To put devices into low power state during system suspend, it may be > >> convenient > >> for runtime PM

Re: [PATCH] inet: further fixes of possible seqlock deadlocks

2013-11-28 Thread Eric Dumazet
On Thu, 2013-11-28 at 20:22 +0100, Hannes Frederic Sowa wrote: > This fixes more incorrect uses of *_STATS_BH in process context. > > Cc: Eric Dumazet > Signed-off-by: Hannes Frederic Sowa > --- > net/ipv4/udp.c| 8 > net/ipv6/ip6_output.c | 8 > net/ipv6/ping.c

Re: [PATCH V3] cpufreq: Make sure CPU is running on a freq from freq-table

2013-11-28 Thread Rafael J. Wysocki
On Thursday, November 28, 2013 08:14:11 PM Viresh Kumar wrote: > Sometimes boot loaders set CPU frequency to a value outside of frequency table > present with cpufreq core. In such cases CPU might be unstable if it has to > run > on that frequency for long duration of time and so its better to

Re: [PATCH] ARM : unwinder : Prevent data abort due to stack overflow in unwind_exec_insn Signed-off-by: Anurag Aggarwal

2013-11-28 Thread Dave Martin
On Thu, Nov 28, 2013 at 03:57:19PM +0530, Anurag Aggarwal wrote: > While executing some unwind instructions stack overflow can cause a data abort > when area beyond stack is not mapped to physical memory. > > To prevent the data abort check whether it is possible to execute > these instructions

Re: [tip:sched/urgent] sched: Check sched_domain before computing group power

2013-11-28 Thread Yinghai Lu
On Thu, Nov 28, 2013 at 1:38 AM, Peter Zijlstra wrote: > On Wed, Nov 27, 2013 at 11:07:04PM -0800, Yinghai Lu wrote: >> On Wed, Nov 27, 2013 at 7:02 PM, David Rientjes wrote: >> > On Thu, 21 Nov 2013, Yinghai Lu wrote: >> > >> >> original one in linus's tree: >> >> >> >> [8.952728] NMI

Re: [PATCH V2] cpufreq: Make sure CPU is running on a freq from freq-table

2013-11-28 Thread Rafael J. Wysocki
On Thursday, November 28, 2013 07:44:02 PM Viresh Kumar wrote: > On 28 November 2013 19:42, Rafael J. Wysocki wrote: > > On Thursday, November 28, 2013 07:11:17 PM Viresh Kumar wrote: > >> Okay.. So wouldn't it be better that we add this special flag only when we > >> face a real problem?

Re: [PATCH V4] cpufreq: suspend governors on system suspend/hibernate

2013-11-28 Thread Rafael J. Wysocki
On Thursday, November 28, 2013 07:49:29 PM Viresh Kumar wrote: > On 28 November 2013 19:53, Rafael J. Wysocki wrote: > > I don't think that the Nishanth's issue is fixed by this particular version > > of > > the patch, so I modified the changelog and removed a the comment above > >

[PATCH 04/34] sysfs, kernfs: prepare write path for kernfs

2013-11-28 Thread Tejun Heo
We're in the process of separating out core sysfs functionality into kernfs which will deal with sysfs_dirents directly. This patch rearranges write path so that the kernfs and sysfs parts are separate. kernfs_file_write() handles all boilerplate work including buffer management and locking and

[PATCH 07/34] sysfs, kernfs: move sysfs_open_file to include/linux/kernfs.h

2013-11-28 Thread Tejun Heo
sysfs_open_file will be used as the primary handle for kernfs methods. Move its definition from fs/sysfs/file.c to include/linux/kernfs.h and mark the public and private fields. This is pure relocation. Signed-off-by: Tejun Heo --- fs/sysfs/file.c| 11 ---

[PATCH 01/34] sysfs, kernfs: replace sysfs_dirent->s_dir.kobj and ->s_attr.[bin_]attr with ->priv

2013-11-28 Thread Tejun Heo
A directory sysfs_dirent points to the associated kobj. A regular or bin file points to the associated [bin_]attribute. This patch replaces sysfs_dirent->s_dir.kobj and ->s_attr.[bin_]attr with void * ->priv. This is to prepare for kernfs interface so that sysfs can specify the private data in

[PATCH 06/34] sysfs, kernfs: prepare open, release, poll paths for kernfs

2013-11-28 Thread Tejun Heo
We're in the process of separating out core sysfs functionality into kernfs which will deal with sysfs_dirents directly. This patch prepares the rest - open, release and poll. There isn't much to do. Just renaming is enough. As sysfs_file_operations and sysfs_bin_operations are identical now,

[PATCH 03/34] sysfs, kernfs: prepare read path for kernfs

2013-11-28 Thread Tejun Heo
We're in the process of separating out core sysfs functionality into kernfs which will deal with sysfs_dirents directly. This patch rearranges read path so that the kernfs and sysfs parts are separate. * Regular file read path is refactored such that kernfs_seq_start/next/stop/show() handle

[PATCH 09/34] sysfs, kernfs: add sysfs_dirent->s_attr.size

2013-11-28 Thread Tejun Heo
sysfs sets the size of regular files unconditionally at PAGE_SIZE and takes the size of bin files from bin_attribute. The latter is a pretty bad interface which forces bin_attribute users to create a separate copy of bin_attribute for each instance of the file - e.g. pci resource files. Add

[PATCH 12/34] sysfs, kernfs: remove sysfs_add_one()

2013-11-28 Thread Tejun Heo
sysfs_add_one() is a wrapper around __sysfs_add_one() which prints out duplicate name warning if __sysfs_add_one() fails with -EEXIST. The previous kernfs conversions moved all dup warnings to sysfs interface functions and sysfs_add_one() doesn't have any user left. Remove sysfs_add_one() and

Re: [PATCH 34/34] perf tools unwinding: Use the per-feature check flags

2013-11-28 Thread Jean Pihet
On 28 November 2013 14:46, Arnaldo Carvalho de Melo wrote: > Em Thu, Nov 28, 2013 at 09:56:19AM -0300, Arnaldo Carvalho de Melo escreveu: >> Em Thu, Nov 28, 2013 at 10:58:01AM +0100, Jiri Olsa escreveu: >> > On Wed, Nov 27, 2013 at 11:43:23PM +0100, Jiri Olsa wrote: >> > > On Wed, Nov 27, 2013 at

[PATCH 02/34] sysfs, kernfs: introduce kernfs_create_dir[_ns]()

2013-11-28 Thread Tejun Heo
Introduce kernfs interface to manipulate a directory which takes and returns sysfs_dirents. create_dir() is renamed to kernfs_create_dir_ns() and its argumantes and return value are updated. create_dir() usages are replaced with kernfs_create_dir_ns() and sysfs_create_subdir() usages are

[PATCH 14/34] sysfs, kernfs: introduce kernfs_notify()

2013-11-28 Thread Tejun Heo
Introduce kernfs interface to wake up poll(2) which takes and returns sysfs_dirents. sysfs_notify_dirent() is renamed to kernfs_notify() and sysfs_notify() is updated so that it doesn't directly grab sysfs_mutex but acquires the target sysfs_dirents using sysfs_get_dirent(). sysfs_notify_dirent()

[PATCH 15/34] sysfs, kernfs: reorganize SYSFS_* constants

2013-11-28 Thread Tejun Heo
We want to add one more SYSFS_FLAG_* but we can't use the next higher bit, 0x1, as the flag field is 16bits wide. The flags are currently arranged weirdly - 8 bits are set aside for the type flags when there are only three three used, the first flag starts at 0x1000 instead of 0x0100 and flag

[PATCH 13/34] sysfs, kernfs: add kernfs_ops->seq_{start|next|stop}()

2013-11-28 Thread Tejun Heo
kernfs_ops currently only supports single_open() behavior which is pretty restrictive. Add optional callbacks ->seq_{start|next|stop}() which, when implemented, are invoked for seq_file traversal. This allows full seq_file functionality for kernfs users. This currently doesn't have any user and

[PATCH 05/34] sysfs, kernfs: prepare mmap path for kernfs

2013-11-28 Thread Tejun Heo
We're in the process of separating out core sysfs functionality into kernfs which will deal with sysfs_dirents directly. This patch rearranges mmap path so that the kernfs and sysfs parts are separate. sysfs_kf_bin_mmap() which handles the interaction with bin_attribute mmap method is factored

[PATCH 21/34] sysfs, kernfs: move file core code to fs/kernfs/file.c

2013-11-28 Thread Tejun Heo
Move core file code to fs/kernfs/file.c. fs/sysfs/file.c now contains sysfs kernfs_ops callbacks, sysfs wrappers around kernfs interfaces, and sysfs_schedule_callback(). The respective declarations in fs/sysfs/sysfs.h are moved to fs/kernfs/kernfs-internal.h. This is pure relocation. v2:

[PATCH 08/34] sysfs, kernfs: introduce kernfs_ops

2013-11-28 Thread Tejun Heo
We're in the process of separating out core sysfs functionality into kernfs which will deal with sysfs_dirents directly. This patch introduces kernfs_ops which hosts methods kernfs users implement and updates fs/sysfs/file.c such that sysfs_kf_*() functions populate kernfs_ops and kernfs_file_*()

[PATCH 16/34] sysfs, kernfs: revamp sysfs_dirent active_ref lockdep annotation

2013-11-28 Thread Tejun Heo
Currently, sysfs_dirent active_ref lockdep annotation uses attribute->[s]key as the lockdep key, which forces kernfs_create_file_ns() to assume that sysfs_dirent->priv is pointing to a struct attribute which may not be true for non-sysfs users. This patch restructures the lockdep annotation such

[PATCH 19/34] sysfs, kernfs: move inode code to fs/kernfs/inode.c

2013-11-28 Thread Tejun Heo
There's nothing sysfs-specific in fs/sysfs/inode.c. Move everything in it to fs/kernfs/inode.c. The respective declarations in fs/sysfs/sysfs.h are moved to fs/kernfs/kernfs-internal.h. This is pure relocation. Signed-off-by: Tejun Heo --- fs/kernfs/inode.c | 327

[PATCH 22/34] sysfs, kernfs: move symlink core code to fs/kernfs/symlink.c

2013-11-28 Thread Tejun Heo
Move core symlink code to fs/kernfs/symlink.c. fs/sysfs/symlink.c now only contains sysfs wrappers around kernfs interfaces. The respective declarations in fs/sysfs/sysfs.h are moved to fs/kernfs/kernfs-internal.h. This is pure relocation. Signed-off-by: Tejun Heo ---

[PATCH 20/34] sysfs, kernfs: move dir core code to fs/kernfs/dir.c

2013-11-28 Thread Tejun Heo
Move core dir code to fs/kernfs/dir.c. fs/sysfs/dir.c now only contains sysfs_warn_dup() and sysfs wrappers around kernfs interfaces. The respective declarations in fs/sysfs/sysfs.h are moved to fs/kernfs/kernfs-internal.h. This is pure relocation. v2: sysfs_symlink_target_lock was mistakenly

[PATCH 10/34] sysfs, kernfs: remove SYSFS_KOBJ_BIN_ATTR

2013-11-28 Thread Tejun Heo
After kernfs_ops and sysfs_dirent->s_attr.size addition, the distinction between SYSFS_KOBJ_BIN_ATTR and SYSFS_KOBJ_ATTR is only necessary while creating files to decide which kernfs_ops to use. Afterwards, they behave exactly the same. This patch removes SYSFS_KOBJ_BIN_ATTR along with

[PATCH 24/34] sysfs, kernfs: make sysfs_super_info->ns const

2013-11-28 Thread Tejun Heo
Add const qualifier to sysfs_super_info->ns so that it's consistent with other namespace tag usages in sysfs. Because kobject doesn't use const qualifier for namespace tags, this ends up requiring an explicit cast to drop const qualifier in free_sysfs_super_info(). Signed-off-by: Tejun Heo ---

[PATCH 27/34] sysfs, kernfs: implement kernfs_create/destroy_root()

2013-11-28 Thread Tejun Heo
There currently is single kernfs hierarchy in the whole system which is used for sysfs. kernfs needs to support multiple hierarchies to allow other users. This patch introduces struct kernfs_root which serves as the root of each kernfs hierarchy and implements kernfs_create/destroy_root(). *

[PATCH 23/34] sysfs, kernfs: drop unused params from sysfs_fill_super()

2013-11-28 Thread Tejun Heo
sysfs_fill_super() takes three params - @sb, @data and @silent - but uses only @sb. Drop the latter two. Signed-off-by: Tejun Heo --- fs/sysfs/mount.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/sysfs/mount.c b/fs/sysfs/mount.c index 852d115..21070c2 100644 ---

[PATCH 29/34] sysfs, kernfs: make super_blocks bind to different kernfs_roots

2013-11-28 Thread Tejun Heo
kernfs is being updated to allow multiple sysfs_dirent hierarchies so that it can also be used by other users. Currently, sysfs super_blocks are always attached to one kernfs_root - sysfs_root - and distinguished only by their namespace tags. This patch adds sysfs_super_info->root and update

[PATCH 28/34] sysfs, kernfs: make inode number ida per kernfs_root

2013-11-28 Thread Tejun Heo
kernfs is being updated to allow multiple sysfs_dirent hierarchies so that it can also be used by other users. Currently, inode number is allocated using a global ida, sysfs_ino_ida; however, inos for different hierarchies should be handled separately. This patch makes ino allocation per

[PATCH 32/34] sysfs, kernfs: make sysfs_dirent definition public

2013-11-28 Thread Tejun Heo
sysfs_dirent includes some information which should be available to kernfs users - the type, flags, name and parent pointer. This patch moves sysfs_dirent definition from kernfs/kernfs-internal.h to include/linux/kernfs.h so that kernfs users can access them. The type part of flags is exported

[PATCH 30/34] sysfs, kernfs: prepare mount path for kernfs

2013-11-28 Thread Tejun Heo
We're in the process of separating out core sysfs functionality into kernfs which will deal with sysfs_dirents directly. This patch rearranges mount path so that the kernfs and sysfs parts are separate. * As sysfs_super_info won't be visible outside kernfs proper, kernfs_super_ns() is added to

[PATCH 26/34] sysfs, kernfs: introduce sysfs_root_sd

2013-11-28 Thread Tejun Heo
Currently, it's assumed that there's a single kernfs hierarchy in the system anchored at sysfs_root which is defined as a global struct. To allow other users of kernfs, this will be made dynamic. Introduce a new global variable sysfs_root_sd which points to _root and convert all _root users.

[PATCH 33/34] sysfs, kernfs: implement kernfs_ns_enabled()

2013-11-28 Thread Tejun Heo
fs/sysfs/symlink.c::sysfs_delete_link() tests @sd->s_flags for SYSFS_FLAG_NS. Let's add kernfs_ns_enabled() so that sysfs doesn't have to test sysfs_dirent flag directly. This makes things tidier for kernfs proper too. This is purely cosmetic. Signed-off-by: Tejun Heo --- fs/kernfs/dir.c

[PATCH 25/34] sysfs, kernfs: no need to kern_mount() sysfs from sysfs_init()

2013-11-28 Thread Tejun Heo
It has been very long since sysfs depended on vfs to keep track of internal states and whether sysfs is mounted or not doesn't make any difference to sysfs's internal operation. In addition to init and filesystem type registration, sysfs_init() invokes kern_mount() to create in-kernel mount of

[PATCH 34/34] sysfs, kernfs: remove cross inclusions of internal headers

2013-11-28 Thread Tejun Heo
fs/kernfs/kernfs-internal.h needed to include fs/sysfs/sysfs.h because part of kernfs core implementation was living in sysfs. fs/sysfs/sysfs.h needed to include fs/kernfs/kernfs-internal.h because include/linux/kernfs.h didn't expose enough interface. The separation is complete and neither is

[PATCH 18/34] sysfs, kernfs: move internal decls to fs/kernfs/kernfs-internal.h

2013-11-28 Thread Tejun Heo
Move data structure, constant and basic accessor declarations from fs/sysfs/sysfs.h to fs/kernfs/kernfs-internal.h. The two files currently include each other. Once kernfs / sysfs separation is complete, the cross inclusions will be removed. Inclusion protectors are added to fs/sysfs/sysfs.h to

[PATCH 11/34] sysfs, kernfs: introduce kernfs_create_file[_ns]()

2013-11-28 Thread Tejun Heo
Introduce kernfs interface to create a file which takes and returns sysfs_dirents. The actual file creation part is separated out from sysfs_add_file_mode_ns() into kernfs_create_file_ns(). The former now only decides the kernfs_ops to use and the file's size and invokes the latter. This patch

[PATCH 17/34] sysfs, kernfs: introduce kernfs[_find_and]_get() and kernfs_put()

2013-11-28 Thread Tejun Heo
Introduce kernfs interface for finding, getting and putting sysfs_dirents. * sysfs_find_dirent() is renamed to kernfs_find_ns() and lockdep assertion for sysfs_mutex is added. * sysfs_get_dirent_ns() is renamed to kernfs_find_and_get(). * Macro inline dancing around __sysfs_get/put() are

[PATCH 31/34] sysfs, kernfs: move mount core code to fs/kernfs/mount.c

2013-11-28 Thread Tejun Heo
Move core mount code to fs/kernfs/mount.c. The respective declarations in fs/sysfs/sysfs.h are moved to fs/kernfs/kernfs-internal.h. This is pure relocation. Signed-off-by: Tejun Heo --- fs/kernfs/kernfs-internal.h | 22 +++ fs/kernfs/mount.c | 156

[PATCHSET PARTIAL REPOST driver-core-next] sysfs: separate out kernfs, take #3

2013-11-28 Thread Tejun Heo
Hello, Greg. For some reason, quilt can rebase the patches automatically here. I'm reposting the rest of the series (patches 07-41) here just in case. git branches for both pending patchsets are updated accordingly. git://git.kernel.org/pub/scm/linux/kernel/git/tj/misc.git

Re: [PATCH v2] serial: 8250_dw: Improve unwritable LCR workaround

2013-11-28 Thread Ezequiel Garcia
On Thu, Nov 28, 2013 at 04:47:20PM -0300, Ezequiel Garcia wrote: > Hi Thomas, Tim: > > On Thu, Nov 28, 2013 at 09:30:34AM +0100, Thomas Petazzoni wrote: > > Dear Ezequiel Garcia, > > > > On Wed, 27 Nov 2013 15:54:49 -0300, Ezequiel Garcia wrote: > > > > > > An external device may be keeping the

Re: [PATCH v11 7/7] ARM: tegra: support Trusted Foundations by default

2013-11-28 Thread Dave Martin
On Thu, Nov 28, 2013 at 04:58:33PM +, Stephen Warren wrote: > On 11/27/2013 11:02 PM, Alexandre Courbot wrote: > > On Wed, Nov 27, 2013 at 1:47 AM, Dave Martin wrote: > >> On Tue, Nov 26, 2013 at 10:35:58AM +0900, Alexandre Courbot wrote: > >>> On Tue, Nov 26, 2013 at 9:06 AM, Olof Johansson

Re: [PATCH v2] serial: 8250_dw: Improve unwritable LCR workaround

2013-11-28 Thread Ezequiel Garcia
Hi Thomas, Tim: On Thu, Nov 28, 2013 at 09:30:34AM +0100, Thomas Petazzoni wrote: > Dear Ezequiel Garcia, > > On Wed, 27 Nov 2013 15:54:49 -0300, Ezequiel Garcia wrote: > > > > An external device may be keeping the UART busy and preventing LCR > > > from being written. > > > > > > What device

[PATCH 00/32 v3] perf/core improvements and fixes

2013-11-28 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Hi Ingo, Ingo, this is the 3rd try, this time removing the last two patches in the series, from Jean, till we get the problems I found and the one reported by Jiri sorted out. Jiri told me the problem exhibits when one doesn't have libunwind devel

[PATCH v2] wlags49_h2: Fix overflow in wireless_set_essid()

2013-11-28 Thread Maurizio Lombardi
This patch prevents the wireless_set_essid() function from overwriting the last byte of the NetworkName buffer which must be NULL. Signed-off-by: Maurizio Lombardi --- drivers/staging/wlags49_h2/wl_wext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] wlags49_h2: Fix overflow in wireless_set_essid()

2013-11-28 Thread Maurizio Lombardi
This patch prevents the wireless_set_essid() function from overwriting the last byte of the NetworkName buffer which must be NULL. --- drivers/staging/wlags49_h2/wl_wext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wlags49_h2/wl_wext.c

[PATCH 0/1] usermodehelper: kill ____call_usermodehelper()->set_cpus_allowed_ptr()

2013-11-28 Thread Oleg Nesterov
On 11/28, Peter Zijlstra wrote: > > On Thu, Nov 28, 2013 at 04:00:55PM +0100, Oleg Nesterov wrote: > > And btw. Note call_usermodehelper()->set_cpus_allowed_ptr(cpu_all_mask). > > > > Even if we change the affinity of the "khelper" worker threads this > > won't restrict the user-space helpers.

[PATCH 1/1] usermodehelper: kill ____call_usermodehelper()->set_cpus_allowed_ptr()

2013-11-28 Thread Oleg Nesterov
call_usermodehelper() does set_cpus_allowed_ptr(cpu_all_mask), this (and the comment) is misleading. We no longer have keventd_wq, and kmod.c switched to khelper_wq a long ago. And more importantly, "unlike our parent" is no longer true too, this thread was created by WQ_UNBOUND worker thread

[PATCH] inet: further fixes of possible seqlock deadlocks

2013-11-28 Thread Hannes Frederic Sowa
This fixes more incorrect uses of *_STATS_BH in process context. Cc: Eric Dumazet Signed-off-by: Hannes Frederic Sowa --- net/ipv4/udp.c| 8 net/ipv6/ip6_output.c | 8 net/ipv6/ping.c | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git

Re: page fault deadlock

2013-11-28 Thread Greg KH
On Thu, Nov 28, 2013 at 03:28:39PM +0800, Xiaotian Feng wrote: > On Thu, Nov 28, 2013 at 12:11 PM, Greg KH wrote: > > On Thu, Nov 28, 2013 at 11:25:32AM +0800, Xiaotian Feng wrote: > >> Hi, > >> > >> When I upgrade to latest kernel, I found my system hang there. It > >> is reproducible on my

Re: [PATCH v2 4/9] clocksource/cadence_ttc: Use enable/disable_irq

2013-11-28 Thread Thomas Gleixner
On Thu, 28 Nov 2013, Sören Brinkmann wrote: > On Thu, Nov 28, 2013 at 03:18:50PM +0100, Thomas Gleixner wrote: > > Now the problem with this device is that it is not a per cpu > > device. It's a global device, so this update can conflict with a > > parallel access on the other CPU. Now the

Re: [PATCH] mxc_nand: remove redundant stat counting

2013-11-28 Thread Greg KH
On Thu, Nov 28, 2013 at 04:04:40PM +0100, Michael Grzeschik wrote: > The stats count variable will already be incremented > in the above framework-layer just after this callback. > > Signed-off-by: Michael Grzeschik > --- > drivers/mtd/nand/mxc_nand.c | 1 - > 1 file changed, 1 deletion(-)

[PATCH] ipv6: ip6_pkt_prohibit(_out) should not depend on CONFIG_IPV6_MULTIPLE_TABLES

2013-11-28 Thread Hannes Frederic Sowa
Since patch "IPv6: Fixed support for blackhole and prohibit routes" we need ip6_pkt_prohibit(_out) available without CONFIG_IPV6_MULTIPLE_TABLES defined. Cc: Kamala R Signed-off-by: Hannes Frederic Sowa --- net/ipv6/route.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff

[PATCH] loop: fix comment typo in loop_config_discard

2013-11-28 Thread Olaf Hering
Discard requests are ignored if the encryption is enabled for the given loop device. Update comment to match the code, and similar comments elsewhere in the file. Signed-off-by: Olaf Hering --- drivers/block/loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 7/8] sched, net: Fixup busy_loop_us_clock()

2013-11-28 Thread Peter Zijlstra
On Thu, Nov 28, 2013 at 06:40:01PM +0100, Peter Zijlstra wrote: > That said; let me see if I can come up with a few patches to optimize > the entire thing; that'd be something we all benefit from. OK, so the below compiles, I currently haven't got time to see if it runs or not. I've got it as

Re: [Patch v2] IPv6: Fixed support for blackhole and prohibit routes

2013-11-28 Thread Hannes Frederic Sowa
On Fri, Nov 22, 2013 at 01:51:28PM +0530, Kamala R wrote: > From: Kamala R > > The behaviour of blackhole and prohibit routes has been corrected by setting > the input and output function pointers of the dst variable appropriately. For > blackhole routes, they are set to dst_discard and to

Re: [Patch v3] IPv6: Fixed support for blackhole and prohibit routes

2013-11-28 Thread Hannes Frederic Sowa
On Thu, Nov 28, 2013 at 02:42:03PM +0530, Kamala R wrote: > From: Kamala R > > The behaviour of blackhole and prohibit routes has been corrected by setting > the input and output pointers of the dst variable appropriately. For > blackhole routes, they are set to dst_discard and to

Re: [PATCH 3/5][v2] phylib: Add generic 10G driver

2013-11-28 Thread Florian Fainelli
Le jeudi 28 novembre 2013, 09:59:53 Shaohui Xie a écrit : > Thank you for reviewing the patches! > I thought I was suggested to use phy_drivers_register() and > phy_drivers_unregister(), so I changed to use an array, seems I got you > wrong. :)If using two separate genphy_driver instances as you

Re: [PATCH v3 01/15] uprobes: allow ignoring of probe hits

2013-11-28 Thread Oleg Nesterov
On 11/26, David Long wrote: > > From: "David A. Long" > > Allow arches to decided to ignore a probe hit. ARM will use this to > only call handlers if the conditions to execute a conditionally executed > instruction are satisfied. > > Upleveled for v3.12-rc5. > > Signed-off-by: David A. Long

Re: [PATCH] Fix race between oom kill and task exit

2013-11-28 Thread Oleg Nesterov
On 11/28, Michal Hocko wrote: > > They are both trying to solve the same issue. Neither of them is > optimal unfortunately. yes, but this one doesn't look right. > Oleg said he would look into this and I have seen > some patches but didn't geto check them. Only preparations so far. Oleg. --

Re: [PATCH] Fix race between oom kill and task exit

2013-11-28 Thread Oleg Nesterov
On 11/28, Ma, Xindong wrote: > > --- a/mm/oom_kill.c > +++ b/mm/oom_kill.c > @@ -412,16 +412,6 @@ void oom_kill_process(struct task_struct *p, gfp_t > gfp_mask, int order, > static DEFINE_RATELIMIT_STATE(oom_rs, DEFAULT_RATELIMIT_INTERVAL, >

[PATCH] OF: base: match each node compatible against all given matches first

2013-11-28 Thread Sebastian Hesselbarth
Currently, of_match_node compares each given match against all node's compatible strings with of_device_is_compatible. To achieve multiple compatible strings per node with ordering from specific to generic, this requires given matches to be ordered from specific to generic. For most of the

Re: [PATCH v2 4/9] clocksource/cadence_ttc: Use enable/disable_irq

2013-11-28 Thread Sören Brinkmann
Hi Thomas, On Thu, Nov 28, 2013 at 03:18:50PM +0100, Thomas Gleixner wrote: > On Thu, 28 Nov 2013, Daniel Lezcano wrote: > > > On 11/27/2013 02:04 AM, Soren Brinkmann wrote: > > > To ensure that the timer interrupt is properly enabled/disabled across > > > the whole CPU cluster use

Re: [PATCH] lib/vsprintf.c: add %paD format specifier for dma_addr_t types

2013-11-28 Thread Joe Perches
On Thu, 2013-11-28 at 13:28 +0200, user.email wrote: > From: Andy Shevchenko > > Add the %paD format specifier for printing a dma_addr_t type, since the > DMA address size on some platforms can vary based on build options, > regardless of the native integer type. OK, but I prefer this one

vboxhost fails to build on 3.13

2013-11-28 Thread Souvik Banerjee
When I run `dkms install vboxhost/4.3.2` it fails to build with the following error: - DKMS make.log for vboxhost-4.3.2 for kernel 3.13.0-1git-00096-g711197a-dirty (x86_64) Thu Nov 28 11:54:10 CST 2013 make:

Re: [PATCH]: exec: avoid propagating PF_NO_SETAFFINITY into userspace child

2013-11-28 Thread Oleg Nesterov
On 11/28, Peter Zijlstra wrote: > > So in specific, you say that piping a core file into a usermode helper > is currently busted in pid-namespaces and that fixing that would indeed > introduce such pid-namespace awareness to the usermode-helper stuff? Perhaps yes. People want to run the core

Re: [PATCH]mm/vmalloc: interchage the implementation of vmalloc_to_{pfn,page}

2013-11-28 Thread Jianyu Zhan
Hi, Vladimir, On Fri, Nov 29, 2013 at 1:41 AM, Vladimir Murzin wrote: > > Any numbers for efficiency? > For the original implementation, vmalloc_to_pfn() wraps the vmalloc_to_page(), which means pfn --> struct page -->pfn |

Re: [PATCH v2] inet: fix possible seqlock deadlocks

2013-11-28 Thread Hannes Frederic Sowa
On Thu, Nov 28, 2013 at 09:51:22AM -0800, Eric Dumazet wrote: > From: Eric Dumazet > > In commit c9e9042994d3 ("ipv4: fix possible seqlock deadlock") I left > another places where IP_INC_STATS_BH() were improperly used. > > udp_sendmsg(), ping_v4_sendmsg() and tcp_v4_connect() are called from >

Re: [PATCH] Fix race between oom kill and task exit

2013-11-28 Thread Vladimir Murzin
On Thu, Nov 28, 2013 at 01:00:18PM +0100, Michal Hocko wrote: > [CCing Oleg - the thread started here: > https://lkml.org/lkml/2013/11/28/2] > > On Thu 28-11-13 09:41:40, William Dauchy wrote: > [...] > > However, I'm now wondering if this present patch is a replacement of > > Sameer Nanda's

[PATCH v2] inet: fix possible seqlock deadlocks

2013-11-28 Thread Eric Dumazet
From: Eric Dumazet In commit c9e9042994d3 ("ipv4: fix possible seqlock deadlock") I left another places where IP_INC_STATS_BH() were improperly used. udp_sendmsg(), ping_v4_sendmsg() and tcp_v4_connect() are called from process context, not from softirq context. This was detected by lockdep

Re: tty/serial eating \n regression in 3.13-rc1

2013-11-28 Thread Jason Gunthorpe
On Thu, Nov 28, 2013 at 10:26:57AM -0500, Peter Hurley wrote: > Please test out the attached patch and let me know if that solves > the login whitespace problem. Yes, it certainly does: Tested-by: Jason Gunthorpe My bisection search showed this should go into 3.12 stable and 3.13.. > Also,

Re: [PATCH net-next RFC 0/5] xen-netback: TX grant mapping instead of copy

2013-11-28 Thread Ian Campbell
On Thu, 2013-11-28 at 17:37 +, Zoltan Kiss wrote: > On 07/11/13 10:52, Ian Campbell wrote: > > On Fri, 2013-11-01 at 19:00 +, Zoltan Kiss wrote: > >> On 01/11/13 10:50, Ian Campbell wrote: > >>> Does this always avoid copying when bridging/openvswitching/forwarding > >>> (e.g. masquerading

Re: [PATCH]mm/vmalloc: interchage the implementation of vmalloc_to_{pfn,page}

2013-11-28 Thread Vladimir Murzin
On Fri, Nov 29, 2013 at 12:29:13AM +0800, Jianyu Zhan wrote: > Currently we are implementing vmalloc_to_pfn() as a wrapper of > vmalloc_to_page(), which is implemented as follow: > > 1. walks the page talbes to generates the corresponding pfn, > 2. then wraps the pfn to struct page, > 3.

Re: [PATCH 7/8] sched, net: Fixup busy_loop_us_clock()

2013-11-28 Thread Peter Zijlstra
On Thu, Nov 28, 2013 at 06:49:00PM +0200, Eliezer Tamir wrote: > I have tested this patch and I see a performance regression of about > 1.5%. Cute, can you qualify your metric? Since this is a poll loop the only metric that would be interesting is the response latency. Is that what's increased by

Re: How to create a config that doesn't set CONFIG_PROC_FS

2013-11-28 Thread Peng Tao
On Fri, Nov 29, 2013 at 1:17 AM, Richard Weinberger wrote: > On Thu, Nov 28, 2013 at 4:02 PM, Peng Tao wrote: >> On Thu, Nov 28, 2013 at 9:20 PM, Geert Uytterhoeven >> wrote: >>> On Thu, Nov 28, 2013 at 11:53 AM, Peng Tao wrote: Even if I use `make allnoconfig`, CONFIG_PROC_FS is still

Re: [PATCH net-next RFC 0/5] xen-netback: TX grant mapping instead of copy

2013-11-28 Thread Zoltan Kiss
On 07/11/13 10:52, Ian Campbell wrote: On Fri, 2013-11-01 at 19:00 +, Zoltan Kiss wrote: On 01/11/13 10:50, Ian Campbell wrote: Does this always avoid copying when bridging/openvswitching/forwarding (e.g. masquerading etc)? For both domU->domU and domU->physical NIC? I've tested the

Re: [PATCH] udp: fix possible seqlock deadlock

2013-11-28 Thread Eric Dumazet
On Thu, 2013-11-28 at 09:23 -0800, Eric Dumazet wrote: > From: Eric Dumazet > > In commit c9e9042994d3 ("ipv4: fix possible seqlock deadlock") I left > another spot where IP_INC_STATS_BH() was improperly used. > > udp_sendmsg() is called from process context, not from softirq context. > > This

[PATCH] crypto: AF_ALG: Check for MSG_SENDPAGE_NOTLAST

2013-11-28 Thread Richard Weinberger
Commit 35f9c09fe (tcp: tcp_sendpages() should call tcp_push() once) added an internal flag MSG_SENDPAGE_NOTLAST. We have to check for MSG_SENDPAGE_NOTLAST too to find out whether more data is available. Cc: Tom Herbert Cc: Eric Dumazet Cc: David S. Miller Cc: # 3.2.x Reported-and-tested-by:

Re: [PATCH v3 2/4] perf diff: generalize hpp__color_delta for -c

2013-11-28 Thread Ramkumar Ramachandra
Jiri Olsa wrote: > This patch basicaly factor the code you added in previous one. > > Could we use the function below from the beggining? Yeah, I suppose I could squash this into [2/4]. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH v3 1/4] perf diff: color the Delta column

2013-11-28 Thread Ramkumar Ramachandra
Jiri Olsa wrote: > these colors are not consistent with colors in baseline, > moreover all negative values are shown as red > > - please check get_percent_color function (used for baseline), > it checks the percentage against following values: > > #define MIN_GREEN 0.5 > #define

[PATCH] udp: fix possible seqlock deadlock

2013-11-28 Thread Eric Dumazet
From: Eric Dumazet In commit c9e9042994d3 ("ipv4: fix possible seqlock deadlock") I left another spot where IP_INC_STATS_BH() was improperly used. udp_sendmsg() is called from process context, not from softirq context. This was detected by lockdep seqlock support. Reported-by: jongman heo

Re: How to create a config that doesn't set CONFIG_PROC_FS

2013-11-28 Thread Richard Weinberger
On Thu, Nov 28, 2013 at 4:02 PM, Peng Tao wrote: > On Thu, Nov 28, 2013 at 9:20 PM, Geert Uytterhoeven > wrote: >> On Thu, Nov 28, 2013 at 11:53 AM, Peng Tao wrote: >>> Even if I use `make allnoconfig`, CONFIG_PROC_FS is still set. So I'm >>> wondering how to create a config without

[PATCH] smack: fix: allow either entry be missing on access/access2 check (v2)

2013-11-28 Thread jarkko . sakkinen
From: Jarkko Sakkinen This is a regression caused by f7112e6c. When either subject or object is not found the answer for access should be no. This patch fixes the situation. '0' is written back instead of failing with -EINVAL. v2: cosmetic style fixes Signed-off-by: Jarkko Sakkinen ---

[PATCH] crypto: remove unnecessary includes

2013-11-28 Thread Cristian Stoica
Signed-off-by: Cristian Stoica --- crypto/authenc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/crypto/authenc.c b/crypto/authenc.c index 1875e70..7d4bfaa 100644 --- a/crypto/authenc.c +++ b/crypto/authenc.c @@ -17,11 +17,8 @@ #include #include #include -#include #include

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