[PATCH AUTOSEL 4.19 050/123] phy: qcom-qusb2: Fix HSTX_TRIM tuning with fused value for SDM845

2018-12-05 Thread Sasha Levin
From: Manu Gautam [ Upstream commit c88520db18ba0b9a41326c3b8680e7c09eb4c381 ] Tune1 register on sdm845 is used to update HSTX_TRIM with fused setting. Enable same by specifying update_tune1_with_efuse flag for sdm845, otherwise driver ends up programming tune2 register. Fixes: ef17f6e212ca

[PATCH AUTOSEL 4.19 059/123] uprobes: Fix handle_swbp() vs. unregister() + register() race once more

2018-12-05 Thread Sasha Levin
From: Andrea Parri [ Upstream commit 09d3f015d1e1b4fee7e9bbdcf54201d239393391 ] Commit: 142b18ddc8143 ("uprobes: Fix handle_swbp() vs unregister() + register() race") added the UPROBE_COPY_INSN flag, and corresponding smp_wmb() and smp_rmb() memory barriers, to ensure that handle_swbp()

[PATCH AUTOSEL 4.19 064/123] RDMA/hns: Bugfix pbl configuration for rereg mr

2018-12-05 Thread Sasha Levin
From: Yixian Liu [ Upstream commit ca088320a02537f36c243ac21794525d8eabb3bd ] Current hns driver assigned the first two PBL page addresses from previous registered MR to the hardware when reregister MR changing the memory locations occurred. This will lead to PBL addressing error as the PBL has

[PATCH AUTOSEL 4.19 065/123] bpf: fix check of allowed specifiers in bpf_trace_printk

2018-12-05 Thread Sasha Levin
From: Martynas Pumputis [ Upstream commit 1efb6ee3edea57f57f9fb05dba8dcb3f7333f61f ] A format string consisting of "%p" or "%s" followed by an invalid specifier (e.g. "%p%\n" or "%s%") could pass the check which would make format_decode (lib/vsprintf.c) to warn. Fixes: 9c959c863f82 ("tracing:

[PATCH AUTOSEL 4.19 061/123] ASoC: omap-mcpdm: Add pm_qos handling to avoid under/overruns with CPU_IDLE

2018-12-05 Thread Sasha Levin
From: Peter Ujfalusi [ Upstream commit 373a500e34aea97971c9d71e45edad458d3da98f ] We need to block sleep states which would require longer time to leave than the time the DMA must react to the DMA request in order to keep the FIFO serviced without under of overrun. Signed-off-by: Peter

[PATCH AUTOSEL 4.19 055/123] RDMA/bnxt_re: Fix system hang when registration with L2 driver fails

2018-12-05 Thread Sasha Levin
From: Selvin Xavier [ Upstream commit 3c4b1419c33c2417836a63f8126834ee36968321 ] Driver doesn't release rtnl lock if registration with L2 driver (bnxt_re_register_netdev) fais and this causes hang while requesting for the next lock. [ 371.635416] "echo 0 >

[PATCH AUTOSEL 4.19 038/123] iio/hid-sensors: Fix IIO_CHAN_INFO_RAW returning wrong values for signed numbers

2018-12-05 Thread Sasha Levin
From: Hans de Goede [ Upstream commit 0145b50566e7de5637e80ecba96c7f0e6fff1aad ] Before this commit sensor_hub_input_attr_get_raw_value() failed to take the signedness of 16 and 8 bit values into account, returning e.g. 65436 instead of -100 for the z-axis reading of an accelerometer. This

[PATCH AUTOSEL 4.19 039/123] hwmon: (mlxreg-fan) Fix macros for tacho fault reading

2018-12-05 Thread Sasha Levin
From: Vadim Pasternak [ Upstream commit 243cfe3fb8978c7eec24511aba7dac98819ed896 ] Fix macros for tacometer fault reading. This fix is relevant for three Mellanox systems MQMB7, MSN37, MSN34, which are about to be released to the customers. At the moment, none of them is at customers sites.

[PATCH AUTOSEL 4.19 029/123] ASoC: rockchip: add missing slave_config setting for I2S

2018-12-05 Thread Sasha Levin
From: Katsuhiro Suzuki [ Upstream commit 16a8ee4c80b45984b6de1f90a49edcf336b7c621 ] This patch adds missing prepare_sleve_config that is needed for setup the DMA slave channel for I2S. Signed-off-by: Katsuhiro Suzuki Signed-off-by: Mark Brown Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL 4.19 040/123] bpf: allocate local storage buffers using GFP_ATOMIC

2018-12-05 Thread Sasha Levin
From: Roman Gushchin [ Upstream commit 569a933b03f3c48b392fe67c0086b3a6b9306b5a ] Naresh reported an issue with the non-atomic memory allocation of cgroup local storage buffers: [ 73.047526] BUG: sleeping function called from invalid context at

[PATCH AUTOSEL 4.19 042/123] netfilter: xt_hashlimit: fix a possible memory leak in htable_create()

2018-12-05 Thread Sasha Levin
From: Taehee Yoo [ Upstream commit b4e955e9f372035361fbc6f07b21fe2cc6a5be4a ] In the htable_create(), hinfo is allocated by vmalloc() So that if error occurred, hinfo should be freed. Fixes: 11d5f15723c9 ("netfilter: xt_hashlimit: Create revision 2 to support higher pps rates") Signed-off-by:

[PATCH AUTOSEL 4.19 032/123] ASoC: qcom: Set dai_link id to each dai_link

2018-12-05 Thread Sasha Levin
From: Rohit kumar [ Upstream commit 67fd1437d11620de8768b22fe20942e752ed52e9 ] Frontend dai_link id is used for closing ADM sessions. During concurrent usecase when one session is closed, it closes other ADM session associated with other usecase too. Dai_link->id should always point to Frontend

[PATCH AUTOSEL 4.19 043/123] hwmon: (w83795) temp4_type has writable permission

2018-12-05 Thread Sasha Levin
From: Huacai Chen [ Upstream commit 09aaf6813cfca4c18034fda7a43e68763f34abb1 ] Both datasheet and comments of store_temp_mode() tell us that temp1~4_type is writable, so fix it. Signed-off-by: Yao Wang Signed-off-by: Huacai Chen Fixes: 39deb6993e7c (" hwmon: (w83795) Simplify temperature

[PATCH AUTOSEL 4.19 047/123] objtool: Fix double-free in .cold detection error path

2018-12-05 Thread Sasha Levin
From: Artem Savkov [ Upstream commit 0b9301fb632f7111a3293a30cc5b20f1b82ed08d ] If read_symbols() fails during second list traversal (the one dealing with ".cold" subfunctions) it frees the symbol, but never deletes it from the list/hash_table resulting in symbol being freed again in

[PATCH AUTOSEL 4.19 049/123] phy: qcom-qusb2: Use HSTX_TRIM fused value as is

2018-12-05 Thread Sasha Levin
From: Manu Gautam [ Upstream commit 6e34d358b24ffc40764eb3681164c79091765429 ] Fix HSTX_TRIM tuning logic which instead of using fused value as HSTX_TRIM, incorrectly performs bitwise OR operation with existing default value. Fixes: ca04d9d3e1b1 ("phy: qcom-qusb2: New driver for QUSB2 PHY on

[PATCH AUTOSEL 4.19 048/123] objtool: Fix segfault in .cold detection with -ffunction-sections

2018-12-05 Thread Sasha Levin
From: Artem Savkov [ Upstream commit 22566c1603030f0a036ad564634b064ad1a55db2 ] Because find_symbol_by_name() traverses the same lists as read_symbols(), changing sym->name in place without copying it affects the result of find_symbol_by_name(). In the case where a ".cold" function precedes

[PATCH AUTOSEL 4.19 046/123] ASoC: acpi: fix: continue searching when machine is ignored

2018-12-05 Thread Sasha Levin
From: Keyon Jie [ Upstream commit a3e620f8422832afd832ad5e20aa97d0c72bada8 ] The machine_quirk may return NULL which means the acpi entries should be skipped and search for next matched entry is needed, here add return check here and continue for NULL case. Signed-off-by: Keyon Jie

[PATCH AUTOSEL 4.14 52/69] s390/qeth: fix length check in SNMP processing

2018-12-05 Thread Sasha Levin
From: Julian Wiedmann [ Upstream commit 9a764c1e59684c0358e16ccaafd870629f2cfe67 ] The response for a SNMP request can consist of multiple parts, which the cmd callback stages into a kernel buffer until all parts have been received. If the callback detects that the staging buffer provides

[PATCH AUTOSEL 4.14 55/69] xen: xlate_mmu: add missing header to fix 'W=1' warning

2018-12-05 Thread Sasha Levin
From: Srikanth Boddepalli [ Upstream commit 72791ac854fea36034fa7976b748fde585008e78 ] Add a missing header otherwise compiler warns about missed prototype: drivers/xen/xlate_mmu.c:183:5: warning: no previous prototype for 'xen_xlate_unmap_gfn_range?' [-Wmissing-prototypes] int

[PATCH AUTOSEL 4.14 65/69] mm/page_alloc.c: fix calculation of pgdat->nr_zones

2018-12-05 Thread Sasha Levin
From: Wei Yang [ Upstream commit 8f416836c0d50b198cad1225132e5abebf8980dc ] init_currently_empty_zone() will adjust pgdat->nr_zones and set it to 'zone_idx(zone) + 1' unconditionally. This is correct in the normal case, while not exact in hot-plug situation. This function is used in two

[PATCH AUTOSEL 4.14 62/69] test_hexdump: use memcpy instead of strncpy

2018-12-05 Thread Sasha Levin
From: Linus Torvalds [ Upstream commit b1286ed7158e9b62787508066283ab0b8850b518 ] New versions of gcc reasonably warn about the odd pattern of strncpy(p, q, strlen(q)); which really doesn't make sense: the strncpy() ends up being just a slow and odd way to write memcpy() in this case.

[PATCH AUTOSEL 4.14 67/69] hfsplus: do not free node before using

2018-12-05 Thread Sasha Levin
From: Pan Bian [ Upstream commit c7d7d620dcbd2a1c595092280ca943f2fced7bbd ] hfs_bmap_free() frees node via hfs_bnode_put(node). However it then reads node->this when dumping error message on an error path, which may result in a use-after-free bug. This patch frees node only when it is never

[PATCH AUTOSEL 4.14 60/69] nvme: flush namespace scanning work just before removing namespaces

2018-12-05 Thread Sasha Levin
From: Sagi Grimberg [ Upstream commit f6c8e432cb0479255322c5d0335b9f1699a0270c ] nvme_stop_ctrl can be called also for reset flow and there is no need to flush the scan_work as namespaces are not being removed. This can cause deadlock in rdma, fc and loop drivers since nvme_stop_ctrl barriers

[PATCH AUTOSEL 4.14 56/69] Revert "xen/balloon: Mark unallocated host memory as UNUSABLE"

2018-12-05 Thread Sasha Levin
From: Igor Druzhinin [ Upstream commit 123664101aa2156d05251704fc63f9bcbf77741a ] This reverts commit b3cf8528bb21febb650a7ecbf080d0647be40b9f. That commit unintentionally broke Xen balloon memory hotplug with "hotplug_unpopulated" set to 1. As long as "System RAM" resource got assigned under

[PATCH AUTOSEL 4.14 47/69] cachefiles: Fix page leak in cachefiles_read_backing_file while vmscan is active

2018-12-05 Thread Sasha Levin
From: Kiran Kumar Modukuri [ Upstream commit 9a24ce5b66f9c8190d63b15f4473600db4935f1f ] [Description] In a heavily loaded system where the system pagecache is nearing memory limits and fscache is enabled, pages can be leaked by fscache while trying read pages from cachefiles backend. This can

[PATCH AUTOSEL 4.14 68/69] debugobjects: avoid recursive calls with kmemleak

2018-12-05 Thread Sasha Levin
From: Qian Cai [ Upstream commit 8de456cf87ba863e028c4dd01bae44255ce3d835 ] CONFIG_DEBUG_OBJECTS_RCU_HEAD does not play well with kmemleak due to recursive calls. fill_pool kmemleak_ignore make_black_object put_object __call_rcu (kernel/rcu/tree.c)

[PATCH AUTOSEL 4.14 64/69] ocfs2: fix deadlock caused by ocfs2_defrag_extent()

2018-12-05 Thread Sasha Levin
From: Larry Chen [ Upstream commit e21e57445a64598b29a6f629688f9b9a39e7242a ] ocfs2_defrag_extent may fall into deadlock. ocfs2_ioctl_move_extents ocfs2_ioctl_move_extents ocfs2_move_extents ocfs2_defrag_extent ocfs2_lock_allocators_move_extents

[PATCH AUTOSEL 4.14 59/69] fscache, cachefiles: remove redundant variable 'cache'

2018-12-05 Thread Sasha Levin
From: Colin Ian King [ Upstream commit 31ffa563833576bd49a8bf53120568312755e6e2 ] Variable 'cache' is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable 'cache' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin

[PATCH AUTOSEL 4.14 49/69] ixgbe: recognize 1000BaseLX SFP modules as 1Gbps

2018-12-05 Thread Sasha Levin
From: Josh Elsasser [ Upstream commit a8bf879af7b1999eba36303ce9cc60e0e7dd816c ] Add the two 1000BaseLX enum values to the X550's check for 1Gbps modules, allowing the core driver code to establish a link over this SFP type. This is done by the out-of-tree driver but the fix wasn't in

[PATCH AUTOSEL 4.9 27/45] x86/kvm/vmx: fix old-style function declaration

2018-12-05 Thread Sasha Levin
From: Yi Wang [ Upstream commit 1e4329ee2c52692ea42cc677fb2133519718b34a ] The inline keyword which is not at the beginning of the function declaration may trigger the following build warnings, so let's fix it: arch/x86/kvm/vmx.c:1309:1: warning: ‘inline’ is not at beginning of declaration

Re: [PATCH v4 0/7] lib/lzo: performance improvements

2018-12-05 Thread Dave Rodgman
ized] > 239 | m_off = ip - m_pos; > > Care to take a look? (could be false positive) Hi Sergey, This warning (it's a false positive only seen with gcc) was fixed by v4 of this patchset. I've just tested the latest linux-next/master (next-20181205) and it doesn't have this issue. cheers Dave

Re: [PATCH 0/5] clk: meson: axg: add 32k clock generation

2018-12-05 Thread Neil Armstrong
On 04/12/2018 17:53, Jerome Brunet wrote: > The goal of this patchset is to add the internal generation of the > 32768Hz clock within the axg AO clock controller. > > This was initially added has the CEC clock on gxbb. To properly > integrate it on the axg, a simpler 'dual divider' driver is

[PATCH AUTOSEL 4.19 091/123] cachefiles: Fix an assertion failure when trying to update a failed object

2018-12-05 Thread Sasha Levin
From: David Howells [ Upstream commit e6bc06faf64a83384cc0abc537df954c9d3ff942 ] If cachefiles gets an error other then ENOENT when trying to look up an object in the cache (in this case, EACCES), the object state machine will eventually transition to the DROP_OBJECT state. This state invokes

[PATCH AUTOSEL 4.19 093/123] cachefiles: Fix page leak in cachefiles_read_backing_file while vmscan is active

2018-12-05 Thread Sasha Levin
From: Kiran Kumar Modukuri [ Upstream commit 9a24ce5b66f9c8190d63b15f4473600db4935f1f ] [Description] In a heavily loaded system where the system pagecache is nearing memory limits and fscache is enabled, pages can be leaked by fscache while trying read pages from cachefiles backend. This can

[PATCH AUTOSEL 4.19 090/123] ALSA: usb-audio: Add vendor and product name for Dell WD19 Dock

2018-12-05 Thread Sasha Levin
From: Hui Wang [ Upstream commit 8159a6a4a7d2a092d5375f695ecfca22b4562b5f ] Like the Dell WD15 Dock, the WD19 Dock (0bda:402e) doens't provide useful string for the vendor and product names too. In order to share the UCM with WD15, here we keep the profile_name same as the WD15. Signed-off-by:

[PATCH AUTOSEL 4.19 081/123] KVM: x86: fix empty-body warnings

2018-12-05 Thread Sasha Levin
From: Yi Wang [ Upstream commit 354cb410d87314e2eda344feea84809e4261570a ] We get the following warnings about empty statements when building with 'W=1': arch/x86/kvm/lapic.c:632:53: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body] arch/x86/kvm/lapic.c:1907:42:

[PATCH AUTOSEL 4.19 078/123] netfilter: nat: fix double register in masquerade modules

2018-12-05 Thread Sasha Levin
From: Taehee Yoo [ Upstream commit 095faf45e64be00bff4da2d6182dface3d69c9b7 ] There is a reference counter to ensure that masquerade modules register notifiers only once. However, the existing reference counter approach is not safe, test commands are: while : do modprobe

[PATCH AUTOSEL 4.19 076/123] IB/mlx5: Fix page fault handling for MW

2018-12-05 Thread Sasha Levin
From: Artemy Kovalyov [ Upstream commit 75b7b86bdb0df37e08e44b6c1f99010967f81944 ] Memory windows are implemented with an indirect MKey, when a page fault event comes for a MW Mkey we need to find the MR at the end of the list of the indirect MKeys by iterating on all items from the first to

[GIT PULL] MFD fixes for v4.20

2018-12-05 Thread Lee Jones
Hi Linus, Enjoy! The following changes since commit 651022382c7f8da46cb4872a545ee1da6d097d2a: Linux 4.20-rc1 (2018-11-04 15:37:52 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git mfd-fixes-4.20 for you to fetch changes up to

[PATCH AUTOSEL 4.19 063/123] exportfs: do not read dentry after free

2018-12-05 Thread Sasha Levin
From: Pan Bian [ Upstream commit 2084ac6c505a58f7efdec13eba633c6aaa085ca5 ] The function dentry_connected calls dput(dentry) to drop the previously acquired reference to dentry. In this case, dentry can be released. After that, IS_ROOT(dentry) checks the condition (dentry == dentry->d_parent),

[PATCH AUTOSEL 4.19 060/123] ASoC: omap-mcbsp: Fix latency value calculation for pm_qos

2018-12-05 Thread Sasha Levin
From: Peter Ujfalusi [ Upstream commit dd2f52d8991af9fe0928d59ec502ba52be7bc38d ] The latency number is in usec for the pm_qos. Correct the calculation to give us the time in usec Signed-off-by: Peter Ujfalusi Acked-by: Jarkko Nikula Signed-off-by: Mark Brown Signed-off-by: Sasha Levin ---

RE: [PATCH 2/2] ASoC: DA7219: Implement error check on reg read and write

2018-12-05 Thread Adam Thomson
On 05 December 2018 04:27, Akshu Agrawal wrote: > On 12/5/2018 2:46 AM, Adam Thomson wrote: > > On 04 December 2018 18:36, Akshu Agrawal wrote: > > > >> Failed i2c transaction can lead to failure in reg read or write. > >> Need to have error check for each read write operation. > >> > > > > I'm

Re: [PATCH] perf vendor events intel: Fix Load_Miss_Real_Latency on SKL/SKX

2018-12-05 Thread Jiri Olsa
On Mon, Nov 19, 2018 at 09:06:35PM -0800, Andi Kleen wrote: > From: Andi Kleen > > Fix incorrect event names for the Load_Miss_Real_Latency metric for > Skylake and Skylake Server. > > Fixes https://github.com/andikleen/pmu-tools/issues/158 Acked-by: Jiri Olsa thanks, jirka > > Before: >

Re: [PATCH v2 2/5] devfreq: add support for suspend/resume of a devfreq device

2018-12-05 Thread Lukasz Luba
Hi Chanwoo, On 12/5/18 1:09 AM, Chanwoo Choi wrote: > Hi Lukasz, > > On 2018년 12월 04일 18:53, Lukasz Luba wrote: >> Hi Chanwoo, >> >> On 12/4/18 7:10 AM, Chanwoo Choi wrote: >>> Hi Lukasz, >>> >>> I add the comment about 'suspend_count'. >>> >>> On 2018년 12월 04일 14:43, Chanwoo Choi wrote:

Re: [PATCH 2/2] ARM: Wrap '--pic-veneer' with ld-option

2018-12-05 Thread Nathan Chancellor
On Wed, Dec 05, 2018 at 08:37:05AM +0100, Ard Biesheuvel wrote: > On Wed, 5 Dec 2018 at 02:42, Nathan Chancellor > wrote: > > > > This flag is not supported by lld: > > > > ld.lld: error: unknown argument: --pic-veneer > > > > Signed-off-by: Nathan Chancellor > > Hi Nate, > > Does this

Re: [PATCH v11 2/2] cpufreq: qcom-hw: Add support for QCOM cpufreq HW driver

2018-12-05 Thread Stephen Boyd
Quoting Taniya Das (2018-12-04 19:37:00) > Hello Stephen, Viresh > > Thanks for the code and suggestions. > > Having a NR_DOMAINS '2' makes the driver not scalable for re-use. > This assumption is only true for the current version of the HW and do > not intend to update/clean-up this logic

Re: [PATCH 5/5] mm: Stall movable allocations until kswapd progresses during serious external fragmentation event

2018-12-05 Thread Mel Gorman
On Tue, Nov 27, 2018 at 02:20:30PM +0100, Vlastimil Babka wrote: > > This patch has a marginal rate on fragmentation rates as it's rare for > > the stall logic to actually trigger but the small stalls can be enough for > > kswapd to catch up. How much that helps is variable but probably worthwhile

Re: [PATCH] dmaengine: dmatest: fix a small memory leak in dmatest_func()

2018-12-05 Thread Vinod Koul
On 03-12-18, 17:49, Dan Carpenter wrote: > We recently moved the test size tests around but it means we need to > adjust the error handling as well or we leak the "pq_coefs" memory. I > updated the label name to reflect that we're freeing coefs. Applied, thanks -- ~Vinod

[PATCH 0/2] irqchip: irq-renesas-xxx: convert to SPDX identifiers

2018-12-05 Thread Kuninori Morimoto
Hi Thomas, Jason, Marc I have posted these with confusable Subject before. I re-post these with correct Subject Kuninori Morimoto (2): irqchip: irq-renesas-irqc: convert to SPDX identifiers irqchip: irq-renesas-intc-irqpin: convert to SPDX identifiers

Re: [PATCH v3 0/4] Correct dma pool for imx-sdma

2018-12-05 Thread Vinod Koul
On 06-11-18, 03:40, Robin Gong wrote: > This patch set to correct dma pool used in the commit fe5b85c656bc > ("dmaengine: imx-sdma: alloclate bd memory from dma pool") > because all bds should be contiguous in memory in multi bds case > for sdma, but dma pool can't statify it and cause transfer

Re: [PATCH 1/3] ALSA: hda/realtek: ALC294 mic and headset-mode fixups for ASUS X542UN

2018-12-05 Thread Jian-Hong Pan
Kailang 於 2018年12月5日 週三 下午4:36寫道: > > Hi Jian-Hong, > > Could you test to change the model to ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC? > > .chain_id = ALC256_FIXUP_ASUS_HEADSET_MODE ==> change to > ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC According to the comment

[PATCH AUTOSEL 4.19 092/123] fscache: Fix race in fscache_op_complete() due to split atomic_sub & read

2018-12-05 Thread Sasha Levin
From: "kiran.modukuri" [ Upstream commit 3f2b7b9035107d6096ea438ea3d97dcf0481b6d2 ] The code in fscache_retrieval_complete is using atomic_sub followed by an atomic_read: atomic_sub(n_pages, >n_pages); if (atomic_read(>n_pages) <= 0) fscache_op_complete(>op,

[PATCH AUTOSEL 4.19 100/123] drm/ast: fixed reading monitor EDID not stable issue

2018-12-05 Thread Sasha Levin
From: "Y.C. Chen" [ Upstream commit 300625620314194d9e6d4f6dda71f2dc9cf62d9f ] v1: over-sample data to increase the stability with some specific monitors v2: refine to avoid infinite loop v3: remove un-necessary "volatile" declaration [airlied: fix two checkpatch warnings] Signed-off-by: Y.C.

[PATCH AUTOSEL 4.19 099/123] drm/amdgpu: Add delay after enable RLC ucode

2018-12-05 Thread Sasha Levin
From: shaoyunl [ Upstream commit ad97d9de45835b6a0f71983b0ae0cffd7306730a ] Driver shouldn't try to access any GFX registers until RLC is idle. During the test, it took 12 seconds for RLC to clear the BUSY bit in RLC_GPM_STAT register which is un-acceptable for driver. As per RLC engineer, it

[PATCH AUTOSEL 4.19 102/123] Revert "xen/balloon: Mark unallocated host memory as UNUSABLE"

2018-12-05 Thread Sasha Levin
From: Igor Druzhinin [ Upstream commit 123664101aa2156d05251704fc63f9bcbf77741a ] This reverts commit b3cf8528bb21febb650a7ecbf080d0647be40b9f. That commit unintentionally broke Xen balloon memory hotplug with "hotplug_unpopulated" set to 1. As long as "System RAM" resource got assigned under

[PATCH AUTOSEL 4.19 105/123] afs: Fix validation/callback interaction

2018-12-05 Thread Sasha Levin
From: David Howells [ Upstream commit ae3b7361dc0ee9a425bf7d77ce211f533500b39b ] When afs_validate() is called to validate a vnode (inode), there are two unhandled cases in the fastpath at the top of the function: (1) If the vnode is promised (AFS_VNODE_CB_PROMISED is set), the break

[PATCH AUTOSEL 4.19 103/123] pvcalls-front: fixes incorrect error handling

2018-12-05 Thread Sasha Levin
From: Pan Bian [ Upstream commit 975ef94a0284648fb0137bd5e949b18cef604e33 ] kfree() is incorrectly used to release the pages allocated by __get_free_page() and __get_free_pages(). Use the matching deallocators i.e., free_page() and free_pages(), respectively. Signed-off-by: Pan Bian

[PATCH AUTOSEL 4.19 098/123] s390/qeth: fix length check in SNMP processing

2018-12-05 Thread Sasha Levin
From: Julian Wiedmann [ Upstream commit 9a764c1e59684c0358e16ccaafd870629f2cfe67 ] The response for a SNMP request can consist of multiple parts, which the cmd callback stages into a kernel buffer until all parts have been received. If the callback detects that the staging buffer provides

[PATCH AUTOSEL 4.19 106/123] fscache: fix race between enablement and dropping of object

2018-12-05 Thread Sasha Levin
From: NeilBrown [ Upstream commit c5a94f434c82529afda290df3235e4d85873c5b4 ] It was observed that a process blocked indefintely in __fscache_read_or_alloc_page(), waiting for FSCACHE_COOKIE_LOOKING_UP to be cleared via fscache_wait_for_deferred_lookup(). At this time, ->backing_objects was

[PATCH AUTOSEL 4.19 096/123] rapidio/rionet: do not free skb before reading its length

2018-12-05 Thread Sasha Levin
From: Pan Bian [ Upstream commit cfc435198f53a6fa1f656d98466b24967ff457d0 ] skb is freed via dev_kfree_skb_any, however, skb->len is read then. This may result in a use-after-free bug. Fixes: e6161d64263 ("rapidio/rionet: rework driver initialization and removal") Signed-off-by: Pan Bian

[PATCH AUTOSEL 4.19 104/123] pstore/ram: Correctly calculate usable PRZ bytes

2018-12-05 Thread Sasha Levin
From: Kees Cook [ Upstream commit 89d328f637b9904b6d4c9af73c8a608b8dd4d6f8 ] The actual number of bytes stored in a PRZ is smaller than the bytes requested by platform data, since there is a header on each PRZ. Additionally, if ECC is enabled, there are trailing bytes used as well. Normally

[PATCH AUTOSEL 4.19 095/123] ixgbe: recognize 1000BaseLX SFP modules as 1Gbps

2018-12-05 Thread Sasha Levin
From: Josh Elsasser [ Upstream commit a8bf879af7b1999eba36303ce9cc60e0e7dd816c ] Add the two 1000BaseLX enum values to the X550's check for 1Gbps modules, allowing the core driver code to establish a link over this SFP type. This is done by the out-of-tree driver but the fix wasn't in

[PATCH AUTOSEL 4.19 108/123] fscache, cachefiles: remove redundant variable 'cache'

2018-12-05 Thread Sasha Levin
From: Colin Ian King [ Upstream commit 31ffa563833576bd49a8bf53120568312755e6e2 ] Variable 'cache' is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable 'cache' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin

[PATCH AUTOSEL 4.19 112/123] ACPI/IORT: Fix iort_get_platform_device_domain() uninitialized pointer value

2018-12-05 Thread Sasha Levin
From: Lorenzo Pieralisi [ Upstream commit ea2412dc21cc790335d319181dddc43682aef164 ] Running the Clang static analyzer on IORT code detected the following error: Logic error: Branch condition evaluates to a garbage value in iort_get_platform_device_domain() If the named component associated

[PATCH AUTOSEL 4.19 121/123] kernel/kcov.c: mark funcs in __sanitizer_cov_trace_pc() as notrace

2018-12-05 Thread Sasha Levin
From: Anders Roxell [ Upstream commit 903e8ff86753e6f327bb92166a0665e4ecb8e2e7 ] Since __sanitizer_cov_trace_pc() is marked as notrace, function calls in __sanitizer_cov_trace_pc() shouldn't be traced either. ftrace_graph_caller() gets called for each function that isn't marked 'notrace', like

[PATCH AUTOSEL 4.19 120/123] proc: fixup map_files test on arm

2018-12-05 Thread Sasha Levin
From: Alexey Dobriyan [ Upstream commit dbd4af54745fc0c805217693c807a3928b2d408b ] https://bugs.linaro.org/show_bug.cgi?id=3782 Turns out arm doesn't permit mapping address 0, so try minimum virtual address instead. Link: http://lkml.kernel.org/r/20181113165446.GA28157@avx2 Signed-off-by:

[PATCH AUTOSEL 4.19 115/123] ocfs2: fix deadlock caused by ocfs2_defrag_extent()

2018-12-05 Thread Sasha Levin
From: Larry Chen [ Upstream commit e21e57445a64598b29a6f629688f9b9a39e7242a ] ocfs2_defrag_extent may fall into deadlock. ocfs2_ioctl_move_extents ocfs2_ioctl_move_extents ocfs2_move_extents ocfs2_defrag_extent ocfs2_lock_allocators_move_extents

[PATCH AUTOSEL 4.19 118/123] hfsplus: do not free node before using

2018-12-05 Thread Sasha Levin
From: Pan Bian [ Upstream commit c7d7d620dcbd2a1c595092280ca943f2fced7bbd ] hfs_bmap_free() frees node via hfs_bnode_put(node). However it then reads node->this when dumping error message on an error path, which may result in a use-after-free bug. This patch frees node only when it is never

[PATCH AUTOSEL 4.19 116/123] mm/page_alloc.c: fix calculation of pgdat->nr_zones

2018-12-05 Thread Sasha Levin
From: Wei Yang [ Upstream commit 8f416836c0d50b198cad1225132e5abebf8980dc ] init_currently_empty_zone() will adjust pgdat->nr_zones and set it to 'zone_idx(zone) + 1' unconditionally. This is correct in the normal case, while not exact in hot-plug situation. This function is used in two

[PATCH AUTOSEL 4.19 117/123] hfs: do not free node before using

2018-12-05 Thread Sasha Levin
From: Pan Bian [ Upstream commit ce96a407adef126870b3f4a1b73529dd8aa80f49 ] hfs_bmap_free() frees the node via hfs_bnode_put(node). However, it then reads node->this when dumping error message on an error path, which may result in a use-after-free bug. This patch frees the node only when it

[PATCH AUTOSEL 4.19 119/123] debugobjects: avoid recursive calls with kmemleak

2018-12-05 Thread Sasha Levin
From: Qian Cai [ Upstream commit 8de456cf87ba863e028c4dd01bae44255ce3d835 ] CONFIG_DEBUG_OBJECTS_RCU_HEAD does not play well with kmemleak due to recursive calls. fill_pool kmemleak_ignore make_black_object put_object __call_rcu (kernel/rcu/tree.c)

[PATCH AUTOSEL 4.19 109/123] nvme: warn when finding multi-port subsystems without multipathing enabled

2018-12-05 Thread Sasha Levin
From: Christoph Hellwig [ Upstream commit 14a1336e6fff47dd1028b484d6c802105c58e2ee ] Without CONFIG_NVME_MULTIPATH enabled a multi-port subsystem might show up as invididual devices and cause problems, warn about it. Signed-off-by: Christoph Hellwig Reviewed-by: Sagi Grimberg Signed-off-by:

[PATCH AUTOSEL 4.19 110/123] nvme: flush namespace scanning work just before removing namespaces

2018-12-05 Thread Sasha Levin
From: Sagi Grimberg [ Upstream commit f6c8e432cb0479255322c5d0335b9f1699a0270c ] nvme_stop_ctrl can be called also for reset flow and there is no need to flush the scan_work as namespaces are not being removed. This can cause deadlock in rdma, fc and loop drivers since nvme_stop_ctrl barriers

[PATCH AUTOSEL 4.19 114/123] unifdef: use memcpy instead of strncpy

2018-12-05 Thread Sasha Levin
From: Linus Torvalds [ Upstream commit 38c7b224ce22c25fed04007839edf974bd13439d ] New versions of gcc reasonably warn about the odd pattern of strncpy(p, q, strlen(q)); which really doesn't make sense: the strncpy() ends up being just a slow and odd way to write memcpy() in this case.

[PATCH AUTOSEL 4.9 39/45] test_hexdump: use memcpy instead of strncpy

2018-12-05 Thread Sasha Levin
From: Linus Torvalds [ Upstream commit b1286ed7158e9b62787508066283ab0b8850b518 ] New versions of gcc reasonably warn about the odd pattern of strncpy(p, q, strlen(q)); which really doesn't make sense: the strncpy() ends up being just a slow and odd way to write memcpy() in this case.

[PATCH AUTOSEL 4.9 37/45] fscache: fix race between enablement and dropping of object

2018-12-05 Thread Sasha Levin
From: NeilBrown [ Upstream commit c5a94f434c82529afda290df3235e4d85873c5b4 ] It was observed that a process blocked indefintely in __fscache_read_or_alloc_page(), waiting for FSCACHE_COOKIE_LOOKING_UP to be cleared via fscache_wait_for_deferred_lookup(). At this time, ->backing_objects was

[PATCH AUTOSEL 4.9 40/45] unifdef: use memcpy instead of strncpy

2018-12-05 Thread Sasha Levin
From: Linus Torvalds [ Upstream commit 38c7b224ce22c25fed04007839edf974bd13439d ] New versions of gcc reasonably warn about the odd pattern of strncpy(p, q, strlen(q)); which really doesn't make sense: the strncpy() ends up being just a slow and odd way to write memcpy() in this case.

[PATCH AUTOSEL 4.9 42/45] hfs: do not free node before using

2018-12-05 Thread Sasha Levin
From: Pan Bian [ Upstream commit ce96a407adef126870b3f4a1b73529dd8aa80f49 ] hfs_bmap_free() frees the node via hfs_bnode_put(node). However, it then reads node->this when dumping error message on an error path, which may result in a use-after-free bug. This patch frees the node only when it

[PATCH AUTOSEL 4.9 43/45] hfsplus: do not free node before using

2018-12-05 Thread Sasha Levin
From: Pan Bian [ Upstream commit c7d7d620dcbd2a1c595092280ca943f2fced7bbd ] hfs_bmap_free() frees node via hfs_bnode_put(node). However it then reads node->this when dumping error message on an error path, which may result in a use-after-free bug. This patch frees node only when it is never

[PATCH AUTOSEL 4.9 34/45] s390/qeth: fix length check in SNMP processing

2018-12-05 Thread Sasha Levin
From: Julian Wiedmann [ Upstream commit 9a764c1e59684c0358e16ccaafd870629f2cfe67 ] The response for a SNMP request can consist of multiple parts, which the cmd callback stages into a kernel buffer until all parts have been received. If the callback detects that the staging buffer provides

[PATCH AUTOSEL 4.9 45/45] ocfs2: fix potential use after free

2018-12-05 Thread Sasha Levin
From: Pan Bian [ Upstream commit 164f7e586739d07eb56af6f6d66acebb11f315c8 ] ocfs2_get_dentry() calls iput(inode) to drop the reference count of inode, and if the reference count hits 0, inode is freed. However, in this function, it then reads inode->i_generation, which may result in a use

[PATCH AUTOSEL 4.9 44/45] debugobjects: avoid recursive calls with kmemleak

2018-12-05 Thread Sasha Levin
From: Qian Cai [ Upstream commit 8de456cf87ba863e028c4dd01bae44255ce3d835 ] CONFIG_DEBUG_OBJECTS_RCU_HEAD does not play well with kmemleak due to recursive calls. fill_pool kmemleak_ignore make_black_object put_object __call_rcu (kernel/rcu/tree.c)

[PATCH AUTOSEL 4.9 09/45] ASoC: omap-abe-twl6040: Fix missing audio card caused by deferred probing

2018-12-05 Thread Sasha Levin
From: Peter Ujfalusi [ Upstream commit 76836fd354922ebe4798a64fda01f8dc6a8b0984 ] The machine driver fails to probe in next-20181113 with: [2.539093] omap-abe-twl6040 sound: ASoC: CODEC DAI twl6040-legacy not registered [2.546630] omap-abe-twl6040 sound: devm_snd_soc_register_card()

[PATCH AUTOSEL 4.9 07/45] s390/cpum_cf: Reject request for sampling in event initialization

2018-12-05 Thread Sasha Levin
From: Thomas Richter [ Upstream commit 613a41b0d16e617f46776a93b975a1eeea96417c ] On s390 command perf top fails [root@s35lp76 perf] # ./perf top -F10 --stdio Error: cycles: PMU Hardware doesn't support sampling/overflow-interrupts. Try 'perf stat' [root@s35lp76 perf] #

[PATCH AUTOSEL 4.9 10/45] ASoC: dapm: Recalculate audio map forcely when card instantiated

2018-12-05 Thread Sasha Levin
From: Tzung-Bi Shih [ Upstream commit 882eab6c28d23a970ae73b7eb831b169a672d456 ] Audio map are possible in wrong state before card->instantiated has been set to true. Imaging the following examples: time 1: at the beginning in:-1in:-1in:-1in:-1 out:-1 out:-1 out:-1

Re: [patch 0/2 for-4.20] mm, thp: fix remote access and allocation regressions

2018-12-05 Thread Mel Gorman
On Tue, Dec 04, 2018 at 02:25:54PM -0800, David Rientjes wrote: > On Tue, 4 Dec 2018, Michal Hocko wrote: > > > > This fixes a 13.9% of remote memory access regression and 40% remote > > > memory allocation regression on Haswell when the local node is fragmented > > > for hugepage sized pages and

Re: [PATCH v5 1/6] fieldbus_dev: add Fieldbus Device subsystem.

2018-12-05 Thread Greg KH
On Tue, Dec 04, 2018 at 05:02:19PM -0500, Sven Van Asbroeck wrote: > --- /dev/null > +++ b/Documentation/ABI/testing/sysfs-class-fieldbus-dev > @@ -0,0 +1,63 @@ > +What:/sys/class/fieldbus_dev/fieldbus_devX/card_name Here's a good example of your naming being a bit too "verbose"

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

2018-12-05 Thread Dave Young
> >> +init_uts_ns > >> +=== > >> +This is the UTS namespace, which is used to isolate two specific elements > >> +of the system that relate to the uname system call. The UTS namespace is > >> +named after the data structure used to store information returned by the > >> +uname system call.

Re: [PATCH 0/2] clk: meson: add clk-input helper

2018-12-05 Thread Neil Armstrong
On 04/12/2018 17:58, Jerome Brunet wrote: > When the related bindings get merged, we will add more input clocks > to the different amlogic clock controllers. Instead of copying this > code around, lets create an helper function and use it. > > Jerome Brunet (2): > clk: meson: add clk-input

Re: [PATCH 02/14] dt-bindings: soc: milbeaut: Add Milbeaut trampoline description

2018-12-05 Thread Sugaya, Taichi
Hi, On 2018/12/04 22:32, Rob Herring wrote: On Tue, Dec 4, 2018 at 5:30 AM Sugaya, Taichi wrote: Hi On 2018/12/04 0:49, Rob Herring wrote: On Mon, Dec 3, 2018 at 1:42 AM Sugaya, Taichi wrote: Hi, On 2018/11/30 17:16, Stephen Boyd wrote: Quoting Sugaya, Taichi (2018-11-29 04:24:51) On

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

2018-12-05 Thread David Hildenbrand
On 04.12.18 12:15, Oscar Salvador wrote: > 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

[PATCH 2/2] irqchip: irq-renesas-intc-irqpin: convert to SPDX identifiers

2018-12-05 Thread Kuninori Morimoto
From: Kuninori Morimoto This patch updates license to use SPDX-License-Identifier instead of verbose license text. Signed-off-by: Kuninori Morimoto Reviewed-by: Simon Horman --- drivers/irqchip/irq-renesas-intc-irqpin.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-)

[PATCH 1/2] irqchip: irq-renesas-irqc: convert to SPDX identifiers

2018-12-05 Thread Kuninori Morimoto
From: Kuninori Morimoto This patch updates license to use SPDX-License-Identifier instead of verbose license text. Signed-off-by: Kuninori Morimoto Reviewed-by: Simon Horman --- drivers/irqchip/irq-renesas-irqc.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff

Re: [PATCH] dmaengine: remove DBGFS_FUNC_DECL()

2018-12-05 Thread Vinod Koul
On 30-11-18, 10:42, Yangtao Li wrote: > We already have the DEFINE_SHOW_ATTRIBUTE,There is no need to define > such a macro,so remove DBGFS_FUNC_DECL.Also use macro to simplify some > code. Spaces after full stop and comma please > > Signed-off-by: Yangtao Li > --- > drivers/dma/amba-pl08x.c

Re: [PATCH] platform/x86: convert to DEFINE_SHOW_ATTRIBUTE

2018-12-05 Thread Andy Shevchenko
On Wed, Dec 5, 2018 at 3:47 AM Frank Lee wrote: > On Wed, Dec 5, 2018 at 1:39 AM Andy Shevchenko > wrote: > > On Tue, Dec 4, 2018 at 6:58 PM Frank Lee wrote: > > > $ git remote set-branches --add origin for-next > > > $ git br -vv > > > * for-next 651022382c7f [origin/for-next] Linux 4.20-rc1

RE: rcu_preempt caused oom

2018-12-05 Thread He, Bo
I double checked the .config, we don't enable CONFIG_NO_HZ_FULL . Our previous logs can dump all the task backtrace, and kthread (the rcu_preempt, rcu_sched, and rcu_bh tasks) are all in "I" state not in "R" state, my understandings are if it's the side-effect of causing RCU's kthreads to be

[PATCH v7 04/14] fork: provide a function for copying init_mm

2018-12-05 Thread Nadav Amit
Provide a function for copying init_mm. This function will be later used for setting a temporary mm. Cc: Andy Lutomirski Cc: Kees Cook Cc: Peter Zijlstra Cc: Dave Hansen Reviewed-by: Masami Hiramatsu Tested-by: Masami Hiramatsu Signed-off-by: Nadav Amit --- include/linux/sched/task.h | 1

[PATCH v7 06/14] x86/alternative: use temporary mm for text poking

2018-12-05 Thread Nadav Amit
text_poke() can potentially compromise the security as it sets temporary PTEs in the fixmap. These PTEs might be used to rewrite the kernel code from other cores accidentally or maliciously, if an attacker gains the ability to write onto kernel memory. Moreover, since remote TLBs are not flushed

[PATCH v7 05/14] x86/alternative: initializing temporary mm for patching

2018-12-05 Thread Nadav Amit
To prevent improper use of the PTEs that are used for text patching, we want to use a temporary mm struct. We initailize it by copying the init mm. The address that will be used for patching is taken from the lower area that is usually used for the task memory. Doing so prevents the need to

[PATCH v7 09/14] x86/kprobes: Instruction pages initialization enhancements

2018-12-05 Thread Nadav Amit
This patch is a preparatory patch for a following patch that makes module allocated pages non-executable. The patch sets the page as executable after allocation. In the future, we may get better protection of executables. For example, by using hypercalls to request the hypervisor to protect VM

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