[PATCH 3.4 048/125] ALSA: usb-audio: work around CH345 input SysEx corruption

2016-10-12 Thread lizf
From: Clemens Ladisch 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit a91e627e3f0ed820b11d86cdc04df38f65f33a70 upstream. One of the many faults of the QinHeng CH345 USB MIDI interface chip is that it does not handle received SysEx message

[PATCH 3.4 027/125] firewire: ohci: fix JMicron JMB38x IT context discovery

2016-10-12 Thread lizf
From: Stefan Richter 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 100ceb66d5c40cc0c7018e06a9474302470be73c upstream. Reported by Clifford and Craig for JMicron OHCI-1394 + SDHCI combo controllers: Often or even most of the time, the c

[PATCH 3.4 093/125] xen-netback: don't use last request to determine minimum Tx credit

2016-10-12 Thread lizf
From: David Vrabel 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 0f589967a73f1f30ab4ac4dd9ce0bb399b4d6357 upstream. The last from guest transmitted request gives no indication about the minimum amount of credit that the guest might need

[PATCH 3.4 059/125] x86/signal: Fix restart_syscall number for x32 tasks

2016-10-12 Thread lizf
From: "Dmitry V. Levin" 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 22eab1108781eff09961ae7001704f7bd8fb1dce upstream. When restarting a syscall with regs->ax == -ERESTART_RESTARTBLOCK, regs->ax is assigned to a restart_syscall number

[PATCH 3.4 043/125] ring-buffer: Update read stamp with first real commit on page

2016-10-12 Thread lizf
From: "Steven Rostedt (Red Hat)" 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit b81f472a208d3e2b4392faa6d17037a89442f4ce upstream. Do not update the read stamp after swapping out the reader page from the write buffer. If the reader page

[PATCH 3.4 039/125] usblp: do not set TASK_INTERRUPTIBLE before lock

2016-10-12 Thread lizf
From: Jiri Slaby 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 19cd80a214821f4b558560ebd76bfb2c38b4f3d8 upstream. It is not permitted to set task state before lock. usblp_wwait sets the state to TASK_INTERRUPTIBLE and calls mutex_lock_i

[PATCH 3.4 060/125] fix sysvfs symlinks

2016-10-12 Thread lizf
From: Al Viro 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 0ebf7f10d67a70e120f365018f1c5fce9ddc567d upstream. The thing got broken back in 2002 - sysvfs does *not* have inline symlinks; even short ones have bodies stored in the first b

[PATCH 3.4 063/125] ext4: Fix handling of extended tv_sec

2016-10-12 Thread lizf
From: David Turner 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit a4dad1ae24f850410c4e60f22823cba1289b8d52 upstream. In ext4, the bottom two bits of {a,c,m}time_extra are used to extend the {a,c,m}time fields, deferring the year 2038 pro

[PATCH 3.4 028/125] x86/cpu: Call verify_cpu() after having entered long mode too

2016-10-12 Thread lizf
From: Borislav Petkov 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 04633df0c43d710e5f696b06539c100898678235 upstream. When we get loaded by a 64-bit bootloader, kernel entry point is startup_64 in head_64.S. We don't trust any and all

[PATCH 3.4 095/125] xen-blkback: only read request operation from shared ring once

2016-10-12 Thread lizf
From: Roger Pau Monné 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 1f13d75ccb806260079e0679d55d9253e370ec8a upstream. A compiler may load a switch statement value multiple times, which could be bad when the value is in memory shared wi

[PATCH 3.4 061/125] fuse: break infinite loop in fuse_fill_write_pages()

2016-10-12 Thread lizf
From: Roman Gushchin 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 3ca8138f014a913f98e6ef40e939868e1e9ea876 upstream. I got a report about unkillable task eating CPU. Further investigation shows, that the problem is in the fuse_fill_wri

[PATCH 3.4 045/125] iio: lpc32xx_adc: fix warnings caused by enabling unprepared clock

2016-10-12 Thread lizf
From: Vladimir Zapolskiy 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 01bb70ae0b98d266fa3e860482c7ce22fa482a6e upstream. If common clock framework is configured, the driver generates a warning, which is fixed by this change: root@

[PATCH 3.4 062/125] USB: cp210x: Remove CP2110 ID from compatibility list

2016-10-12 Thread lizf
From: Konstantin Shkolnyy 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 7c90e610b60cd1ed6abafd806acfaedccbbe52d1 upstream. CP2110 ID (0x10c4, 0xea80) doesn't belong here because it's a HID and completely different from CP210x devices.

[PATCH 3.4 094/125] xen-netback: use RING_COPY_REQUEST() throughout

2016-10-12 Thread lizf
From: David Vrabel 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 68a33bfd8403e4e22847165d149823a2e0e67c9c upstream. Instead of open-coding memcpy()s and directly accessing Tx and Rx requests, use the new RING_COPY_REQUEST() that ensures

Re: [PATCH 3.4 088/125] ser_gigaset: fix deallocation of platform device structure

2016-10-12 Thread Paul Bolle
Zefan Li, On Wed, 2016-10-12 at 20:33 +0800, l...@kernel.org wrote: > When shutting down the device, the struct ser_cardstate must not be > kfree()d immediately after the call to platform_device_unregister() > since the embedded struct platform_device is still in use. > Move the kfree() call to th

[PATCH 3.4 092/125] xen: Add RING_COPY_REQUEST()

2016-10-12 Thread lizf
From: David Vrabel 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 454d5d882c7e412b840e3c99010fe81a9862f6fb upstream. Using RING_GET_REQUEST() on a shared ring is easy to use incorrectly (i.e., by not considering that the other end may al

[PATCH 3.4 057/125] wan/x25: Fix use-after-free in x25_asy_open_tty()

2016-10-12 Thread lizf
From: Peter Hurley 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit ee9159ddce14bc1dec9435ae4e3bd3153e783706 upstream. The N_X25 line discipline may access the previous line discipline's closed and already-freed private data on open [1].

[PATCH 3.4 055/125] vfs: Avoid softlockups with sendfile(2)

2016-10-12 Thread lizf
From: Jan Kara 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit c2489e07c0a71a56fb2c84bc0ee66cddfca7d068 upstream. The following test program from Dmitry can cause softlockups or RCU stalls as it copies 1GB from tmpfs into eventfd and we d

[PATCH 3.4 041/125] net: ip6mr: fix static mfc/dev leaks on table destruction

2016-10-12 Thread lizf
From: Nikolay Aleksandrov 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 4c6980462f32b4f282c5d8e5f7ea8070e2937725 upstream. Similar to ipv4, when destroying an mrt table the static mfc entries and the static devices are kept, which leads

[PATCH 3.4 036/125] mac80211: mesh: fix call_rcu() usage

2016-10-12 Thread lizf
From: Johannes Berg 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit c2e703a55245bfff3db53b1f7cbe59f1ee8a4339 upstream. When using call_rcu(), the called function may be delayed quite significantly, and without a matching rcu_barrier() the

[PATCH 3.4 090/125] scripts: recordmcount: break hardlinks

2016-10-12 Thread lizf
From: Russell King 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit dd39a26538e37f6c6131e829a4a510787e43c783 upstream. recordmcount edits the file in-place, which can cause problems when using ccache in hardlink mode. Arrange for recordmc

[PATCH 3.4 113/125] net: Fix skb csum races when peeking

2016-10-12 Thread lizf
From: Herbert Xu 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- [ Upstream commit 89c22d8c3b278212eef6a8cc66b570bc840a6f5a ] When we calculate the checksum on the recv path, we store the result in the skb as an optimisation in case we need the

[PATCH 3.4 096/125] xen/pciback: Save xen_pci_op commands before processing it

2016-10-12 Thread lizf
From: Konrad Rzeszutek Wilk 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 8135cf8b092723dbfcc611fe6fdcb3a36c9951c5 upstream. Double fetch vulnerabilities that happen when a variable is fetched twice from shared memory but a security che

[PATCH 3.4 058/125] sched/core: Clear the root_domain cpumasks in init_rootdomain()

2016-10-12 Thread lizf
From: Xunlei Pang 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 8295c69925ad53ec32ca54ac9fc194ff21bc40e2 upstream. root_domain::rto_mask allocated through alloc_cpumask_var() contains garbage data, this may cause problems. For instance,

[PATCH 3.4 123/125] Revert "USB: Add OTG PET device to TPL"

2016-10-12 Thread lizf
From: Zefan Li 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- This reverts commit 97fa724b23c3dd22e9c0979ad0e9d260cc6d545d. Conflicts: drivers/usb/core/quirks.c Signed-off-by: Zefan Li --- drivers/usb/core/otg_whitelist.h | 5 -

[PATCH 3.4 040/125] ip6mr: call del_timer_sync() in ip6mr_free_table()

2016-10-12 Thread lizf
From: WANG Cong 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 7ba0c47c34a1ea5bc7a24ca67309996cce0569b5 upstream. We need to wait for the flying timers, since we are going to free the mrtable right after it. Cc: Hannes Frederic Sowa Si

[PATCH 3.4 091/125] ftrace/scripts: Have recordmcount copy the object file

2016-10-12 Thread lizf
From: "Steven Rostedt (Red Hat)" 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit a50bd43935586420fb75f4558369eb08566fac5e upstream. Russell King found that he had weird side effects when compiling the kernel with hard linked ccache. The r

[PATCH 3.4 117/125] ipv6: update ip6_rt_last_gc every time GC is run

2016-10-12 Thread lizf
From: Michal Kubeček 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 49a18d86f66d33a20144ecb5a34bba0d1856b260 upstream. As pointed out by Eric Dumazet, net->ipv6.ip6_rt_last_gc should hold the last time garbage collector was run so that w

Re: [PATCH v2 4/4] Add R3MWAIT to CPU features

2016-10-12 Thread Borislav Petkov
On Wed, Oct 12, 2016 at 02:16:25PM +0200, Grzegorz Andrejczuk wrote: > Add cpu feature for ring 3 monitor/mwait. > > Change-Id: Iba4d20639efd8d3637d37db9294cbc43a98f009a Please take your time when incorporating review comments - these internal commit IDs have no meaning when submitting upstream s

[PATCH 3.4 051/125] USB: option: add XS Stick W100-2 from 4G Systems

2016-10-12 Thread lizf
From: Bjørn Mork 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 638148e20c7f8f6e95017fdc13bce8549a6925e0 upstream. Thomas reports " 4gsystems sells two total different LTE-surfsticks under the same name. .. The newer version of XS Stick

[PATCH 3.4 112/125] USB: ti_usb_3410_502: Fix ID table size

2016-10-12 Thread lizf
From: Ben Hutchings 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- Commit 35a2fbc941ac ("USB: serial: ti_usb_3410_5052: new device id for Abbot strip port cable") failed to update the size of the ti_id_table_3410 array. This doesn't need to be

[PATCH 3.4 097/125] xen/pciback: Return error on XEN_PCI_OP_enable_msi when device has MSI or MSI-X enabled

2016-10-12 Thread lizf
From: Konrad Rzeszutek Wilk 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 56441f3c8e5bd45aab10dd9f8c505dd4bec03b0d upstream. The guest sequence of: a) XEN_PCI_OP_enable_msi b) XEN_PCI_OP_enable_msi c) XEN_PCI_OP_disable_msi results

[PATCH 3.4 120/125] Fix incomplete backport of commit 423f04d63cf4

2016-10-12 Thread lizf
From: Zefan Li 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- Signed-off-by: Zefan Li --- drivers/md/raid1.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index a548eed..a4d994f 100644 --- a/driv

[PATCH 3.4 116/125] sctp: Prevent soft lockup when sctp_accept() is called during a timeout event

2016-10-12 Thread lizf
From: Karl Heiss 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 635682a14427d241bab7bbdeebb48a7d7b91638e upstream. A case can occur when sctp_accept() is called by the user during a heartbeat timeout event after the 4-way handshake. Sin

[PATCH 3.4 118/125] ipv6: don't call fib6_run_gc() until routing is ready

2016-10-12 Thread lizf
From: Michal Kubeček 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 2c861cc65ef4604011a0082e4dcdba2819aa191a upstream. When loading the ipv6 module, ndisc_init() is called before ip6_route_init(). As the former registers a handler callin

[PATCH 3.4 111/125] af_unix: fix a fatal race with bit fields

2016-10-12 Thread lizf
From: Eric Dumazet 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 60bc851ae59bfe99be6ee89d6bc50008c85ec75d upstream. Using bit fields is dangerous on ppc64/sparc64, as the compiler [1] uses 64bit instructions to manipulate them. If the 6

[PATCH 3.4 034/125] usb: musb: core: fix order of arguments to ulpi write callback

2016-10-12 Thread lizf
From: Uwe Kleine-König 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 705e63d2b29c8bbf091119084544d353bda70393 upstream. There is a bit of a mess in the order of arguments to the ulpi write callback. There is int ulpi_write(stru

Re: [PATCH 3.4 096/125] xen/pciback: Save xen_pci_op commands before processing it

2016-10-12 Thread Konrad Rzeszutek Wilk
On Wed, Oct 12, 2016 at 08:33:32PM +0800, l...@kernel.org wrote: > From: Konrad Rzeszutek Wilk > > 3.4.113-rc1 review patch. If anyone has any objections, please let me know. You also need: commit d159457b84395927b5a52adb72f748dd089ad5e5 Author: Konrad Rzeszutek Wilk Date: Thu Feb 11 16:10

Re: [PATCH 2/2] power/reset: at91-poweroff: timely shitdown LPDDR memories

2016-10-12 Thread Jean-Jacques Hiblot
2016-10-07 18:34 GMT+02:00 Alexandre Belloni : > LPDDR memories can only handle up to 400 uncontrolled power off. Ensure the > proper power off sequence is used before shutting down the platform. > > Signed-off-by: Alexandre Belloni > --- > drivers/power/reset/at91-poweroff.c | 52 > +++

[PATCH 3.4 082/125] mm: hugetlb: call huge_pte_alloc() only if ptep is null

2016-10-12 Thread lizf
From: Naoya Horiguchi 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 0d777df5d8953293be090d9ab5a355db893e8357 upstream. Currently at the beginning of hugetlb_fault(), we call huge_pte_offset() and check whether the obtained *ptep is a mi

[PATCH 3.4 076/125] dm btree: fix bufio buffer leaks in dm_btree_del() error path

2016-10-12 Thread lizf
From: Joe Thornber 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit ed8b45a3679eb49069b094c0711b30833f27c734 upstream. If dm_btree_del()'s call to push_frame() fails, e.g. due to btree_node_validator finding invalid metadata, the dm_btree_

[PATCH 3.4 000/125] 3.4.113-rc1 review

2016-10-12 Thread lizf
From: Zefan Li This is the start of the stable review cycle for the 3.4.113 release. There are 125 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by Fri Oct 14 12:32:05 UTC 201

[PATCH 3.4 080/125] parisc iommu: fix panic due to trying to allocate too large region

2016-10-12 Thread lizf
From: Mikulas Patocka 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit e46e31a3696ae2d66f32c207df3969613726e636 upstream. When using the Promise TX2+ SATA controller on PA-RISC, the system often crashes with kernel panic, for example just

[PATCH 3.4 078/125] vgaarb: fix signal handling in vga_get()

2016-10-12 Thread lizf
From: "Kirill A. Shutemov" 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 9f5bd30818c42c6c36a51f93b4df75a2ea2bd85e upstream. There are few defects in vga_get() related to signal hadning: - we shouldn't check for pending signals for TA

[PATCH 3.4 083/125] tty: Fix GPF in flush_to_ldisc()

2016-10-12 Thread lizf
From: Peter Hurley 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 9ce119f318ba1a07c29149301f1544b6c4bea52a upstream. A line discipline which does not define a receive_buf() method can can cause a GPF if data is ever received [1]. Oddly,

[PATCH 3.4 103/125] USB: fix invalid memory access in hub_activate()

2016-10-12 Thread lizf
From: Alan Stern 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit e50293ef9775c5f1cf3fcc093037dd6a8c5684ea upstream. Commit 8520f38099cc ("USB: change hub initialization sleeps to delayed_work") changed the hub_activate() routine to make p

[PATCH 3.4 075/125] rfkill: copy the name into the rfkill struct

2016-10-12 Thread lizf
From: Johannes Berg 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit b7bb110008607a915298bf0f47d25886ecb94477 upstream. Some users of rfkill, like NFC and cfg80211, use a dynamic name when allocating rfkill, in those cases dev_name(). Ther

[PATCH 3.4 108/125] mm/memory_hotplug.c: check for missing sections in test_pages_in_a_zone()

2016-10-12 Thread lizf
From: Andrew Banman 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 5f0f2887f4de9508dcf438deab28f1de8070c271 upstream. test_pages_in_a_zone() does not account for the possibility of missing sections in the given pfn range. pfn_valid_with

[PATCH v2 07/16] scsi: libfc: don't set FC_RQST_STATE_DONE before calling fc_bsg_jobdone()

2016-10-12 Thread Johannes Thumshirn
Don't set FC_RQST_STATE_DONE before calling fc_bsg_jobdone() as fc_bsg_jobdone() calls blk_complete_requeust() which raises a soft-IRQ that ends up in fc_bsg_sofirq_done() and fc_bsg_softirq_done() sets the FC_RQST_STATE_DONE flag. Signed-off-by: Johannes Thumshirn --- drivers/scsi/libfc/fc_lpor

[PATCH v2 10/16] scsi: change FC drivers to use 'struct bsg_job'

2016-10-12 Thread Johannes Thumshirn
Change FC drivers to use 'struct bsg_job' from bsg-lib.h instead of 'struct fc_bsg_job' from scsi_transport_fc.h and remove 'struct fc_bsg_job'. Signed-off-by: Johannes Thumshirn --- drivers/s390/scsi/zfcp_ext.h | 4 +-- drivers/s390/scsi/zfcp_fc.c | 15 drivers/scsi/bfa/bfad_

[PATCH v2 12/16] scsi: fc: use bsg_softirq_done

2016-10-12 Thread Johannes Thumshirn
bsg_softirq_done() and fc_bsg_softirq_done() are copies of each other, so ditch the fc specific one. Signed-off-by: Johannes Thumshirn --- block/bsg-lib.c | 3 ++- drivers/scsi/scsi_transport_fc.c | 16 ++-- include/linux/bsg-lib.h | 1 + 3 files changed,

Re: [PATCH v3 03/11] tracing/syscalls: add compat syscall metadata

2016-10-12 Thread Marcin Nowakowski
On 12.10.2016 10:50, Michael Ellerman wrote: <...> It's annoying that we have to duplicate all that just to do a + 1. How about this as a precursor? > <...> Thanks for the suggestion - unless anyone sees a reason to keep the current solution I'll change it. Marcin

[PATCH v2 05/16] scsi: fc: provide fc_bsg_to_shost() helper

2016-10-12 Thread Johannes Thumshirn
Provide fc_bsg_to_shost() helper that will become handy when we're moving from struct fc_bsg_job to a plain struct bsg_job. Also use this little helper in the LLDDs. Signed-off-by: Johannes Thumshirn --- drivers/s390/scsi/zfcp_fc.c | 4 +-- drivers/scsi/bfa/bfad_bsg.c | 6 ++--- driv

[PATCH v2 02/16] scsi: don't use fc_bsg_job::request and fc_bsg_job::reply directly

2016-10-12 Thread Johannes Thumshirn
Don't use fc_bsg_job::request and fc_bsg_job::reply directly, but use helper variables bsg_request and bsg_reply. This will be helpfull when transitioning to bsg-lib. Signed-off-by: Johannes Thumshirn --- drivers/s390/scsi/zfcp_fc.c | 9 +- drivers/scsi/bfa/bfad_bsg.c | 40 +++---

Re: [PATCH v3 08/11] powerpc/tracing: fix compat syscall handling

2016-10-12 Thread Marcin Nowakowski
On 12.10.2016 11:59, Michael Ellerman wrote: I went to test this and noticed the exit and enter events appear to be reversed in time? (your series on top of 24532f768121) thanks for testing the patch - I've found a bug that has sneaked in while cleaning up the patches before submission ... I

[PATCH v2 13/16] scsi: fc: use bsg_job_done

2016-10-12 Thread Johannes Thumshirn
fc_bsg_jobdone() and bsg_job_done() are 1:1 copies now so use the bsg-lib one instead of the FC private implementation. Signed-off-by: Johannes Thumshirn --- drivers/s390/scsi/zfcp_fc.c | 2 +- drivers/scsi/bfa/bfad_bsg.c | 4 ++-- drivers/scsi/ibmvscsi/ibmvfc.c | 2 +- drivers/sc

Re: [PATCH 3.4 007/125] recordmcount: Fix endianness handling bug for nop_mcount

2016-10-12 Thread Steven Rostedt
Hi Li, What is your plan for EOL of 3.4? I see on kernel.org that the EOL of 3.4 was suppose to be September 2016 (which has passed). I just gave a talk yesterday saying it is no longer supported. But I appear to be mistaken. https://www.kernel.org/category/releases.html -- Steve

[PATCH v2 08/16] scsi: fc: implement kref backed reference counting

2016-10-12 Thread Johannes Thumshirn
Implement kref backed reference counting instead of rolling our own. This elimnates the need of the following fields in 'struct fc_bsg_job': * ref_cnt * state_flags * job_lock bringing us close to unification of 'struct fc_bsg_job' and 'struct bsg_job'. Signed-off-by: Johannes Thumshirn --- driv

[PATCH v2 03/16] scsi: fc: Export fc_bsg_jobdone and use it in FC drivers

2016-10-12 Thread Johannes Thumshirn
Export fc_bsg_jobdone so drivers can use it directly instead of doing the round-trip via struct fc_bsg_job::job_done() and use it in the LLDDs. As we've converted all LLDDs over to use fc_bsg_jobdone() directly, we can remove the function pointer from struct fc_bsg_job as well. Signed-off-by: Joh

[PATCH v2 04/16] scsi: Unify interfaces of fc_bsg_jobdone and bsg_job_done

2016-10-12 Thread Johannes Thumshirn
Unify the interfaces of fc_bsg_jobdone and bsg_job_done. This will reduce the diff when moving from 'struct fc_bsg_job' to a plain 'struct bsg_job' later on. Signed-off-by: Johannes Thumshirn --- drivers/s390/scsi/zfcp_fc.c | 2 +- drivers/scsi/bfa/bfad_bsg.c | 6 ++-- drivers/scsi/i

[PATCH v2 09/16] block: add reference counting for struct bsg_job

2016-10-12 Thread Johannes Thumshirn
Add reference counting to 'struct bsg_job' so we can implement a reuqest timeout handler for bsg_jobs, which is needed for Fibre Channel. Signed-off-by: Johannes Thumshirn --- block/bsg-lib.c | 7 +-- include/linux/bsg-lib.h | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) d

Re: [PATCH 6/10] mmc: sdhci-xenon: Add Marvell Xenon SDHC core functionality

2016-10-12 Thread Adrian Hunter
On 12/10/16 14:58, Ziji Hu wrote: > Hi Adrian, > > Thank you very much for your review. > I will firstly fix the typo. > > On 2016/10/11 20:37, Adrian Hunter wrote: >> On 07/10/16 18:22, Gregory CLEMENT wrote: >>> From: Ziji Hu >>> >>> Add Xenon eMMC/SD/SDIO host controller core func

Re: [PATCH v2] timers: Fix usleep_range() in the context of wake_up_process()

2016-10-12 Thread Thomas Gleixner
On Tue, 11 Oct 2016, Andreas Mohr wrote: > On Tue, Oct 11, 2016 at 09:14:38AM +0200, Thomas Gleixner wrote: > > On Mon, 10 Oct 2016, Douglas Anderson wrote: > > > Users of usleep_range() expect that it will _never_ return in less time > > > than the minimum passed parameter. However, nothing in an

[PATCH 3.4 104/125] KEYS: Fix race between read and revoke

2016-10-12 Thread lizf
From: David Howells 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit b4a1b4f5047e4f54e194681125c74c0aa64d637d upstream. This fixes CVE-2015-7550. There's a race between keyctl_read() and keyctl_revoke(). If the revoke happens between key

[PATCH v2 15/16] scsi: fc: move FC transport's bsg code to bsg-lib

2016-10-12 Thread Johannes Thumshirn
Now that all conversions are done, move the FibreChannel bsg code over to the bsg library. Note that CONFIG_SCSI_FC_ATTRS now needs to select BLK_DEV_BSGLIB in order to build correctly. This patch is derived from work done by Mike Christie in 2011 [1] but only the iscsi parts got merged back then.

[PATCH v2 06/16] scsi: fc: provide fc_bsg_to_rport() helper

2016-10-12 Thread Johannes Thumshirn
Provide fc_bsg_to_rport() helper that will become handy when we're moving from struct fc_bsg_job to a plain struct bsg_job. Also move all LLDDs to use the new helper. Signed-off-by: Johannes Thumshirn --- drivers/s390/scsi/zfcp_fc.c | 5 +++-- drivers/scsi/ibmvscsi/ibmvfc.c | 2 +- driver

Re: [PATCH 3.4 065/125] drm/ttm: Fixed a read/write lock imbalance

2016-10-12 Thread Thomas Hellstrom
Li, IIRC This one goes hand in hand with a vmwgfx (the only user) patch. Please don't apply until I've figured out whether that patch is also in 3.4. Thanks, Thomas On 10/12/2016 02:33 PM, l...@kernel.org wrote: > From: Thomas Hellstrom > > 3.4.113-rc1 review patch. If anyone has any objectio

[PATCH v2 11/16] scsi: fc: Use bsg_destroy_job

2016-10-12 Thread Johannes Thumshirn
fc_destroy_bsgjob() and bsg_destroy_job() are now 1:1 copies, so use the later. Signed-off-by: Johannes Thumshirn --- block/bsg-lib.c | 3 ++- drivers/scsi/scsi_transport_fc.c | 20 ++-- include/linux/bsg-lib.h | 1 + 3 files changed, 5 insertions(+),

Re: [PATCH] [RFC] x86: avoid -mtune=atom for objtool warnings

2016-10-12 Thread Josh Poimboeuf
On Tue, Oct 11, 2016 at 10:38:42PM +0200, Arnd Bergmann wrote: > I've reduced one of the test cases to this now: > > /* gcc-6 -O2 -fno-strict-aliasing -fno-reorder-blocks > -fno-omit-frame-pointer -Wno-pointer-sign -fsanitize-coverage=trace-pc -Wall > -Werror -c snic_res.c -o snic_res.o */ > t

Re: [RFC PATCH 05/11] pci: rename *host* directory to *controller*

2016-10-12 Thread Christoph Hellwig
This is a big and painful change. I'd suggest to either drop it for now or convince Bjorn to take it as a scripted renamed just after -rc1.

[PATCH 3.4 110/125] net: possible use after free in dst_release

2016-10-12 Thread lizf
From: Francesco Ruggeri 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 07a5d38453599052aff0877b16bb9c1585f08609 upstream. dst_release should not access dst->flags after decrementing __refcnt to 0. The dst_entry may be in dst_busy_list an

[PATCH 3.4 073/125] 9p: ->evict_inode() should kick out ->i_data, not ->i_mapping

2016-10-12 Thread lizf
From: Al Viro 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 4ad78628445d26e5e9487b2e8f23274ad7b0f5d3 upstream. For block devices the pagecache is associated with the inode on bdevfs, not with the aliasing ones on the mountable filesyste

Re: [PATCHv4] hwmon: Add tc654 driver

2016-10-12 Thread Guenter Roeck
On Tue, Oct 11, 2016 at 10:26:31AM +1300, Chris Packham wrote: > Add support for the tc654 and tc655 fan controllers from Microchip. > > http://ww1.microchip.com/downloads/en/DeviceDoc/20001734C.pdf > > Signed-off-by: Chris Packham > Acked-by: Rob Herring Applied to -next (after fixing continu

[PATCH 3.4 079/125] ses: fix additional element traversal bug

2016-10-12 Thread lizf
From: James Bottomley 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 5e1033561da1152c57b97ee84371dba2b3d64c25 upstream. KASAN found that our additional element processing scripts drop off the end of the VPD page into unallocated space.

Re: [RFC PATCH 01/11] pci: endpoint: add EP core layer to enable EP controller and EP functions

2016-10-12 Thread Christoph Hellwig
> +/** > + * pci_epc_stop() - stop the PCI link > + * @epc: the link of the EPC device that has to be stopped > + * > + * Invoke to stop the PCI link > + */ > +void pci_epc_stop(struct pci_epc *epc) > +{ > + if (IS_ERR(epc) || !epc->ops->stop) > + return; > + > + spin_lock_irq(&

[PATCH v2 01/16] scsi: Get rid of struct fc_bsg_buffer

2016-10-12 Thread Johannes Thumshirn
struct fc_bsg_buffer is just a clone of struct bsg_buffer from bsg-lib, so use this one instead. Signed-off-by: Johannes Thumshirn --- drivers/scsi/lpfc/lpfc_bsg.c | 3 ++- drivers/scsi/scsi_transport_fc.c | 2 +- include/scsi/scsi_transport_fc.h | 12 +++- 3 files changed, 6 inser

Re: [RFC PATCH 02/11] pci: endpoint: introduce configfs entry for configuring EP functions

2016-10-12 Thread Christoph Hellwig
On Wed, Sep 14, 2016 at 10:41:58AM +0530, Kishon Vijay Abraham I wrote: > diff --git a/drivers/pci/endpoint/Kconfig b/drivers/pci/endpoint/Kconfig > index a6d827c..f1dd206 100644 > --- a/drivers/pci/endpoint/Kconfig > +++ b/drivers/pci/endpoint/Kconfig > @@ -13,7 +13,9 @@ config PCI_ENDPOINT > >

[PATCH 3.4 107/125] ocfs2: fix BUG when calculate new backup super

2016-10-12 Thread lizf
From: Joseph Qi 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 5c9ee4cbf2a945271f25b89b137f2c03bbc3be33 upstream. When resizing, it firstly extends the last gd. Once it should backup super in the gd, it calculates new backup super and u

[PATCH v2 00/16] Convert FibreChannel bsg code to use bsg-lib

2016-10-12 Thread Johannes Thumshirn
This series converts the current bsg usage in the FibreChannel drivers over to use bsg-lib. SAS will follow once FC is in a good enough shape. I did take some inspiration from a similar patchset from Mike Christie dating back to 2011 but it's not a 1:1 copy. Patch 15/16 is heavily based on his ser

Re: [PATCH 3.4 027/125] firewire: ohci: fix JMicron JMB38x IT context discovery

2016-10-12 Thread Stefan Richter
On Oct 12 l...@kernel.org wrote: [...] > Signed-off-by: Stefan Richter > [lizf: Backported to 3.4: use dev_notice() instead of ohci_notice()] > Signed-off-by: Zefan Li > --- > drivers/firewire/ohci.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/drivers/firewire/ohci.c b/drivers

[PATCH 3.4 099/125] xen/pciback: Do not install an IRQ handler for MSI interrupts.

2016-10-12 Thread lizf
From: Konrad Rzeszutek Wilk 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit a396f3a210c3a61e94d6b87ec05a75d0be2a60d0 upstream. Otherwise an guest can subvert the generic MSI code to trigger an BUG_ON condition during MSI interrupt freeing

[PATCH 3.4 077/125] ses: Fix problems with simple enclosures

2016-10-12 Thread lizf
From: James Bottomley 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 3417c1b5cb1fdc10261dbed42b05cc93166a78fd upstream. Simple enclosure implementations (mostly USB) are allowed to return only page 8 to every diagnostic query. That real

[PATCH v2 14/16] block: add bsg_job_put() and bsg_job_get()

2016-10-12 Thread Johannes Thumshirn
Add bsg_job_put() and bsg_job_get() so don't need to export bsg_destroy_job() any more. Signed-off-by: Johannes Thumshirn --- block/bsg-lib.c | 17 ++--- drivers/scsi/scsi_transport_fc.c | 4 ++-- include/linux/bsg-lib.h | 3 ++- 3 files changed, 18 insert

[PATCH 3.4 105/125] parisc: Fix syscall restarts

2016-10-12 Thread lizf
From: Helge Deller 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 71a71fb5374a23be36a91981b5614590b9e722c3 upstream. On parisc syscalls which are interrupted by signals sometimes failed to restart and instead returned -ENOSYS which in th

[PATCH 3.4 109/125] ftrace/scripts: Fix incorrect use of sprintf in recordmcount

2016-10-12 Thread lizf
From: Colin Ian King 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 713a3e4de707fab49d5aa4bceb77db1058572a7b upstream. Fix build warning: scripts/recordmcount.c:589:4: warning: format not a string literal and no format arguments [-Wform

[PATCH v2 16/16] block: unexport bsg_softirq_done() again

2016-10-12 Thread Johannes Thumshirn
Unexport bsg_softirq_done() again, we don't need it outside of bsg-lib.c anymore now that scsi_transport_fc is a pure bsg-lib client. Signed-off-by: Johannes Thumshirn --- block/bsg-lib.c | 3 +-- include/linux/bsg-lib.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git

[PATCH 3.4 106/125] ipv6/addrlabel: fix ip6addrlbl_get()

2016-10-12 Thread lizf
From: Andrey Ryabinin 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit e459dfeeb64008b2d23bdf600f03b3605dbb8152 upstream. ip6addrlbl_get() has never worked. If ip6addrlbl_hold() succeeded, ip6addrlbl_get() will exit with '-ESRCH'. If ip6ad

[PATCH 3.4 074/125] crypto: skcipher - Copy iv from desc even for 0-len walks

2016-10-12 Thread lizf
From: "Jason A. Donenfeld" 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 70d906bc17500edfa9bdd8c8b7e59618c7911613 upstream. Some ciphers actually support encrypting zero length plaintexts. For example, many AEAD modes support this. The

[PATCH 3.4 081/125] mm, vmstat: allow WQ concurrency to discover memory reclaim doesn't make any progress

2016-10-12 Thread lizf
From: Michal Hocko 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 373ccbe5927034b55bdc80b0f8b54d6e13fe8d12 upstream. Tetsuo Handa has reported that the system might basically livelock in OOM condition without triggering the OOM killer.

[PATCH v14 08/16] irqchip/gicv3-its: Register the MSI doorbell

2016-10-12 Thread Eric Auger
This patch registers the ITS global doorbell. Registered information are needed to set up the KVM passthrough use case. Signed-off-by: Eric Auger --- v13 -> v14: - use iommu_msi_doorbell_alloc/free v12 -> v13: - use new doorbell registration prototype v11 -> v12: - use new irq_get_msi_doorbell

[PATCH v14 05/16] iommu/dma: Introduce iommu_calc_msi_resv

2016-10-12 Thread Eric Auger
iommu_calc_msi_resv() sum up the number of iommu pages of the lowest order supported by the iommu domain requested to map all the registered doorbells. This function will allow to dimension the intermediate physical address (IPA) aperture requested to map the MSI doorbells. Signed-off-by: Eric Aug

Re: [PATCH] x86/apic: Fix suspicious RCU usage in smp_trace_call_function_interrupt

2016-10-12 Thread Thomas Gleixner
On Wed, 12 Oct 2016, Wanpeng Li wrote: > irq_enter() which is called in scheduler_ipi() is too late to tell RCU > susbstems to end the extended quiescent state before ack_APIC_irq(), > any ideas? You can call irq_enter/exit() in __smp_reschedule_interrupt(). It can be called nested. Thanks,

[PATCH v14 02/16] iommu: Introduce DOMAIN_ATTR_MSI_RESV

2016-10-12 Thread Eric Auger
Introduce a new DOMAIN_ATTR_MSI_RESV domain attribute and associated iommu_domain msi_resv field. It comprises the size and alignment of the IOVA reserved window dedicated to MSI mapping. This attribute only is supported when MSI must be IOMMU mapped. This is the case on ARM. Signed-off-by: Eric

[PATCH v14 04/16] iommu/dma: MSI doorbell alloc/free

2016-10-12 Thread Eric Auger
We introduce the capability to (un)register MSI doorbells. A doorbell region is characterized by its physical address base, size, and whether it its safe (ie. it implements IRQ remapping). A doorbell can be per-cpu or global. We currently only care about global doorbells. A function returns wheth

[PATCH v14 00/16] KVM PCIe/MSI passthrough on ARM/ARM64

2016-10-12 Thread Eric Auger
This is the second respin on top of Robin's series [1], addressing Alex' comments. Major changes are: - MSI-doorbell API now is moved to DMA IOMMU API following Alex suggestion to put all API pieces at the same place (so eventually in the IOMMU subsystem) - new iommu_domain_msi_resv struct an

[PATCH v14 01/16] iommu/iova: fix __alloc_and_insert_iova_range

2016-10-12 Thread Eric Auger
Fix the size check within start_pfn and limit_pfn. Signed-off-by: Eric Auger --- the issue was observed when playing with 1 page iova domain with higher iova reserved. --- drivers/iommu/iova.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/iova.c b/drivers/io

Re: MPOL_BIND on memory only nodes

2016-10-12 Thread Michal Hocko
On Wed 12-10-16 11:43:37, Michal Hocko wrote: > On Wed 12-10-16 14:55:24, Anshuman Khandual wrote: [...] > > Why we insist on __GFP_THISNODE ? > > AFAIU __GFP_THISNODE just overrides the given node to the policy > nodemask in case the current node is not part of that node mask. In > other words we

[PATCH v14 03/16] iommu/dma: Allow MSI-only cookies

2016-10-12 Thread Eric Auger
From: Robin Murphy IOMMU domain users such as VFIO face a similar problem to DMA API ops with regard to mapping MSI messages in systems where the MSI write is subject to IOMMU translation. With the relevant infrastructure now in place for managed DMA domains, it's actually really simple for other

[PATCH v14 06/16] iommu/arm-smmu: Implement domain_get_attr for DOMAIN_ATTR_MSI_RESV

2016-10-12 Thread Eric Auger
ARM smmu and smmu-v3 translate MSI transactions so their driver are must implement domain_get_attr for DOMAIN_ATTR_MSI_RESV. This allows to retrieve the size and alignment requirements of the MSI reserved IOVA window. Also IOMMU_DMA gets selected since it exposes the API to map the MSIs. Signed-

[PATCH v14 07/16] irqchip/gic-v2m: Register the MSI doorbell

2016-10-12 Thread Eric Auger
Register the GIC V2M global doorbell. The registered information are used to set up the KVM passthrough use case. Signed-off-by: Eric Auger --- v13 -> v14: - use iommu_msi_doorbell_alloc/free v12 -> v13: - use new msi doorbell registration prototype - remove iommu protection attributes - add un

<    1   2   3   4   5   6   7   >