Re: [PATCH] f2fs: introduce f2fs_kmem_cache_alloc to hide the unfailed kmem cache allocation

2013-10-21 Thread Gu Zheng
On 10/22/2013 11:49 AM, Gao feng wrote: > On 10/21/2013 03:24 PM, Gu Zheng wrote: >> +static inline void *f2fs_kmem_cache_alloc(struct kmem_cache *cachep, >> +gfp_t flags) >> +{ >> +void *entry = kmem_cache_alloc(cachep, flags); >> +retry: > >

Re: [PATCH] f2fs: introduce f2fs_kmem_cache_alloc to hide the unfailed kmem cache allocation

2013-10-21 Thread Gu Zheng
On 10/22/2013 01:16 PM, Haicheng Li wrote: > On Tue, Oct 22, 2013 at 11:49:58AM +0800, Gao feng wrote: >> On 10/21/2013 03:24 PM, Gu Zheng wrote: >>> +static inline void *f2fs_kmem_cache_alloc(struct kmem_cache *cachep, >>> + gfp_t flags) >>> +{ >>> +

Re: [PATCH 1/4] drivers/misc: add rawio framework driver

2013-10-21 Thread Greg Kroah-Hartman
On Mon, Oct 21, 2013 at 05:03:20PM -0700, Bin Gao wrote: > Rawio provides a framework to read/write registers from a bus, including > pci, i2c, I/O device(memory mapped), etc. based on debug fs. > Rawio bus drivers implement the read/write operation on a specific bus > on top of the rawio

Re: [PATCH 0/4] drivers/misc: add rawio framework and drivers

2013-10-21 Thread Greg Kroah-Hartman
On Mon, Oct 21, 2013 at 05:03:17PM -0700, Bin Gao wrote: > To read/write registers from a device is very important on embedded system, > especially SoC systems. Physically there could be different types of devices > based on bus tyes, e.g. PCI devices, I2C (slave)devices, I/O devices(memory >

Re: [PATCH v2 01/23] crypto: provide single place for hash algo information

2013-10-21 Thread Herbert Xu
On Mon, Oct 21, 2013 at 06:42:46PM -0400, Mimi Zohar wrote: > From: Dmitry Kasatkin > > This patch provides a single place for information about hash algorithms, > such as hash sizes and kernel driver names, which will be used by IMA > and the public key code. > > Changelog: > - Fix sparse and

Re: [PATCH] f2fs: introduce f2fs_kmem_cache_alloc to hide the unfailed kmem cache allocation

2013-10-21 Thread Haicheng Li
On Tue, Oct 22, 2013 at 11:49:58AM +0800, Gao feng wrote: > On 10/21/2013 03:24 PM, Gu Zheng wrote: > > +static inline void *f2fs_kmem_cache_alloc(struct kmem_cache *cachep, > > + gfp_t flags) > > +{ > > + void *entry = kmem_cache_alloc(cachep, flags); >

Re: [PATCH] f2fs: introduce f2fs_kmem_cache_alloc to hide the unfailed kmem cache allocation

2013-10-21 Thread Haicheng Li
On Tue, Oct 22, 2013 at 10:45:48AM +0800, Haicheng Li wrote: > Looks neat. > > Reviewed-by: Haicheng Li pls. ignore this mail. -- 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

Re: [PATCH -next] staging/iio/adc: MXS_LRADC depends on INPUT

2013-10-21 Thread Marek Vasut
Dear Randy Dunlap, > From: Randy Dunlap > > mxs-lradc.c uses many input_() functions so it should > depend on INPUT to fix build errors. > > drivers/built-in.o: In function `mxs_lradc_ts_unregister': > drivers/staging/iio/adc/mxs-lradc.c:905: undefined reference to > `input_unregister_device'

[PATCH -next] staging/iio/adc: MXS_LRADC depends on INPUT

2013-10-21 Thread Randy Dunlap
From: Randy Dunlap mxs-lradc.c uses many input_() functions so it should depend on INPUT to fix build errors. drivers/built-in.o: In function `mxs_lradc_ts_unregister': drivers/staging/iio/adc/mxs-lradc.c:905: undefined reference to `input_unregister_device'

[PATCH net-next] net: remove function sk_reset_txq()

2013-10-21 Thread ZHAO Gang
What sk_reset_txq() does is just calls function sk_tx_queue_reset(), and sk_reset_txq() is used only in sock.h, by dst_negative_advice(). Let dst_negative_advice() calls sk_tx_queue_reset() directly so we can remove unneeded sk_reset_txq(). Signed-off-by: ZHAO Gang --- include/net/sock.h | 4

[PATCH] lib/genalloc: add a helper function for DMA buffer allocation

2013-10-21 Thread Nicolin Chen
When using pool space for DMA buffer, there might be duplicated calling of gen_pool_alloc() and gen_pool_virt_to_phys() in each implementation. Thus it's better to add a simple helper function, a compatible one to the common dma_alloc_coherent(), to save some code. Signed-off-by: Nicolin Chen

Re: [PATCH] f2fs: introduce f2fs_kmem_cache_alloc to hide the unfailed kmem cache allocation

2013-10-21 Thread Gao feng
On 10/21/2013 03:24 PM, Gu Zheng wrote: > +static inline void *f2fs_kmem_cache_alloc(struct kmem_cache *cachep, > + gfp_t flags) > +{ > + void *entry = kmem_cache_alloc(cachep, flags); > +retry: retry after kmem_cache_alloc? > + if (!entry) { >

Re: [PATCH v2 02/13] uprobes: allow ignoring of probe hits

2013-10-21 Thread David Long
On 10/19/13 13:02, Oleg Nesterov wrote: On 10/15, David Long wrote: @@ -1732,9 +1732,6 @@ static void handle_swbp(struct pt_regs *regs) return; } - /* change it in advance for ->handler() and restart */ - instruction_pointer_set(regs, bp_vaddr); - Well,

Re: Re: [tpmdd-devel] TPM patches for 3.12

2013-10-21 Thread Jason Gunthorpe
On Tue, Oct 22, 2013 at 01:50:39AM +0200, Peter Huewe wrote: > Jason, can you please review and test my changes - > I'd probably send the pull request out tomorrow then. > (giving me also the chance to think again whether I should add myself to > MAINTAINERS or not ;) Looks Ok, there are no

Re: [PATCH] Revert "bridge: only expire the mdb entry when query is received"

2013-10-21 Thread Cong Wang
On Sat, Oct 19, 2013 at 3:58 PM, Linus Lüssing wrote: > While this commit was a good attempt to fix issues occuring when no > multicast querier is present, this commit still has two more issues: > > 1) There are cases where mdb entries do not expire even if there is a > querier present. The

RE: [BUG] spi/spi-atmel: DMA rx buffer corruption with SPI_IOC_MESSAGE

2013-10-21 Thread Yang, Wenyou
> -Original Message- > From: Richard Genoud [mailto:richard.gen...@gmail.com] > Sent: 2013年10月21日 16:26 > To: Yang, Wenyou > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Ferre, Nicolas; > Mark Brown > Subject: Re: [BUG] spi/spi-atmel: DMA rx buffer corruption with >

Re: [PATCH] f2fs: introduce f2fs_kmem_cache_alloc to hide the unfailed kmem cache allocation

2013-10-21 Thread Haicheng Li
Looks neat. Reviewed-by: Haicheng Li On Mon, Oct 21, 2013 at 03:24:55PM +0800, Gu Zheng wrote: > Introduce the unfailed version of kmem_cache_alloc named f2fs_kmem_cache_alloc > to hide the retry routine and make the code a bit cleaner. > > Signed-off-by: Gu Zheng > --- >

Re: [PATCH 2/2] intel_microcode, Fix long microcode load time when firmware file is missing

2013-10-21 Thread Ming Lei
On Mon, Oct 21, 2013 at 10:25 PM, Prarit Bhargava wrote: > > > On 10/21/2013 08:32 AM, Ming Lei wrote: >> On Mon, Oct 21, 2013 at 8:26 PM, Prarit Bhargava wrote: And why don't you pass FW_ACTION_HOTPLUG? and you are sure that udev isn't required to handle your microcode update

Re: How to set fops in "struct platform_pwm_backlight_data"?

2013-10-21 Thread Mark Zhang
Ping Thierry... Mark On 10/18/2013 12:48 PM, Mark Zhang wrote: > On 10/17/2013 03:14 PM, Thierry Reding wrote: >> On Thu, Oct 17, 2013 at 02:49:57PM +0800, Mark Zhang wrote: >>> Hi, >>> >>> This is the first time I send mail to linux-pwm, I didn't read through >>> the mails in this list, so if

Re: [PATCH] NTB: remove duplicate defines

2013-10-21 Thread Jon Mason
On Mon, Oct 21, 2013 at 07:19:42AM +0200, Michael Opdenacker wrote: > Remove duplicate defines in drivers/ntb/ntb_regs.h > > Signed-off-by: Michael Opdenacker Applied to my next tree, which should go into 3.13. Thanks, Jon > --- > drivers/ntb/ntb_regs.h | 3 --- > 1 file changed, 3

Re: [PATCH 1/2] firmware, fix request_firmware_nowait() freeze with no uevent

2013-10-21 Thread Ming Lei
On Tue, Oct 22, 2013 at 6:24 AM, Prarit Bhargava wrote: > > > On 10/21/2013 08:24 AM, Ming Lei wrote: >> On Mon, Oct 21, 2013 at 5:35 AM, Prarit Bhargava wrote: >>> If request_firmware_nowait() is called with uevent == NULL, the firmware >>> completion is never marked complete resulting in a

Re: [PATCH] davinci_emac.c: Fix IFF_ALLMULTI setup

2013-10-21 Thread Prabhakar Lad
Hi Mariusz, On Mon, Oct 21, 2013 at 11:15 PM, Mariusz Ceier wrote: > When IFF_ALLMULTI flag is set on interface and IFF_PROMISC isn't, > emac_dev_mcast_set should only enable RX of multicasts and reset > MACHASH registers. > > It does this, but afterwards it either sets up multicast MACs >

RE: [PATCHv5 4/4] Documentation: Add device tree bindings for Freescale FTM PWM.

2013-10-21 Thread Xiubo Li-B47053
Hi Rob, Pawel, Mark, Stephon, Ian Could someone help review and ACK the devicetree binding patch please ? Thanks very much! Best Regards, Xiubo > -Original Message- > From: Thierry Reding [mailto:thierry.red...@gmail.com] > Sent: Tuesday, October 08, 2013 9:57 PM > To:

[PATCH 1/1] [PATCH] ax88179_178a: Add VID:DID for Samsung USB Ethernet Adapter

2013-10-21 Thread freddy
From: Freddy Xin Add VID:DID for Samsung USB Ethernet Adapter. Signed-off-by: Freddy Xin --- drivers/net/usb/ax88179_178a.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/drivers/net/usb/ax88179_178a.c b/drivers/net/usb/ax88179_178a.c index

Re: linux-next: manual merge of the tip tree

2013-10-21 Thread NeilBrown
On Thu, 17 Oct 2013 11:23:49 +0200 Peter Zijlstra wrote: > On Thu, Oct 17, 2013 at 12:28:59PM +1100, NeilBrown wrote: > > I always run with lockdep enabled, and I have done at least basic testing > > Very good! > > > > > > > Stuff like: > > > > > > + for (i = 0; i < NR_STRIPE_HASH_LOCKS;

[PATCH 1/1] [PATCH resubmit] ax88179_178a: Correct the RX error definition in RX header

2013-10-21 Thread freddy
From: Freddy Xin Correct the definition of AX_RXHDR_CRC_ERR and AX_RXHDR_DROP_ERR. They are BIT29 and BIT31 in pkt_hdr seperately. Signed-off-by: Freddy Xin --- drivers/net/usb/ax88179_178a.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [Add SMP support for Allwinner A20: PATCH V5 1/3] Add smp support for Allwinner A20(sunxi 7i).

2013-10-21 Thread cinifr
HI Maxime, How about the new V5 patch? Fan Thanks On 18 October 2013 00:37, Fan Rong wrote: > This patch adds SMP support for the Allwinner A20 SoC. This SoC uses an IP > to, among other things, handle the CPU-related configuration, like the power > clamp, the boot address of the secondary

Re: [PATCH] cpufreq: acpi: Add comment under ACPI_ADR_SPACE_SYSTEM_IO case

2013-10-21 Thread Viresh Kumar
On 22 October 2013 04:09, Rafael J. Wysocki wrote: > I don't think I've missed it. It should be commit 1bab64d in my tree. I fetched your tree yesterday and this wasn't there in linux-next or bleeding-edge branch.. When I fetched it now again, it is there.. Thanks. -- To unsubscribe from this

Re: [PATCH] xfs: fix possible NULL dereference

2013-10-21 Thread Dave Chinner
On Mon, Oct 21, 2013 at 07:00:59PM -0500, Eric Sandeen wrote: > On 10/21/13 6:56 PM, Dave Chinner wrote: > > On Mon, Oct 21, 2013 at 06:18:49PM -0500, Ben Myers wrote: > >> Hey, > >> > >> On Mon, Oct 21, 2013 at 06:12:18PM -0500, Eric Sandeen wrote: > >>> On 10/21/13 5:44 PM, Dave Chinner wrote: >

[PATCH 0/4] drivers/misc: add rawio framework and drivers

2013-10-21 Thread Bin Gao
To read/write registers from a device is very important on embedded system, especially SoC systems. Physically there could be different types of devices based on bus tyes, e.g. PCI devices, I2C (slave)devices, I/O devices(memory mapped), inter-processor devices, etc. Typically there are userland

[PATCH 4/4] drivers/misc: add rawio i2c driver

2013-10-21 Thread Bin Gao
With i2c rawio driver, you can read/write registers from any i2c client(slave) device via debug fs interface. This driver is based on the rawio framework. Signed-off-by: Bin Gao --- drivers/misc/rawio/Kconfig | 11 ++ drivers/misc/rawio/Makefile| 1 + drivers/misc/rawio/rawio_i2c.c |

[PATCH 3/4] drivers/misc: add rawio iomem driver

2013-10-21 Thread Bin Gao
With iomem rawio driver, you can read/write memory mapped registers from any I/O device via debug fs interface. This driver is based on the rawio framework. Signed-off-by: Bin Gao --- drivers/misc/rawio/Kconfig | 12 ++ drivers/misc/rawio/Makefile | 1 +

[PATCH 2/4] drivers/misc: add rawio pci driver

2013-10-21 Thread Bin Gao
With pci rawio driver, you can read/write any pci config space register by debug fs interface. This driver is based on the rawio framework. Signed-off-by: Bin Gao --- drivers/misc/rawio/Kconfig | 15 +++ drivers/misc/rawio/Makefile| 1 + drivers/misc/rawio/rawio_pci.c | 235

Re: [PATCH] xfs: fix possible NULL dereference

2013-10-21 Thread Eric Sandeen
On 10/21/13 6:56 PM, Dave Chinner wrote: > On Mon, Oct 21, 2013 at 06:18:49PM -0500, Ben Myers wrote: >> Hey, >> >> On Mon, Oct 21, 2013 at 06:12:18PM -0500, Eric Sandeen wrote: >>> On 10/21/13 5:44 PM, Dave Chinner wrote: On Mon, Oct 21, 2013 at 03:58:23PM -0500, Eric Sandeen wrote: > On

[PATCH 1/4] drivers/misc: add rawio framework driver

2013-10-21 Thread Bin Gao
Rawio provides a framework to read/write registers from a bus, including pci, i2c, I/O device(memory mapped), etc. based on debug fs. Rawio bus drivers implement the read/write operation on a specific bus on top of the rawio framework driver. They are designed to help device driver and kernel

Re: [PATCH] xfs: fix possible NULL dereference

2013-10-21 Thread Dave Chinner
On Mon, Oct 21, 2013 at 06:18:49PM -0500, Ben Myers wrote: > Hey, > > On Mon, Oct 21, 2013 at 06:12:18PM -0500, Eric Sandeen wrote: > > On 10/21/13 5:44 PM, Dave Chinner wrote: > > > On Mon, Oct 21, 2013 at 03:58:23PM -0500, Eric Sandeen wrote: > > >> On 10/21/13 1:32 PM, Geyslan G. Bem wrote: >

[PATCH 2/2] tpm: use tabs instead of whitespaces in Kconfig

2013-10-21 Thread Peter Huewe
just like the other entries Signed-off-by: Peter Huewe --- drivers/char/tpm/Kconfig | 16 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/char/tpm/Kconfig b/drivers/char/tpm/Kconfig index 4716af5..4dd4363 100644 --- a/drivers/char/tpm/Kconfig +++

[PATCH 1/2] tpm: Fix module name description in Kconfig for tpm_i2c_*

2013-10-21 Thread Peter Huewe
This patch changes the displayed module name from tpm_tis_i2c_infineon to its actual name tpm_i2c_infineon and from tpm_stm_st33_i2c to tpm_i2c_stm_st33 Signed-off-by: Peter Huewe --- drivers/char/tpm/Kconfig |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git

Aw: Re: [tpmdd-devel] TPM patches for 3.12

2013-10-21 Thread Peter Huewe
Hi Jason, Ashley, I just pushed the changes to my github tree https://github.com/PeterHuewe/linux-tpmdd/commits/for-james along with some additional changes: - before the rename I made tpm.c checkpatch clean ;) - I did some cleanup on the indention / white spaces of both Kconfig and bindings

[PATCH 2/3] tty: xuartps: Fix build error due to missing forward declaration

2013-10-21 Thread Soren Brinkmann
If CONFIG_PM_SLEEP is enabled and CONFIG_SERIAL_XILINX_PS_UART_CONSOLE is not, a forward declaration of the uart_driver struct is not included, leading to a build error due to an undeclared variable. Fixing this by moving the definition of the struct uart_driver before the definition of the

[PATCH 0/3] tty: xuartps: Fix build

2013-10-21 Thread Soren Brinkmann
This should fix the issues in the x86 build of the xuartps driver. The issues are: - [tty:tty-next 72/75] drivers/tty/serial/xilinx_uartps.c:436:7: error: 'PRE_RATE_CHANGE' undeclared - [tty:tty-next 73/75] drivers/tty/serial/xilinx_uartps.c:1227:21: error: 'xuartps_uart_driver' undeclared

[PATCH 1/3] tty: xuartps: Fix "may be used uninitialized" build warning

2013-10-21 Thread Soren Brinkmann
Initialize varibles for which a 'may be used uninitalized' warning is issued. Signed-off-by: Soren Brinkmann --- The warning is actually a false positive. The variables are passed to a function per reference. That function uses those variables to return values, which then are used by the caller.

[PATCH 3/3] tty: xuartps: Fix build error when COMMON_CLK is not set

2013-10-21 Thread Soren Brinkmann
Clock notifiers are only available when CONFIG_COMMON_CLK is enabled. Hence all notifier related code has to be protected by corresponsing ifdefs. Signed-off-by: Soren Brinkmann --- Alternatively this could be fixed by adding a dependency on COMMON_CLK in Kconfig. That would keep the code

Re: [BUG] 3.12.0-rcX IPv6 panic

2013-10-21 Thread Bob Tracy
On Mon, Oct 21, 2013 at 05:52:52PM +0200, Hannes Frederic Sowa wrote: > On Mon, Oct 21, 2013 at 08:18:46AM -0500, Bob Tracy wrote: > > Actually, a regression: the 3.11 kernel is rock-solid stable on my > > Alpha. > > > > Beginning with 3.12.0-rc1, I can reliably trigger a kernel panic by > >

Re: [PATCH] md: avoid deadlock when md_set_badblocks.

2013-10-21 Thread NeilBrown
On Sat, 12 Oct 2013 01:10:03 -0400 ycbzzj...@gmail.com wrote: > From: Bian Yu > > When operate harddisk and hit errors, md_set_badblocks is called after > scsi_restart_operations which already disabled the irq. but md_set_badblocks > will call write_sequnlock_irq and enable irq. so softirq can

Re: [PATCH] RFC: interrupt consistency check for OF GPIO IRQs

2013-10-21 Thread Laurent Pinchart
Hi Stephen, On Sunday 20 October 2013 22:35:04 Stephen Warren wrote: > On 10/20/2013 01:41 PM, Laurent Pinchart wrote: > > On Tuesday 17 September 2013 17:36:32 Grant Likely wrote: > >> On Thu, 12 Sep 2013 17:57:00 +0200, Alexander Holler wrote: > >>> Am 12.09.2013 17:19, schrieb Stephen Warren:

Re: [PATCH] xfs: fix possible NULL dereference

2013-10-21 Thread Ben Myers
Hey, On Mon, Oct 21, 2013 at 06:12:18PM -0500, Eric Sandeen wrote: > On 10/21/13 5:44 PM, Dave Chinner wrote: > > On Mon, Oct 21, 2013 at 03:58:23PM -0500, Eric Sandeen wrote: > >> On 10/21/13 1:32 PM, Geyslan G. Bem wrote: > >>> This patch puts a 'break' in the true branch, avoiding the > >>>

Re: [RESEND PATCH v2 6/6] mmc: sdhci-bcm-kona: Add basic use of clocks

2013-10-21 Thread Tim Kryger
On Thu, Oct 17, 2013 at 7:13 AM, Mark Rutland wrote: > On Wed, Oct 16, 2013 at 10:47:10PM +0100, Tim Kryger wrote: >> Enable the external clock needed by the host controller during the >> probe and disable it during the remove. > > This requires a biding document update. The current best

Re: [PATCH] xfs: fix possible NULL dereference

2013-10-21 Thread Eric Sandeen
On 10/21/13 5:44 PM, Dave Chinner wrote: > On Mon, Oct 21, 2013 at 03:58:23PM -0500, Eric Sandeen wrote: >> On 10/21/13 1:32 PM, Geyslan G. Bem wrote: >>> This patch puts a 'break' in the true branch, avoiding the 'icptr->ic_next' >>> dereferencing. >> >> Reviewed-by: Eric Sandeen > > Actually,

Standing for the Technical Advisory Board

2013-10-21 Thread Josh Triplett
I'm standing for election to the Linux Foundation Technical Advisory Board. I plan to attend the Wednesday-evening event that will host the TAB election. I work in many different areas of the Linux and Open Source community, at all levels of the stack, including the kernel, plumbing,

Re: [PATCH] mac802154: correct a typo in ieee802154_alloc_device() prototype

2013-10-21 Thread David Miller
From: Alexandre Belloni Date: Mon, 21 Oct 2013 19:09:58 +0200 > This has no other impact than a cosmetic one. > > Signed-off-by: Alexandre Belloni Applied. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More

Re: [PATCH] davinci_emac.c: Fix IFF_ALLMULTI setup

2013-10-21 Thread David Miller
From: Mariusz Ceier Date: Mon, 21 Oct 2013 19:45:04 +0200 > When IFF_ALLMULTI flag is set on interface and IFF_PROMISC isn't, > emac_dev_mcast_set should only enable RX of multicasts and reset > MACHASH registers. > > It does this, but afterwards it either sets up multicast MACs > filtering or

Re: [PATCH 2/3] sched: Fix asymmetric scheduling for POWER7

2013-10-21 Thread Michael Neuling
Vaidyanathan Srinivasan wrote: > Asymmetric scheduling within a core is a scheduler loadbalancing > feature that is triggered when SD_ASYM_PACKING flag is set. The goal > for the load balancer is to move tasks to lower order idle SMT threads > within a core on a POWER7 system. > > In

Re: [PATCH 1/1] [PATCH] ax88179_178a: Correct the RX error definition in RX header

2013-10-21 Thread David Miller
From: fre...@asix.com.tw Date: Mon, 21 Oct 2013 14:37:40 +0800 > From: Freddy Xin > > Correct the definition of AX_RXHDR_CRC_ERR and > AX_RXHDR_DROP_ERR. They are BIT29 and BIT31 in pkt_hdr > seperately. > Add VID:DID for Samsung USB Ethernet Adapter. > > Signed-off-by: Freddy Xin Do not do

Re: [PATCH] extcon: palmas: Handle ID interrupt properly using USB_ID_INT_SRC

2013-10-21 Thread Chanwoo Choi
Hi George, On 10/15/2013 01:40 PM, George Cherian wrote: > Laxman/Chanwoo/Kishon, > > Any comments on this!! > Regards > -George > On 10/11/2013 12:18 AM, George Cherian wrote: >> Always cross check with the ID state and the source of interrupt. >> Also add a case in which ID Source is ID_GND

Re: [PATCH] cpufreq: intel_pstate: fix possible integer overflow

2013-10-21 Thread Rafael J. Wysocki
On Monday, October 21, 2013 03:43:51 PM Dirk Brandewie wrote: > On 10/21/2013 03:47 PM, Rafael J. Wysocki wrote: > > On Monday, October 21, 2013 08:56:22 AM Dirk Brandewie wrote: > >> On 10/19/2013 08:31 PM, Geyslan G. Bem wrote: > >>> The expression 'pstate << 8' is evaluated using 32-bit

[PATCH v2 03/23] ima: provide support for arbitrary hash algorithms

2013-10-21 Thread Mimi Zohar
From: Dmitry Kasatkin In preparation of supporting more hash algorithms with larger hash sizes needed for signature verification, this patch replaces the 20 byte sized digest, with a more flexible structure. The new structure includes the hash algorithm, digest size, and digest. Changelog: -

[PATCH v2 01/23] crypto: provide single place for hash algo information

2013-10-21 Thread Mimi Zohar
From: Dmitry Kasatkin This patch provides a single place for information about hash algorithms, such as hash sizes and kernel driver names, which will be used by IMA and the public key code. Changelog: - Fix sparse and checkpatch warnings - Move hash algo enums to uapi for userspace signing

[PATCH v2 05/23] ima: pass full xattr with the signature

2013-10-21 Thread Mimi Zohar
From: Dmitry Kasatkin For possibility to use xattr type for new signature formats, pass full xattr to the signature verification function. Signed-off-by: Dmitry Kasatkin Signed-off-by: Mimi Zohar --- security/integrity/digsig.c | 5 +++-- security/integrity/evm/evm_main.c | 4

[PATCH v2 06/23] ima: use dynamically allocated hash storage

2013-10-21 Thread Mimi Zohar
From: Dmitry Kasatkin For each inode in the IMA policy, an iint is allocated. To support larger hash digests, the iint digest size changed from 20 bytes to the maximum supported hash digest size. Instead of allocating the maximum size, which most likely is not needed, this patch dynamically

[PATCH v2 04/23] ima: read and use signature hash algorithm

2013-10-21 Thread Mimi Zohar
From: Dmitry Kasatkin All files on the filesystem, currently, are hashed using the same hash algorithm. In preparation for files from different packages being signed using different hash algorithms, this patch adds support for reading the signature hash algorithm from the 'security.ima'

[PATCH v2 07/23] ima: differentiate between template hash and file data hash sizes

2013-10-21 Thread Mimi Zohar
The TPM v1.2 limits the template hash size to 20 bytes. This patch differentiates between the template hash size, as defined in the ima_template_entry, and the file data hash size, as defined in the ima_template_data. Subsequent patches add support for different file data hash algorithms.

[PATCH v2 12/23] ima: pass the filename argument up to ima_add_template_entry()

2013-10-21 Thread Mimi Zohar
From: Roberto Sassu Pass the filename argument to ima_add_template_entry() in order to eliminate a dependency on template specific data (third argument of integrity_audit_msg). This change is required because, with the new template management mechanism, the generation of a new measurement entry

[PATCH v2 13/23] ima: define new function ima_alloc_init_template() to API

2013-10-21 Thread Mimi Zohar
From: Roberto Sassu Instead of allocating and initializing the template entry from multiple places (eg. boot aggregate, violation, and regular measurements), this patch defines a new function called ima_alloc_init_template(). The new function allocates and initializes the measurement entry with

[PATCH v2 02/23] keys: change asymmetric keys to use common hash definitions

2013-10-21 Thread Mimi Zohar
From: Dmitry Kasatkin This patch makes use of the newly defined common hash algorithm info, replacing, for example, PKEY_HASH with HASH_ALGO. Changelog: - Lindent fixes - Mimi Signed-off-by: Dmitry Kasatkin Signed-off-by: Mimi Zohar --- crypto/asymmetric_keys/Kconfig| 1 +

[PATCH v2 11/23] ima: pass the file descriptor to ima_add_violation()

2013-10-21 Thread Mimi Zohar
From: Roberto Sassu Pass the file descriptor instead of the inode to ima_add_violation(), to make the latter consistent with ima_store_measurement() in preparation for the new template architecture. Signed-off-by: Roberto Sassu Signed-off-by: Mimi Zohar --- security/integrity/ima/ima.h

[PATCH v2 15/23] ima: define template fields library and new helpers

2013-10-21 Thread Mimi Zohar
From: Roberto Sassu This patch defines a library containing two initial template fields, inode digest (d) and file name (n), the 'ima' template descriptor, whose format is 'd|n', and two helper functions, ima_write_template_field_data() and ima_show_template_field_data(). Changelog: - replace

Re: [PATCH] cpufreq: s3c64xx: Rename index to driver_data

2013-10-21 Thread Rafael J. Wysocki
On Monday, October 21, 2013 12:59:30 PM Viresh Kumar wrote: > On 15 October 2013 00:06, Charles Keepax > wrote: > > The index field of cpufreq_frequency_table has been renamed to driver > > data in this commit: > > > > commit 5070158804b5339c71809f5e673cea1cfacd804d > > cpufreq: rename index as

[PATCH v2 10/23] ima: ima_calc_boot_agregate must use SHA1

2013-10-21 Thread Mimi Zohar
From: Dmitry Kasatkin With multiple hash algorithms, ima_hash_tfm is no longer guaranteed to be sha1. Need to force to use sha1. Changelog: - pass ima_digest_data to ima_calc_boot_aggregate() instead of char * (Roberto Sassu); - create an ima_digest_data structure in ima_add_boot_aggregate()

Re: [PATCH] atm: firestream: remove duplicate define

2013-10-21 Thread David Miller
From: chas williams - CONTRACTOR Date: Mon, 21 Oct 2013 07:53:35 -0400 > Acked-by: Chas Williams > > On Mon, 21 Oct 2013 10:12:41 +0200 > Michael Opdenacker wrote: > >> This patch removes a duplicate define in drivers/atm/firestream.h >> >> Signed-off-by: Michael Opdenacker Applied. -- To

Re: [PATCH v2] chelsio: remove duplicate defines

2013-10-21 Thread David Miller
From: Michael Opdenacker Date: Mon, 21 Oct 2013 07:09:49 +0200 > This removes multiple duplicate definitions > in drivers/net/ethernet/chelsio/cxgb3/regs.h > > Signed-off-by: Michael Opdenacker Applied. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of

Re: [PATCH] ethernet: moxa: remove duplicate includes

2013-10-21 Thread David Miller
From: Michael Opdenacker Date: Sun, 20 Oct 2013 07:13:56 +0200 > Reported by "make includecheck" > > Tested that drivers/net/ethernet/moxa/moxart_ether.c still compiles > well on ARM > > Signed-off-by: Michael Opdenacker Applied. -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH] cgxb4: remove duplicate include in cxgb4.h

2013-10-21 Thread David Miller
From: Michael Opdenacker Date: Sun, 20 Oct 2013 07:10:01 +0200 > Reported by "make includecheck" > > Tested that C sources including this file still compile well on x86 > > Signed-off-by: Michael Opdenacker Applied. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel"

[PATCH v2 20/23] ima: add Kconfig default measurement list template

2013-10-21 Thread Mimi Zohar
This patch adds a Kconfig option to select the default IMA measurement list template. The 'ima' template limited the filedata hash to 20 bytes and the pathname to 255 charaters. The 'ima-ng' measurement list template permits larger hash digests and longer pathnames. Changelog: - keep 'select

[PATCH v2 09/23] ima: support arbitrary hash algorithms in ima_calc_buffer_hash

2013-10-21 Thread Mimi Zohar
From: Dmitry Kasatkin ima_calc_buffer_hash will be used with different hash algorithms. This patch provides support for arbitrary hash algorithms in ima_calc_buffer_hash. Signed-off-by: Dmitry Kasatkin Signed-off-by: Mimi Zohar --- security/integrity/ima/ima_api.c| 3 +++

[PATCH v2 14/23] ima: new templates management mechanism

2013-10-21 Thread Mimi Zohar
From: Roberto Sassu The original 'ima' template is fixed length, containing the filedata hash and pathname. The filedata hash is limited to 20 bytes (md5/sha1). The pathname is a null terminated string, limited to 255 characters. To overcome these limitations and to add additional file

[PATCH v2 19/23] ima: defer determining the appraisal hash algorithm for 'ima' template

2013-10-21 Thread Mimi Zohar
From: Roberto Sassu The same hash algorithm should be used for calculating the file data hash for the IMA measurement list, as for appraising the file data integrity. (The appraise hash algorithm is stored in the 'security.ima' extended attribute.) The exception is when the reference file data

[PATCH v2 17/23] ima: switch to new template management mechanism

2013-10-21 Thread Mimi Zohar
From: Roberto Sassu This patch performs the switch to the new template mechanism by modifying the functions ima_alloc_init_template(), ima_measurements_show() and ima_ascii_measurements_show(). The old function ima_template_show() was removed as it is no longer needed. Also, if the template

Re: [PATCH] Revert "bridge: only expire the mdb entry when query is received"

2013-10-21 Thread David Miller
From: Linus Lüssing Date: Sun, 20 Oct 2013 00:58:57 +0200 > While this commit was a good attempt to fix issues occuring when no > multicast querier is present, this commit still has two more issues: > > 1) There are cases where mdb entries do not expire even if there is a > querier present. The

[PATCH v2 21/23] ima: define kernel parameter 'ima_template=' to change configured default

2013-10-21 Thread Mimi Zohar
From: Roberto Sassu This patch allows users to specify from the kernel command line the template descriptor, among those defined, that will be used to generate and display measurement entries. If an user specifies a wrong template, IMA reverts to the template descriptor set in the kernel

Re: [PATCH] xfs: fix possible NULL dereference

2013-10-21 Thread Dave Chinner
On Mon, Oct 21, 2013 at 03:58:23PM -0500, Eric Sandeen wrote: > On 10/21/13 1:32 PM, Geyslan G. Bem wrote: > > This patch puts a 'break' in the true branch, avoiding the 'icptr->ic_next' > > dereferencing. > > Reviewed-by: Eric Sandeen Actually, NACK. > Hm, yeah - cmn_err(CE_PANIC, " " ); used

[PATCH v2 23/23] ima: provide hash algo info in the xattr

2013-10-21 Thread Mimi Zohar
From: Dmitry Kasatkin All files labeled with 'security.ima' hashes, are hashed using the same hash algorithm. Changing from one hash algorithm to another, requires relabeling the filesystem. This patch defines a new xattr type, which includes the hash algorithm, permitting different files to

Re: [PATCH] cpufreq: intel_pstate: fix possible integer overflow

2013-10-21 Thread Dirk Brandewie
On 10/21/2013 03:47 PM, Rafael J. Wysocki wrote: On Monday, October 21, 2013 08:56:22 AM Dirk Brandewie wrote: On 10/19/2013 08:31 PM, Geyslan G. Bem wrote: The expression 'pstate << 8' is evaluated using 32-bit arithmetic while 'val' expects an expression of type u64. Signed-off-by: Geyslan

[PATCH v2 22/23] ima: enable support for larger default filedata hash algorithms

2013-10-21 Thread Mimi Zohar
The IMA measurement list contains two hashes - a template data hash and a filedata hash. The template data hash is committed to the TPM, which is limited, by the TPM v1.2 specification, to 20 bytes. The filedata hash is defined as 20 bytes as well. Now that support for variable length

[PATCH v2 16/23] ima: define new template ima-ng and template fields d-ng and n-ng

2013-10-21 Thread Mimi Zohar
From: Roberto Sassu This patch adds support for the new template 'ima-ng', whose format is defined as 'd-ng|n-ng'. These new field definitions remove the size limitations of the original 'ima' template. Further, the 'd-ng' field prefixes the inode digest with the hash algorithim, when

[PATCH v2 18/23] ima: add audit log support for larger hashes

2013-10-21 Thread Mimi Zohar
Different files might be signed based on different hash algorithms. This patch prefixes the audit log measurement hash with the hash algorithm. Changelog: - use generic HASH_ALGO defintions - use ':' as delimiter between the hash algorithm and the digest (Roberto Sassu) Signed-off-by: Mimi

[PATCH v2 08/23] ima: provide dedicated hash algo allocation function

2013-10-21 Thread Mimi Zohar
From: Dmitry Kasatkin This patch provides dedicated hash algo allocation and deallocation function which can be used by different clients. Signed-off-by: Dmitry Kasatkin Signed-off-by: Mimi Zohar --- security/integrity/ima/ima_crypto.c | 43 + 1 file

[PATCH v2 00/23] ima: larger digests and extensible template support

2013-10-21 Thread Mimi Zohar
This patch set adds support for additional hash algorithms with larger digests, as well as support for additional file metadata in the IMA measurement list. The existing IMA measurement list entries, which are exposed to userspace via the securityfs ascii/binary_runtime_measurement lists, are

Re: [PATCH v3 4/9] ACPI, x86: Extended error log driver for x86 platform

2013-10-21 Thread Tony Luck
On Mon, Oct 21, 2013 at 12:03 PM, Luck, Tony wrote: > So this is on top of the 9 patch series (using the V4 that Chen Gong > posted for part 4/9 and V3 for all the others). Obviously it should > be folded back into the series if we go this way. > > It's a bit simplistic right now - the

pull request: bluetooth-next 2013-10-21

2013-10-21 Thread Gustavo Padovan
Hi John, One more big pull request for 3.13. These are the patches we queued during last week. Here you will find a lot of improvements to the HCI and L2CAP and MGMT layers with the main ones being a better debugfs support and end of work of splitting L2CAP into Core and Socket parts. Please

[RFC v2 0/6] DRM revoke support

2013-10-21 Thread David Herrmann
Hi This is the 2nd revision of reliable unplug support for DRM. As revoke support for the generic VFS layer is still not even close to being merged, this fixes the generic DRM layer to handle unplugged devices gracefully. This series fixes the DRM core to track any running f_ops. During device

Re: [PATCH] cpufreq: intel_pstate: fix possible integer overflow

2013-10-21 Thread Rafael J. Wysocki
On Monday, October 21, 2013 08:56:22 AM Dirk Brandewie wrote: > On 10/19/2013 08:31 PM, Geyslan G. Bem wrote: > > The expression 'pstate << 8' is evaluated using 32-bit arithmetic while > > 'val' expects an expression of type u64. > > > > Signed-off-by: Geyslan G. Bem > Acked-by: Dirk Brandewie

[RFC v2 2/6] percpu_rw_semaphore: add percpu_down_read_trylock()

2013-10-21 Thread David Herrmann
This is basically a copy of percpu_down_read() but does not sleep if a writer is already active. Same semantics as classic down_read_trylock(). Signed-off-by: David Herrmann --- include/linux/percpu-rwsem.h | 1 + lib/percpu-rwsem.c | 20 2 files changed, 21

[RFC v2 4/6] drm: make dev->unplugged reliable

2013-10-21 Thread David Herrmann
If we unplug a DRM device, we currently set dev->unplugged and then wait for all open-files to close. Beside rather subtle race-conditions, the main disadvantage is that most DRM device resources will stay allocated and registered. This means the device cannot be re-used by another driver until

[RFC v2 6/6] drm: zap mmaps for dead devices

2013-10-21 Thread David Herrmann
Once a DRM device is unregistered, user-space must not access any existing mmaps, anymore. As we cannot rely on this, we now zap all of them in drm_dev_unregister(). Any driver which wants to support that needs to protect their fault() and mmap() handlers via drm_dev_get_active(), otherwise users

[RFC v2 5/6] drm: make drm_dev_unregister() immediate

2013-10-21 Thread David Herrmann
Drivers which support unplugging currently use drm_unplug_dev() which waits for all open files to be closed before unregistering a device. All other drivers just immediately unregister the device if unplugged or unloaded, which results in panics if there're pending open files. This patch

[RFC v2 3/6] drm: split drm_release()

2013-10-21 Thread David Herrmann
This splits off real file-destruction into drm_close(). drm_release() now calls drm_close() and then takes care of any device-cleanup which isn't strictly related to file-destruction. Besides making the code more readable, this is needed if we want to close open-files during GPU unplug. We could

[RFC v2 1/6] percpu_rw_semaphore: export symbols for modules

2013-10-21 Thread David Herrmann
DRM could make great use of percpu-rwsems to track active users and wait for them during hw hotplugging. Export symbols and allow using them in runtime loadable modules. Signed-off-by: David Herrmann --- lib/Makefile | 2 +- lib/percpu-rwsem.c | 7 +++ 2 files changed, 8

Re: [PATCH] cpufreq: acpi: Add comment under ACPI_ADR_SPACE_SYSTEM_IO case

2013-10-21 Thread Rafael J. Wysocki
On Monday, October 21, 2013 12:43:32 PM Viresh Kumar wrote: > On 13 October 2013 06:07, Viresh Kumar wrote: > > On 13/10/2013, Rafael J. Wysocki wrote: > >> -> What about this: > >> > >> /* > >>* The core will not set policy->cur, because cpufreq_driver->get is > >> NULL, > >>

Re: [PATCH 1/2] firmware, fix request_firmware_nowait() freeze with no uevent

2013-10-21 Thread Prarit Bhargava
On 10/21/2013 08:24 AM, Ming Lei wrote: > On Mon, Oct 21, 2013 at 5:35 AM, Prarit Bhargava wrote: >> If request_firmware_nowait() is called with uevent == NULL, the firmware >> completion is never marked complete resulting in a hang in the process. >> >> If uevent is undefined, that means we're

  1   2   3   4   5   6   7   8   9   10   >