Re: [PATCH 06/18] xen/pvcalls: handle commands from the frontend

2017-05-16 Thread Stefano Stabellini
On Mon, 15 May 2017, Boris Ostrovsky wrote: > On 05/15/2017 04:35 PM, Stefano Stabellini wrote: > > When the other end notifies us that there are commands to be read > > (pvcalls_back_event), wake up the backend thread to parse the command. > > > > The command ring works like most other Xen rings,

Re: [PATCH] misc: pci_endpoint_test: select CONFIG_CRC32

2017-05-16 Thread Greg Kroah-Hartman
On Thu, May 11, 2017 at 02:13:33PM +0200, Arnd Bergmann wrote: > Without CRC32, we get this link error: > > pci_endpoint_test.c:(.text+0x2509e): undefined reference to `crc32_le' > > Fixes: 58c89c8aa0e8 ("misc: Add host side PCI driver for PCI test function > device") There is no such commit id

Re: [PATCH] [iov_iter] use memmove() when copying to/from user page

2017-05-16 Thread Dmitry Vyukov
On Tue, May 16, 2017 at 1:52 PM, Al Viro wrote: > On Tue, May 16, 2017 at 01:10:56PM -0700, Dmitry Vyukov wrote: > >> > * behaviour of sendfile() in such a case. And there I've no >> > problem >> > with saying "contents after operation is undefined". If you wish to change >> > that, by

Re: [PATCH 08/18] xen/pvcalls: implement connect command

2017-05-16 Thread Stefano Stabellini
On Mon, 15 May 2017, Boris Ostrovsky wrote: > On 05/15/2017 04:36 PM, Stefano Stabellini wrote: > > Allocate a socket. Keep track of socket <-> ring mappings with a new data > > structure, called sock_mapping. Implement the connect command by calling > > inet_stream_connect, and mapping the new ind

[PATCH 1/3] drm/radeon: Cleanup display interrupt handling for evergreen, si

2017-05-16 Thread Lyude
The current code here is really, really bad. A huge amount of it looks to be copy pasted, it has some weird hatred of arrays and code sharing, switch cases everywhere for things that really don't need them, and it makes the file seem immensely more complex then it actually is. This is a pain for ma

[PATCH 0/3] Cleanup evergreen/si IRQ handling code

2017-05-16 Thread Lyude
This is the first part of me going through and cleaning up the IRQ handling code for radeon, since after taking a look at it the other day while trying to debug something I realized basically all of the code was copy pasted everywhere, and quite difficult to actually read through. Will come up wit

[PATCH 2/3] drm/radeon: Cleanup HDMI audio interrupt handling for evergreen

2017-05-16 Thread Lyude
Same as the previous patch, but now for handling HDMI audio interrupts. Signed-off-by: Lyude --- drivers/gpu/drm/radeon/evergreen.c | 152 ++--- drivers/gpu/drm/radeon/radeon.h| 7 +- 2 files changed, 24 insertions(+), 135 deletions(-) diff --git a/drivers/

[PATCH 3/3] drm/radeon: Cleanup pageflipping IRQ handling for evergreen, si

2017-05-16 Thread Lyude
Same as the previous patch, but for pageflipping now. Signed-off-by: Lyude --- drivers/gpu/drm/radeon/evergreen.c | 70 ++-- drivers/gpu/drm/radeon/radeon.h| 7 +--- drivers/gpu/drm/radeon/si.c| 72 ++ 3 files chang

Re: [PATCH net-next] net: dsa: store CPU port pointer in the tree

2017-05-16 Thread Florian Fainelli
On 05/16/2017 11:10 AM, Vivien Didelot wrote: > A dsa_switch_tree instance holds a dsa_switch pointer and a port index > to identify the switch port to which the CPU is attached. > > Now that the DSA layer has a dsa_port structure to hold this data, use > it to point the switch CPU port. > > This

Re: [PATCH 2/6] locking: Introduce range reader/writer lock

2017-05-16 Thread Davidlohr Bueso
On Mon, 15 May 2017, Peter Zijlstra wrote: Nearly every range_interval_tree_foreach() usage has a __range_intersects_intree() in front, suggesting our range_interval_tree_foreach() is 'broken'. I suppose the only question is if we should fix range_interval_tree_foreach() or interval_tree_iter_f

[PATCH] crypto: stm32 - Add CRC32 support for STM32F4XX

2017-05-16 Thread Cosar Dindar
This patch series add hardware CRC32 ("Ethernet") calculation support for STMicroelectronics STM32F4XX series devices. As an hardware limitation polynomial and key setting are not supported as they are fixed as 0x4C11DB7 (poly) and 0x (key). CRC32C Castagnoli algorithm is not supported al

[Kernel.org Helpdesk #40777] Re: Linux 4.12-rc1 (file locations)

2017-05-16 Thread Konstantin Ryabitsev via RT
On 2017-05-15 11:42:48, torva...@linux-foundation.org wrote: > so the capability is there, it's just not done as several individual > files any more. I've published a news item explaining the new process and the reasoning behind not providing these automatically generated tarballs and patches as

Re: [PATCH] nvmem: core: fix leaks on registration errors

2017-05-16 Thread Andrey Smirnov
On Tue, May 16, 2017 at 6:44 AM, Johan Hovold wrote: > Make sure to deregister and release the nvmem device and underlying > memory on registration errors. > > Note that the private data must be freed using put_device() once the > struct device has been initialised. > > Also note that there's a re

Re: [PATCH 1/2] kbuild: clang: Disable 'address-of-packed-member' warning

2017-05-16 Thread Doug Anderson
Hi, On Fri, Apr 21, 2017 at 2:39 PM, Matthias Kaehlcke wrote: > clang generates plenty of these warnings in different parts of the code, > to an extent that the warnings are little more than noise. Disable the > 'address-of-packed-member' warning. > > Signed-off-by: Matthias Kaehlcke > --- > Ma

Re: [PATCH] fix spelling mistake: "dimesions" -> "dimensions"

2017-05-16 Thread Eric Anholt
Colin King writes: > From: Colin Ian King > > Trivial fix to spelling mistake in DRM_ERROR message and split > over two lines to clean up a "line over 80 characters" checkpatch > warning. Added "drm/vc4" to the commit summary, and pushed. Thanks! signature.asc Description: PGP signature

Re: [PATCH] [iov_iter] use memmove() when copying to/from user page

2017-05-16 Thread Al Viro
On Tue, May 16, 2017 at 02:01:51PM -0700, Dmitry Vyukov wrote: > > In that case your patch does not suffice. Overlapping move _forwards_ still > > yields unexpected results, doesn't it? > > Why? memmove can move both ways. Do we need to change more memcpy's to > memmove's? Because it's not goin

Re: [PATCH] nvmem: core: Prevent memory leak when device is unregistered

2017-05-16 Thread Andrey Smirnov
On Mon, May 15, 2017 at 4:13 AM, Mika Westerberg wrote: > The nvmem_unregister() calls device_del() for the device but forgets to > call put_device() to actually release the device object which causes > that memory to be leaked. > > Fix this by calling device_unregister() for the device intead whi

Re: [PATCH V1] i2c: xgene: Add support for I2C_FUNC_I2C functionality

2017-05-16 Thread Wolfram Sang
On Wed, Apr 26, 2017 at 11:41:45AM +0700, tnhu...@apm.com wrote: > From: Tin Huynh > > Certain I2C slave drivers, such as the pca95xx, require > only I2C operations instead of SMBus extensions. > This patch adds I2C_FUNC_I2C functionally to support those drivers. No Signed-off, please run checkp

RE: [RFC 00/06] printk: add more new kernel pointer filter options.

2017-05-16 Thread Roberts, William C
> -Original Message- > From: Sergey Senozhatsky [mailto:sergey.senozhatsky.w...@gmail.com] > Sent: Wednesday, May 10, 2017 6:38 PM > To: Greg KH > Cc: kernel-harden...@lists.openwall.com; Petr Mladek ; > Sergey Senozhatsky ; linux- > ker...@vger.kernel.org; Catalin Marinas ; Will > Deaco

Re: [PATCH V1] i2c: xgene: Add support for I2C_FUNC_I2C functionality

2017-05-16 Thread Wolfram Sang
On Wed, Apr 26, 2017 at 11:41:45AM +0700, tnhu...@apm.com wrote: > From: Tin Huynh > > Certain I2C slave drivers, such as the pca95xx, require > only I2C operations instead of SMBus extensions. > This patch adds I2C_FUNC_I2C functionally to support those drivers. Again, no Signed-off. I can't ap

Re: [PATCH V1] i2c: xgene: Add support for I2C_FUNC_I2C functionality

2017-05-16 Thread Wolfram Sang
On Tue, May 16, 2017 at 11:39:08PM +0200, Wolfram Sang wrote: > On Wed, Apr 26, 2017 at 11:41:45AM +0700, tnhu...@apm.com wrote: > > From: Tin Huynh > > > > Certain I2C slave drivers, such as the pca95xx, require > > only I2C operations instead of SMBus extensions. > > This patch adds I2C_FUNC_I2

Re: [PATCH V1] i2c: xgene: Set ACPI_COMPANION_I2C

2017-05-16 Thread Wolfram Sang
On Wed, Apr 26, 2017 at 04:48:51PM +0700, tnhu...@apm.com wrote: > From: Tin Huynh > > With ACPI, i2c-core requires ACPI companion to be set in order for it > to create slave device. > This patch sets the ACPI companion accordingly. Again, no Signed-off. I can't apply it without one. lso, please

Re: [PATCH 2/2] kbuild: clang: Disable the 'duplicate-decl-specifier' warning

2017-05-16 Thread Doug Anderson
Hi On Fri, Apr 21, 2017 at 2:39 PM, Matthias Kaehlcke wrote: > clang generates plenty of these warnings in different parts of the code. > They are mostly caused by container_of() and other macros which declare > a "const *" variable for their internal use which triggers a > "duplicate 'const' sp

Re: WARNING at arch/x86/kernel/alternative.c:707 text_poke+0x25d/0x270

2017-05-16 Thread Thomas Gleixner
On Wed, 17 May 2017, Masami Hiramatsu wrote: > On Tue, 16 May 2017 09:48:02 -0400 > Steven Rostedt wrote: > > It appears that the kprobe_optimizer work thread call happened after > > the init pages were freed, causing alternative.c to give the above > > warning because the text that is being unopt

Re: [PATCH v6 0/2] security: tty: make TIOCSTI ioctl require CAP_SYS_ADMIN

2017-05-16 Thread Peter Dolding
On Wed, May 17, 2017 at 12:28 AM, Kees Cook wrote: > On Tue, May 16, 2017 at 5:22 AM, Matt Brown wrote: >> On 05/16/2017 05:01 AM, Peter Dolding wrote: I could see a case being make for CAP_SYS_TTY_CONFIG. However I still choose to do with CAP_SYS_ADMIN because it is already i

RE: Donation

2017-05-16 Thread Mayrhofer Family
Good Day, My wife and I have awarded you with a donation of $ 1,000,000.00 Dollars from part of our Jackpot Lottery of 50 Million Dollars, respond with your details for claims. We await your earliest response and God Bless you. Friedrich And Annand Mayrhofer. --- This email has been checked f

Re: [PATCH 0/4] Support for Synopsys DW CSI-2 Host

2017-05-16 Thread Sakari Ailus
Hi Ramiro, On Tue, Mar 07, 2017 at 02:37:47PM +, Ramiro Oliveira wrote: > This patchset adds support for the DW CSI-2 Host and also for a video > device associated with it. > > The first 2 patches are only for the DW CSI-2 Host and the last 2 are for > the video device. > > Although this pa

Re: [PATCH v3 0/6] Add kselftest_harness.h

2017-05-16 Thread Mickaël Salaün
On 16/05/2017 22:29, Jonathan Corbet wrote: > On Tue, 16 May 2017 22:12:39 +0200 > Mickaël Salaün wrote: > >>> I will have to defer to Jon Corbet for Documentation related changes >>> and patches. Jon! Could you please review and give me an Ack. >> >> Jonathan, what do you think about this pa

linux-next: error while fetching the c6x tree

2017-05-16 Thread Stephen Rothwell
Hi Mark, Fetching the c6x tree profuces this error: fatal: unable to connect to linux-c6x.org: linux-c6x.org[0: 184.73.195.71]: errno=Connection timed out I wll keep using the version I have already fetched. -- Cheers, Stephen Rothwell

Re: [PATCH] mmc:dw_mmc-k3: add sd support for hi3660

2017-05-16 Thread Heiner Kallweit
Am 16.05.2017 um 14:26 schrieb liwei: > Add sd card support for hi3660 soc > > Signed-off-by: Li Wei > Signed-off-by: Chen Jun > --- > drivers/mmc/host/dw_mmc-k3.c | 311 > +++ > 1 file changed, 311 insertions(+) > > diff --git a/drivers/mmc/host/dw_mmc

Re: [PATCH v5 14/32] efi: Add an EFI table address match function

2017-05-16 Thread Tom Lendacky
On 5/15/2017 1:09 PM, Borislav Petkov wrote: On Tue, Apr 18, 2017 at 04:18:48PM -0500, Tom Lendacky wrote: Add a function that will determine if a supplied physical address matches the address of an EFI table. Signed-off-by: Tom Lendacky --- drivers/firmware/efi/efi.c | 33 +

[PATCH] perf report: do not drop last inlined frame

2017-05-16 Thread Milian Wolff
The very last inlined frame, i.e. the one furthest away from the non-inlined frame, was silently dropped. This is apparent when comparing the output of `perf script` and `addr2line`: ~~ $ perf script --inline ... a.out 26722 80836.309329: 72425 cycles: 21493 __hypot_fin

[PATCH] perf report: always honor callchain order for inlined nodes

2017-05-16 Thread Milian Wolff
So far, the inlined nodes where only reversed when we built perf against libbfd. If that was not available, the addr2line fallback code path was missing the inline_list__reverse call. Now this is done at the central place inside dso__parse_addr_inlines. Cc: Arnaldo Carvalho de Melo Cc: David Ahe

[PATCH] perf report: fix memory leak in addr2line when called by addr2inlines

2017-05-16 Thread Milian Wolff
When a filename was found in addr2line it was duplicated via strdup but never freed. Now we pass NULL and handle this gracefully in addr2line. Detected by Valgrind: ==16331== 1,680 bytes in 21 blocks are definitely lost in loss record 148 of 220 ==16331==at 0x4C2AF1F: malloc (in /usr/lib/val

Re: [PATCH v6 0/2] security: tty: make TIOCSTI ioctl require CAP_SYS_ADMIN

2017-05-16 Thread Matt Brown
On 05/16/2017 05:43 PM, Peter Dolding wrote: On Wed, May 17, 2017 at 12:28 AM, Kees Cook wrote: On Tue, May 16, 2017 at 5:22 AM, Matt Brown wrote: On 05/16/2017 05:01 AM, Peter Dolding wrote: I could see a case being make for CAP_SYS_TTY_CONFIG. However I still choose to do with CAP_SYS_AD

[pwm] question about potential division by zero

2017-05-16 Thread Gustavo A. R. Silva
Hello everybody, While looking into Coverity ID 1408721 I ran into the following piece of code at /drivers/pwm/pwm-mediatek.c:77: 77static int mtk_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, 78 int duty_ns, int period_ns) 79{ 80struct mtk_pw

Re: [PATCH 08/18] xen/pvcalls: implement connect command

2017-05-16 Thread Boris Ostrovsky
>>> + ret = xenbus_map_ring_valloc(dev, &req->u.connect.ref, 1, &page); >>> + if (ret < 0) { >>> + sock_release(map->sock); >>> + kfree(map); >>> + goto out; >>> + } >>> + map->ring = page; >>> + map->ring_order = map->ring->ring_order; >>> + /* first read

Re: [PATCH v4 2/3] hwmon: (adt7475) temperature smoothing

2017-05-16 Thread Guenter Roeck
On Tue, May 16, 2017 at 08:30:52PM +, Chris Packham wrote: > On 16/05/17 20:23, kbuild test robot wrote: > > Hi Chris, > > > > [auto build test ERROR on hwmon/hwmon-next] > > [also build test ERROR on v4.12-rc1 next-20170516] > > [if your patch is applied to t

Re: [RFC][PATCH 00/14] sched/fair: A bit of a cgroup/PELT overhaul (again)..

2017-05-16 Thread Tejun Heo
Hello, On Fri, May 12, 2017 at 06:44:16PM +0200, Peter Zijlstra wrote: > > Hi all, > > So after staring at all that PELT stuff and working my way through it again: > > > https://lkml.kernel.org/r/20170505154117.6zldxuki2fgyo...@hirez.programming.kicks-ass.net > > I started doing some patche

Re: [PATCH] mm: per-cgroup memory reclaim stats

2017-05-16 Thread Balbir Singh
On Sat, May 13, 2017 at 2:42 AM, Johannes Weiner wrote: > On Fri, May 12, 2017 at 12:25:22PM +1000, Balbir Singh wrote: >> On Thu, 2017-05-11 at 20:16 +0100, Roman Gushchin wrote: >> > The meaning of each value is the same as for global counters, >> > available using /proc/vmstat. >> > >> > Also,

arm64 vs arm tree for BCM2837 DT pull requests

2017-05-16 Thread Eric Anholt
I'm looking for feedback on how the ARM folks would like to see pull requests for Raspberry Pi 3 devicetree changes. My problem is trying to merge patches like: https://patchwork.kernel.org/patch/9603689/ which depends on: https://patchwork.kernel.org/patch/9619573/ bcm2837's DT is in arm64/,

Re: [kernel-hardening] Re: [PATCH v6 0/2] security: tty: make TIOCSTI ioctl require CAP_SYS_ADMIN

2017-05-16 Thread Peter Dolding
On Wed, May 17, 2017 at 1:48 AM, Serge E. Hallyn wrote: > Quoting Kees Cook (keesc...@chromium.org): >> On Tue, May 16, 2017 at 5:22 AM, Matt Brown wrote: >> > On 05/16/2017 05:01 AM, Peter Dolding wrote: >> >>> >> >>> >> >>> I could see a case being make for CAP_SYS_TTY_CONFIG. However I still >

Re: Question on fscrypt_d_revalidate() and fstest generic/429

2017-05-16 Thread Eric Biggers
On Tue, May 16, 2017 at 08:47:43AM +0200, Richard Weinberger wrote: > Eric, > > Am 16.05.2017 um 01:25 schrieb Eric Biggers: > > On Mon, May 15, 2017 at 09:51:03PM +0200, Richard Weinberger wrote: > >>> > >>> The test is repeatedly creating and removing a directory "dir" while > >>> lookups are >

Re: [PATCH v8 1/5] skbuff: return -EMSGSIZE in skb_to_sgvec to prevent overflow

2017-05-16 Thread Jason A. Donenfeld
On Mon, May 15, 2017 at 3:12 PM, David Howells wrote: > Is there a reason you moved skb_to_sgvec() in the file rather than just moving > the comment to it (since you moved the comment anyway)? 1) Because it's easier to understand skb_to_sgvec_nomark as a variant of skb_to_sgvec, so I'd rather skb

Re: [PATCH v8 3/5] rxrpc: check return value of skb_to_sgvec always

2017-05-16 Thread Jason A. Donenfeld
On Mon, May 15, 2017 at 3:11 PM, David Howells wrote: > skb_to_sgvec() can return -EMSGSIZE in some circumstances. You shouldn't > return -ENOMEM here in such a case. Noted. I'll fix this up for the next round.

[PATCH] frv: Declare jiffies to be located in the .data section

2017-05-16 Thread Matthias Kaehlcke
Commit 7c30f352c852 ("jiffies.h: declare jiffies and jiffies_64 with cacheline_aligned_in_smp") removed a section specification from the jiffies declaration that caused conflicts on some platforms. Unfortunately this change broke the build for frv: kernel/built-in.o: In function `__do_softirq'

[PATCH 3/3] ARM: davinci: da8xx: Add DSP internal RAM memories as IOMEM resources

2017-05-16 Thread Suman Anna
The DSP subsystem on DA8xx has various internal RAM memories that can accessed from the ARM side. These memories can be configured to be used as either RAM or Cache. Add these memories as IOMEM resources to the DSP device so that the driver can support loading of images into internal memories. Sig

[PATCH 1/3] ARM: davinci: da8xx: Create DSP device only when assigned memory

2017-05-16 Thread Suman Anna
The DSP device on Davinci platforms does not have an MMU and requires specific DDR memory to boot. This memory is reserved using the rproc_mem kernel boot parameter and is assigned to the device on non-DT boots. The remoteproc core uses the DMA API and so will fall back to assigning random memory i

[PATCH 2/3] ARM: davinci: da8xx: Add names to DSP IOMEM resources

2017-05-16 Thread Suman Anna
Add names to the IOMEM resources for the DSP device present on DA8xx SoCs. This will facilitate the driver to use the names and be agnostic of the resource order, and facilitate scalable DT support in follow-up patches. Signed-off-by: Suman Anna --- arch/arm/mach-davinci/devices-da8xx.c | 2 ++

[PATCH 0/3] Davinci DSP remoteproc device improvements

2017-05-16 Thread Suman Anna
Hi Sekhar, The following series makes some minor improvements to the legacy-mode Davinci remoteproc device creation logic in preparation for adding the DT support to the Davinci remoteproc driver. The patches are baselined on 4.12-rc1. The changes include conditionally creating the DSP device base

Re: [PATCH] [iov_iter] use memmove() when copying to/from user page

2017-05-16 Thread Dmitry Vyukov
On Tue, May 16, 2017 at 2:33 PM, Al Viro wrote: > On Tue, May 16, 2017 at 02:01:51PM -0700, Dmitry Vyukov wrote: > >> > In that case your patch does not suffice. Overlapping move _forwards_ >> > still >> > yields unexpected results, doesn't it? >> >> Why? memmove can move both ways. Do we need t

Re: [PATCH 2/6] locking: Introduce range reader/writer lock

2017-05-16 Thread Davidlohr Bueso
On Mon, 15 May 2017, Peter Zijlstra wrote: On Mon, May 15, 2017 at 02:07:21AM -0700, Davidlohr Bueso wrote: + * Fairness and freedom of starvation are guaranteed by the lack of lock + * stealing, thus range locks depend directly on interval tree semantics. + * This is particularly for iteratio

[GIT PULL] bcm2835 DT fixes for 4.12

2017-05-16 Thread Eric Anholt
Hi Florian, The following changes since commit 2ea659a9ef488125eb46da6eb571de5eae5c43f6: Linux 4.12-rc1 (2017-05-13 13:19:49 -0700) are available in the git repository at: git://github.com/anholt/linux tags/bcm2835-dt-fixes-2017-05-16 for you to fetch changes up to b0804ed0cadd7e38d94d2f15

Re: [PATCH V2] ARM: dts: bcm283x: Reserve first page for firmware

2017-05-16 Thread Eric Anholt
Florian Fainelli writes: > On 05/09/2017 02:04 AM, Phil Elwell wrote: >> The Raspberry Pi startup stub files for multi-core BCM27XX processors >> make the secondary CPUs spin until the corresponding mailbox is >> written. These stubs are loaded at physical address 0x0xxx (as seen >> by the AR

Re: [PATCH] ubifs: Fix inode leak in xattr code

2017-05-16 Thread Richard Weinberger
Artem, Am 15.05.2017 um 18:05 schrieb Artem Bityutskiy: > On Mon, 2017-05-15 at 17:22 +0200, Richard Weinberger wrote: >> Alternatively we could add a iget_locked/drop_nlink/iput sequence to >> ubifs_tnc_remove_ino(). But that will make unlink() much slower for >> files >> that contain xattrs. >

[PATCH 1/2] ubifs: Unexport ubifs_inode_slab

2017-05-16 Thread Richard Weinberger
This SLAB is only being used in super.c, there is no need to expose it into the global namespace. Signed-off-by: Richard Weinberger --- fs/ubifs/super.c | 2 +- fs/ubifs/ubifs.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/ubifs/super.c b/fs/ubifs/super.c index b73811b

[PATCH 2/2] ubifs: Correctly evict xattr inodes

2017-05-16 Thread Richard Weinberger
UBIFS handles extended attributes just like files, as consequence of that, they also have inodes. Therefore UBIFS does all the inode machinery also for xattrs. Since new inodes have i_nlink of 1, a file or xattr inode will be evicted if i_nlink goes down to 0 after an unlink. UBIFS assumes this mod

Re: [PATCH 2/5] extcon: Add FUSB302 USB TYPE-C controller support

2017-05-16 Thread Hans de Goede
Hi, On 05/16/2017 02:07 PM, Heikki Krogerus wrote: Hi Hans, On Fri, May 12, 2017 at 11:22:46PM +0200, Hans de Goede wrote: To me making the combination of the 2 sources the problem of the consumer seems just wrong, as you mentioned above there should really be only one extcon for the conne

Re: [PATCH v2 2/9] sysctl: add proper unsigned int support

2017-05-16 Thread Luis R. Rodriguez
On Mon, Feb 13, 2017 at 12:19:51PM -0800, Kees Cook wrote: > On Fri, Feb 10, 2017 at 4:36 PM, Luis R. Rodriguez wrote: > > --- > > fs/proc/proc_sysctl.c | 15 + > > kernel/sysctl.c | 161 > > -- > > 2 files changed, 170 insertions(+), 6

Re: Question on fscrypt_d_revalidate() and fstest generic/429

2017-05-16 Thread Richard Weinberger
Eric, Am 17.05.2017 um 00:07 schrieb Eric Biggers: >>> I can reproduce this on an unencrypted directory after updating path_init() >>> in >>> fs/namei.c to always clear LOOKUP_RCU, so that all path lookups are done in >>> ref-walk mode. So I think fscrypt_d_revalidate() was only relevant because

Re: [PATCH] frv: Declare jiffies to be located in the .data section

2017-05-16 Thread Guenter Roeck
On Tue, May 16, 2017 at 03:13:33PM -0700, Matthias Kaehlcke wrote: > Commit 7c30f352c852 ("jiffies.h: declare jiffies and jiffies_64 with > cacheline_aligned_in_smp") removed a section specification from the > jiffies declaration that caused conflicts on some platforms. Unfortunately > this cha

Re: [PATCH 2/4] crypto: drbg wait for crypto op not signal safe

2017-05-16 Thread Eric Biggers
Hi Gilad, On Thu, May 11, 2017 at 02:53:43PM +0300, Gilad Ben-Yossef wrote: > drbg_kcapi_sym_ctr() was using wait_for_completion_interruptible() to > wait for completion of async crypto op but if a signal occurs it > may return before DMA ops of HW crypto provider finish, thus > corrupting the out

Re: [PATCH v2 9/9] test_sysctl: test against int proc_dointvec() array support

2017-05-16 Thread Luis R. Rodriguez
On Mon, Feb 13, 2017 at 02:07:53PM -0800, Kees Cook wrote: > On Fri, Feb 10, 2017 at 4:36 PM, Luis R. Rodriguez wrote: > > diff --git a/tools/testing/selftests/sysctl/sysctl.sh > > b/tools/testing/selftests/sysctl/sysctl.sh > > index eedfba6f0a57..963d572155b1 100755 > > --- a/tools/testing/selft

Re: [PATCH 4/4] crypto: Documentation: fix none signal safe sample

2017-05-16 Thread Eric Biggers
On Thu, May 11, 2017 at 02:53:45PM +0300, Gilad Ben-Yossef wrote: > The sample code was showing use of wait_for_completion_interruptible() > for waiting for an async. crypto op to finish. However, if a signal > arrived it would free the buffers used even while crypto HW might > still DMA from/into

Re: [PATCH v2 7/9] test_sysctl: add simple proc_dointvec() case

2017-05-16 Thread Luis R. Rodriguez
On Mon, Feb 13, 2017 at 02:00:13PM -0800, Kees Cook wrote: > On Fri, Feb 10, 2017 at 4:36 PM, Luis R. Rodriguez wrote: > > diff --git a/tools/testing/selftests/sysctl/sysctl.sh > > b/tools/testing/selftests/sysctl/sysctl.sh > > index 14b9d875db42..45fd2ee5739c 100755 > > --- a/tools/testing/selft

Re: [patch V2 17/17] sched: Enable might_sleep() and smp_processor_id() checks early

2017-05-16 Thread Thomas Gleixner
On Tue, 16 May 2017, Steven Rostedt wrote: > On Tue, 16 May 2017 20:42:48 +0200 > Thomas Gleixner wrote: > > + > > + /* > > +* Enable might_sleep() and smp_processor_id() checks. > > +* They cannot be enabled earlier because with CONFIG_PRREMPT=y > > My cat's version of CONFIG_PREEMPT,

Re: [PATCH] [iov_iter] use memmove() when copying to/from user page

2017-05-16 Thread Al Viro
On Tue, May 16, 2017 at 03:15:16PM -0700, Dmitry Vyukov wrote: > > Because it's not going to be *one* call of memcpy() or memmove(). It's > > one per page. > > > I missed that. > > I assumed that in the case of sendfile from memfd to memfd data will > be copied directly. But it goes through a p

Re: [patch V2 17/17] sched: Enable might_sleep() and smp_processor_id() checks early

2017-05-16 Thread Steven Rostedt
On Wed, 17 May 2017 00:46:37 +0200 (CEST) Thomas Gleixner wrote: > > > --- a/lib/smp_processor_id.c > > > +++ b/lib/smp_processor_id.c > > > @@ -28,7 +28,7 @@ notrace static unsigned int check_preemp > > > /* > > >* It is valid to assume CPU-locality during early bootup: > > >*/ > > >

Re: [PATCH 2/5] extcon: Add FUSB302 USB TYPE-C controller support

2017-05-16 Thread Guenter Roeck
On Fri, May 12, 2017 at 11:22:46PM +0200, Hans de Goede wrote: > Hi, > > On 24-04-17 15:12, Guenter Roeck wrote: > >On 04/24/2017 04:02 AM, Heikki Krogerus wrote: > >>+Guenter > >> > >>On Fri, Apr 21, 2017 at 09:51:50PM +0300, Andy Shevchenko wrote: > >>>+Cc: Heikki. > >>> > >>>He might comment on

Re: [PATCH v2 5/9] test_sysctl: add generic script to expand on tests

2017-05-16 Thread Luis R. Rodriguez
On Mon, Feb 13, 2017 at 12:30:22PM -0800, Kees Cook wrote: > On Fri, Feb 10, 2017 at 4:36 PM, Luis R. Rodriguez wrote: > > This adds a generic script to let us more easily add more tests > > cases. Since we really have only two types of tests cases just > > fold them into the one file. Each test u

Re: [PATCH] sched: Do not bug in __sched_setscheduler() when pi is not used

2017-05-16 Thread Steven Rostedt
Peter, I've just been pinged by someone that triggered this bug again. Can you take this patch and it probably should be marked for stable too. -- Steve On Thu, 9 Mar 2017 10:18:42 -0500 Steven Rostedt wrote: > From: "Steven Rostedt (VMware)" > > > When priority inheritance was added back

[PATCH] sh: use pr_cont in code dump

2017-05-16 Thread Aurelien Jarno
Using using printk to continue logging messages now produces multiple line logging output unless the continuations use KERN_CONT. This causes the code dump on SH do be unreadable: [ 40.036000] Code: [ 40.036000] 8c0128f0: [ 40.036000] stc [ 40.036000] r6_bank [ 40.036000] , [ 40.0360

Re: Kernel modules under new copyleft licence : (was Re: [PATCH v2] module.h: add copyleft-next >= 0.3.1 as GPL compatible)

2017-05-16 Thread Luis R. Rodriguez
On Mon, May 15, 2017 at 04:18:14PM +0100, Alan Cox wrote: > > such "or" language can be a bit confusing.  My understanding is such "or" > > language is really is only necessary or helpful for when you have some sort > > of incompatible licenses, and that's not the case here. > > The problem is tha

Re: [PATCH v1] samples/bpf: Add a .gitignore for binaries

2017-05-16 Thread David Ahern
On 5/13/17 3:30 AM, Mickaël Salaün wrote: > > On 13/02/2017 02:43, David Ahern wrote: >> On 2/12/17 2:23 PM, Mickaël Salaün wrote: >>> diff --git a/samples/bpf/.gitignore b/samples/bpf/.gitignore >>> new file mode 100644 >>> index ..a7562a5ef4c2 >>> --- /dev/null >>> +++ b/samples/bpf/

Re: [v3 0/9] parallelized "struct page" zeroing

2017-05-16 Thread Benjamin Herrenschmidt
On Fri, 2017-05-12 at 13:37 -0400, David Miller wrote: > > Right now it is larger, but what I suggested is to add a new optimized > > routine just for this case, which would do STBI for 64-bytes but > > without membar (do membar at the end of memmap_init_zone() and > > deferred_init_memmap() > > >

Re: kmemleak splat on copy_process()

2017-05-16 Thread Andy Lutomirski
On Tue, May 16, 2017 at 6:39 AM, Catalin Marinas wrote: > Thanks for cc'ing me. The vmalloc allocations have always been tricky > for kmemleak since there are 2-3 other memory locations with the same > value as the vmalloc'ed object: vm_struct.addr and vmap_area.va_start; > occasionally we have vm

Re: [PATCH 2/6] wl1251: Use request_firmware_prefer_user() for loading NVS calibration data

2017-05-16 Thread Luis R. Rodriguez
On Tue, May 16, 2017 at 10:41:08AM +0200, Arend Van Spriel wrote: > On 16-5-2017 1:13, Luis R. Rodriguez wrote: > > On Fri, May 12, 2017 at 11:02:26PM +0200, Arend Van Spriel wrote: > >> try again.. replacing email address from Michał > >> On 12-5-2017 22:55, Arend Van Spriel wrote: > >>> Let me ex

[PATCH 1/2] ubifs: Fix inode data budget in ubifs_mknod

2017-05-16 Thread Hyunchul Lee
Assign inode data budget to budget request correctly. Signed-off-by: Hyunchul Lee --- fs/ubifs/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c index b777bdd..df67236 100644 --- a/fs/ubifs/dir.c +++ b/fs/ubifs/dir.c @@ -1050,7 +1050,6 @@ s

[PATCH 2/2] ubifs: Fix memory leak in RENAME_WHITEOUT error path in do_rename

2017-05-16 Thread Hyunchul Lee
in RENAME_WHITEOUT error path, fscrypt_name should be freed. Signed-off-by: Hyunchul Lee --- fs/ubifs/dir.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c index df67236..0d5f8e7 100644 --- a/fs/ubifs/dir.c +++ b/fs/ubifs/dir.c @

Re: [Xen-devel] HPET enabled in BIOS, not presented as available_clocksource -- config, kernel code, &/or BIOS?

2017-05-16 Thread PGNet Dev

Re: [Xen-devel] HPET enabled in BIOS, not presented as available_clocksource -- config, kernel code, &/or BIOS?

2017-05-16 Thread PGNet Dev
(apologies re: the empty 'double tap' :-/ ) On 5/14/17 8:39 AM, Andrew Cooper wrote: >> So I'm still unclear -- is this^ now, correctly "all" using MSI/HPET? > > What are you trying to achieve? It is still not clear despite all on > this thread. > > The Linux HEPT error messages are non-ideal,

linux-next: build warning after merge of the overlayfs tree

2017-05-16 Thread Stephen Rothwell
Hi Miklos, After merging the overlayfs tree, today's linux-next build (powerpc ppc64_defconfig) produced this warning: fs/overlayfs/dir.c: In function 'ovl_rename': fs/overlayfs/dir.c:1060:2: warning: 'newdentry' may be used uninitialized in this function [-Wmaybe-uninitialized] dput(newdentry

linux-next: build failure after merge of the file-locks tree

2017-05-16 Thread Stephen Rothwell
^ Caused by commit 0416b792294c ("fs/locks: pass kernel struct flock to fcntl_getlk/setlk") This build has BITS_PER_LONG == 32. I have used the file-locks tree from next-20170516 for today. -- Cheers, Stephen Rothwell

[PATCH] fs: fix utimensat to return correct error code

2017-05-16 Thread Myungho Jung
According to man utimensat(2), EACCES should be returned if the file is immutable and time values are null or UTIME_NOW. Testcase is utimesat01/LTP. Signed-off-by: Myungho Jung --- fs/attr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/attr.c b/fs/attr.c index 1353041..

Re: Programatically modifying .config

2017-05-16 Thread Randy Dunlap
On 05/16/17 03:57, Pavel Machek wrote: > On Sun 2017-03-12 16:38:02, Drew DeVault wrote: >> I'm in the research stage of making it so something to the effect of >> `make setconfig OPTION="CONFIG_E100E=y"` will work, bringing it up here >> for some discussion first. >> >> Digging into the kconfig co

Re: [PATCH v4] sd: Ignore sync cache failures when not supported

2017-05-16 Thread Martin K. Petersen
Thierry, > Some external hard drives don't support the sync command even though > the hard drive has write cache enabled. In this case, upon suspend > request, sync cache failures are ignored if the error code in the > sense header is ILLEGAL_REQUEST. There's not much we can do for these > drives

Re: [PATCH] scsi: libfc: fix incorrect variable assingment

2017-05-16 Thread Martin K. Petersen
Gustavo A., > Previous assignment was causing the use of the uninitialized variable > _explan_ inside fc_seq_ls_rjt() function, which in this particular > case is being called by fc_seq_els_rsp_send(). Applied to 4.12/scsi-fixes. Thanks! -- Martin K. Petersen Oracle Linux Engineering

Re: linux-next: build failure after merge of the file-locks tree

2017-05-16 Thread Jeff Layton
filp' undeclared (first use in this function) >err = fcntl_getlk64(filp, cmd, &flock); >^ > > Caused by commit > > 0416b792294c ("fs/locks: pass kernel struct flock to fcntl_getlk/setlk") > > This build has BITS_PER_LONG =

Re: [PATCH] arm64: dts: rockchip: Drop explicit "include/" prefix from #include

2017-05-16 Thread Ian Campbell
On Sat, 2017-05-13 at 17:43 +0200, Heiko Stuebner wrote: > Hi Ian, > > Am Samstag, 13. Mai 2017, 00:53:57 CEST schrieb Ian Campbell: > > It not necessary and counter to how all the other files are done. > > > > It also happens to break the build in the split device tree repo > > https://git.kerne

[PATCH v2] x86/efi: Disable runtime services on kexec kernel if booted with efi=old_map

2017-05-16 Thread Sai Praneeth Prakhya
From: Sai Praneeth Booting kexec kernel with "efi=old_map" in kernel command line hits kernel panic as shown below. [0.001000] BUG: unable to handle kernel paging request at 88007fe78070 [0.001000] IP: virt_efi_set_variable.part.7+0x63/0x1b0 [0.001000] PGD 7ea28067 [0.001000] PUD 7ea2b067 [0

Re: [PATCH v13 00/12] power: add power sequence library

2017-05-16 Thread Peter Chen
On Tue, May 16, 2017 at 07:28:55PM +0200, Krzysztof Kozlowski wrote: > On Wed, Feb 15, 2017 at 09:38:09AM +0800, Peter Chen wrote: > > On Tue, Feb 14, 2017 at 12:21:48PM +0200, Roger Quadros wrote: > > > Peter, > > > > > > On 11/02/17 03:27, Peter Chen wrote: > > > > Hi all, > > > > > > > > This

linux-next: build failure after merge of the sound tree

2017-05-16 Thread Stephen Rothwell
r_of' const typeof( ((type *)0)->member ) *__mptr = (ptr); \ ^ sound/pcmcia/vx/vxp_ops.c:512:31: note: in expansion of macro 'to_vxpocket' struct snd_vxpocket *pchip = to_vxpocket(_chip); ^ Caused by commit 7c46696e8fef ("ALSA: vxpocket: Use container_of()") I have used the sound tree from next-20170516 for today. -- Cheers, Stephen Rothwell

Re: WARNING at arch/x86/kernel/alternative.c:707 text_poke+0x25d/0x270

2017-05-16 Thread Masami Hiramatsu
On Tue, 16 May 2017 23:42:58 +0200 (CEST) Thomas Gleixner wrote: > On Wed, 17 May 2017, Masami Hiramatsu wrote: > > On Tue, 16 May 2017 09:48:02 -0400 > > Steven Rostedt wrote: > > > It appears that the kprobe_optimizer work thread call happened after > > > the init pages were freed, causing alt

Re: [PATCH] kprobes: Document how optimized kprobes are removed from module unload

2017-05-16 Thread Masami Hiramatsu
On Tue, 16 May 2017 14:58:35 -0400 Steven Rostedt wrote: > From: Steven Rostedt (VMware) > > Thomas discovered a bug where the kprobe trace tests had a race > condition where the kprobe_optimizer called from a delayed work queue > that does the optimizing and "unoptimizing" of a kprobe, can try

Re: linux-next: build failure after merge of the file-locks tree

2017-05-16 Thread Stephen Rothwell
Hi Jeff, On Tue, 16 May 2017 21:10:03 -0400 Jeff Layton wrote: > > I think this patch will probably fix it, but I don't have a 32-bit host > set up to build on just now. I'll go ahead and merge this into the > branch, and will plan to test it tomorrow (hopefully before the next > fetch). Thanks.

Re: [PATCH v2] x86/efi: Disable runtime services on kexec kernel if booted with efi=old_map

2017-05-16 Thread Dave Young
Hi Sai, On 05/16/17 at 06:14pm, Sai Praneeth Prakhya wrote: > From: Sai Praneeth > > Booting kexec kernel with "efi=old_map" in kernel command line hits > kernel panic as shown below. > > [0.001000] BUG: unable to handle kernel paging request at 88007fe78070 > [0.001000] IP: virt_efi_set_var

Re: [PATCH v2] x86/efi: Disable runtime services on kexec kernel if booted with efi=old_map

2017-05-16 Thread Sai Praneeth Prakhya
On Wed, 2017-05-17 at 09:57 +0800, Dave Young wrote: > Hi Sai, > On 05/16/17 at 06:14pm, Sai Praneeth Prakhya wrote: > > From: Sai Praneeth > > > > Booting kexec kernel with "efi=old_map" in kernel command line hits > > kernel panic as shown below. > > > > [0.001000] BUG: unable to handle kernel

RE: Donation

2017-05-16 Thread Mayrhofer Family
Good Day, My wife and I have awarded you with a donation of $ 1,000,000.00 Dollars from part of our Jackpot Lottery of 50 Million Dollars, respond with your details for claims. We await your earliest response and God Bless you. Friedrich And Annand Mayrhofer. --- This email has been checked f

[PATCH] gpu: drm: radeon: refactor code

2017-05-16 Thread Gustavo A. R. Silva
Local variable _color_ is assigned to a constant value and it is never updated again. Remove this variable and refactor the code it affects. Addresses-Coverity-ID: 1226745 Signed-off-by: Gustavo A. R. Silva --- drivers/gpu/drm/radeon/radeon_legacy_encoders.c | 8 +--- 1 file changed, 1 inser

Re: Programatically modifying .config

2017-05-16 Thread Steven Rostedt
On Tue, 16 May 2017 17:31:17 -0700 Randy Dunlap wrote: > On 05/16/17 03:57, Pavel Machek wrote: > > On Sun 2017-03-12 16:38:02, Drew DeVault wrote: > >> I'm in the research stage of making it so something to the effect of > >> `make setconfig OPTION="CONFIG_E100E=y"` will work, bringing it up h

<    2   3   4   5   6   7   8   9   >