[PATCH AUTOSEL 5.2 42/63] sched/membarrier: Fix private expedited registration check

2019-10-01 Thread Sasha Levin
From: Mathieu Desnoyers [ Upstream commit fc0d77387cb5ae883fd774fc559e056a8dde024c ] Fix a logic flaw in the way membarrier_register_private_expedited() handles ready state checks for private expedited sync core and private expedited registrations. If a private expedited membarrier registration

[PATCH AUTOSEL 5.2 40/63] ppp: Fix memory leak in ppp_write

2019-10-01 Thread Sasha Levin
From: Takeshi Misawa [ Upstream commit 4c247de564f1ff614d11b3bb5313fb70d7b9598b ] When ppp is closing, __ppp_xmit_process() failed to enqueue skb and skb allocated in ppp_write() is leaked. syzbot reported : BUG: memory leak unreferenced object 0x88812a17bc00 (size 224): comm "syz-executo

[PATCH AUTOSEL 5.2 37/63] fuse: fix memleak in cuse_channel_open

2019-10-01 Thread Sasha Levin
From: zhengbin [ Upstream commit 9ad09b1976c562061636ff1e01bfc3a57aebe56b ] If cuse_send_init fails, need to fuse_conn_put cc->fc. cuse_channel_open->fuse_conn_init->refcount_set(&fc->count, 1) ->fuse_dev_alloc->fuse_conn_get ->fuse_dev_free->fuse_conn_put Fix

[PATCH AUTOSEL 5.2 28/63] x86/purgatory: Disable the stackleak GCC plugin for the purgatory

2019-10-01 Thread Sasha Levin
From: Arvind Sankar [ Upstream commit ca14c996afe7228ff9b480cf225211cc17212688 ] Since commit: b059f801a937 ("x86/purgatory: Use CFLAGS_REMOVE rather than reset KBUILD_CFLAGS") kexec breaks if GCC_PLUGIN_STACKLEAK=y is enabled, as the purgatory contains undefined references to stackleak_tra

[PATCH AUTOSEL 5.2 30/63] thermal: Fix use-after-free when unregistering thermal zone device

2019-10-01 Thread Sasha Levin
From: Ido Schimmel [ Upstream commit 1851799e1d2978f68eea5d9dff322e121dcf59c1 ] thermal_zone_device_unregister() cancels the delayed work that polls the thermal zone, but it does not wait for it to finish. This is racy with respect to the freeing of the thermal zone device, which can result in a

[PATCH AUTOSEL 5.2 25/63] usbnet: ignore endpoints with invalid wMaxPacketSize

2019-10-01 Thread Sasha Levin
From: Bjørn Mork [ Upstream commit 8d3d7c2029c1b360f1a6b0a2fca470b57eb575c0 ] Endpoints with zero wMaxPacketSize are not usable for transferring data. Ignore such endpoints when looking for valid in, out and status pipes, to make the drivers more robust against invalid and meaningless descriptor

[PATCH AUTOSEL 5.2 19/63] drm/amdgpu: Check for valid number of registers to read

2019-10-01 Thread Sasha Levin
From: Trek [ Upstream commit 73d8e6c7b841d9bf298c8928f228fb433676635c ] Do not try to allocate any amount of memory requested by the user. Instead limit it to 128 registers. Actually the longest series of consecutive allowed registers are 48, mmGB_TILE_MODE0-31 and mmGB_MACROTILE_MODE0-15 (0x264

[PATCH AUTOSEL 5.2 15/63] SUNRPC: RPC level errors should always set task->tk_rpc_status

2019-10-01 Thread Sasha Levin
From: Trond Myklebust [ Upstream commit 714fbc73888f59321854e7f6c2f224213923bcad ] Ensure that we set task->tk_rpc_status for all RPC level errors so that the caller can distinguish between those and server reply status errors. Signed-off-by: Trond Myklebust Signed-off-by: Anna Schumaker Sign

[PATCH AUTOSEL 5.2 11/63] ceph: fix directories inode i_blkbits initialization

2019-10-01 Thread Sasha Levin
From: Luis Henriques [ Upstream commit 750670341a24cb714e624e0fd7da30900ad93752 ] When filling an inode with info from the MDS, i_blkbits is being initialized using fl_stripe_unit, which contains the stripe unit in bytes. Unfortunately, this doesn't make sense for directories as they have fl_st

[PATCH AUTOSEL 5.2 17/63] netfilter: nf_tables: allow lookups in dynamic sets

2019-10-01 Thread Sasha Levin
From: Florian Westphal [ Upstream commit acab713177377d9e0889c46bac7ff0cfb9a90c4d ] This un-breaks lookups in sets that have the 'dynamic' flag set. Given this active example configuration: table filter { set set1 { type ipv4_addr size 64 flags dynamic,timeout timeout 1m }

[PATCH AUTOSEL 5.2 05/63] xprtrdma: Send Queue size grows after a reconnect

2019-10-01 Thread Sasha Levin
From: Chuck Lever [ Upstream commit 98ef77d1aaa7a2f4e1b2a721faa084222021fda7 ] Eli Dorfman reports that after a series of idle disconnects, an RPC/RDMA transport becomes unusable (rdma_create_qp returns -ENOMEM). Problem was tracked down to increasing Send Queue size after each reconnect. The r

[PATCH AUTOSEL 5.2 04/63] fs: nfs: Fix possible null-pointer dereferences in encode_attrs()

2019-10-01 Thread Sasha Levin
From: Jia-Ju Bai [ Upstream commit e2751463eaa6f9fec8fea80abbdc62dbc487b3c5 ] In encode_attrs(), there is an if statement on line 1145 to check whether label is NULL: if (label && (attrmask[2] & FATTR4_WORD2_SECURITY_LABEL)) When label is NULL, it is used on lines 1178-1181: *p++ = cpu_

[PATCH AUTOSEL 5.2 01/63] drivers: thermal: qcom: tsens: Fix memory leak from qfprom read

2019-10-01 Thread Sasha Levin
From: Srinivas Kandagatla [ Upstream commit 6b8249abb093551ef173d13a25ed0044d5dd33e0 ] memory returned as part of nvmem_read via qfprom_read should be freed by the consumer once done. Existing code is not doing it so fix it. Below memory leak detected by kmemleak [] kmemleak_alloc+0x50/0x84

[PATCH AUTOSEL 5.3 71/71] Btrfs: fix selftests failure due to uninitialized i_mode in test inodes

2019-10-01 Thread Sasha Levin
From: Filipe Manana [ Upstream commit 9f7fec0ba89108b9385f1b9fb167861224912a4a ] Some of the self tests create a test inode, setup some extents and then do calls to btrfs_get_extent() to test that the corresponding extent maps exist and are correct. However btrfs_get_extent(), since the 5.2 merg

[PATCH AUTOSEL 5.3 58/71] i2c: qcom-geni: Disable DMA processing on the Lenovo Yoga C630

2019-10-01 Thread Sasha Levin
From: Lee Jones [ Upstream commit 127068abe85bf3dee50df51cb039a5a987a4a666 ] We have a production-level laptop (Lenovo Yoga C630) which is exhibiting a rather horrific bug. When I2C HID devices are being scanned for at boot-time the QCom Geni based I2C (Serial Engine) attempts to use DMA. When

[PATCH AUTOSEL 5.3 69/71] usbnet: sanity checking of packet sizes and device mtu

2019-10-01 Thread Sasha Levin
From: Oliver Neukum [ Upstream commit 280ceaed79f18db930c0cc8bb21f6493490bf29c ] After a reset packet sizes and device mtu can change and need to be reevaluated to calculate queue sizes. Malicious devices can set this to zero and we divide by it. Introduce sanity checking. Reported-and-tested-b

[PATCH AUTOSEL 5.3 68/71] drm/radeon: Bail earlier when radeon.cik_/si_support=0 is passed

2019-10-01 Thread Sasha Levin
From: Hans de Goede [ Upstream commit 9dbc88d013b79c62bd845cb9e7c0256e660967c5 ] Bail from the pci_driver probe function instead of from the drm_driver load function. This avoid /dev/dri/card0 temporarily getting registered and then unregistered again, sending unwanted add / remove udev events

[PATCH AUTOSEL 5.3 53/71] kexec: bail out upon SIGKILL when allocating memory.

2019-10-01 Thread Sasha Levin
From: Tetsuo Handa [ Upstream commit 7c3a6aedcd6aae0a32a527e68669f7dd667492d1 ] syzbot found that a thread can stall for minutes inside kexec_load() after that thread was killed by SIGKILL [1]. It turned out that the reproducer was trying to allocate 2408MB of memory using kimage_alloc_page() f

[PATCH AUTOSEL 5.3 70/71] sch_netem: fix a divide by zero in tabledist()

2019-10-01 Thread Sasha Levin
From: Eric Dumazet [ Upstream commit b41d936b5ecfdb3a4abc525ce6402a6c49cffddc ] syzbot managed to crash the kernel in tabledist() loading an empty distribution table. t = dist->table[rnd % dist->size]; Simply return an error when such load is attempted. Fixes: 1da177e4c3f4 ("Linux-2.6

[PATCH AUTOSEL 5.3 62/71] net: phy: micrel: add Asym Pause workaround for KSZ9021

2019-10-01 Thread Sasha Levin
From: Hans Andersson [ Upstream commit 407d8098cb1ab338199f4753162799a488d87d23 ] The Micrel KSZ9031 PHY may fail to establish a link when the Asymmetric Pause capability is set. This issue is described in a Silicon Errata (DS8691D or DS8692D), which advises to always disable the capabil

[PATCH AUTOSEL 5.3 48/71] perf build: Add detection of java-11-openjdk-devel package

2019-10-01 Thread Sasha Levin
From: Thomas Richter [ Upstream commit 815c1560bf8fd522b8d93a1d727868b910c1cc24 ] With Java 11 there is no seperate JRE anymore. Details: https://coderanch.com/t/701603/java/JRE-JDK Therefore the detection of the JRE needs to be adapted. This change works for s390 and x86. I have not test

[PATCH AUTOSEL 5.3 55/71] bpf: Fix bpf_event_output re-entry issue

2019-10-01 Thread Sasha Levin
From: Allan Zhang [ Upstream commit 768fb61fcc13b2acaca758275d54c09a65e2968b ] BPF_PROG_TYPE_SOCK_OPS program can reenter bpf_event_output because it can be called from atomic and non-atomic contexts since we don't have bpf_prog_active to prevent it happen. This patch enables 3 levels of nestin

[PATCH AUTOSEL 5.3 65/71] nfp: flower: prevent memory leak in nfp_flower_spawn_phy_reprs

2019-10-01 Thread Sasha Levin
From: Navid Emamdoost [ Upstream commit 8572cea1461a006bce1d06c0c4b0575869125fa4 ] In nfp_flower_spawn_phy_reprs, in the for loop over eth_tbl if any of intermediate allocations or initializations fail memory is leaked. requiered releases are added. Fixes: b94524529741 ("nfp: flower: add per re

[PATCH AUTOSEL 5.3 63/71] mlxsw: spectrum_flower: Fail in case user specifies multiple mirror actions

2019-10-01 Thread Sasha Levin
From: Danielle Ratson [ Upstream commit 52feb8b588f6d23673dd7cc2b44b203493b627f6 ] The ASIC can only mirror a packet to one port, but when user is trying to set more than one mirror action, it doesn't fail. Add a check if more than one mirror action was specified per rule and if so, fail for no

[PATCH AUTOSEL 5.3 46/71] sched/membarrier: Fix private expedited registration check

2019-10-01 Thread Sasha Levin
From: Mathieu Desnoyers [ Upstream commit fc0d77387cb5ae883fd774fc559e056a8dde024c ] Fix a logic flaw in the way membarrier_register_private_expedited() handles ready state checks for private expedited sync core and private expedited registrations. If a private expedited membarrier registration

[PATCH AUTOSEL 5.3 56/71] macsec: drop skb sk before calling gro_cells_receive

2019-10-01 Thread Sasha Levin
From: Xin Long [ Upstream commit ba56d8ce38c8252fff5b745db3899cf092578ede ] Fei Liu reported a crash when doing netperf on a topo of macsec dev over veth: [ 448.919128] refcount_t: underflow; use-after-free. [ 449.090460] Call trace: [ 449.092895] refcount_sub_and_test+0xb4/0xc0 [

[PATCH AUTOSEL 5.3 51/71] kernel/elfcore.c: include proper prototypes

2019-10-01 Thread Sasha Levin
From: Valdis Kletnieks [ Upstream commit 0f74914071ab7e7b78731ed62bf350e3a344e0a5 ] When building with W=1, gcc properly complains that there's no prototypes: CC kernel/elfcore.o kernel/elfcore.c:7:17: warning: no previous prototype for 'elf_core_extra_phdrs' [-Wmissing-prototypes]

[PATCH AUTOSEL 5.3 50/71] selftests/bpf: adjust strobemeta loop to satisfy latest clang

2019-10-01 Thread Sasha Levin
From: Andrii Nakryiko [ Upstream commit 4670d68b9254710fdeaf794cad54d8b2c9929e0a ] Some recent changes in latest Clang started causing the following warning when unrolling strobemeta test case main loop: progs/strobemeta.h:416:2: warning: loop not unrolled: the optimizer was unable to perfo

[PATCH AUTOSEL 5.3 49/71] include/trace/events/writeback.h: fix -Wstringop-truncation warnings

2019-10-01 Thread Sasha Levin
From: Qian Cai [ Upstream commit d1a445d3b86c9341ce7a0954c23be0edb5c9bec5 ] There are many of those warnings. In file included from ./arch/powerpc/include/asm/paca.h:15, from ./arch/powerpc/include/asm/current.h:13, from ./include/linux/thread_info.h:21,

[PATCH AUTOSEL 5.3 39/71] KVM: hyperv: Fix Direct Synthetic timers assert an interrupt w/o lapic_in_kernel

2019-10-01 Thread Sasha Levin
From: Wanpeng Li [ Upstream commit a073d7e3ad687a7ef32b65affe80faa7ce89bf92 ] Reported by syzkaller: kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: [#1] PREEMPT SMP KASAN RIP: 0010:__apic_accept_irq+0x46/0x740 arch/x86/k

[PATCH AUTOSEL 5.3 44/71] ppp: Fix memory leak in ppp_write

2019-10-01 Thread Sasha Levin
From: Takeshi Misawa [ Upstream commit 4c247de564f1ff614d11b3bb5313fb70d7b9598b ] When ppp is closing, __ppp_xmit_process() failed to enqueue skb and skb allocated in ppp_write() is leaked. syzbot reported : BUG: memory leak unreferenced object 0x88812a17bc00 (size 224): comm "syz-executo

[PATCH 1/2] i2c: slave-eeprom: initialize empty eeprom properly

2019-10-01 Thread Patrick Williams
The i2c-slave-eeprom driver emulates at24 class eeprom devices, which come initialized with all 1s. Do the same in the software emulation. Signed-off-by: Patrick Williams --- drivers/i2c/i2c-slave-eeprom.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/i2c/i2c-slave-eeprom.c b/dr

[PATCH AUTOSEL 5.3 40/71] libnvdimm: Fix endian conversion issues 

2019-10-01 Thread Sasha Levin
From: "Aneesh Kumar K.V" [ Upstream commit 86aa66687442ef45909ff9814b82b4d2bb892294 ] nd_label->dpa issue was observed when trying to enable the namespace created with little-endian kernel on a big-endian kernel. That made me run `sparse` on the rest of the code and other changes are the result

[PATCH AUTOSEL 5.3 47/71] sched/core: Fix migration to invalid CPU in __set_cpus_allowed_ptr()

2019-10-01 Thread Sasha Levin
From: KeMeng Shi [ Upstream commit 714e501e16cd473538b609b3e351b2cc9f7f09ed ] An oops can be triggered in the scheduler when running qemu on arm64: Unable to handle kernel paging request at virtual address 08effe40 Internal error: Oops: 9607 [#1] SMP Process migration/0 (pid: 12,

[PATCH AUTOSEL 5.3 18/71] netfilter: nf_tables: allow lookups in dynamic sets

2019-10-01 Thread Sasha Levin
From: Florian Westphal [ Upstream commit acab713177377d9e0889c46bac7ff0cfb9a90c4d ] This un-breaks lookups in sets that have the 'dynamic' flag set. Given this active example configuration: table filter { set set1 { type ipv4_addr size 64 flags dynamic,timeout timeout 1m }

[PATCH AUTOSEL 5.3 06/71] xprtrdma: Send Queue size grows after a reconnect

2019-10-01 Thread Sasha Levin
From: Chuck Lever [ Upstream commit 98ef77d1aaa7a2f4e1b2a721faa084222021fda7 ] Eli Dorfman reports that after a series of idle disconnects, an RPC/RDMA transport becomes unusable (rdma_create_qp returns -ENOMEM). Problem was tracked down to increasing Send Queue size after each reconnect. The r

[PATCH AUTOSEL 5.3 10/71] xen/pci: reserve MCFG areas earlier

2019-10-01 Thread Sasha Levin
From: Igor Druzhinin [ Upstream commit a4098bc6eed5e31e0391bcc068e61804c98138df ] If MCFG area is not reserved in E820, Xen by default will defer its usage until Dom0 registers it explicitly after ACPI parser recognizes it as a reserved resource in DSDT. Having it reserved in E820 is not mandato

[PATCH AUTOSEL 5.3 05/71] xprtrdma: Toggle XPRT_CONGESTED in xprtrdma's slot methods

2019-10-01 Thread Sasha Levin
From: Chuck Lever [ Upstream commit 395790566eec37706dedeb94779045adc3a7581e ] Commit 48be539dd44a ("xprtrdma: Introduce ->alloc_slot call-out for xprtrdma") added a separate alloc_slot and free_slot to the RPC/RDMA transport. Later, commit 75891f502f5f ("SUNRPC: Support for congestion control w

[PATCH AUTOSEL 5.3 25/71] pwm: stm32-lp: Add check in case requested period cannot be achieved

2019-10-01 Thread Sasha Levin
From: Fabrice Gasnier [ Upstream commit c91e3234c6035baf5a79763cb4fcd5d23ce75c2b ] LPTimer can use a 32KHz clock for counting. It depends on clock tree configuration. In such a case, PWM output frequency range is limited. Although unlikely, nothing prevents user from requesting a PWM frequency a

[PATCH AUTOSEL 5.3 29/71] net_sched: add max len check for TCA_KIND

2019-10-01 Thread Sasha Levin
From: Cong Wang [ Upstream commit 62794fc4fbf52f2209dc094ea255eaef760e7d01 ] The TCA_KIND attribute is of NLA_STRING which does not check the NUL char. KMSAN reported an uninit-value of TCA_KIND which is likely caused by the lack of NUL. Change it to NLA_NUL_STRING and add a max len too. Fixes

[PATCH AUTOSEL 5.3 37/71] net/mlx5e: Fix matching on tunnel addresses type

2019-10-01 Thread Sasha Levin
From: Dmytro Linkin [ Upstream commit fe1587a7de94912ed75ba5ddbfabf0741f9f8239 ] In mlx5 parse_tunnel_attr() function dispatch on encap IP address type is performed by directly checking flow_rule_match_key() on FLOW_DISSECTOR_KEY_ENC_IPV4_ADDRS, and then on FLOW_DISSECTOR_KEY_ENC_IPV6_ADDRS. How

[PATCH AUTOSEL 5.3 28/71] net/phy: fix DP83865 10 Mbps HDX loopback disable function

2019-10-01 Thread Sasha Levin
From: Peter Mamonov [ Upstream commit e47488b2df7f9cb405789c7f5d4c27909fc597ae ] According to the DP83865 datasheet "the 10 Mbps HDX loopback can be disabled in the expanded memory register 0x1C0.1". The driver erroneously used bit 0 instead of bit 1. Fixes: 4621bf129856 ("phy: Add file missed

[PATCH AUTOSEL 5.3 11/71] fuse: fix request limit

2019-10-01 Thread Sasha Levin
From: Miklos Szeredi [ Upstream commit f22f812d5ce75a18b56073a7a63862e6ea764070 ] The size of struct fuse_req was reduced from 392B to 144B on a non-debug config, thus the sanitize_global_limit() helper was setting a larger default limit. This doesn't really reflect reduction in the memory used

[PATCH AUTOSEL 5.3 01/71] drivers: thermal: qcom: tsens: Fix memory leak from qfprom read

2019-10-01 Thread Sasha Levin
From: Srinivas Kandagatla [ Upstream commit 6b8249abb093551ef173d13a25ed0044d5dd33e0 ] memory returned as part of nvmem_read via qfprom_read should be freed by the consumer once done. Existing code is not doing it so fix it. Below memory leak detected by kmemleak [] kmemleak_alloc+0x50/0x84

[PATCH AUTOSEL 5.3 04/71] fs: nfs: Fix possible null-pointer dereferences in encode_attrs()

2019-10-01 Thread Sasha Levin
From: Jia-Ju Bai [ Upstream commit e2751463eaa6f9fec8fea80abbdc62dbc487b3c5 ] In encode_attrs(), there is an if statement on line 1145 to check whether label is NULL: if (label && (attrmask[2] & FATTR4_WORD2_SECURITY_LABEL)) When label is NULL, it is used on lines 1178-1181: *p++ = cpu_

Re: general protection fault in ath6kl_usb_alloc_urb_from_pipe

2019-10-01 Thread Andrey Konovalov
On Fri, Apr 12, 2019 at 4:26 PM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:9a33b369 usb-fuzzer: main usb gadget fuzzer driver > git tree: https://github.com/google/kasan/tree/usb-fuzzer > console output: https://syzkaller.appspot.com/x/log.txt?x=124

Re: x86/random: Speculation to the rescue

2019-10-01 Thread Kees Cook
On Tue, Oct 01, 2019 at 06:15:02PM +0200, Ahmed S. Darwish wrote: > On Sat, Sep 28, 2019 at 04:53:52PM -0700, Linus Torvalds wrote: > > Ahmed - would you be willing to test this on your problem case (with > > the ext4 optimization re-enabled, of course)? > > > > So I pulled the patch and the rever

Re: [PATCH] mm/memcontrol.c: fix another unused function warning

2019-10-01 Thread Nick Desaulniers
On Tue, Oct 1, 2019 at 7:22 AM Arnd Bergmann wrote: > > Removing the mem_cgroup_id_get() stub function introduced a new warning > of the same kind when CONFIG_MMU is disabled: > > mm/memcontrol.c:4929:13: error: unused function 'mem_cgroup_id_get_many' > [-Werror,-Wunused-function] > > Address th

Re: [PATCH v1] PM / Domains: Add tracepoints

2019-10-01 Thread Matthias Kaehlcke
On Fri, Sep 27, 2019 at 04:42:39AM -0400, Steven Rostedt wrote: > On Thu, 26 Sep 2019 15:04:38 -0700 > Matthias Kaehlcke wrote: > > > Define genpd_power_on/off and genpd_set_performance_state > > tracepoints and use them. > > I agree with Greg about adding a "why" you need this. But, in case > t

Re: [PATCH 0/3] Pine64+ specific hacks for RTL8211E Ethernet PHY

2019-10-01 Thread Icenowy Zheng
于 2019年10月2日 GMT+08:00 上午12:30:00, David Miller 写到: >From: Icenowy Zheng >Date: Wed, 02 Oct 2019 00:08:39 +0800 > >> >> >> 于 2019年10月2日 GMT+08:00 上午12:06:51, David Miller >写到: >>>From: Icenowy Zheng >>>Date: Tue, 1 Oct 2019 16:29:09 +0800 >>> There're some Pine64+ boards known to hav

Re: [PATCH] compiler: enable CONFIG_OPTIMIZE_INLINING forcibly

2019-10-01 Thread Nick Desaulniers
On Tue, Oct 1, 2019 at 2:28 AM Will Deacon wrote: > > Hi Nick, > > On Mon, Sep 30, 2019 at 02:50:10PM -0700, Nick Desaulniers wrote: > > So __attribute__((always_inline)) doesn't guarantee that code will be > > inlined. For instance in LLVM's inliner, it asks/answers "should I > > inline" and "ca

Re: [alsa-devel] [PATCH] ASoC: SOF: imx: fix reverse CONFIG_SND_SOC_SOF_OF dependency

2019-10-01 Thread Arnd Bergmann
On Tue, Oct 1, 2019 at 6:03 PM Pierre-Louis Bossart wrote: > On 10/1/19 10:41 AM, Arnd Bergmann wrote: > > On Tue, Oct 1, 2019 at 5:32 PM Pierre-Louis Bossart > > wrote: > > > > The same could be done with a Kconfig-only solution avoiding > > 'select' such as: > > > > config SND_SOC_SOF_IMX8_SUP

Re: [PATCH 0/3] Pine64+ specific hacks for RTL8211E Ethernet PHY

2019-10-01 Thread David Miller
From: Icenowy Zheng Date: Wed, 02 Oct 2019 00:08:39 +0800 > > > 于 2019年10月2日 GMT+08:00 上午12:06:51, David Miller 写到: >>From: Icenowy Zheng >>Date: Tue, 1 Oct 2019 16:29:09 +0800 >> >>> There're some Pine64+ boards known to have broken RTL8211E chips, and >>> a hack is given by Pine64+, which

Re: [PATCH] KVM: nVMX: Fix consistency check on injected exception error code

2019-10-01 Thread Jim Mattson
On Tue, Oct 1, 2019 at 9:21 AM Sean Christopherson wrote: > > Current versions of Intel's SDM incorrectly state that "bits 31:15 of > the VM-Entry exception error-code field" must be zero. In reality, bits > 31:16 must be zero, i.e. error codes are 16-bit values. > > The bogus error code check ma

Re: [PATCH v4 1/4] lib: introduce copy_struct_from_user() helper

2019-10-01 Thread Kees Cook
On Tue, Oct 01, 2019 at 04:31:27AM +0200, Christian Brauner wrote: > On Mon, Sep 30, 2019 at 06:58:39PM -0700, Kees Cook wrote: > > On Tue, Oct 01, 2019 at 11:10:52AM +1000, Aleksa Sarai wrote: > > > +static __always_inline > > > +int copy_struct_from_user(void *dst, size_t ksize, > > > +

Re: [PATCH 1/2] i2c: pxa: migrate to new i2c_slave APIs

2019-10-01 Thread Andy Shevchenko
On Tue, Oct 01, 2019 at 10:59:59AM -0500, Patrick Williams wrote: > The i2c subsystem was enhanced circa 2015 to support operating as > an i2c-slave device. Prior to that, the i2c-pxa driver supported > an i2c-slave but had its own APIs. There are no existing in-kernel > drivers or platforms t

Many unexpected warnings with current sparse

2019-10-01 Thread Steve French
Updated sparse to get rid of some unneeded kernel sparse check warnings but now get many more I get 100s of warnings similar to ./include/linux/quota.h:114:17: error: Expected ( after asm ./include/linux/quota.h:114:17: error: got __inline but that is simply default: BUG(

Re: [RFC PATCH 17/22] thunderbolt: Add initial support for USB4

2019-10-01 Thread Oliver Neukum
Am Dienstag, den 01.10.2019, 18:07 +0300 schrieb Mika Westerberg: Hi, > OK, but does that break existing .configs? I mean if you have already > CONFIG_THUNDERBOLT in your .config/defconfig does it now just get > dropped silently? People will have to look at this new stuff anyway. > For example

Re: [PATCH 0/2] docs: Programmatically render MAINTAINERS into ReST

2019-10-01 Thread Kees Cook
On Tue, Oct 01, 2019 at 08:31:47AM -0600, Jonathan Corbet wrote: > On a separate note...it occurred to me, rather belatedly as usual, that > last time we discussed doing this that there was some opposition to adding > a second MAINTAINERS parser to the kernel; future changes to the format of > that

Re: [PATCH] ionic: select CONFIG_NET_DEVLINK

2019-10-01 Thread David Miller
From: Arnd Bergmann Date: Tue, 1 Oct 2019 16:21:40 +0200 > When no other driver selects the devlink library code, ionic > produces a link failure: > > drivers/net/ethernet/pensando/ionic/ionic_devlink.o: In function > `ionic_devlink_alloc': > ionic_devlink.c:(.text+0xd): undefined reference to

Re: [PATCH v11 0/6] mm / virtio: Provide support for unused page reporting

2019-10-01 Thread Alexander Duyck
On Tue, 2019-10-01 at 17:35 +0200, David Hildenbrand wrote: > On 01.10.19 17:29, Alexander Duyck wrote: > > This series provides an asynchronous means of reporting to a hypervisor > > that a guest page is no longer in use and can have the data associated > > with it dropped. To do this I have imple

[PATCH] KVM: nVMX: Fix consistency check on injected exception error code

2019-10-01 Thread Sean Christopherson
Current versions of Intel's SDM incorrectly state that "bits 31:15 of the VM-Entry exception error-code field" must be zero. In reality, bits 31:16 must be zero, i.e. error codes are 16-bit values. The bogus error code check manifests as an unexpected VM-Entry failure due to an invalid code field

Re: [PATCH] Partially revert "compiler: enable CONFIG_OPTIMIZE_INLINING forcibly"

2019-10-01 Thread Nick Desaulniers
> So you'd prefer I do something like the diff below? Yes, I find that diff preferable. Use __always_inline only when absolutely necessary. Even then, it sounds like this is a workaround for one compiler, so it should probably also have a comment. (I don't mind changing this for all compilers).

Re: [Patch 1/3] media: ov5640: add PIXEL_RATE control

2019-10-01 Thread Benoit Parrot
Hi Sakari, Thanks for the review. Sakari Ailus wrote on Tue [2019-Oct-01 10:57:04 +0300]: > Hi Benoit, > > On Wed, Sep 25, 2019 at 10:22:59AM -0500, Benoit Parrot wrote: > > Add v4l2 controls to report the pixel rates of each mode. This is > > needed by some CSI2 receiver in order to perform p

Re: [PATCH] modpost: Copy namespace string into 'struct symbol'

2019-10-01 Thread Matthias Maennich
On Mon, Sep 30, 2019 at 04:20:46PM -0500, Shaun Ruffell wrote: On Fri, Sep 27, 2019 at 09:03:46AM +0100, Matthias Maennich wrote: On Thu, Sep 26, 2019 at 05:24:46PM -0500, Shaun Ruffell wrote: > When building an out-of-tree module I was receiving many warnings from > modpost like: > > WARNING:

Re: x86/random: Speculation to the rescue

2019-10-01 Thread Ahmed S. Darwish
Hi, Sorry for the late reply as I'm also on vacation this week :-) On Sat, Sep 28, 2019 at 04:53:52PM -0700, Linus Torvalds wrote: > On Sat, Sep 28, 2019 at 3:24 PM Thomas Gleixner wrote: > > > > Nicholas presented the idea to (ab)use speculative execution for random > > number generation years

Re: [PATCH] Partially revert "compiler: enable CONFIG_OPTIMIZE_INLINING forcibly"

2019-10-01 Thread Andrew Murray
On Tue, Oct 01, 2019 at 04:48:14PM +0100, Russell King - ARM Linux admin wrote: > On Tue, Oct 01, 2019 at 04:28:27PM +0100, Andrew Murray wrote: > > I hadn't noticed the use of __OPTIMIZE__ - indeed if __compiletime_assert > > is no-op'd and you reach it then you won't have a build error - but you

ptrace/strace and freezer oddities and v5.2+ kernels

2019-10-01 Thread Bruce Ashfield
Hi all, The Yocto project has an upcoming release this fall, and I've been trying to sort through some issues that are happening with kernel 5.2+ .. although there is a specific yocto kernel, I'm testing and seeing this with normal / vanilla mainline kernels as well. I'm running into an issue tha

Re: [PATCHv9 2/3] arm64: dts: qcom: msm8998: Add Coresight support

2019-10-01 Thread Jeffrey Hugo
Sai, This patch breaks boot on the 835 laptops. However, I haven't seen the same issue on the MTP. I wonder, is coresight expected to work with production fused devices? I wonder if thats the difference between the laptop and MTP that is causing the issue. Let me know what I can do to help deb

Re: [PATCH AUTOSEL 4.19 075/128] PM / devfreq: passive: Use non-devm notifiers

2019-10-01 Thread Sasha Levin
On Mon, Sep 23, 2019 at 08:38:53PM +, Leonard Crestez wrote: On 22.09.2019 21:56, Sasha Levin wrote: From: Leonard Crestez [ Upstream commit 0ef7c7cce43f6ecc2b96d447e69b2900a9655f7c ] This will introduce an "unused variable warning" unless you also cherry-pick commit 0465814831a9 ("PM /

Re: [PATCH 0/3] Pine64+ specific hacks for RTL8211E Ethernet PHY

2019-10-01 Thread Icenowy Zheng
于 2019年10月2日 GMT+08:00 上午12:06:51, David Miller 写到: >From: Icenowy Zheng >Date: Tue, 1 Oct 2019 16:29:09 +0800 > >> There're some Pine64+ boards known to have broken RTL8211E chips, and >> a hack is given by Pine64+, which is said to be from Realtek. >> >> This patchset adds the hack. >> >>

Re: [PATCH 14/15] mm: Align THP mappings for non-DAX

2019-10-01 Thread William Kucharski
> On Oct 1, 2019, at 8:20 AM, Kirill A. Shutemov wrote: > > On Tue, Oct 01, 2019 at 06:18:28AM -0600, William Kucharski wrote: >> >> >> On 10/1/19 5:32 AM, Kirill A. Shutemov wrote: >>> On Tue, Oct 01, 2019 at 05:21:26AM -0600, William Kucharski wrote: > On Oct 1, 2019, at 4:

Re: [PATCH v6 3/9] powerpc: add support to initialize ima policy rules

2019-10-01 Thread Nayna
On 09/30/2019 09:04 PM, Thiago Jung Bauermann wrote: Hello, Hi, diff --git a/arch/powerpc/kernel/ima_arch.c b/arch/powerpc/kernel/ima_arch.c new file mode 100644 index ..39401b67f19e --- /dev/null +++ b/arch/powerpc/kernel/ima_arch.c @@ -0,0 +1,33 @@ +// SPDX-License-Identifi

[PATCH 3/3] bus: hisi_lpc: Expand build test coverage

2019-10-01 Thread John Garry
Currently the driver will only ever be built for ARM64 because it selects CONFIG_INDIRECT_PIO, which itself depends on ARM64. Expand build test coverage for the driver to other architectures by only selecting CONFIG_INDIRECT_PIO for ARM64, when we really want it. Signed-off-by: John Garry --- d

[PATCH 2/3] logic_pio: Define PIO_INDIRECT_SIZE for !CONFIG_INDIRECT_PIO

2019-10-01 Thread John Garry
With the goal of expanding the test coverage of the HiSi LPC driver to !ARM64, define a dummy PIO_INDIRECT_SIZE for !CONFIG_INDIRECT_PIO, which is required by the named driver. Signed-off-by: John Garry --- include/linux/logic_pio.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 0/3] hisi_lpc: Improve build test coverage

2019-10-01 Thread John Garry
This series aims to improve the build test cover of the driver by supporting building under COMPILE_TEST. I also included "lib: logic_pio: Enforce LOGIC_PIO_INDIRECT region ops are set at registration" as it was never picked up for 5.4. John Garry (3): lib: logic_pio: Enforce LOGIC_PIO_INDIRECT

[PATCH 1/3] lib: logic_pio: Enforce LOGIC_PIO_INDIRECT region ops are set at registration

2019-10-01 Thread John Garry
Since the only LOGIC_PIO_INDIRECT host (hisi-lpc) now sets the ops prior to registration, enforce this check for accessors ops at registration instead of in the IO port accessors to simplify and marginally optimise the code. A slight misalignment is also tidied. Also add myself as an author. Sug

Re: [PATCH v3 1/2] x86: Don't let pgprot_modify() change the page encryption bit

2019-10-01 Thread Dave Hansen
On 9/30/19 10:54 PM, Thomas Hellstrom wrote: > Hi, > > On 9/18/19 7:57 PM, Dave Hansen wrote: >> On 9/17/19 6:01 AM, Thomas Hellström (VMware) wrote: >>> diff --git a/arch/x86/include/asm/pgtable_types.h >>> b/arch/x86/include/asm/pgtable_types.h >>> index b5e49e6bac63..8267dd426b15 100644 >>> --

Re: [PATCH v5] platform/chrome: wilco_ec: Add debugfs test_event file

2019-10-01 Thread Enric Balletbo i Serra
Hi, On 24/9/19 23:36, Benson Leung wrote: > Hi Daniel, > > On Tue, Sep 24, 2019 at 02:37:16PM -0600, Daniel Campello wrote: >> This change introduces a new debugfs file 'test_event' that when written >> to causes the EC to generate a test event. >> This adds a second sub cmd for the test event, a

Re: [PATCH 0/3] Pine64+ specific hacks for RTL8211E Ethernet PHY

2019-10-01 Thread David Miller
From: Icenowy Zheng Date: Tue, 1 Oct 2019 16:29:09 +0800 > There're some Pine64+ boards known to have broken RTL8211E chips, and > a hack is given by Pine64+, which is said to be from Realtek. > > This patchset adds the hack. > > The hack is taken from U-Boot, and it contains magic numbers wit

Re: [PATCH AUTOSEL 5.3 173/203] ASoC: es8316: support fixed and variable both clock rates

2019-10-01 Thread Sasha Levin
On Mon, Sep 23, 2019 at 11:22:50AM -0700, Mark Brown wrote: On Sun, Sep 22, 2019 at 02:43:19PM -0400, Sasha Levin wrote: From: Katsuhiro Suzuki [ Upstream commit ebe02a5b9ef05e3b812af3d628cdf6206d9ba610 ] This patch supports some type of machine drivers that set 0 to mclk when sound device go

Re: [PATCH AUTOSEL 5.3 169/203] x86/platform/uv: Fix kmalloc() NULL check routine

2019-10-01 Thread Sasha Levin
On Sun, Sep 22, 2019 at 10:25:44PM +0200, Greg KH wrote: On Sun, Sep 22, 2019 at 02:43:15PM -0400, Sasha Levin wrote: From: Austin Kim [ Upstream commit 864b23f0169d5bff677e8443a7a90dfd6b090afc ] The result of kmalloc() should have been checked ahead of below statement: pqp = (struct

Re: [PATCH v6 0/4] Raspberry Pi 4 DMA addressing support

2019-10-01 Thread Catalin Marinas
On Wed, Sep 11, 2019 at 08:25:42PM +0200, Nicolas Saenz Julienne wrote: > Nicolas Saenz Julienne (4): > arm64: mm: use arm64_dma_phys_limit instead of calling > max_zone_dma_phys() > arm64: rename variables used to calculate ZONE_DMA32's size > arm64: use both ZONE_DMA and ZONE_DMA32 >

Re: [PATCH v2 1/4] dt-bindings: memory-controllers: Add Exynos5422 DMC interrupts description

2019-10-01 Thread Lukasz Luba
On 10/1/19 3:18 PM, Krzysztof Kozlowski wrote: > On Tue, Oct 01, 2019 at 02:54:33PM +0200, Lukasz Luba wrote: >> Add description for optional interrupt lines. It provides a new operation >> mode, which uses internal performance counters interrupt when overflow. >> This is more reliable than usin

Re: [PATCH] ASoC: atmel: fix atmel_ssc_set_audio link failure

2019-10-01 Thread Arnd Bergmann
On Tue, Oct 1, 2019 at 4:27 PM Alexandre Belloni wrote: > > -obj-$(CONFIG_SND_ATMEL_SOC_PDC) += snd-soc-atmel-pcm-pdc.o > > -obj-$(CONFIG_SND_ATMEL_SOC_DMA) += snd-soc-atmel-pcm-dma.o > > +# pdc and dma need to both be built-in if any user of > > +# ssc is built-in. > > +ifdef CONFIG_SND_ATMEL_SO

Greetings My Dear Friend,

2019-10-01 Thread UNited Nation Compensation
Greetings My Dear Friend, Before I introduce myself, I wish to inform you that this letter is not a hoax mail and I urge you to treat it serious. This letter must come to you as a big surprise, but I believe it is only a day that people meet and become great friends and business partners. Please I

Re: [alsa-devel] [PATCH] ASoC: SOF: imx: fix reverse CONFIG_SND_SOC_SOF_OF dependency

2019-10-01 Thread Pierre-Louis Bossart
On 10/1/19 10:41 AM, Arnd Bergmann wrote: On Tue, Oct 1, 2019 at 5:32 PM Pierre-Louis Bossart wrote: On 10/1/19 9:20 AM, Arnd Bergmann wrote: CONFIG_SND_SOC_SOF_IMX depends on CONFIG_SND_SOC_SOF, but is in turn referenced by the sof-of-dev driver. This creates a reverse dependency that manifes

Re: [PATCH net v2] net: ag71xx: fix mdio subnode support

2019-10-01 Thread David Miller
From: Oleksij Rempel Date: Tue, 1 Oct 2019 08:41:47 +0200 > @@ -571,7 +571,9 @@ static int ag71xx_mdio_probe(struct ag71xx *ag) > msleep(200); > } > > - err = of_mdiobus_register(mii_bus, np); > + mnp = of_get_child_by_name(np, "mdio"); > + err = of_mdiobus_regi

[PATCH 2/2] i2c: pxa: remove unused i2c-slave APIs

2019-10-01 Thread Patrick Williams
With the i2c-pxa driver migrated to the standard i2c-slave APIs, the custom APIs and structures are no longer needed or used. Remove them. Signed-off-by: Patrick Williams --- drivers/i2c/busses/i2c-pxa.c | 1 - include/linux/i2c-pxa.h | 18 -- include/lin

Re: [PATCH v4 0/4] lib: introduce copy_struct_from_user() helper

2019-10-01 Thread Christian Brauner
On Tue, Oct 01, 2019 at 11:10:51AM +1000, Aleksa Sarai wrote: > Patch changelog: > v4: > * __always_inline copy_struct_from_user(). [Kees Cook] > * Rework test_user_copy.ko changes. [Kees Cook] > v3: >

Re: [PATCH] ionic: select CONFIG_NET_DEVLINK

2019-10-01 Thread Shannon Nelson
On 10/1/19 7:21 AM, Arnd Bergmann wrote: When no other driver selects the devlink library code, ionic produces a link failure: drivers/net/ethernet/pensando/ionic/ionic_devlink.o: In function `ionic_devlink_alloc': ionic_devlink.c:(.text+0xd): undefined reference to `devlink_alloc' drivers/net/

RE: [PATCH] staging: rtl8723bs: hal: Fix memcpy calls

2019-10-01 Thread David Laight
From: Denis Efremov > Sent: 01 October 2019 16:13 ... > Just found an official documentation to this issue: > https://gcc.gnu.org/gcc-4.9/porting_to.html > "Null pointer checks may be optimized away more aggressively > ... > The pointers passed to memmove (and similar functions in ) must be > non-

[PATCH 1/2] i2c: pxa: migrate to new i2c_slave APIs

2019-10-01 Thread Patrick Williams
The i2c subsystem was enhanced circa 2015 to support operating as an i2c-slave device. Prior to that, the i2c-pxa driver supported an i2c-slave but had its own APIs. There are no existing in-kernel drivers or platforms that utilize the i2c-pxa APIs. Migrate the i2c-pxa driver to the general i2c-

Re: [PATCH] mm/memcontrol.c: fix another unused function warning

2019-10-01 Thread Arnd Bergmann
On Tue, Oct 1, 2019 at 4:40 PM Qian Cai wrote: > > On Tue, 2019-10-01 at 16:22 +0200, Arnd Bergmann wrote: > > Removing the mem_cgroup_id_get() stub function introduced a new warning > > of the same kind when CONFIG_MMU is disabled: > > Shouldn't CONFIG_MEMCG depends on CONFIG_MMU instead? Maybe.

[PATCH 0/2] i2c: pxa: migrate to i2c-core-slave APIs

2019-10-01 Thread Patrick Williams
i2c-pxa has its own i2c slave APIs rather than using the i2c-core APIs. There are no in-tree drivers currently using this custom slave API set. Migrate the i2c-pxa driver from its own i2c slave APIs to the i2c-core slave APIs so that in-tree slave devices can be used with the i2c-pxa hardware (ex

Hello Dear Friend.

2019-10-01 Thread Mrs. Stellar Maoris
Greetings My Dear Friend, Before I introduce myself, I wish to inform you that this letter is not a hoax mail and I urge you to treat it serious. This letter must come to you as a big surprise, but I believe it is only a day that people meet and become great friends and business partners. Please I

Re: [PATCH] AF_PACKET doesnt strip VLAN information

2019-10-01 Thread Willem de Bruijn
On Tue, Oct 1, 2019 at 11:44 AM Stephen Hemminger wrote: > > On Mon, 30 Sep 2019 11:16:14 -0400 > Willem de Bruijn wrote: > > > On Mon, Sep 30, 2019 at 1:24 AM Sriram Krishnan wrote: > > > > > > When an application sends with AF_PACKET and places a vlan header on > > > the raw packet; then the A

[PATCH] pinctrl: armada-37xx: swap polarity on LED group

2019-10-01 Thread Patrick Williams
The configuration registers for the LED group have inverted polarity, which puts the GPIO into open-drain state when used in GPIO mode. Switch to '0' for GPIO and '1' for LED modes. Fixes: 87466ccd9401 ("pinctrl: armada-37xx: Add pin controller support for Armada 37xx") Signed-off-by: Patrick Wi

Re: [PATCH] io_uring: use __kernel_timespec in timeout ABI

2019-10-01 Thread Arnd Bergmann
On Tue, Oct 1, 2019 at 5:38 PM Jens Axboe wrote: > > On 10/1/19 8:09 AM, Jens Axboe wrote: > > On 9/30/19 2:20 PM, Arnd Bergmann wrote: > >> All system calls use struct __kernel_timespec instead of the old struct > >> timespec, but this one was just added with the old-style ABI. Change it > >> now

[PATCH v2] pinctrl: armada-37xx: fix control of pins 32 and up

2019-10-01 Thread Patrick Williams
The 37xx configuration registers are only 32 bits long, so pins 32-35 spill over into the next register. The calculation for the register address was done, but the bitmask was not, so any configuration to pin 32 or above resulted in a bitmask that overflowed and performed no action. Fix the regis

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