Re: [PATCH v3 2/4] power: supply: core: Introduce properties to present the battery OCV capacity table

2018-10-14 Thread Baolin Wang
Hi Rob, On 12 October 2018 at 22:35, Rob Herring wrote: > On Thu, Sep 27, 2018 at 03:26:55PM +0800, Baolin Wang wrote: >> Some battery driver will use the open circuit voltage (OCV) value to look >> up the corresponding battery capacity percent in one certain degree Celsius. >> Thus this patch

RE: [RFC/RFT/[PATCH] cpuidle: New timer events oriented governor for tickless systems

2018-10-14 Thread Doug Smythies
Hi Rafael, I tried your TEO idle governor. On 2018.10.11 14:02 Rafael J. Wysocki wrote: ...[cut]... > It has been tested on a few different systems with a number of > different workloads and compared with the menu governor. In the > majority of cases the workloads performed similarly

Re: [PULL REQUEST] i2c for 4.19

2018-10-14 Thread Greg KH
On Sat, Oct 13, 2018 at 06:21:05PM +0200, Wolfram Sang wrote: > Greg, > > I2C has one documentation bugfix for something we changed during the > v4.19 cycle. > > Please pull. > > Thanks, > >Wolfram > > > The following changes since commit 0238df646e6224016a45505d2c111a24669ebe21: > >

[RESEND PATCH v6 3/4] devres: provide devm_kstrdup_const()

2018-10-14 Thread Bartosz Golaszewski
Provide a resource managed version of kstrdup_const(). This variant internally calls devm_kstrdup() on pointers that are outside of .rodata section and returns the string as is otherwise. Make devm_kfree() check if the passed pointer doesn't point to .rodata and if so - don't actually destroy the

[RESEND PATCH v6 0/4] devres: provide and use devm_kstrdup_const()

2018-10-14 Thread Bartosz Golaszewski
Hi Greg, this has been reviewed a lot and three first patches can be picked up. Please take it through your tree. This series implements devm_kstrdup_const() together with some prerequisite changes and uses it in tegra-hsp driver. v1 -> v2: - fixed the changelog in the patch implementing

[RESEND PATCH v6 4/4] mailbox: tegra-hsp: use devm_kstrdup_const()

2018-10-14 Thread Bartosz Golaszewski
Use devm_kstrdup_const() in the tegra-hsp driver. This mostly serves as an example of how to use this new routine to shrink driver code. Also use devm_kzalloc() instead of regular kzalloc() to get shrink the driver even more. Doorbell objects are only removed in the driver's remove callback so

[RESEND PATCH v6 2/4] mm: move is_kernel_rodata() to asm-generic/sections.h

2018-10-14 Thread Bartosz Golaszewski
Export this routine so that we can use it later in devm_kstrdup_const() and devm_kfree(). Signed-off-by: Bartosz Golaszewski Reviewed-by: Bjorn Andersson Acked-by: Mike Rapoport Acked-by: Rasmus Villemoes Reviewed-by: Geert Uytterhoeven Reviewed-by: Andy Shevchenko ---

Re: [RESEND PATCH v6 0/4] devres: provide and use devm_kstrdup_const()

2018-10-14 Thread Bartosz Golaszewski
niedz., 14 paź 2018 o 17:20 Bartosz Golaszewski napisał(a): > > Hi Greg, > > this has been reviewed a lot and three first patches can be picked > up. Please take it through your tree. > Except for patch 4/4 of course - it needs Thierry's Ack, but that can wait until the first three are merged.

[PATCH 3.16 045/366] ext4: protect i_disksize update by i_data_sem in direct write path

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Eryu Guan commit 73fdad00b208b139cf43f3163fbc0f67e4c6047c upstream. i_disksize update should be protected by i_data_sem, by either taking the lock explicitly or by using

[PATCH 3.16 057/366] s390/qdio: don't merge ERROR output buffers

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Julian Wiedmann commit 0cf1e05157b9e5530dcc3ca9fec9bf617fc93375 upstream. On an Output queue, both EMPTY and PENDING buffer states imply that the buffer is ready for completion-processing by

[PATCH 3.16 174/366] scsi: sd: Defer spinning up drive while SANITIZE is in progress

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Mahesh Rajashekhara commit 505aa4b6a8834a2300971c5220c380c3271ebde3 upstream. A drive being sanitized will return NOT READY / ASC 0x4 / ASCQ 0x1b ("LOGICAL UNIT NOT READY. SANITIZE IN

[PATCH 3.16 076/366] powerpc/powernv: Handle unknown OPAL errors in opal_nvram_write()

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Nicholas Piggin commit 741de617661794246f84a21a02fc5e327bffc9ad upstream. opal_nvram_write currently just assumes success if it encounters an error other than OPAL_BUSY or OPAL_BUSY_EVENT.

[PATCH 3.16 118/366] crypto: af_alg - fix possible uninit-value in alg_bind()

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet commit a466856e0b7ab269cdf9461886d007e88ff575b0 upstream. syzbot reported : BUG: KMSAN: uninit-value in alg_bind+0xe3/0xd90 crypto/af_alg.c:162 We need to check addr_len before

[PATCH 3.16 078/366] xen/acpi: off by one in read_acpi_id()

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit c37a3c94775855567b90f91775b9691e10bd2806 upstream. If acpi_id is == nr_acpi_bits, then we access one element beyond the end of the acpi_psd[] array or we set one bit

[PATCH 3.16 079/366] crypto: ahash - Fix early termination in hash walk

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Herbert Xu commit 900a081f6912a8985dc15380ec912752cb66025a upstream. When we have an unaligned SG list entry where there is no leftover aligned data, the hash walk code will incorrectly

[PATCH 3.16 206/366] ALSA: usb-audio: Skip broken EU on Dell dock USB-audio

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 1d8d6428d1da642ddd75b0be2d1bb1123ff8e017 upstream. The Dell Dock USB-audio device with 0bda:4014 is behaving notoriously bad, and we have already applied some workaround

[PATCH 3.16 170/366] MIPS: memset.S: Fix clobber of v1 in last_fixup

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Matt Redfearn commit c96eebf07692e53bf4dd5987510d8b550e793598 upstream. The label .Llast_fixup\@ is jumped to on page fault within the final byte set loop of memset (on < MIPSR6

[PATCH 3.16 070/366] ipc/sem: make semctl setting sempid consistent

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Davidlohr Bueso commit a5f4db877177d2a3d7ae62a7bac3a5a27e083d7f upstream. As indicated by bug#112271, Linux sets the sempid value upon semctl, and not only for semop calls. However, within

[PATCH 3.16 140/366] ALSA: line6: Use correct endpoint type for midi output

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Fabián Inostroza commit 7ecb46e9ee9af18e304eb9e7d6804c59a408e846 upstream. Sending MIDI messages to a PODxt through the USB connection shows "usb_submit_urb failed" in dmesg and the message

[PATCH 3.16 137/366] drm/radeon: add PX quirk for Asus K73TK

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Nico Sneck commit b1550359d1eb392ee54f7cf47cffcfe0a602f6a7 upstream. With this the dGPU turns on correctly. Signed-off-by: Nico Sneck Signed-off-by: Alex Deucher Signed-off-by: Ben

[PATCH 3.16 031/366] Input: i8042 - add Lenovo ThinkPad L460 to i8042 reset list

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Dennis Wassenberg commit b56af54ac78c54a519d82813836f305d7f76ef27 upstream. Reset i8042 before probing because of insufficient BIOS initialisation of the i8042 serial controller. This makes

[PATCH 3.16 103/366] Input: i8042 - enable MUX on Sony VAIO VGN-CS series to fix touchpad

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Ondrej Zary commit 04bb1719c4de94700056241d4c0fe3c1413f5aff upstream. The touch sensor buttons on Sony VAIO VGN-CS series laptops (e.g. VGN-CS31S) are a separate PS/2 device. As the MUX is

[PATCH 3.16 071/366] ipc/sem: Fix semctl(..., GETPID, ...) between pid namespaces

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: "Eric W. Biederman" commit 51d6f2635b39709ee5e62479be23d423b760292c upstream. Today the last process to update a semaphore is remembered and reported in the pid namespace of that process. If

[PATCH 3.16 249/366] USB: serial: visor: handle potential invalid device configuration

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Greg Kroah-Hartman commit 4842ed5bfcb9daf6660537d70503c18d38dbdbb8 upstream. If we get an invalid device configuration from a palm 3 type device, we might incorrectly parse things, and we

[PATCH 3.16 046/366] USB: serial: ftdi_sio: add RT Systems VX-8 cable

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Major Hayden commit 9608e5c0f079390473b484ef92334dfd3431bb89 upstream. This patch adds a device ID for the RT Systems cable used to program Yaesu VX-8R/VX-8DR handheld radios. It uses the

[PATCH 3.16 020/366] serial: imx: Fix out-of-bounds access through serial port index

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Geert Uytterhoeven commit 5673444821406dda5fc25e4b52aca419f8065a19 upstream. The imx_ports[] array is indexed using a value derived from the "serialN" alias in DT, or from platform data,

[PATCH 3.16 063/366] ipc,shm: move BUG_ON check into shm_lock

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Davidlohr Bueso commit c5c8975b2eb4eb7604e8ce4f762987f56d2a96a2 upstream. Upon every shm_lock call, we BUG_ON if an error was returned, indicating racing either in idr or in shm_destroy.

[PATCH 3.16 038/366] parport_pc: Add support for WCH CH382L PCI-E single parallel port card.

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Alexander Gerasiov commit 823f7923833c6cc2b16e601546d607dcfb368004 upstream. WCH CH382L is a PCI-E adapter with 1 parallel port. It is similair to CH382 but serial ports are not soldered on

[PATCH 3.16 191/366] s390/cio: update chpid descriptor after resource accessibility event

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Sebastian Ott commit af2e460ade0b0180d0f3812ca4f4f59cc9597f3e upstream. Channel path descriptors have been seen as something stable (as long as the chpid is configured). Recent tests have

[PATCH 3.16 144/366] net: fix deadlock while clearing neighbor proxy table

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Wolfgang Bumiller commit 53b76cdf7e8fecec1d09e38aad2f8579882591a8 upstream. When coming from ndisc_netdev_event() in net/ipv6/ndisc.c, neigh_ifdown() is called with _tbl, locking this while

[PATCH 3.16 125/366] HID: hidraw: Fix crash on HIDIOCGFEATURE with a destroyed device

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Rodrigo Rivas Costa commit a955358d54695e4ad9f7d6489a7ac4d69a8fc711 upstream. Doing `ioctl(HIDIOCGFEATURE)` in a tight loop on a hidraw device and then disconnecting the device, or unloading

[PATCH 3.16 082/366] ext4: add bounds checking to ext4_xattr_find_entry()

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Theodore Ts'o commit 9496005d6ca4cf8f5ee8f828165a8956872dc59d upstream. Add some paranoia checks to make sure we don't stray beyond the end of the valid memory region containing ext4 xattr

[PATCH 3.16 028/366] crypto: x86/cast5-avx - fix ECB encryption when long sg follows short one

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Eric Biggers commit 8f461b1e02ed546fbd0f11611138da67fd85a30f upstream. With ecb-cast5-avx, if a 128+ byte scatterlist element followed a shorter one, then the algorithm accidentally

[PATCH 3.16 108/366] ip_tunnel: better validate user provided tunnel names

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet commit 9cb726a212a82c88c98aa9f0037fd04777cd8fe5 upstream. Use dev_valid_name() to make sure user does not provide illegal device name. syzbot caught the following bug : BUG:

[PATCH 3.16 089/366] cifs: fix memory leak in SMB2_open()

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Ronnie Sahlberg commit b7a73c84eb96dabd6bb8e9d7c56f796d83efee8e upstream. Signed-off-by: Ronnie Sahlberg Signed-off-by: Steve French [bwh: Backported to 3.16: Only one of the failure paths

[PATCH 3.16 139/366] l2tp: fix race in duplicate tunnel detection

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Guillaume Nault commit f6cd651b056ffd3b4e8496afd44d4ed44bf69136 upstream. We can't use l2tp_tunnel_find() to prevent l2tp_nl_cmd_tunnel_create() from creating a duplicate tunnel. A tunnel can

[PATCH 3.16 117/366] ALSA: pcm: Fix endless loop for XRUN recovery in OSS emulation

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit e15dc99dbb9cf99f6432e8e3c0b3a8f7a3403a86 upstream. The commit 02a5d6925cd3 ("ALSA: pcm: Avoid potential races between OSS ioctls and read/write") split the PCM preparation

[PATCH 3.16 049/366] USB:fix USB3 devices behind USB3 hubs not resuming at hibernate thaw

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Zhengjun Xing commit 64627388b50158fd24d6ad88132525b95a5ef573 upstream. USB3 hubs don't support global suspend. USB3 specification 10.10, Enhanced SuperSpeed hubs only support selective

[PATCH 3.16 033/366] hwmon: (pmbus/max8688) Accept negative page register values

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Guenter Roeck commit a46f8cd696624ef757be0311eb28f119c36778e8 upstream. A negative page register value means that no page needs to be selected. This is used by status register evaluations and

[PATCH 3.16 167/366] vlan: Fix reading memory beyond skb->tail in skb_vlan_tagged_multi

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Toshiaki Makita commit 7ce2367254e84753bceb07327aaf5c953cfce117 upstream. Syzkaller spotted an old bug which leads to reading skb beyond tail by 4 bytes on vlan tagged packets. This is caused

[PATCH 3.16 106/366] Btrfs: bail out on error during replay_dir_deletes

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Liu Bo commit b98def7ca6e152ee55e36863dddf6f41f12d1dc6 upstream. If errors were returned by btrfs_next_leaf(), replay_dir_deletes needs to bail out, otherwise @ret would be forced to be 0

[PATCH 3.16 116/366] block_invalidatepage(): only release page if the full page was invalidated

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Jeff Moyer commit 3172485f4f8032649c144e4aafa550e1e6179332 upstream. Prior to commit d47992f86b30 ("mm: change invalidatepage prototype to accept length"), an offset of 0 meant that the full

[PATCH 3.16 051/366] ACPI / hotplug / PCI: Check presence of slot itself in get_slot_status()

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Mika Westerberg commit 13d3047c81505cc0fb9bdae7810676e70523c8bf upstream. Mike Lothian reported that plugging in a USB-C device does not work properly in his Dell Alienware system. This

[PATCH 3.16 094/366] RDMA/ucma: Don't allow setting RDMA_OPTION_IB_PATH without an RDMA device

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Roland Dreier commit 8435168d50e66fa5eae01852769d20a36f9e5e83 upstream. Check to make sure that ctx->cm_id->device is set before we use it. Otherwise userspace can trigger a NULL dereference

[PATCH 3.16 145/366] l2tp: hold reference on tunnels in netlink dumps

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Guillaume Nault commit 5846c131c39b6d0add36ec19dc8650700690f930 upstream. l2tp_tunnel_find_nth() is unsafe: no reference is held on the returned tunnel, therefore it can be freed whenever the

[PATCH 3.16 172/366] powerpc/eeh: Fix enabling bridge MMIO windows

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Michael Neuling commit 13a83eac373c49c0a081cbcd137e79210fe78acd upstream. On boot we save the configuration space of PCIe bridges. We do this so when we get an EEH event and everything gets

[PATCH 3.16 088/366] sky2: Increase D3 delay to sky2 stops working after suspend

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Kai-Heng Feng commit afb133637071be6deeb8b3d0e55593ffbf63c527 upstream. The sky2 ethernet stops working after system resume from suspend: [ 582.852065] sky2 :04:00.0: Refused to change

[PATCH 3.16 203/366] ipv6: add RTA_TABLE and RTA_PREFSRC to rtm_ipv6_policy

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet commit aa8f8778493c85fff480cdf8b349b1e1dcb5f243 upstream. KMSAN reported use of uninit-value that I tracked to lack of proper size check on RTA_TABLE attribute. I also believe

[PATCH 3.16 192/366] s390/dasd: fix IO error for newly defined devices

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Stefan Haberland commit 5d27a2bf6e14f5c7d1033ad1e993fcd0eba43e83 upstream. When a new CKD storage volume is defined at the storage server, Linux may be relying on outdated information about

[PATCH 3.16 202/366] bonding: do not set slave_dev npinfo before slave_enable_netpoll in bond_enslave

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Xin Long commit ddea788c63094f7c483783265563dd5b50052e28 upstream. After Commit 8a8efa22f51b ("bonding: sync netpoll code with bridge"), it would set slave_dev npinfo in slave_enable_netpoll

[PATCH 3.16 111/366] ip6_tunnel: better validate user provided tunnel names

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet commit db7a65e3ab78e5b1c4b17c0870ebee35a4ee3257 upstream. Use valid_name() to make sure user does not provide illegal device name. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")

[PATCH 3.16 019/366] serial: fsl_lpuart: Fix out-of-bounds access through DT alias

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Geert Uytterhoeven commit ffab87fdecc655cc676f8be8dd1a2c5e22bd6d47 upstream. The lpuart_ports[] array is indexed using a value derived from the "serialN" alias in DT, which may lead to an

[PATCH 3.16 133/366] powerpc/powernv: Fix OPAL NVRAM driver OPAL_BUSY loops

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Nicholas Piggin commit 3b8070335f751aac9f1526ae2e012e6f5b8b0f21 upstream. The OPAL NVRAM driver does not sleep in case it gets OPAL_BUSY or OPAL_BUSY_EVENT from firmware, which causes large

[PATCH 3.16 096/366] mmc: jz4740: Fix race condition in IRQ mask update

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Alex Smith commit a04f0017c22453613d5f423326b190c61e3b4f98 upstream. A spinlock is held while updating the internal copy of the IRQ mask, but not while writing it to the actual IMASK

[PATCH 3.16 092/366] rtc: snvs: Fix usage of snvs_rtc_enable

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Bryan O'Donoghue commit 1485991c024603b2fb4ae77beb7a0d741128a48e upstream. commit 179a502f8c46 ("rtc: snvs: add Freescale rtc-snvs driver") introduces the SNVS RTC driver with a function

[PATCH 3.16 003/366] drm/i915: Fix command parser to validate multiple register access with the same command.

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Francisco Jerez commit 6a65c5b9326c9dd391afb1b3df75cbedffbaccdb upstream. Until now the software command checker assumed that commands could read or write at most a single register per

[PATCH 3.16 005/366] regmap: Correct offset handling in regmap_volatile_range

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Charles Keepax commit b8f9a03b741ddfdde4aa8b607fa7d88eb63a6338 upstream. The current implementation is broken for regmaps that have a reg_stride, since it doesn't take the stride into

[PATCH 3.16 001/366] drm/i915: Try EDID bitbanging on HDMI after failed read

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Stefan Brüns commit cfb926e148e99acc02351d72e8b85e32b5f786ef upstream. The ACK/NACK implementation as found in e.g. the G965 has the falling clock edge and the release of the data line after

[PATCH 3.16 000/366] 3.16.60-rc1 review

2018-10-14 Thread Ben Hutchings
This is the start of the stable review cycle for the 3.16.60 release. There are 366 patches in this series, which will be posted as responses to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Fri Oct 19 17:00:00 UTC 2018. Anything

[PATCH 3.16 017/366] serial: altera: ensure port->regshift is honored consistently

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Uwe Kleine-König commit 0e254963b6ba4d63ac911e79537fea38dd03dc50 upstream. Most register accesses in the altera driver honor port->regshift by using altera_uart_writel(). There are a few

[PATCH] ext4: direct return when jinode allocate failed in ext4_inode_attach_jinode

2018-10-14 Thread liusong
From: Liu Song Allocating memory for jinode do not need protected by *i_lock*. Should return directly if memory allocation fails without holding a spinlock. Signed-off-by: Liu Song --- fs/ext4/inode.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/fs/ext4/inode.c

[PATCH 3.16 008/366] drm: rcar-du: lvds: Fix LVDS startup on R-Car Gen2

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Sergei Shtylyov commit 8525d04ba8a6a9ecfa4bd619c988ca873a5fc2a4 upstream. According to the latest revision 2.00 of the R-Car Gen2 manual, the LVDS and the bias circuit must be enabled after

[PATCH 3.16 018/366] serial: arc_uart: Fix out-of-bounds access through DT alias

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Geert Uytterhoeven commit f9f5786987e81d166c60833edcb7d1836aa16944 upstream. The arc_uart_ports[] array is indexed using a value derived from the "serialN" alias in DT, which may lead to an

[PATCH 3.16 007/366] regmap: Don't use format_val in regmap_bulk_read

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Charles Keepax commit 9ae27a8d1f3ebff09191fb8cb1341414547293b2 upstream. A bulk read can be implemented either through regmap_raw_read, or by reading each register individually using

[PATCH 3.16 002/366] drm/i915: Log a message when rejecting LRM to OACONTROL

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Brad Volkin commit 00caf0199f66871b0e2c28d7c2079de0ce1d646c upstream. The other paths in the command parser that reject a batch all log a message indicating the reason. We simply missed this

[PATCH 3.16 014/366] um: Use POSIX ucontext_t instead of struct ucontext

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Krzysztof Mazur commit 4d1a535b8ec5e74b42dfd9dc809142653b2597f6 upstream. glibc 2.26 removed the 'struct ucontext' to "improve" POSIX compliance and break programs, including User Mode Linux.

[PATCH 3.16 011/366] HID: core: Fix size as type u32

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Aaron Ma commit 6de0b13cc0b4ba10e98a9263d7a83b940720b77a upstream. When size is negative, calling memset will make segment fault. Declare the size as type u32 to keep memset safe. size in

[PATCH 3.16 009/366] HID: i2c-hid: fix size check and type usage

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Aaron Ma commit ac75a041048b8c1f7418e27621ca5efda8571043 upstream. When convert char array with signed int, if the inbuf[x] is negative then upper bits will be set to 1. Fix this by using u8

[PATCH 3.16 010/366] HID: i2c-hid: Fix "incomplete report" noise

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Jason Andryuk commit ef6eaf27274c0351f7059163918f3795da13199c upstream. Commit ac75a041048b ("HID: i2c-hid: fix size check and type usage") started writing messages when the ret_size is <= 2

[PATCH 3.16 016/366] media: cx25821: prevent out-of-bounds read on array card

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Colin Ian King commit 67300abdbe9f1717532aaf4e037222762716d0f6 upstream. Currently an out of range dev->nr is detected by just reporting the issue and later on an out-of-bounds read on array

[PATCH 3.16 158/366] net: af_packet: fix race in PACKET_{R|T}X_RING

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet commit 5171b37d959641bbc619781caf62e61f7b940871 upstream. In order to remove the race caught by syzbot [1], we need to lock the socket before using po->tp_version as this could

[PATCH 3.16 004/366] drm/i915/cmdparser: Do not check past the cmd length.

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Michal Srb commit 3aec7f871c65eb5f76b4125fda432593c834a6f2 upstream. The command MEDIA_VFE_STATE checks bits at offset +2 dwords. However, it is possible to have MEDIA_VFE_STATE command with

[PATCH 3.16 155/366] USB: serial: ftdi_sio: use jtag quirk for Arrow USB Blaster

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Vasyl Vavrychuk commit 470b5d6f0cf4674be2d1ec94e54283a1770b6a1a upstream. Arrow USB Blaster integrated on MAX1000 board uses the same vendor ID (0x0403) and product ID (0x6010) as the

[PATCH 3.16 012/366] perf record: Put new line after target override warning

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Jiri Olsa commit c3dec27b7f70a9ad5f777d943d51ecdfcd9824d0 upstream. There's no new-line after target-override warning, now: $ perf record -a --per-thread Warning: SYSTEM/CPU switch

[PATCH 3.16 147/366] l2tp: hold reference on tunnels printed in l2tp/tunnels debugfs file

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Guillaume Nault commit f726214d9b23e5fce8c11937577a289a3202498f upstream. Use l2tp_tunnel_get_nth() instead of l2tp_tunnel_find_nth(), to be safe against concurrent tunnel deletion. Use the

[PATCH 3.16 015/366] ext4: don't update checksum of new initialized bitmaps

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Theodore Ts'o commit 044e6e3d74a3d7103a0c8a9305dfd94d64000660 upstream. When reading the inode or block allocation bitmap, if the bitmap needs to be initialized, do not update the checksum in

[PATCH 3.16 013/366] jbd2: if the journal is aborted then don't allow update of the log tail

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Theodore Ts'o commit 85e0c4e89c1b864e763c4e3bb15d0b6d501ad5d9 upstream. This updates the jbd2 superblock unnecessarily, and on an abort we shouldn't truncate the log. Signed-off-by: Theodore

[tip:x86/urgent] x86/percpu: Fix this_cpu_read()

2018-10-14 Thread tip-bot for Peter Zijlstra
Commit-ID: b59167ac7bafd804c91e49ad53c6d33a7394d4c8 Gitweb: https://git.kernel.org/tip/b59167ac7bafd804c91e49ad53c6d33a7394d4c8 Author: Peter Zijlstra AuthorDate: Thu, 11 Oct 2018 12:38:27 +0200 Committer: Thomas Gleixner CommitDate: Sun, 14 Oct 2018 11:11:22 +0200 x86/percpu: Fix

[tip:x86/urgent] x86/tsc: Force inlining of cyc2ns bits

2018-10-14 Thread tip-bot for Peter Zijlstra
Commit-ID: 4907c68abd3f60f650f98d5a69d4ec77c0bde44f Gitweb: https://git.kernel.org/tip/4907c68abd3f60f650f98d5a69d4ec77c0bde44f Author: Peter Zijlstra AuthorDate: Thu, 11 Oct 2018 12:38:26 +0200 Committer: Thomas Gleixner CommitDate: Sun, 14 Oct 2018 11:11:22 +0200 x86/tsc: Force

Read Business Letter

2018-10-14 Thread info
Steven Peter Walker(Esq) Stone Chambers, 4 Field Court, Gray's Inn, London, WC1R 5EF.. Email: stevenwalkerchamb...@workmail.co.za Greetings To You, This is a personal email directed to you and I request that it be treated as such. I am Steven Walker, a personal attorney/sole executor to the

Read Business Letter

2018-10-14 Thread info
Steven Peter Walker(Esq) Stone Chambers, 4 Field Court, Gray's Inn, London, WC1R 5EF.. Email: stevenwalkerchamb...@workmail.co.za Greetings To You, This is a personal email directed to you and I request that it be treated as such. I am Steven Walker, a personal attorney/sole executor to the

Re: [PATCH v13 3/3]: perf record: extend trace writing to multi AIO

2018-10-14 Thread Jiri Olsa
On Fri, Oct 12, 2018 at 07:28:23PM +0300, Alexey Budankov wrote: > Hi, > > On 12.10.2018 17:17, Jiri Olsa wrote: > > On Thu, Oct 11, 2018 at 09:59:19PM +0300, Alexey Budankov wrote: > > > > SNIP > > > >> @@ -1490,6 +1514,13 @@ static int perf_record_config(const char *var, > >> const char

[PATCH 3.16 246/366] usb: musb: host: fix potential NULL pointer dereference

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Bin Liu commit 2b63f1329df2cd814c1f8353fae4853ace6521d1 upstream. musb_start_urb() doesn't check the pass-in parameter if it is NULL. But in musb_bulk_nak_timeout() the parameter passed to

[PATCH 3.16 244/366] ALSA: aloop: Add missing cable lock to ctl API callbacks

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 76b3421b39bd610546931fc923edcf90c18fa395 upstream. Some control API callbacks in aloop driver are too lazy to take the loopback->cable_lock and it results in possible

[PATCH 3.16 260/366] net: atm: Fix potential Spectre v1

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: "Gustavo A. R. Silva" commit acf784bd0ce257fe43da7ca266f7a10b837479d2 upstream. ioc_data.dev_num can be controlled by user-space, hence leading to a potential exploitation of the Spectre

[PATCH 3.16 259/366] atm: zatm: Fix potential Spectre v1

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: "Gustavo A. R. Silva" commit 2be147f7459db5bbf292e0a6f135037b55e20b39 upstream. pool can be indirectly controlled by user-space, hence leading to a potential exploitation of the Spectre

[PATCH 3.16 254/366] ipv4: fix fnhe usage by non-cached routes

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Julian Anastasov commit 94720e3aee6884d8c8beb678001629da60ec6366 upstream. Allow some non-cached routes to use non-expired fnhe: 1. ip_del_fnhe: moved above and now called by find_exception.

[PATCH 3.16 044/366] usb: dwc3: pci: Properly cleanup resource

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Thinh Nguyen commit cabdf83dadfb3d83eec31e0f0638a92dbd716435 upstream. Platform device is allocated before adding resources. Make sure to properly cleanup on error case. Fixes: f1c7e7108109

[PATCH 3.16 068/366] ipc/shm: fix use-after-free of shm file via remap_file_pages()

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Eric Biggers commit 3f05317d9889ab75c7190dcd39491d2a97921984 upstream. syzbot reported a use-after-free of shm_file_data(file)->file->f_op in shm_get_unmapped_area(), called via

[PATCH 3.16 048/366] USB: serial: ftdi_sio: add support for Harman FirmwareHubEmulator

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Clemens Werther commit 6555ad13a01952c16485c82a52ad1f3e07e34b3a upstream. Add device id for Harman FirmwareHubEmulator to make the device auto-detectable by the driver. Signed-off-by:

[PATCH 3.16 255/366] qmi_wwan: do not steal interfaces from class drivers

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Bjørn Mork commit 5697db4a696c41601a1d15c1922150b4dbf5726c upstream. The USB_DEVICE_INTERFACE_NUMBER matching macro assumes that the { vendorid, productid, interfacenumber } set uniquely

[PATCH 3.16 250/366] clocksource: Initialize cs->wd_list

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Peter Zijlstra commit 5b9e886a4af97574ca3ce1147f35545da0e7afc7 upstream. A number of places relies on list_empty(>wd_list), however the list_head does not get initialized. Do so upon

[PATCH 3.16 052/366] ALSA: pcm: Use ERESTARTSYS instead of EINTR in OSS emulation

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit c64ed5dd9feba193c76eb460b451225ac2a0d87b upstream. Fix the last standing EINTR in the whole subsystem. Use more correct ERESTARTSYS for pending signals. Signed-off-by:

[PATCH 3.16 252/366] bpf, x64: fix memleak when not converging after image

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Daniel Borkmann commit 3aab8884c9eb99189a3569ac4e6b205371c9ac0b upstream. While reviewing x64 JIT code, I noticed that we leak the prior allocated JIT image in the case where proglen !=

[PATCH 3.16 134/366] fs/proc/proc_sysctl.c: fix potential page fault while unregistering sysctl table

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Danilo Krummrich commit a0b0d1c345d0317efe594df268feb5ccc99f651e upstream. proc_sys_link_fill_cache() does not take currently unregistering sysctl tables into account, which might result into

[PATCH 3.16 258/366] bdi: Fix oops in wb_workfn()

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Jan Kara commit b8b784958eccbf8f51ebeee65282ca3fd59ea391 upstream. Syzbot has reported that it can hit a NULL pointer dereference in wb_workfn() due to wb->bdi->dev being NULL. This indicates

[PATCH 3.16 196/366] tty: Avoid possible error pointer dereference at tty_ldisc_restore().

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Tetsuo Handa commit 598c2d41ff44889dd8eced4f117403e472158d85 upstream. syzbot is reporting crashes [1] triggered by memory allocation failure at tty_ldisc_get() from tty_ldisc_restore().

[PATCH 3.16 261/366] sched/core: Fix possible Spectre-v1 indexing for sched_prio_to_weight[]

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Peter Zijlstra commit 7281c8dec8a87685cb54d503d8cceef5a0fc2fdd upstream. > kernel/sched/core.c:6921 cpu_weight_nice_write_s64() warn: potential spectre > issue 'sched_prio_to_weight'

[PATCH 3.16 251/366] sctp: fix the issue that the cookie-ack with auth can't get processed

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Xin Long commit ce402f044e4e432c296f90eaabb8dbe8f3624391 upstream. When auth is enabled for cookie-ack chunk, in sctp_inq_pop, sctp processes auth chunk first, then continues to the next

[PATCH 3.16 165/366] x86/mm: Prevent kernel Oops in PTDUMP code with HIGHPTE=y

2018-10-14 Thread Ben Hutchings
3.16.60-rc1 review patch. If anyone has any objections, please let me know. -- From: Joerg Roedel commit d6ef1f194b7569af8b8397876dc9ab07649d63cb upstream. The walk_pte_level() function just uses __va to get the virtual address of the PTE page, but that breaks when the PTE

  1   2   3   4   5   6   7   8   9   10   >