[PATCH v6 4/7] tpm: modify tpm_pcr_read() definition to pass a TPM hash algorithm

2018-12-04 Thread Roberto Sassu
Currently the TPM driver allows other kernel subsystems to read only the SHA1 PCR bank. This patch modifies the parameters of tpm_pcr_read() and tpm2_pcr_read() to pass a tpm_digest structure, which contains the desired hash algorithm. Also, since commit 125a22105410 ("tpm: React correctly to

Re: [PATCH 07/14] clock: milbeaut: Add Milbeaut M10V clock control

2018-12-04 Thread Sugaya, Taichi
Hi, Thank you for your comments. On 2018/11/30 17:31, Stephen Boyd wrote: Quoting Sugaya Taichi (2018-11-18 17:01:12) Add Milbeaut M10V clock ( including PLL ) control. Please give some more details here. OK, add more description. Signed-off-by: Sugaya Taichi ---

[PATCH v6 2/7] tpm: add _head suffix to tcg_efi_specid_event and tcg_pcr_event2

2018-12-04 Thread Roberto Sassu
TCG defines two structures, TCG_EfiSpecIDEventStruct and TCG_PCR_EVENT2, which contain variable-sized arrays in the middle of the definition. Since these structures are not suitable for type casting, this patch removes structure members after the variable-sized arrays and adds the _head suffix to

Re: [PATCH v2 0/3] Tuning Fixes for sdhci-omap

2018-12-04 Thread Faiz Abbas
Hi, On 21/11/18 4:53 PM, Adrian Hunter wrote: > On 21/11/18 12:33 PM, Faiz Abbas wrote: >> The following patches fix tuning related errors in the >> sdhci-omap driver. >> >> v2: >> Added Fixes and stable tags for patch 1. >> Re-enable DCRC in patch 1 only if it was enabled before >> Squashed

[PATCH v6 1/7] tpm: dynamically allocate the allocated_banks array

2018-12-04 Thread Roberto Sassu
This patch renames active_banks (member of tpm_chip) to allocated_banks, stores the number of allocated PCR banks in nr_allocated_banks (new member of tpm_chip), and replaces the static array with a pointer to a dynamically allocated array. tpm2_get_pcr_allocation() determines if a PCR bank is

Re: [PATCH] mm/alloc: fallback to first node if the wanted node offline

2018-12-04 Thread Wei Yang
On Tue, Dec 04, 2018 at 04:20:32PM +0800, Pingfan Liu wrote: >On Tue, Dec 4, 2018 at 3:22 PM Michal Hocko wrote: >> >> On Tue 04-12-18 11:05:57, Pingfan Liu wrote: >> > During my test on some AMD machine, with kexec -l nr_cpus=x option, the >> > kernel failed to bootup, because some node's data

RE: linux-next: manual merge of the char-misc tree with the char-misc.current tree

2018-12-04 Thread Dexuan Cui
eless API > vmbus_get_outgoing_channel()") > > > > from the char-misc tree. > > > > I fixed it up (I used the former version where they conflicted) and can > > carry the fix as necessary. This is now fixed as far as linux-next is Hi Stephen, Thank you! I can confirm yo

Re: [PATCH 04/16] remoteproc/pru: Add PRU remoteproc driver

2018-12-04 Thread Roger Quadros
On 30/11/18 23:39, Dimitar Dimitrov wrote: > On Monday, 12/26/2018, 9:52:37 EET Roger Quadros wrote: >> +/* >> + * Convert PRU device address (instruction space) to kernel virtual address >> + * >> + * A PRU does not have an unified address space. Each PRU has its very own >> + * private

INFO: task hung in tls_sw_free_resources_tx

2018-12-04 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:6915bf3b002b net: phy: don't allow __set_phy_supported to .. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=177085a340 kernel config: https://syzkaller.appspot.com/x/.config?x=28ecefa8a6e10719

Re: [LKP] [mm] ac5b2c1891: vm-scalability.throughput -61.3% regression

2018-12-04 Thread Michal Hocko
On Mon 03-12-18 13:53:21, David Rientjes wrote: > On Mon, 3 Dec 2018, Michal Hocko wrote: > > > > I think extending functionality so thp can be allocated remotely if truly > > > desired is worthwhile > > > > This is a complete NUMA policy antipatern that we have for all other > > user memory

Re: [PATCH v3 1/8] mfd / platform: cros_ec: use devm_mfd_add_devices.

2018-12-04 Thread Lee Jones
On Mon, 03 Dec 2018, Enric Balletbo i Serra wrote: > Hi Lee, > > On 3/12/18 11:32, Lee Jones wrote: > > On Tue, 27 Nov 2018, Enric Balletbo i Serra wrote: > > > >> Use devm_mfd_add_devices() for adding cros-ec core MFD child devices. This > >> reduces the need of remove callback from

Re: [RFC PATCH] hwpoison, memory_hotplug: allow hwpoisoned pages to be offlined

2018-12-04 Thread Michal Hocko
On Tue 04-12-18 09:11:05, Naoya Horiguchi wrote: > On Tue, Dec 04, 2018 at 09:48:26AM +0100, Michal Hocko wrote: > > On Tue 04-12-18 07:21:16, Naoya Horiguchi wrote: > > > On Mon, Dec 03, 2018 at 11:03:09AM +0100, Michal Hocko wrote: > > > > From: Michal Hocko > > > > > > > > We have received a

Re: [PATCH 1/2 v2] kdump: add the vmcoreinfo documentation

2018-12-04 Thread lijiang
在 2018年12月03日 23:08, Borislav Petkov 写道: > Add some more Ccs. > Thanks a lot. There are more people to review and improve this document together, that would be fine. > On Sun, Dec 02, 2018 at 11:08:38AM +0800, Lianbo Jiang wrote: >> This document lists some variables that export to vmcoreinfo,

Re: [PATCH v2 1/5] devfreq: refactor set_target frequency function

2018-12-04 Thread Lukasz Luba
Hi Chanwoo, On 12/4/18 5:39 AM, Chanwoo Choi wrote: > Hi Lukasz, > > On 2018년 12월 03일 23:31, Lukasz Luba wrote: >> The refactoring is needed for the new client in devfreq: suspend. >> To avoid code duplication, move it to the new local function >> devfreq_set_target. >> >> The patch is based on

Re: [PATCH v5 0/2] Add device driver for APU2/APU3 GPIOs

2018-12-04 Thread Florian Eckert
>> Yes i will fix your hints tomorrow and send a v6 of my patchset. >> Thank you for your hints and time >> It would be nice if you could fix ACPI problemmatik. > > I would like to see the ACPI dump for that... See https://github.com/openwrt/openwrt/pull/1232#issuecomment-443224576 In this

Compiling with old gcc breaks when CONFIG_RETPOLINE is off

2018-12-04 Thread Meelis Roos
Just tried 4.20-rc5 on an old K6-2 PC with gcc 5.3.1, got an error about non-retpoline compiler, turned CONFIG_RETPOLINE off and retried. To my surprise, compilation still breaks with arch/x86/Makefile:224: *** You are building kernel with non-retpoline compiler, please update your compiler..

Re: [PATCH] Revert "exec: make de_thread() freezable (was: Re: Linux 4.20-rc4)

2018-12-04 Thread Michal Hocko
On Tue 04-12-18 10:33:10, Ingo Molnar wrote: > > * Michal Hocko wrote: > > > I dunno. I do not use hibernation. I am a heavy user of the suspend > > though. I s2ram all the time. And I have certainly experienced cases > > where suspend has failed and I onlyi found out later when I've picked

Re: [PATCH] printk: don't unconditionally shortcut print_time()

2018-12-04 Thread Tetsuo Handa
On 2018/12/04 11:56, Sergey Senozhatsky wrote: > Can we please have something better than 'f'? OK. To pass 80 column limit, one line increased. ;-) < + bool f = syslog_partial ? syslog_time : printk_time; > + bool time = syslog_partial ? syslog_time :

Re: [PATCH V3 0/3] Add support for using external dma in SDHCI

2018-12-04 Thread Faiz Abbas
Hi Chunyan, On 04/12/18 12:54 PM, Chunyan Zhang wrote: > Currently the generic SDHCI code in the Linux kernel supports the SD > standard DMA integrated into the host controller but does not have any > support for external DMA controllers implemented using dmaengine meaning > that custom code is

Re: [PATCH 00/13 v2] Regulator ena_gpiod fixups

2018-12-04 Thread Marek Szyprowski
Hi Linus, On 2018-12-04 10:31, Linus Walleij wrote: > Hi Marek, > > first, thanks a *lot* for testing this, it is is much, much appreciated! > > On Mon, Dec 3, 2018 at 3:35 PM Marek Szyprowski > wrote: > >> The idea is good imho, but it looks that there are some missing cases in >> the code.

[PATCH 4.14 017/146] libceph: add authorizer challenge

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- commit 6daca13d2e72bedaaacfc08f873114c9307d5aea upstream. When a client authenticates with a service, an authorizer is sent with a nonce to the service (ceph_x_authorize_[ab]) and the service

[PATCH 4.14 022/146] tls: Avoid copying crypto_info again after cipher_type check.

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- commit 196c31b4b54474b31dee3c30352c45c2a93e9226 upstream. Avoid copying crypto_info again after cipher_type check to avoid a TOCTOU exploits. The temporary array on the stack is removed as we don't

[PATCH 4.14 023/146] tls: dont override sk_write_space if tls_set_sw_offload fails.

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- commit ee181e5201e640a4b92b217e9eab2531dab57d2c upstream. If we fail to enable tls in the kernel we shouldn't override the sk_write_space callback Fixes: 3c4d7559159b ('tls: kernel TLS support')

[PATCH 4.14 009/146] mm/khugepaged: collapse_shmem() without freezing new_page

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- commit 87c460a0bded56195b5eb497d44709777ef7b415 upstream. khugepaged's collapse_shmem() does almost all of its work, to assemble the huge new_page from 512 scattered old pages, with the new_page's

[PATCH 4.14 021/146] tls: Fix TLS ulp context leak, when TLS_TX setsockopt is not used.

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- commit ff45d820a2df163957ad8ab459b6eb6976144c18 upstream. Previously the TLS ulp context would leak if we attached a TLS ulp to a socket but did not use the TLS_TX setsockopt, or did use it but it

[PATCH 4.14 002/146] mm/huge_memory.c: reorder operations in __split_huge_page_tail()

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- commit 605ca5ede7643a01f4c4a15913f9714ac297f8a6 upstream. THP split makes non-atomic change of tail page flags. This is almost ok because tail pages are locked and isolated but this breaks recent

[PATCH 4.14 018/146] libceph: implement CEPHX_V2 calculation mode

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- commit cc255c76c70f7a87d97939621eae04b600d9f4a1 upstream. Derive the signature from the entire buffer (both AES cipher blocks) instead of using just the first half of the first block, leaving out

[PATCH 4.14 039/146] btrfs: tree-checker: Verify block_group_item

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- commit fce466eab7ac6baa9d2dcd88abcf945be3d4a089 upstream. A crafted image with invalid block group items could make free space cache code to cause panic. We could detect such invalid block group

[PATCH 4.14 034/146] btrfs: tree-checker: Enhance btrfs_check_node output

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- commit bba4f29896c986c4cec17bc0f19f2ce644fceae1 upstream. Use inline function to replace macro since we don't need stringification. (Macro still exists until all callers get updated) And add more

[PATCH 4.14 055/146] f2fs: fix to do sanity check with i_extra_isize

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- commit 18dd6470c2d14d10f5a2dd926925dc80dbd3abfd upstream. If inode.i_extra_isize was fuzzed to an abnormal value, when calculating inline data size, the result will overflow, result in accessing

[PATCH 4.14 058/146] Revert "wlcore: Add missing PM call for wlcore_cmd_wait_for_event_or_timeout()"

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- This reverts commit e87efc44dd36ba3db59847c418354711ebad779b which was upstream commit 4ec7cece87b3ed21ffcd407c62fb2f151a366bc1. >From Dietmar May's report on the stable mailing list

[PATCH 4.14 052/146] f2fs: fix to do sanity check with user_block_count

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- commit 9dc956b2c8523aed39d1e6508438be9fea28c8fc upstream. This patch fixs to do sanity check with user_block_count. - Overview Divide zero in utilization when mount() a corrupted f2fs image -

[PATCH 4.14 027/146] btrfs: validate type when reading a chunk

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- commit 315409b0098fb2651d86553f0436b70502b29bb2 upstream. Reported in https://bugzilla.kernel.org/show_bug.cgi?id=199839, with an image that has an invalid chunk type but does not return an error.

[PATCH 4.14 057/146] xfs: dont fail when converting shortform attr to long form during ATTR_REPLACE

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- commit 7b38460dc8e4eafba06c78f8e37099d3b34d473c upstream. Kanda Motohiro reported that expanding a tiny xattr into a large xattr fails on XFS because we remove the tiny xattr from a shortform fork

[PATCH 4.14 056/146] f2fs: fix to do sanity check with cp_pack_start_sum

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- commit e494c2f995d6181d6e29c4927d68e0f295ecf75b upstream. After fuzzing, cp_pack_start_sum could be corrupted, so current log's summary info should be wrong due to loading incorrect summary block.

[PATCH 4.14 037/146] btrfs: tree-checker: use %zu format string for size_t

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- commit 7cfad65297bfe0aa2996cd72d21c898aa84436d9 upstream. The return value of sizeof() is of type size_t, so we must print it using the %z format modifier rather than %l to avoid this warning on some

[PATCH 4.14 040/146] btrfs: tree-checker: Detect invalid and empty essential trees

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- commit ba480dd4db9f1798541eb2d1c423fc95feee8d36 upstream. A crafted image has empty root tree block, which will later cause NULL pointer dereference. The following trees should never be empty: 1)

[PATCH 4.14 041/146] btrfs: Check that each block group has corresponding chunk at mount time

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- commit 514c7dca85a0bf40be984dab0b477403a6db901f upstream. A crafted btrfs image with incorrect chunk<->block group mapping will trigger a lot of unexpected things as the mapping is essential.

[PATCH 4.14 003/146] mm/huge_memory: splitting set mapping+index before unfreeze

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- commit 173d9d9fd3ddae84c110fea8aedf1f26af6be9ec upstream. Huge tmpfs stress testing has occasionally hit shmem_undo_range()'s VM_BUG_ON_PAGE(page_to_pgoff(page) != index, page). Move the setting of

[PATCH 4.14 007/146] mm/khugepaged: collapse_shmem() remember to clear holes

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- commit 2af8ff291848cc4b1cce24b6c943394eb2c761e8 upstream. Huge tmpfs testing reminds us that there is no __GFP_ZERO in the gfp flags khugepaged uses to allocate a huge page - in all common cases it

[PATCH 4.19 007/139] mm/khugepaged: minor reorderings in collapse_shmem()

2018-12-04 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- commit 042a30824871fa3149b0127009074b75cc25863c upstream. Several cleanups in collapse_shmem(): most of which probably do not really matter, beyond doing things in a more familiar and reassuring

[PATCH v6 00/10] clk: clkdev/of_clk - add managed lookup and provider registrations

2018-12-04 Thread Matti Vaittinen
Series add bd71837/bd71837 PMIC clock support + managed interfaces Few clk drivers appear to be leaking clkdev lookup registrations at driver remove. The patch series adds devm versions of lookup registrations and cleans up few drivers. Driver clean-up patches have not been tested as I lack the

[PATCH 4.19 032/139] x86/retpoline: Remove minimal retpoline support

2018-12-04 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Zhenzhong Duan zhenzhong.d...@oracle.com commit ef014aae8f1cd2793e4e014bbb102bed53f852b7 upstream Now that CONFIG_RETPOLINE hard depends on compiler support, there is no reason to keep the

[PATCH 4.19 004/139] mm/khugepaged: collapse_shmem() stop if punched or truncated

2018-12-04 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- commit 701270fa193aadf00bdcf607738f64997275d4c7 upstream. Huge tmpfs testing showed that although collapse_shmem() recognizes a concurrently truncated or hole-punched page correctly, its handling of

[PATCH 4.19 047/139] x86/speculataion: Mark command line parser data __initdata

2018-12-04 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner t...@linutronix.de commit 30ba72a990f5096ae08f284de17986461efcc408 upstream No point to keep that around. Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar Cc: Peter

[PATCH 4.19 035/139] x86/speculation: Remove unnecessary ret variable in cpu_show_common()

2018-12-04 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Tim Chen tim.c.c...@linux.intel.com commit b86bda0426853bfe8a3506c7d2a5b332760ae46b upstream Signed-off-by: Tim Chen Signed-off-by: Thomas Gleixner Reviewed-by: Ingo Molnar Cc: Peter

Re: [GIT PULL rcu/next] RCU commits for 4.21/5.0

2018-12-04 Thread Ingo Molnar
[ Added Linus and Arnaldo to the Cc:, for high level kernel side and tooling side buy-in for the inclusion in the kernel tree below: ] * Paul E. McKenney wrote: > Hello, Ingo, > > This pull request contains the following changes: > > 1.Convert RCU's BUG_ON() and similar calls to

[PATCH v6 0/7] tpm: retrieve digest size of unknown algorithms from TPM

2018-12-04 Thread Roberto Sassu
Update This version of the patch set includes an additional patch (7/7) which modifies the definition of tpm_pcr_extend() and tpm2_pcr_extend(). The new patch has been included to facilitate the review of the changes to support TPM 2.0 crypto agility for reading/extending PCRs. Original patch

Re: [PATCH linux-next v2 0/6] clk: renesas: adg: add AVB Clock

2018-12-04 Thread Jiada Wang
Hi Vladimir Thanks for your comments On 2018/12/03 21:11, Vladimir Zapolskiy wrote: Hi Jiada, On 12/03/2018 01:21 PM, jiada_w...@mentor.com wrote: From: Jiada Wang on R-Car SoCs there are AVB Counter Clocks, each clock has 12bits integral and 8 bits fractional dividers which operates with

Re: [PATCH linux-next v2 6/6] ASoC: rsnd: add avb clocks

2018-12-04 Thread Jiada Wang
Hi Morimoto-san Thanks for your comments, I will address your findings in next version Thanks, Jiada On 2018/12/04 10:52, Kuninori Morimoto wrote: Hi Jiada There are AVB Counter Clocks in ADG, each clock has 12bits integral and 8 bits fractional dividers which operates with S0D1ϕ clock.

Re: [PATCH] mm/alloc: fallback to first node if the wanted node offline

2018-12-04 Thread Wei Yang
On Tue, Dec 04, 2018 at 03:20:13PM +0800, Pingfan Liu wrote: >On Tue, Dec 4, 2018 at 2:54 PM Wei Yang wrote: >> >> On Tue, Dec 04, 2018 at 11:05:57AM +0800, Pingfan Liu wrote: >> >During my test on some AMD machine, with kexec -l nr_cpus=x option, the >> >kernel failed to bootup, because some

Re: [PATCH] Revert "exec: make de_thread() freezable (was: Re: Linux 4.20-rc4)

2018-12-04 Thread Ingo Molnar
* Michal Hocko wrote: > > Do we actually have reports of this happening for people outside > > Android? > > Not that I am aware of. I'd say outside of Android 99% of the use of hibernation is the fail-safe that distributions offer on laptops with very low battery levels: the emergency

Re: [PATCH] mm/alloc: fallback to first node if the wanted node offline

2018-12-04 Thread Wei Yang
On Tue, Dec 04, 2018 at 04:52:52PM +0800, Pingfan Liu wrote: >On Tue, Dec 4, 2018 at 4:34 PM Wei Yang wrote: >> >> On Tue, Dec 04, 2018 at 03:20:13PM +0800, Pingfan Liu wrote: >> >On Tue, Dec 4, 2018 at 2:54 PM Wei Yang wrote: >> >> >> >> On Tue, Dec 04, 2018 at 11:05:57AM +0800, Pingfan Liu

Re: [PATCH] Revert "exec: make de_thread() freezable (was: Re: Linux 4.20-rc4)

2018-12-04 Thread Michal Hocko
On Tue 04-12-18 10:02:28, Ingo Molnar wrote: > > * Michal Hocko wrote: > > > > Do we actually have reports of this happening for people outside > > > Android? > > > > Not that I am aware of. > > I'd say outside of Android 99% of the use of hibernation is the fail-safe > that distributions

Re: [PATCH 12/22] mfd: sta2x11: drop unused MODULE_ tags from non-modular code

2018-12-04 Thread Davide Ciminaghi
On Mon, Dec 03, 2018 at 10:07:56AM -0500, Paul Gortmaker wrote: > [Re: [PATCH 12/22] mfd: sta2x11: drop unused MODULE_ tags from non-modular > code] On 03/12/2018 (Mon 11:14) Lee Jones wrote: > > > On Sun, 02 Dec 2018, Paul Gortmaker wrote: > > . > > Looking in git history, I was able to

Re: [PATCH V5 2/2] base/drivers/arch_topology: Default dmips-mhz if they are not set in DT

2018-12-04 Thread Daniel Lezcano
Hi Dietmar, thanks for the review and spotting this. On 03/12/2018 14:46, Dietmar Eggemann wrote: > Hi Daniel, > > +cc: Russell King > > On 11/27/18 2:24 PM, Daniel Lezcano wrote: >> In the case of asymmetric SoC with the same micro-architecture, we >> have a group of CPUs with smaller OPPs

Re: [PATCH] printk: Add caller information to printk() output.

2018-12-04 Thread Tetsuo Handa
On 2018/12/04 11:02, Sergey Senozhatsky wrote: > On (12/02/18 20:23), Tetsuo Handa wrote: >> >> Some examples for console output: >> >> [0.919699]@T1 x86: Booting SMP configuration: >> [4.152681]@T271 Fusion MPT base driver 3.04.20 >> [5.070470]@C0 random: fast init done >> [

Re: [PATCH v5 1/2] gpio: Add driver for PC Engines APU boards

2018-12-04 Thread Florian Eckert
/* * Multi-line comments * have this style */ fixed +#include kbuild bot complains for absence of #include here. fixed +static int gpio_apu_get_dir(struct gpio_chip *chip, unsigned int offset) +{ + u32 val; + struct apu_gpio_pdata *apu_gpio =

[PATCH 4.19 058/139] x86/speculation: Add prctl() control for indirect branch speculation

2018-12-04 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner t...@linutronix.de commit 9137bb27e60e554dab694eafa4cca241fa3a694f upstream Add the PR_SPEC_INDIRECT_BRANCH option for the PR_GET_SPECULATION_CTRL and PR_SET_SPECULATION_CTRL

[PATCH 4.19 057/139] x86/speculation: Prepare arch_smt_update() for PRCTL mode

2018-12-04 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner t...@linutronix.de commit 6893a959d7fdebbab5f5aa112c277d5a44435ba1 upstream The upcoming fine grained per task STIBP control needs to be updated on CPU hotplug as well. Split

[PATCH 4.19 050/139] x86/speculation: Prepare for per task indirect branch speculation control

2018-12-04 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Tim Chen tim.c.c...@linux.intel.com commit 5bfbe3ad5840d941b89bcac54b821ba14f50a0ba upstream To avoid the overhead of STIBP always on, it's necessary to allow per task control of STIBP. Add a

[PATCH 4.19 048/139] x86/speculation: Unify conditional spectre v2 print functions

2018-12-04 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner t...@linutronix.de commit 495d470e9828500e0155027f230449ac5e29c025 upstream There is no point in having two functions and a conditional at the call site. Signed-off-by: Thomas

[PATCH 4.19 005/139] mm/khugepaged: fix crashes due to misaccounted holes

2018-12-04 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- commit aaa52e340073b7f4593b3c4ddafcafa70cf838b5 upstream. Huge tmpfs testing on a shortish file mapped into a pmd-rounded extent hit shmem_evict_inode()'s WARN_ON(inode->i_blocks) followed by

[PATCH 4.19 037/139] x86/speculation: Disable STIBP when enhanced IBRS is in use

2018-12-04 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Tim Chen tim.c.c...@linux.intel.com commit 34bce7c9690b1d897686aac89604ba7adc365556 upstream If enhanced IBRS is active, STIBP is redundant for mitigating Spectre v2 user space exploits from

[PATCH 4.19 009/139] mm/khugepaged: collapse_shmem() do not crash on Compound

2018-12-04 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- commit 06a5e1268a5fb9c2b346a3da6b97e85f2eba0f07 upstream. collapse_shmem()'s VM_BUG_ON_PAGE(PageTransCompound) was unsafe: before it holds page lock of the first page, racing truncation then

[PATCH 4.19 034/139] x86/speculation: Clean up spectre_v2_parse_cmdline()

2018-12-04 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Tim Chen tim.c.c...@linux.intel.com commit 24848509aa55eac39d524b587b051f4e86df3c12 upstream Remove the unnecessary 'else' statement in spectre_v2_parse_cmdline() to save an indentation level.

[PATCH 4.19 000/139] 4.19.7-stable review

2018-12-04 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.19.7 release. There are 139 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Thu Dec 6 10:36:22 UTC 2018. Anything

[PATCH 4.19 039/139] x86/speculation: Reorganize speculation control MSRs update

2018-12-04 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Tim Chen tim.c.c...@linux.intel.com commit 01daf56875ee0cd50ed496a09b20eb369b45dfa5 upstream The logic to detect whether there's a change in the previous and next task's flag relevant to

[PATCH 4.19 066/139] KVM: x86: Fix kernel info-leak in KVM_HC_CLOCK_PAIRING hypercall

2018-12-04 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Liran Alon commit bcbfbd8ec21096027f1ee13ce6c185e8175166f6 upstream. kvm_pv_clock_pairing() allocates local var "struct kvm_clock_pairing clock_pairing" on stack and initializes all it's

[PATCH 4.19 060/139] x86/speculation: Add seccomp Spectre v2 user space protection mode

2018-12-04 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner t...@linutronix.de commit 6b3e64c237c072797a9ec918654a60e3a46488e2 upstream If 'prctl' mode of user space protection from spectre v2 is selected on the kernel command-line,

[PATCH 4.19 062/139] userfaultfd: shmem/hugetlbfs: only allow to register VM_MAYWRITE vmas

2018-12-04 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Andrea Arcangeli commit 29ec90660d68bbdd69507c1c8b4e33aa299278b1 upstream. After the VMA to register the uffd onto is found, check that it has VM_MAYWRITE set before allowing registration.

[PATCH 4.19 068/139] KVM: X86: Fix scan ioapic use-before-initialization

2018-12-04 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Wanpeng Li commit e97f852fd4561e77721bb9a4e0ea9d98305b1e93 upstream. Reported by syzkaller: BUG: unable to handle kernel NULL pointer dereference at 01c8 PGD 8003ec4da067

[PATCH 4.19 071/139] xtensa: fix coprocessor context offset definitions

2018-12-04 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Max Filippov commit 03bc996af0cc71c7f30c384d8ce7260172423b34 upstream. Coprocessor context offsets are used by the assembly code that moves coprocessor context between the individual fields

[PATCH 4.19 064/139] kvm: svm: Ensure an IBPB on all affected CPUs when freeing a vmcb

2018-12-04 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Jim Mattson commit fd65d3142f734bc4376053c8d75670041903134d upstream. Previously, we only called indirect_branch_prediction_barrier on the logical CPU that freed a vmcb. This function should

[PATCH 4.19 046/139] x86/speculation: Mark string arrays const correctly

2018-12-04 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner t...@linutronix.de commit 8770709f411763884535662744a3786a1806afd3 upstream checkpatch.pl muttered when reshuffling the code: WARNING: static const char * array should

[PATCH 4.19 049/139] x86/speculation: Add command line control for indirect branch speculation

2018-12-04 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner t...@linutronix.de commit fa1202ef224391b6f5b26cdd44cc50495e8fab54 upstream Add command line control for user space indirect branch speculation mitigations. The new option is:

[PATCH 4.19 051/139] x86/process: Consolidate and simplify switch_to_xtra() code

2018-12-04 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner t...@linutronix.de commit ff16701a29cba3aafa0bd1656d766813b2d0a811 upstream Move the conditional invocation of __switch_to_xtra() into an inline function so the logic can be

[PATCH 4.19 038/139] x86/speculation: Rename SSBD update functions

2018-12-04 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner t...@linutronix.de commit 26c4d75b234040c11728a8acb796b3a85ba7507c upstream During context switch, the SSBD bit in SPEC_CTRL MSR is updated according to changes of the TIF_SSBD

[PATCH 4.19 006/139] mm/khugepaged: collapse_shmem() remember to clear holes

2018-12-04 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- commit 2af8ff291848cc4b1cce24b6c943394eb2c761e8 upstream. Huge tmpfs testing reminds us that there is no __GFP_ZERO in the gfp flags khugepaged uses to allocate a huge page - in all common cases it

[PATCH 4.19 008/139] mm/khugepaged: collapse_shmem() without freezing new_page

2018-12-04 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- commit 87c460a0bded56195b5eb497d44709777ef7b415 upstream. khugepaged's collapse_shmem() does almost all of its work, to assemble the huge new_page from 512 scattered old pages, with the new_page's

[PATCH 4.19 029/139] x86/speculation: Propagate information about RSB filling mitigation to sysfs

2018-12-04 Thread Greg Kroah-Hartman
4.19-stable review patch. If anyone has any objections, please let me know. -- From: Jiri Kosina jkos...@suse.cz commit bb4b3b7762735cdaba5a40fd94c9303d9ffa147a upstream If spectrev2 mitigation has been enabled, RSB is filled on context switch in order to protect from various

[PATCH 4.14 118/146] PCI: layerscape: Fix wrong invocation of outbound window disable accessor

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Hou Zhiqiang commit c6fd6fe9dea44732cdcd970f1130b8cc50ad685a upstream. The order of parameters is not correct when invoking the outbound window disable routine. Fix it. Fixes: 4a2745d760fa

[PATCH 4.14 114/146] xtensa: fix coprocessor context offset definitions

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Max Filippov commit 03bc996af0cc71c7f30c384d8ce7260172423b34 upstream. Coprocessor context offsets are used by the assembly code that moves coprocessor context between the individual fields

[PATCH] x86/hpet: Remove unused FSEC_PER_NSEC define

2018-12-04 Thread Roland Dreier
The FSEC_PER_NSEC macro has had zero users since commit ab0e08f15d23 ("x86: hpet: Cleanup the clockevents init and register code"). Signed-off-by: Roland Dreier --- arch/x86/kernel/hpet.c | 4 1 file changed, 4 deletions(-) diff --git a/arch/x86/kernel/hpet.c b/arch/x86/kernel/hpet.c

[PATCH 4.14 113/146] xtensa: enable coprocessors that are being flushed

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Max Filippov commit 2958b66694e018c552be0b60521fec27e8d12988 upstream. coprocessor_flush_all may be called from a context of a thread that is different from the thread being flushed. In that

[PATCH 4.14 115/146] xtensa: fix coprocessor part of ptrace_{get,set}xregs

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Max Filippov commit 38a35a78c5e270cbe53c4fef6b0d3c2da90dd849 upstream. Layout of coprocessor registers in the elf_xtregs_t and xtregs_coprocessor_t may be different due to alignment. Thus it

[PATCH 4.14 101/146] ptrace: Remove unused ptrace_may_access_sched() and MODE_IBRS

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner t...@linutronix.de commit 46f7ecb1e7359f183f5bbd1e08b90e10e52164f9 upstream The IBPB control code in x86 removed the usage. Remove the functionality which was introduced for

[PATCH 4.14 062/146] virtio-net: fail XDP set if guest csum is negotiated

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Jason Wang [ Upstream commit 18ba58e1c234ea1a2d9835ac8c1735d965ce4640 ] We don't support partial csumed packet since its metadata will be lost or incorrect during XDP processing. So fail the

[PATCH 4.14 102/146] x86/speculation: Split out TIF update

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner t...@linutronix.de commit e6da8bb6f9abb2628381904b24163c770e630bac upstream The update of the TIF_SSBD flag and the conditional speculation control MSR update is done in the

[PATCH 4.14 119/146] arm64: dts: rockchip: Fix PCIe reset polarity for rk3399-puma-haikou.

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Christoph Muellner commit c1d91f86a1b4c9c05854d59c6a0abd5d0f75b849 upstream. This patch fixes the wrong polarity setting for the PCIe host driver's pre-reset pin for rk3399-puma-haikou.

[PATCH 4.14 120/146] x86/MCE/AMD: Fix the thresholding machinery initialization order

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Borislav Petkov commit 60c8144afc287ef09ce8c1230c6aa972659ba1bb upstream. Currently, the code sets up the thresholding interrupt vector and only then goes about initializing the thresholding

[PATCH] mm, page_alloc: Drop uneeded __meminit and __meminitdata

2018-12-04 Thread Oscar Salvador
Since commit 03e85f9d5f1 ("mm/page_alloc: Introduce free_area_init_core_hotplug"), some functions changed to only be called during system initialization. In concret, free_area_init_node and and the functions that hang from it. Also, some variables are no longer used after the system has gone

[PATCH 4.14 123/146] perf/x86/intel: Add generic branch tracing check to intel_pmu_has_bts()

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Jiri Olsa commit 67266c1080ad56c31af72b9c18355fde8ccc124a upstream. Currently we check the branch tracing only by checking for the PERF_COUNT_HW_BRANCH_INSTRUCTIONS event of

[PATCH 4.14 006/146] mm/khugepaged: fix crashes due to misaccounted holes

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- commit aaa52e340073b7f4593b3c4ddafcafa70cf838b5 upstream. Huge tmpfs testing on a shortish file mapped into a pmd-rounded extent hit shmem_evict_inode()'s WARN_ON(inode->i_blocks) followed by

Re: [RFC PATCH] hwpoison, memory_hotplug: allow hwpoisoned pages to be offlined

2018-12-04 Thread David Hildenbrand
On 03.12.18 11:03, Michal Hocko wrote: > From: Michal Hocko > > We have received a bug report that an injected MCE about faulty memory > prevents memory offline to succeed. The underlying reason is that the > HWPoison page has an elevated reference count and the migration keeps > failing. There

[PATCH 4.14 042/146] btrfs: tree-checker: Check level for leaves and nodes

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- commit f556faa46eb4e96d0d0772e74ecf66781e132f72 upstream. Although we have tree level check at tree read runtime, it's completely based on its parent level. We still need to do accurate level check

[PATCH 4.14 000/146] 4.14.86-stable review

2018-12-04 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.14.86 release. There are 146 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Thu Dec 6 10:36:52 UTC 2018. Anything

[PATCH 4.14 025/146] net/tls: Fixed return value when tls_complete_pending_work() fails

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- commit 150085791afb8054e11d2e080d4b9cd755dd7f69 upstream. In tls_sw_sendmsg() and tls_sw_sendpage(), the variable 'ret' has been set to return value of tls_complete_pending_work(). This allows return

[PATCH 4.14 036/146] btrfs: tree-checker: Add checker for dir item

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- commit ad7b0368f33cffe67fecd302028915926e50ef7e upstream. Add checker for dir item, for key types DIR_ITEM, DIR_INDEX and XATTR_ITEM. This checker does comprehensive checks for: 1) dir_item header

[PATCH 4.14 008/146] mm/khugepaged: minor reorderings in collapse_shmem()

2018-12-04 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- commit 042a30824871fa3149b0127009074b75cc25863c upstream. Several cleanups in collapse_shmem(): most of which probably do not really matter, beyond doing things in a more familiar and reassuring

  1   2   3   4   5   6   7   8   9   10   >