Re: ARM audit, seccomp, etc are broken wrt OABI syscalls

2013-11-07 Thread Kees Cook
On Thu, Nov 7, 2013 at 4:55 AM, Henrique de Moraes Holschuh wrote: > On Tue, 05 Nov 2013, Andy Lutomirski wrote: >> Maybe the thing to do is to put a warning in the config text for >> CONFIG_OABI_COMPAT that describes the problems (malicious userspace >> can confuse syscall auditors, strace, etc.)

[PATCH v2] seccomp: not compatible with ARM OABI

2013-11-07 Thread Kees Cook
Make sure that seccomp filter won't be built when ARM OABI is in use, since there is work needed to distinguish calling conventions. Until that is done (which is likely never since OABI is deprecated), make sure seccomp filter is unavailable in the OABI world. Signed-off-by: Kees Cook --- v2: -

Re: Bench for testing scheduler

2013-11-07 Thread Morten Rasmussen
Hi Vincent, On Thu, Nov 07, 2013 at 10:54:30AM +, Vincent Guittot wrote: > Hi, > > During the Energy-aware scheduling mini-summit, we spoke about benches > that should be used to evaluate the modifications of the scheduler. > I’d like to propose a bench that uses cyclictest to measure the wak

Re: [Xen-devel] [PATCH] xen/balloon: Set balloon's initial state to number of existing RAM pages

2013-11-07 Thread Konrad Rzeszutek Wilk
On Thu, Nov 07, 2013 at 03:38:32PM +0100, Daniel Kiper wrote: > On Wed, Nov 06, 2013 at 08:25:04PM -0500, Konrad Rzeszutek Wilk wrote: > > Bob Liu wrote: > > > > > >On 11/07/2013 04:37 AM, Boris Ostrovsky wrote: > > >> Currently balloon's initial value is set to max_pfn which includes > > >> non-R

Re: [PATCH] arm: mvebu: fix some sparse warnings

2013-11-07 Thread Gregory CLEMENT
Hi Jisheng, On 07/11/2013 10:02, Jisheng Zhang wrote: > This patch fixes conflicting types for 'set_cpu_coherent' and fixes the > following sparse warnings. > > arch/arm/mach-mvebu/system-controller.c:42:38: > warning: symbol 'armada_370_xp_system_controller' was not declared. Should it > be sta

Re: [PATCH] staging: zsmalloc: Ensure handle is never 0 on success

2013-11-07 Thread Luigi Semenzato
On Thu, Nov 7, 2013 at 9:06 AM, Luigi Semenzato wrote: -> Android 4.4 KitKat is also using zram, to better support devices with -> less than 1 MB RAM. (That's the news.) Sorry, I meant 1 GB RAM. http://dilbert.com/strips/comic/1991-09-27/ -- To unsubscribe from this list: send the line "unsubs

Re: [PATCH] seccomp: not compatible with ARM OABI

2013-11-07 Thread Kees Cook
On Thu, Nov 7, 2013 at 2:59 AM, James Hogan wrote: > Hi, > > On 06/11/13 23:31, Kees Cook wrote: >> diff --git a/arch/Kconfig b/arch/Kconfig >> index af2cc6eabcc7..6eaca7d92399 100644 >> --- a/arch/Kconfig >> +++ b/arch/Kconfig >> @@ -331,12 +331,15 @@ config HAVE_ARCH_SECCOMP_FILTER >> >> config

Re: [PATCH v2 09/13] ARM: Disable jprobe selftests in thumb kernels

2013-11-07 Thread Jon Medhurst (Tixy)
On Tue, 2013-10-15 at 17:04 -0400, David Long wrote: > From: "David A. Long" > > jprobe kernel selftests are not supported for thumb kernels. Conditionally > disable them in the kernel kprobes-test module. I don't think it's fair to say they aren't supported, it's just that the implementation of

Re: [PATCH v5 3/4] perf,x86: add Intel RAPL PMU support

2013-11-07 Thread Stephane Eranian
Peter, Working on it. Found other bugs and cleanups, so I will respin the entire series. It will be easier that way. On Wed, Nov 6, 2013 at 11:52 AM, Peter Zijlstra wrote: > On Tue, Nov 05, 2013 at 06:01:25PM +0100, Stephane Eranian wrote: >> +static void rapl_exit_cpu(int cpu) >> +{ >> + i

[RFC PATCH 4/4] arm64: advertise CPU features using module aliases

2013-11-07 Thread Ard Biesheuvel
This enables the generic implementation in drivers/base/cpu.c that allows modules to be loaded automatically based on the optional features supported (and advertised) by the CPU. Signed-off-by: Ard Biesheuvel --- arch/arm64/Kconfig| 3 +++ arch/arm64/kernel/setup.c | 2 ++ 2 files change

[RFC PATCH 2/4] cpu: advertise CPU features over udev in a generic way

2013-11-07 Thread Ard Biesheuvel
This patch implements a generic modalias 'cpu:feature:...' which enables CPU feature flag based module loading in a generic way. All the arch needs to do is enable CONFIG_ARCH_HAS_CPU_AUTOPROBE and export a u32 called 'cpu_features'. (What each bit actually means is irrelevant on this level.) Sign

[RFC PATCH 3/4] scripts/mod: add generic CPU features as module alias

2013-11-07 Thread Ard Biesheuvel
This implements the changes needed to turn CPU features declared as being depended upon by modules into module aliases in the .ko metadata. Signed-off-by: Ard Biesheuvel --- include/linux/mod_devicetable.h | 11 +++ scripts/mod/devicetable-offsets.c | 3 +++ scripts/mod/file2alias.c

[RFC PATCH 0/4] wire up CPU features to udev based module loading

2013-11-07 Thread Ard Biesheuvel
This series implements automatic module loading based on optional CPU features, and tries to do so in a generic way. Currently, 32 feature bits are supported, and how they map to actual CPU features is entirely up to the architecture. There is some GCC attribute foo in here which people may object

[RFC PATCH 1/4] x86: move arch_cpu_uevent() to generic code

2013-11-07 Thread Ard Biesheuvel
Only x86 implements arch_cpu_uevent(), and there is nothing arch specific about it, so move it to drivers/base/cpu.c. Signed-off-by: Ard Biesheuvel --- arch/x86/kernel/cpu/match.c | 11 --- drivers/base/cpu.c | 15 ++- include/linux/cpu.h | 1 - 3 files chan

Re: [PATCH] net: x86: bpf: don't forget to free sk_filter (v2)

2013-11-07 Thread Alexei Starovoitov
On Wed, Nov 6, 2013 at 8:35 PM, Andrey Vagin wrote: > sk_filter isn't freed if bpf_func is equal to sk_run_filter. > > This memory leak was introduced by v3.12-rc3-224-gd45ed4a4 > "net: fix unsafe set_memory_rw from softirq". > > Before this patch sk_filter was freed in sk_filter_release_rcu, > no

Re: [PATCH] clk: mvebu: staticize of_cpu_clk_setup

2013-11-07 Thread Gregory CLEMENT
On 07/11/2013 09:59, Jisheng Zhang wrote: > This symbol is used only in this file. The patch fix the following > sparse warning: > warning: symbol 'of_cpu_clk_setup' was not declared. Should it be static? > > Signed-off-by: Jisheng Zhang Acked-by: Gregory CLEMENT Thanks, Gregory > --- > dr

Re: [PATCH v2] ths7303: Declare as static a private function

2013-11-07 Thread Prabhakar Lad
Hi Ricardo, Thanks for the patch. On Wed, Nov 6, 2013 at 8:10 PM, Ricardo Ribalda Delgado wrote: > git grep shows that the function is only called from ths7303.c > > Fix this build warning: > > CC drivers/media/i2c/ths7303.o > drivers/media/i2c/ths7303.c:86:5: warning: no previous prototype

Re: [PATCH] staging: zsmalloc: Ensure handle is never 0 on success

2013-11-07 Thread Rik van Riel
On 11/07/2013 02:04 AM, Minchan Kim wrote: I'm guilty and I have been busy by other stuff. Sorry for that. Fortunately, I discussed this issue with Hugh in this Linuxcon for a long time(Thanks Hugh!) he felt zram's block device abstraction is better design rather than frontswap backend stuff alt

Re: [PATCH] staging: zsmalloc: Ensure handle is never 0 on success

2013-11-07 Thread Luigi Semenzato
If I may add my usual 2c (and some news): zram is used by default on all Chrome OS devices. I can't say how many devices, but it's not a small number, google it, and it's an important market, low-end laptops for education and the less affluent. It has been available experimentally for well over

[GIT PULL] Please pull NFS client changes for 3.13

2013-11-07 Thread Myklebust, Trond
Hi Linus, The following changes since commit f927318840745095cc7003f1564ca4b87655745d: Merge tag 'nfs-for-3.12-4' of git://git.linux-nfs.org/projects/trondmy/linux-nfs (2013-09-30 17:10:26 -0700) are available in the git repository at: git://git.linux-nfs.org/projects/trondmy/linux-nfs.gi

[PATCH] kmod: Run usermodehelpers only on cpus allowed for kthreadd V2

2013-11-07 Thread Christoph Lameter
usermodehelper() threads can currently run on all processors. This is an issue for low latency cores. Spawnig a new thread causes cpu holdoffs in the range of hundreds of microseconds to a few milliseconds. Not good for cores on which processes run that need to react as fast as possible. kthreadd

Re: [PATCH 14/14] sched: add sched_dl documentation.

2013-11-07 Thread Randy Dunlap
Hi, Just a few minor edits... On 11/07/13 05:47, Juri Lelli wrote: > From: Dario Faggioli > > Add in Documentation/scheduler/ some hints about the design > choices, the usage and the future possible developments of the > sched_dl scheduling class and of the SCHED_DEADLINE policy. > > Signed-o

Re: [PATCH 1/2] of: irq: Fix interrupt-map entry matching

2013-11-07 Thread Rob Herring
On Thu, Nov 7, 2013 at 5:32 AM, Tomasz Figa wrote: > Hi Grant, > > Could you pick this patch up? It fixes boot-up at least on several Exynos > based platforms, which use interrupt-map nodes with #interrupt-cells > higher than 1. > > Also please disregard patch 2/2, as your fix that has been merged

Re: [patch 1/6] hardirq: Make hardirq bits generic

2013-11-07 Thread Thomas Gleixner
On Thu, 7 Nov 2013, Geert Uytterhoeven wrote: > Hi Thomas, > > On Wed, Nov 6, 2013 at 6:23 PM, Thomas Gleixner wrote: > >> Also note that the value of "nested" doesn't match the indentation level, > >> which depends on my own bookkeeping using "nesting". > > > > Well, nested is just an indicator

Re: [PATCH] iommu: Split iommu_unmaps

2013-11-07 Thread David Woodhouse
On Fri, 2013-05-24 at 11:14 -0600, Alex Williamson wrote: > iommu_map splits requests into pages that the iommu driver reports > that it can handle. The iommu_unmap path does not do the same. This > can cause problems not only from callers that might expect the same > behavior as the map path, bu

Re: [patch] net: make ndev->irq signed for error handling

2013-11-07 Thread Mugunthan V N
On Thursday 07 November 2013 05:52 PM, Dan Carpenter wrote: > On Thu, Nov 07, 2013 at 05:44:38PM +0530, Mugunthan V N wrote: >> On Thursday 07 November 2013 01:18 PM, Dan Carpenter wrote: >>> There is a bug in cpsw_probe() where we do: >>> >>> ndev->irq = platform_get_irq(pdev, 0); >>> if (

Re: [PATCH] mm/slub: Switch slub_debug kernel option to early_param to avoid boot panic

2013-11-07 Thread Christoph Lameter
There is still something not optimal with the patch since it would disable debuggin on the kmalloc stack. Ccheck name for NULL only if slub_debug_slabs. Subject: slub: Handle NULL parameter in kmem_cache_flags V2 V1->V2 - flags need to be applied regardless if !slub_debug_slabs kmem_cache_flag

[PATCH v2] kcore: add Kconfig help text

2013-11-07 Thread Randy Dunlap
From: Randy Dunlap Under Pseudo filesystems, /proc/kcore support has no help. Fixes a portion of kernel bugzilla #52671: https://bugzilla.kernel.org/show_bug.cgi?id=52671 Thanks for David Howells for the help text. Signed-off-by: Randy Dunlap Reported-by: lailavrazda1...@gmail.com --- fs/p

Re: [GIT PULL] uprobes: preparations for arm port

2013-11-07 Thread Oleg Nesterov
On 11/07, Ingo Molnar wrote: > > * Oleg Nesterov wrote: > > > and we need to cleanup copy_insn() > > first. Heh. I never read it carefully, I always knew it should be cleanuped. But when I looked at it now I realized that it is very wrong, and it is very easy to crash the kernel (fortunately onl

Re: [PATCH] Wrong symbol resolved for RIP on OOPS/BUG

2013-11-07 Thread H. Peter Anvin
On 11/06/2013 11:54 PM, Ingo Molnar wrote: > > There's a recent commit from Jiri Slaby that I think tries to address the > same problem: > > 8d4c812a3e5f x86/dumpstack: Fix printk_address for direct addresses > > You can find it in the -tip tree: > > git remote add tip git://git.kernel.org

Re: [PATCH v3 9/9] ARM: add initial support for Marvell Berlin SoCs

2013-11-07 Thread Arnd Bergmann
On Thursday 07 November 2013, Sebastian Hesselbarth wrote: > Actually, IIRC smp_twd does not compile without SMP set, so the above > should at least be 'HAVE_ARM_TWD if SMP'. If you shrink MULTI_V7 down > to non-SMP cores, you can disable it and it will fail to compile. > If there are UP-systems

Re: [PATCH] mm/slub: Switch slub_debug kernel option to early_param to avoid boot panic

2013-11-07 Thread Christoph Lameter
On Thu, 7 Nov 2013, Andreas Herrmann wrote: > And for sake of completeness. Here is some debug output with a kernel > that had your "slub: Handle NULL parameter in kmem_cache_flags" patch > applied. And of course there were a couple of unnamed slabs: > > ... > .bss : 0xc089fd80 - 0xc094

Re: [PATCH 4/4] perf record: mmap output file - v3

2013-11-07 Thread David Ahern
On 11/7/13, 1:03 AM, Ingo Molnar wrote: * David Ahern wrote: +--out-pages=:: + Number of pages to mmap while writing data to file (must be a power of two). + Specification can be appended with unit character - B/K/M/G. The + size is rounded up to have nearest pages power of

Re: [PATCH v4 3/4] usb: ffs: check quirk to pad epout buf size when not aligned to maxpacketsize

2013-11-07 Thread Alan Stern
On Wed, 6 Nov 2013, Michal Nazarewicz wrote: > On Tue, Nov 05 2013, Alan Stern wrote: > > Maybe Michal can enlighten us. > > Sorry for late response, this thread fell under my radar for some > reason. > > So here's how it works: > > epfile represents an end point file on the fuctionfs file syst

Re: [PATCH] INPUT: wacom: Added definition for Wacom CTH680 The Wacom Creative Pen & Touch Tablet M (CTH680, 056A:0303) is a newer revision of the Bamboo series. This patch adds product 0303 to wacom.

2013-11-07 Thread Chris Bagwell
On Sat, Nov 2, 2013 at 2:04 PM, wrote: > From: Matthew Geddes > Your whole commit message appears to be crammed into first summary line. Could you please align with git conventions: put a line break after "CTH680", a blank line, and then the remaining description afterwards. > Signed-off-by:

Re: [PATCH] ext4: Fix reading of extended tv_sec (bug 23732)

2013-11-07 Thread Jan Kara
On Thu 07-11-13 02:16:30, David Turner wrote: > In ext4, the bottom two bits of {a,c,m}time_extra are used to extend > the {a,c,m}time fields, deferring the year 2038 problem to the year > 2446. The representation (which this patch does not alter) is a bit > hackish, in that the most-significant b

Re: [PATCH 0/4] perf record: Cleanups and mmap-based output

2013-11-07 Thread David Ahern
On 11/7/13, 6:21 AM, Jiri Olsa wrote: CC builtin-record.o builtin-record.c: In function ‘do_mmap_output’: builtin-record.c:118:13: error: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result [-Werror=unused-result] ftruncate(file->fd, offset);

Re: [PATCH] kcore: add Kconfig help text

2013-11-07 Thread David Howells
Randy Dunlap wrote: > + Exports kernel core in ELF format. "Provides a virtual ELF core file of the live kernel. This can be read with gdb and other ELF tools. No modifications can be made using this mechanism." maybe? -- To unsubscribe from this list: send the line "unsubscribe linux-k

Re: [tip:perf/core] tools/perf: Add required memory barriers

2013-11-07 Thread Ingo Molnar
* Vince Weaver wrote: > On Thu, 7 Nov 2013, Ingo Molnar wrote: > > > I don't want a library that is external and under-tested: for example > > quite a few of the PAPI breakages were found very late, after a new > > kernel has been released - that's the big disadvantage of > > librarization a

LED MINING LIGHTS GARDEN LIGHT CANDLE LIGHT

2013-11-07 Thread LED FLASH LIGHT CAMCORDERS DIMMABLE LED BULBS
Dear Mr/Ms, From the internet we have konw that you are interested in our products We are a leading exporter of LED lamps for so many years .for details about our products welcome to browse our website www.JRS-LED.net we believe that flavorable price and high quality will help you to extend m

Re: 答复:答复:[PATCH 2/4] perf tools: relate 'start' & 'end' to perf_session

2013-11-07 Thread David Ahern
On 11/7/13, 5:14 AM, 秦承刚 wrote: Hi, David The samples for the task before the end of the time window are not influenced by the time window. The time window only cover the sample events in the ordered_samples. FORK, MMAP, COMM events are not in the ordered_samples. They are delivered in the functi

Re: [PATCH v9 03/18] arm/xen,arm64/xen: introduce p2m

2013-11-07 Thread Stefano Stabellini
On Thu, 7 Nov 2013, Ian Campbell wrote: > On Fri, 2013-10-25 at 11:51 +0100, Stefano Stabellini wrote: > > Introduce physical to machine and machine to physical tracking > > mechanisms based on rbtrees for arm/xen and arm64/xen. > > > > We need it because any guests on ARM are an autotranslate gue

[RFC][PATCH 6/6] ima: use custom template obtained from a matched policy rule

2013-11-07 Thread Roberto Sassu
This patch modifies existing IMA functions to retrieve the template name or format specified in a matched policy rule and provide it to ima_alloc_init_template(). The latter calls ima_get_template_desc() to obtain the template descriptor to use for creating a new measurement entry. Signed-off-by:

[RFC][PATCH 4/6] ima: replace ima_template_desc_current() with ima_get_template_desc()

2013-11-07 Thread Roberto Sassu
This patch replaces calls to ima_template_desc_current() in ima_api.c and ima_main.c with ima_get_template_desc() as the former function is called by the latter when passed arguments are both NULL. The patch also declares the former function as static so that it will not be longer available outside

[RFC][PATCH 5/6] ima: added ima_template and ima_template_fmt new policy options

2013-11-07 Thread Roberto Sassu
This patch adds the support for 'ima_template' and 'ima_template_fmt' policy options. They allow to define which template and, thus, which information should be included in measurements entries generated from events that match other rules' criteria. With this feature, it is possible to include for

[RFC][PATCH 2/6] ima: added new template helper lookup_template_desc_by_fmt()

2013-11-07 Thread Roberto Sassu
This patch adds a new helper to search a template descriptor by its format. Also, the old function lookup_template_desc(), which performs the search by name, has been renamed to lookup_template_desc_by_name(). Signed-off-by: Roberto Sassu --- security/integrity/ima/ima_template.c | 20 ++

[RFC][PATCH 3/6] ima: added ima_get_template_desc() for templates dynamic registration

2013-11-07 Thread Roberto Sassu
This patch introduces the ima_get_template_desc() function which returns a template descriptor depending on the template name and format passed as arguments. If the first argument is not NULL, the new function searches an existing template descriptor by name among those defined and returns it to th

[RFC][PATCH 0/6] ima: support per-measurement templates

2013-11-07 Thread Roberto Sassu
Hi everyone one functionality that is missing in the new template management mechanism is the possibility to specify a custom template format per-measurement entry. Until now, once the template is determined from the kernel configuration or from the kernel command line parameters 'ima_template' an

[RFC][PATCH 1/6] ima: connect defined IMA templates through a linked list

2013-11-07 Thread Roberto Sassu
This patch connects defined templates through a linked list so that it will be possible to append new descriptors when the functionality of specifying a custom template in the policy will be introduced. Template search by name is still performed by iterating over 'defined_templates' array items. S

Re: [appleir] BUG: unable to handle kernel NULL pointer dereference

2013-11-07 Thread Benjamin Tissoires
Hi James, On 07/11/13 02:52, James Henstridge wrote: > On Wed, Nov 6, 2013 at 11:38 PM, Jiri Kosina wrote: >> On Tue, 29 Oct 2013, Luis Henriques wrote: >> >>> James has reported a NULL pointer dereference[1] on the appleir >>> driver. From the bug report[2] it looks like it is 100% >>> reproduc

Re: IPIP6 Linux Kernel Implementation

2013-11-07 Thread Austin S Hemmelgarn
On 2013-11-07 09:54, Pietro Paolini wrote: > Hello everyone, > > I am writing you regarding the implementation of the IPIP6 tunnel > contained in the Linux Kernel which I am trying to configure in order > to obtain a DS-Lite (IPIP6) compliant tunnel on a router running a > linux OS kernel version

[tip:perf/core] perf tools: Remove unneeded include

2013-11-07 Thread tip-bot for Rodrigo Campos
Commit-ID: 8ce000e83848578a621d64eccdc88bd34c2fc70c Gitweb: http://git.kernel.org/tip/8ce000e83848578a621d64eccdc88bd34c2fc70c Author: Rodrigo Campos AuthorDate: Wed, 6 Nov 2013 22:20:54 + Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 7 Nov 2013 11:51:19 -0300 perf tools: Re

Re: [PATCH] block: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO

2013-11-07 Thread Jens Axboe
On 11/06/2013 12:55 AM, Duan Jiong wrote: > This patch fixes coccinelle error regarding usage of IS_ERR and > PTR_ERR instead of PTR_ERR_OR_ZERO. Applied, thanks. -- Jens Axboe -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.

Re: [PATCH] usb: hub: Use correct reset for wedged USB3 devices that are NOTATTACHED

2013-11-07 Thread Alan Stern
On Wed, 6 Nov 2013, Julius Werner wrote: > > What if the device is in USB_STATE_SUSPENDED? > > I'm not sure that is possible at that point in hub_events(), I don't > know of a way that could lead to this situation. I could still add the > check just to be sure if you want it, though. I don't kno

[tip:perf/core] perf record: Refactor feature handling into a separate function

2013-11-07 Thread tip-bot for David Ahern
Commit-ID: 57706abc19afc60f0b629af839d2ebee17739f59 Gitweb: http://git.kernel.org/tip/57706abc19afc60f0b629af839d2ebee17739f59 Author: David Ahern AuthorDate: Wed, 6 Nov 2013 11:41:34 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 7 Nov 2013 10:42:26 -0300 perf record: Refa

[tip:perf/core] perf evsel: Ditch evsel->handler.data field

2013-11-07 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 744a971940520cf0818e1fe882b64892c528e6de Gitweb: http://git.kernel.org/tip/744a971940520cf0818e1fe882b64892c528e6de Author: Arnaldo Carvalho de Melo AuthorDate: Wed, 6 Nov 2013 10:17:38 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 7 Nov 2013 10:40:47 -0300 perf

[tip:perf/core] perf trace: Don' t relookup fields by name in each sample

2013-11-07 Thread tip-bot for Arnaldo Carvalho de Melo
Commit-ID: 77170988ff67fb959602ab4df296ae676f556a59 Gitweb: http://git.kernel.org/tip/77170988ff67fb959602ab4df296ae676f556a59 Author: Arnaldo Carvalho de Melo AuthorDate: Wed, 6 Nov 2013 16:35:57 -0300 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 7 Nov 2013 10:40:47 -0300 perf

Re: [PATCH] block: replace IS_ERR and PTR_ERR with PTR_ERR_OR_ZERO

2013-11-07 Thread Jens Axboe
On 11/06/2013 12:56 AM, Duan Jiong wrote: > This patch fixes coccinelle error regarding usage of IS_ERR and > PTR_ERR instead of PTR_ERR_OR_ZERO. Applied, thanks. -- Jens Axboe -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.

[tip:perf/core] perf record: Remove post_processing_offset variable

2013-11-07 Thread tip-bot for David Ahern
Commit-ID: 7ab75cffd6a1b2195944b8522673522f09e7fcb0 Gitweb: http://git.kernel.org/tip/7ab75cffd6a1b2195944b8522673522f09e7fcb0 Author: David Ahern AuthorDate: Wed, 6 Nov 2013 11:41:36 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 7 Nov 2013 11:01:59 -0300 perf record: Remo

[tip:perf/core] perf record: Remove advance_output function

2013-11-07 Thread tip-bot for David Ahern
Commit-ID: f34b9001f9a2f6fa41d3582fe515d194cc86bfb2 Gitweb: http://git.kernel.org/tip/f34b9001f9a2f6fa41d3582fe515d194cc86bfb2 Author: David Ahern AuthorDate: Wed, 6 Nov 2013 11:41:35 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 7 Nov 2013 10:43:15 -0300 perf record: Remo

[tip:perf/core] perf tools: Fix version when building out of tree

2013-11-07 Thread tip-bot for David Ahern
Commit-ID: a614d01bdd0cc8200d917da25f5a3d539b944193 Gitweb: http://git.kernel.org/tip/a614d01bdd0cc8200d917da25f5a3d539b944193 Author: David Ahern AuthorDate: Wed, 6 Nov 2013 08:55:35 -0700 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 7 Nov 2013 10:40:47 -0300 perf tools: Fix v

Re: [GIT] pktcdvd, floppy for 3.13

2013-11-07 Thread Jens Axboe
On 11/06/2013 01:37 AM, Jiri Kosina wrote: > Jens, > > please pull from > > git://git.kernel.org/pub/scm/linux/kernel/git/jikos/linux-block.git for-jens > > to get two very simple patches for pktcdvd and floppy doc. > > I know it's quite late for 3.13, sorry for that. OTOH, the patches are so

Re: [PATCH v2 0/7] perf timechart improvements

2013-11-07 Thread Namhyung Kim
Hi Arnaldo and Stanislav, 2013-11-06 (수), 14:48 -0300, Arnaldo Carvalho de Melo: > Em Wed, Nov 06, 2013 at 05:07:19PM +0900, Namhyung Kim escreveu: > > Hi Arnaldo, > > > > On Tue, 5 Nov 2013 14:28:12 -0300, Arnaldo Carvalho de Melo wrote: > > > Em Fri, Nov 01, 2013 at 08:25:44PM +0400, Stanislav

Re: [GIT PULL 0/7] perf/core improvements and fixes

2013-11-07 Thread Ingo Molnar
* Arnaldo Carvalho de Melo wrote: > From: Arnaldo Carvalho de Melo > > Hi Ingo, > > Please consider pulling, > > - Arnaldo > > The following changes since commit 8a4d0b56b031455adcbe4a9383c3b497456fcfac: > > Merge branch 'uprobes/core' of > git://git.kernel.org/pub/scm/linux/kerne

Re: [PATCH] block/s390: Fixes for "Convert bio_for_each_segment() to bvec_iter"

2013-11-07 Thread Jens Axboe
On 11/06/2013 02:44 PM, Kent Overstreet wrote: > 5d1f127c3e0c57d64ce75ee04a0db2b40a3e21df was incomplete - this just converts > s390's drivers. Applied, but you missed a piece in dcssblk that I updated as well. -- Jens Axboe -- To unsubscribe from this list: send the line "unsubscribe linux-ker

Re: [PATCH v2] usb: gadget: f_mass_storage: call try_to_freeze only when its safe

2013-11-07 Thread Alan Stern
On Thu, 7 Nov 2013, George Cherian wrote: > Call try_to_freeze() in sleep_thread() only when its safe to sleep. > do_read() and do_write() calls sleep_thread with lock held. > Make sure these wont call try_to_freeze() by passing can_freeze flag > to sleep_thread. > > Calling try_to_freeze() with

[tip:x86/apic] x86/apic: Disable I/ O APIC before shutdown of the local APIC

2013-11-07 Thread tip-bot for Fenghua Yu
Commit-ID: 522e66464467543c0d88d023336eec4df03ad40b Gitweb: http://git.kernel.org/tip/522e66464467543c0d88d023336eec4df03ad40b Author: Fenghua Yu AuthorDate: Wed, 23 Oct 2013 18:30:12 -0700 Committer: Ingo Molnar CommitDate: Thu, 7 Nov 2013 10:12:37 +0100 x86/apic: Disable I/O APIC bef

Re: [vfs] BUG: spinlock trylock failure on UP on CPU#0, swapper/0

2013-11-07 Thread Christoph Hellwig
On Thu, Nov 07, 2013 at 03:14:39PM +, Al Viro wrote: > It's vfs.git#for-next and it's messed up on cherry-picks; will put the > saner branch in a few. > > Al, starting to share Linus' distaste for cherry-picks - crap like that > happens too easily ;-/ I still haven't seen it on any mainlingli

Re: [GIT PULL] uprobes: preparations for arm port

2013-11-07 Thread Ingo Molnar
* Oleg Nesterov wrote: > On 11/07, Ingo Molnar wrote: > > > > * Oleg Nesterov wrote: > > > > > --- a/arch/powerpc/include/asm/uprobes.h > > > +++ b/arch/powerpc/include/asm/uprobes.h > > > @@ -37,6 +37,7 @@ typedef ppc_opcode_t uprobe_opcode_t; > > > struct arch_uprobe { > > > union { > > >

Re: [vfs] BUG: spinlock trylock failure on UP on CPU#0, swapper/0

2013-11-07 Thread Al Viro
On Thu, Nov 07, 2013 at 04:30:31AM -0800, Christoph Hellwig wrote: > On Thu, Nov 07, 2013 at 08:10:42PM +0800, Fengguang Wu wrote: > > Greetings, > > > > I got the below dmesg and the first bad commit seems to be > > > > commit 1247c74b4f3f3725a8bd8dc0bbd22baa2a9049ae > > Author: David Howells >

[RFC PATCH v2 -mm] provide estimated available memory in /proc/meminfo

2013-11-07 Thread Rik van Riel
> > fs/proc/meminfo.c | 36 > > 1 file changed, 36 insertions(+) > > Documentation/filesystems/proc.txt told me it's feeling all offended. You're right, of course. Here is version 2 :) ---8<--- Subject: provide estimated available memory in /proc/meminfo

Re: [PATCH] thermal: exynos: handle gate clock for misplaced TRIMINFO register

2013-11-07 Thread Naveen Krishna Ch
On 7 November 2013 19:48, Tomasz Figa wrote: > Hi Naveen, > > On Thursday 07 of November 2013 18:12:34 Naveen Krishna Chatradhi wrote: >> On Exynos5420 the TMU(4) for GPU has a seperate clock enable bit from >> the other TMU channels(0 ~ 3). Hence, accessing TRIMINFO for base_second >> should be a

Re: [PATCH 3/3 v8] thermal: samsung: Add TMU support for Exynos5420 SoCs

2013-11-07 Thread Tomasz Figa
Hi Naveen, On Thursday 07 of November 2013 11:23:32 Naveen Krishna Chatradhi wrote: > This patch adds the neccessary register changes and arch information > to support Exynos5420 SoCs > Exynos5420 has 5 TMU channels one for each CPU 0, 1, 2 and 3 and GPU > > Also updated the Documentation at > Do

[GIT PULL 0/7] perf/core improvements and fixes

2013-11-07 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Hi Ingo, Please consider pulling, - Arnaldo The following changes since commit 8a4d0b56b031455adcbe4a9383c3b497456fcfac: Merge branch 'uprobes/core' of git://git.kernel.org/pub/scm/linux/kernel/git/oleg/misc into perf/core (2013-11-07 08:46:13 +0100)

[PATCH 1/7] perf evsel: Ditch evsel->handler.data field

2013-11-07 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Not needed since this cset: fcf65bf149af: perf evsel: Cache associated event_format So lets trim this struct a bit. Cc: Adrian Hunter Cc: David Ahern Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Mike Galbraith Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Steph

[PATCH 6/7] perf record: Remove post_processing_offset variable

2013-11-07 Thread Arnaldo Carvalho de Melo
From: David Ahern Duplicates the data_offset from header in the session. Signed-off-by: David Ahern Acked-by: Ingo Molnar Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Jiri Olsa Cc: Mike Galbraith Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Stephane Eranian Link: http://lkml.kernel.org/r/138

[PATCH 5/7] perf record: Remove advance_output function

2013-11-07 Thread Arnaldo Carvalho de Melo
From: David Ahern 1 line function with only 1 user; might as well embed directly. Signed-off-by: David Ahern Suggested-by: Ingo Molnar Acked-by: Ingo Molnar Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Stephane Eranian Link: http://lkml.

[PATCH 3/7] perf trace: Don't relookup fields by name in each sample

2013-11-07 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Instead do the lookups just when creating the tracepoints, initially for the most common, raw_syscalls:sys_{enter,exit}. It works by having evsel->priv have a per tracepoint structure with entries for the fields, for direct access, with the offset and a function to

[PATCH 2/7] perf tools: Fix version when building out of tree

2013-11-07 Thread Arnaldo Carvalho de Melo
From: David Ahern When building perf out of tree: $ make perf-tar-src-pkg $ tar -xf perf-.tar -C /tmp $ cd /tmp/perf $ make -C tools/perf you get this warning message: make[1]: *** No rule to make target `kernelversion'. Stop. Fix it by saving the perf version in the tar file and

[PATCH 4/7] perf record: Refactor feature handling into a separate function

2013-11-07 Thread Arnaldo Carvalho de Melo
From: David Ahern Code move only. No logic changes. Signed-off-by: David Ahern Acked-by: Ingo Molnar Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Stephane Eranian Link: http://lkml.kernel.org/r/1383763297-27066-2-git-send-email-dsah...@gm

[PATCH 7/7] perf tools: Remove unneeded include

2013-11-07 Thread Arnaldo Carvalho de Melo
From: Rodrigo Campos There is no point in sort.h including itself. The include was added when the file was created, in commit "perf tools: Create util/sort.and use it" (dd68ada2d) and added a include to "sort.h" in lot of files (all the files that started using the file). It was probably added b

IPIP6 Linux Kernel Implementation

2013-11-07 Thread Pietro Paolini
Hello everyone, I am writing you regarding the implementation of the IPIP6 tunnel contained in the Linux Kernel which I am trying to configure in order to obtain a DS-Lite (IPIP6) compliant tunnel on a router running a linux OS kernel version 2.6.33. This my network topology : lan --> tun1 -->

[PATCH] lockref: Use BLOATED_SPINLOCKS to avoid explicit config dependencies

2013-11-07 Thread Kirill A. Shutemov
From: Peter Zijlstra Avoid the fragile Kconfig construct guestimating spinlock_t sizes; use a friendly compile-time test to determine this. Signed-off-by: Peter Zijlstra [kirill.shute...@linux.intel.com: drop CONFIG_CMPXCHG_LOCKREF] Signed-off-by: Kirill A. Shutemov --- include/linux/lockref.

[no subject]

2013-11-07 Thread Mercedes Benz Company
Did you receive our last email?.  -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [Xen-devel] [PATCH] xen/balloon: Set balloon's initial state to number of existing RAM pages

2013-11-07 Thread Daniel Kiper
On Wed, Nov 06, 2013 at 08:25:04PM -0500, Konrad Rzeszutek Wilk wrote: > Bob Liu wrote: > > > >On 11/07/2013 04:37 AM, Boris Ostrovsky wrote: > >> Currently balloon's initial value is set to max_pfn which includes > >> non-RAM ranges such as MMIO hole. As result, initial memory target > >> (specif

[PATCH] ARM: pxa/colibri: fix build with CONFIG_USB_OHCI_HCD=y

2013-11-07 Thread Dmitry Artamonow
Fix following build failure observed when support for OHCI host controller is enabled. CC arch/arm/mach-pxa/colibri-evalboard.o arch/arm/mach-pxa/colibri-evalboard.c: In function 'colibri_ohci_init': arch/arm/mach-pxa/colibri-evalboard.c:68: error: implicit declaration of function 'IOMEM'

Re: [PATCH 1/3 v8] thermal: samsung: add intclr_fall_shift bit in exynos_tmu_register struct

2013-11-07 Thread Tomasz Figa
Hi Naveen, On Thursday 07 of November 2013 11:22:42 Naveen Krishna Chatradhi wrote: > On Exynos5250, the FALL interrupt related en, status and clear bits are > available at an offset of > 16 in INTEN, INTSTAT registers and at an offset of > 12 in INTCLEAR register. > > On Exynos5420, the FALL int

Re: [PATCH v9 03/18] arm/xen,arm64/xen: introduce p2m

2013-11-07 Thread Ian Campbell
On Fri, 2013-10-25 at 11:51 +0100, Stefano Stabellini wrote: > Introduce physical to machine and machine to physical tracking > mechanisms based on rbtrees for arm/xen and arm64/xen. > > We need it because any guests on ARM are an autotranslate guests, > therefore a physical address is potentially

Re: [PATCH 09/10] dmatest: gather test results in the linked list

2013-11-07 Thread Andy Shevchenko
On Wed, 2013-11-06 at 10:11 -0800, Dan Williams wrote: > [ excuse the resend, always forget that mobile-gmail sends html by default ] > > On Wed, Nov 6, 2013 at 6:13 AM, Andy Shevchenko > wrote: > > On Tue, 2013-11-05 at 11:58 -0800, Dan Williams wrote: > >> On Mon, Mar 4, 2013 at 1:09 AM, Andy S

Re: [GIT PULL] uprobes: preparations for arm port

2013-11-07 Thread Oleg Nesterov
On 11/07, Ingo Molnar wrote: > > * Oleg Nesterov wrote: > > > --- a/arch/powerpc/include/asm/uprobes.h > > +++ b/arch/powerpc/include/asm/uprobes.h > > @@ -37,6 +37,7 @@ typedef ppc_opcode_t uprobe_opcode_t; > > struct arch_uprobe { > > union { > > u8 insn[MAX_UINSN_BYTES]; >

Re: [PATCH 0/2] perf record: mmap output file - v3

2013-11-07 Thread David Ahern
On 11/7/13, 3:06 AM, Jiri Olsa wrote: On Wed, Nov 06, 2013 at 10:51:52AM -0700, David Ahern wrote: On 11/4/13, 11:31 AM, Jiri Olsa wrote: hi, after discussion with David, sending his change updated into the new data file object. David's original post: http://marc.info/?l=linux-kernel&m=1381

Re: [PATCH v3 3/5] MCS Lock: Barrier corrections

2013-11-07 Thread Paul E. McKenney
On Thu, Nov 07, 2013 at 04:50:23AM -0800, Michel Lespinasse wrote: > On Thu, Nov 7, 2013 at 4:06 AM, Linus Torvalds > wrote: > > > > On Nov 7, 2013 6:55 PM, "Michel Lespinasse" wrote: > >> > >> Rather than writing arch-specific locking code, would you agree to > >> introduce acquire and release m

Re: [PATCH] perf: Fix version when building out of tree

2013-11-07 Thread David Ahern
On 11/7/13, 1:30 AM, Ingo Molnar wrote: * David Ahern wrote: On 11/5/13, 10:36 PM, Ingo Molnar wrote: I think you could avoid the 'short' complication altogether by doing something like this: +elif test -f ../../PERF-VERSION-FILE +then + TAG=$(cut -d' ' -f3 ../../PERF-VERSION-FILE)

Re: [tip:perf/core] tools/perf: Add required memory barriers

2013-11-07 Thread Vince Weaver
On Thu, 7 Nov 2013, Ingo Molnar wrote: > I don't want a library that is external and under-tested: for example > quite a few of the PAPI breakages were found very late, after a new kernel > has been released - that's the big disadvantage of librarization and > decentralization. The decentralize

Re: KMS/radeon regression: failure to set modes on CEDAR & TAHITI; v3.11 vs 3.12-rc5/rc7

2013-11-07 Thread Veaceslav Falico
On Sun, Nov 3, 2013 at 7:48 PM, Robin H. Johnson wrote: > (Please CC, not sub'd to LKML; Was originally posted to > xorg-driver-...@lists.x.org, dri-de...@lists.freedesktop.org, but I > think the dmesg attachments got it eaten as spam). > > I apologize for not sending this sooner, but I wanted to

Re: [PATCH] ARM: l2x0: add prefetch and power ctrl registers configuration support

2013-11-07 Thread Andrew Lunn
On Thu, Nov 07, 2013 at 01:46:44PM +0100, Sebastian Hesselbarth wrote: > On 11/07/13 06:07, Jisheng Zhang wrote: > >PL310 supports Prefetch offset/control register from r2p0 and Power > >control register from r3p0. This patch adds the support to configure > >these two registers if there are. The dt

Re: [PATCH] thermal: exynos: handle gate clock for misplaced TRIMINFO register

2013-11-07 Thread Tomasz Figa
Hi Naveen, On Thursday 07 of November 2013 18:12:34 Naveen Krishna Chatradhi wrote: > On Exynos5420 the TMU(4) for GPU has a seperate clock enable bit from > the other TMU channels(0 ~ 3). Hence, accessing TRIMINFO for base_second > should be acompanied by enabling the respective clock. > > This

[PATCH 2/2] mm: create a separate slab for page->ptl allocation

2013-11-07 Thread Kirill A. Shutemov
If DEBUG_SPINLOCK and DEBUG_LOCK_ALLOC are enabled spinlock_t on x86_64 is 72 bytes. For page->ptl they will be allocated from kmalloc-96 slab, so we loose 24 on each. An average system can easily allocate few tens thousands of page->ptl and overhead is significant. Let's create a separate slab fo

[PATCH 1/2] mm: Properly separate the bloated ptl from the regular case

2013-11-07 Thread Kirill A. Shutemov
From: Peter Zijlstra Use kernel/bounds.c to convert build-time spinlock_t size check into a preprocessor symbol and apply that to properly separate the page::ptl situation. Signed-off-by: Peter Zijlstra Signed-off-by: Kirill A. Shutemov --- include/linux/mm.h | 24 +-

Re: [patch 1/6] hardirq: Make hardirq bits generic

2013-11-07 Thread Geert Uytterhoeven
Hi Thomas, On Wed, Nov 6, 2013 at 6:23 PM, Thomas Gleixner wrote: >> Also note that the value of "nested" doesn't match the indentation level, >> which depends on my own bookkeeping using "nesting". > > Well, nested is just an indicator. It's not the nest level. I know, the only thing that matte

<    1   2   3   4   5   6   7   >