[PATCH 4.2.y-ckt 008/211] cxl: Fix number of allocated pages in SPA

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Christophe Lombard commit 4108efb02daa09cbb5db048ada55a5b021b5183d upstream. The scheduled process area is currently allocated before assigning the correct maximum processes to the AFU

[PATCH 4.2.y-ckt 061/211] ALSA: hda - Disable 64bit address for Creative HDA controllers

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit cadd16ea33a938d49aee99edd4758cc76048b399 upstream. We've had many reports that some Creative sound cards with CA0132 don't work well. Some reported that it starts

[PATCH 4.2.y-ckt 060/211] ALSA: hda/realtek - Dell XPS one ALC3260 speaker no sound after resume back

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Kailang Yang commit 6ed1131fe196ad7ffc13acc1a1eadc08a1db0303 upstream. This machine had I2S codec for speaker output. It need to refill the I2S codec initial verb after resume back. S

[PATCH 4.2.y-ckt 058/211] ACPI / PM: Fix incorrect wakeup IRQ setting during suspend-to-idle

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Chen Yu commit 8c01275e0cdf1959aa25c322fd5870c097733195 upstream. For an ACPI compatible system, the SCI (ACPI System Control Interrupt) is used to wake the system up from suspend-to-i

[PATCH 4.2.y-ckt 054/211] i2c: at91: fix write transfers by clearing pending interrupt first

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Cyrille Pitchen commit 6f6ddbb09d2a5baded0e23add3ad2d9e9417ab30 upstream. In some cases a NACK interrupt may be pending in the Status Register (SR) as a result of a previous transfer.

[PATCH 4.2.y-ckt 052/211] [media] media: vb2 dma-sg: Fully cache synchronise buffers in prepare and finish

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Tiffany Lin commit 418dae2276065680bde7ae27d2c075e612a54de6 upstream. In videobuf2 dma-sg memory types the prepare and finish ops, instead of passing the number of entries in the origi

[PATCH 4.2.y-ckt 050/211] spi: dw: explicitly free IRQ handler in dw_spi_remove_host()

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Andy Shevchenko commit 02f20387e1bca550639c37b1945f20cd32ddfcce upstream. The following warning occurs when DW SPI is compiled as a module and it's a PCI device. On the removal stage p

Re: [PATCH v7 0/4] Allow customizable random offset to mmap_base address.

2016-01-05 Thread Kees Cook
On Mon, Dec 21, 2015 at 9:26 AM, Daniel Cashman wrote: > Address Space Layout Randomization (ASLR) provides a barrier to exploitation > of user-space processes in the presence of security vulnerabilities by making > it more difficult to find desired code/data which could help an attack. This >

[PATCH 4.2.y-ckt 011/211] net: bcmgenet: Use correct dev_id for free_irq

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Florian Fainelli commit 978ffac4189e8bb7e74bce6463e501a7b92555af upstream. bcmgenet_open()'s error path call free_irq() with a dev_id argument different from the one we used to call re

[PATCH 4.2.y-ckt 047/211] tpm, tpm_crb: fix unaligned read of the command buffer address

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Jarkko Sakkinen commit 149789ce9d472e6b4fd99336e779ab843754a96c upstream. The command buffer address must be read with exactly two 32-bit reads. Otherwise, on some HW platforms, it see

[PATCH 4.2.y-ckt 044/211] jbd2: fix checkpoint list cleanup

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Jan Kara commit 33d14975e5ac469963d5d63856b61698ad0bff07 upstream. Unlike comments and expectation of callers journal_clean_one_cp_list() returned 1 not only if it freed the transactio

[PATCH 4.2.y-ckt 009/211] xhci: don't finish a TD if we get a short transfer event mid TD

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Mathias Nyman commit e210c422b6fdd2dc123bedc588f399aefd8bf9de upstream. If the difference is big enough between the bytes asked and received in a bulk transfer we can get a short trans

[PATCH 4.2.y-ckt 045/211] [PATCH] fix calculation of meta_bg descriptor backups

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Andy Leiserson commit 904dad4742d211b7a8910e92695c0fa957483836 upstream. "group" is the group where the backup will be placed, and is initialized to zero in the declaration. This meant

[PATCH 4.2.y-ckt 048/211] tpm, tpm_tis: fix tpm_tis ACPI detection issue with TPM 2.0

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Jarkko Sakkinen commit 399235dc6e95400a1322ae92073bc572f0c8 upstream. Both for FIFO and CRB interface TCG has decided to use the same HID MSFT0101. They can be differentiated by lo

[PATCH 4.2.y-ckt 049/211] drm/amdgpu/gfx8: set TC_WB_ACTION_EN in RELEASE_MEM packet

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Alex Deucher commit a3d5aaa836ed993747af7b53cfca1b3cd3c9fc46 upstream. This is the recommended setting from the hw team for newer versions of the firmware. Reviewed-by: Christian Köni

[PATCH 4.2.y-ckt 051/211] [media] media: vb2 dma-contig: Fully cache synchronise buffers in prepare and finish

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Tiffany Lin commit d9a985883fa32453d099d6293188c11d75cef1fa upstream. In videobuf2 dma-contig memory type the prepare and finish ops, instead of passing the number of entries in the or

[PATCH 4.2.y-ckt 053/211] [media] media/v4l2-ctrls: fix setting autocluster to manual with VIDIOC_S_CTRL

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Antonio Ospite commit 759b26a1d916400a1a20948eb964dea6ad0bd9e9 upstream. Since commit 5d0360a4f027576e5419d4a7c711c9ca0f1be8ca it's not possible anymore to set auto clusters from auto

[PATCH 4.2.y-ckt 068/211] mtd: blkdevs: fix potential deadlock + lockdep warnings

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Brian Norris commit f3c63795e90f0c6238306883b6c72f14d5355721 upstream. Commit 073db4a51ee4 ("mtd: fix: avoid race condition when accessing mtd->usecount") fixed a race condition but du

[PATCH 4.2.y-ckt 042/211] iommu/vt-d: Fix ATSR handling for Root-Complex integrated endpoints

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: David Woodhouse commit d14053b3c714178525f22660e6aaf41263d00056 upstream. The VT-d specification says that "Software must enable ATS on endpoint devices behind a Root Port only if the

[PATCH 4.2.y-ckt 007/211] drm/radeon: fix quirk for MSI R7 370 Armor 2X

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Maxim Sheviakov commit 515c752dabee9945c1e8686c87f7cdeb3935eea4 upstream. There was a typo in the original. bug: https://bugs.freedesktop.org/show_bug.cgi?id=92865 Signed-off-by: Max

[PATCH 4.2.y-ckt 006/211] drm/radeon: add quirk for ASUS R7 370

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Alex Deucher commit 2b02ec79004388a8c65e227bc289ed891b5ac8c6 upstream. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=92260 Signed-off-by: Alex Deucher Signed-off-by: Kamal Mostaf

[PATCH 4.2.y-ckt 038/211] integrity: prevent loading untrusted certificates on the IMA trusted keyring

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Dmitry Kasatkin commit 72e1eed8abb11c79749266d433c817ce36732893 upstream. If IMA_LOAD_X509 is enabled, either directly or indirectly via IMA_APPRAISE_SIGNED_INIT, certificates are load

[PATCH 4.2.y-ckt 043/211] iommu/arm-smmu: Fix error checking for ASID and VMID allocation

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Will Deacon commit c0733a2cf30c1e7923b6ad4f8df67941502923de upstream. The bitmap allocator returns an int, which is one of the standard negative values on failure. Rather than assignin

[PATCH 4.2.y-ckt 005/211] drm/radeon: add quirk for MSI R7 370

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Maxim Sheviakov commit e78654799135a788a941bacad3452fbd7083e518 upstream. Just adds the quirk for MSI R7 370 Armor 2X Bug: https://bugs.freedesktop.org/show_bug.cgi?id=91294 Signed-of

[PATCH 4.2.y-ckt 041/211] lockd: create NSM handles per net namespace

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Andrey Ryabinin commit 0ad95472bf169a3501991f8f33f5147f792a8116 upstream. Commit cb7323fffa85 ("lockd: create and use per-net NSM RPC clients on MON/UNMON requests") introduced per-ne

[PATCH 4.2.y-ckt 037/211] drm/i915: Fix userptr deadlock with aliased GTT mmappings

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Chris Wilson commit e4b946bfe1e36680e27a5f39163980979fa61a5d upstream. Michał Winiarski found a really evil way to trigger a struct_mutex deadlock with userptr. He found that if he all

[PATCH] x86/microcode: Remove redundant __setup() param parsing

2016-01-05 Thread Borislav Petkov
From: Borislav Petkov We do parse for the disable microcode loader chicken bit very early. After the driver merge, the __setup() param parsing method is not needed anymore so get rid of it. In addition, fix a compiler warning from an old SLES11 gcc (4.3.4) reported by Jan Beulich : arch/x86/k

[PATCH 4.2.y-ckt 040/211] spi: ti-qspi: Fix data corruption seen on r/w stress test

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Vignesh R commit bc27a53928981662079aa243915b443370294a03 upstream. Writing invalid command to QSPI_SPI_CMD_REG will terminate current transfer and de-assert the chip select. This has

Re: [PATCH] futex: Reduce the scope of lock_page, aka lockless futex_get_key()

2016-01-05 Thread Davidlohr Bueso
On Tue, 05 Jan 2016, Peter Zijlstra wrote: On Tue, Jan 05, 2016 at 12:23:55PM -0800, Davidlohr Bueso wrote: + if (unlikely(!mapping)) { + int shmem_swizzled; + + /* +* Page lock is required to identify which special case above +*

Re: [PATCH v2 10/14] serial: pic32_uart: Add PIC32 UART driver

2016-01-05 Thread One Thousand Gnomes
> +#define PIC32_SDEV_NAME "ttyS" > +#define PIC32_SDEV_MAJOR TTY_MAJOR > +#define PIC32_SDEV_MINOR 64 No. Same goes for you as every one of the forty other people a year who try and claim their console is ttyS. If it's not an 8250 it isn't. ttyS is the 8250, use dynamic maj

[PATCH 4.2.y-ckt 039/211] f2fs crypto: allocate buffer for decrypting filename

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Jaegeuk Kim commit 569cf1876a32e574ba8a7fb825cd91bafd003882 upstream. We got dentry pages from high_mem, and its address space directly goes into the decryption path via f2fs_fname_dis

[PATCH 4.2.y-ckt 036/211] drm/i915: Only update the current userptr worker

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Chris Wilson commit 68d6c840595849c0d29f6c52bc75b44ded66b41f upstream. The userptr worker allows for a slight race condition where upon there may two or more threads calling get_user_p

[PATCH 4.2.y-ckt 033/211] [media] v4l2-ctrls: arrays are also considered compound controls

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Hans Verkuil commit 35204e2e84f2dae72012f8ca319659c12f428430 upstream. Array controls weren't skipped when only V4L2_CTRL_FLAG_NEXT_CTRL was provided (so no V4L2_CTRL_FLAG_NEXT_COMPOUN

[PATCH 4.2.y-ckt 032/211] mtd: mtdpart: fix add_mtd_partitions error path

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Boris BREZILLON commit e5bae86797141e4a95e42d825f737cb36d7b8c37 upstream. If we fail to allocate a partition structure in the middle of the partition creation process, the already allo

[PATCH 4.2.y-ckt 031/211] [media] v4l2-compat-ioctl32: fix alignment for ARM64

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Andrzej Hajda commit 655e9780ab913a3a06d4a164d55e3b755524186d upstream. Alignment/padding rules on AMD64 and ARM64 differs. To allow properly match compatible ioctls on ARM64 kernels w

[PATCH 4.2.y-ckt 034/211] [media] media: v4l2-ctrls: Fix 64bit support in get_ctrl()

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Benoit Parrot commit a8077734055f870ba630563868a6349671ca8dfc upstream. When trying to use v4l2_ctrl_g_ctrl_int64() to retrieve a V4L2_CTRL_TYPE_INTEGER64 type value the internal helpe

[PATCH 4.2.y-ckt 004/211] x86/xen: Do not clip xen_e820_map to xen_e820_map_entries when sanitizing map

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Malcolm Crossley commit 64c98e7f49100b637cd20a6c63508caed6bbba7a upstream. Sanitizing the e820 map may produce extra E820 entries which would result in the topmost E820 entries being r

[PATCH 4.2.y-ckt 035/211] ubi: fastmap: Implement produce_free_peb()

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Richard Weinberger commit 1cb8f9776c7dcadc57885c6653943511d282633b upstream. If fastmap requests a free PEB for a pool and UBI is busy with erasing PEBs we need to offer a function to

[PATCH 4.2.y-ckt 020/211] KEYS: Fix crash when attempt to garbage collect an uninstantiated keyring

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: David Howells commit f05819df10d7b09f6d1eb6f8534a8f68e5a4fe61 upstream. The following sequence of commands: i=`keyctl add user a a @s` keyctl request2 keyring foo bar @t k

[PATCH 4.2.y-ckt 029/211] KVM: svm: unconditionally intercept #DB

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Paolo Bonzini commit cbdb967af3d54993f5814f1cee0ed311a055377d upstream. This is needed to avoid the possibility that the guest triggers an infinite stream of #DB exceptions (CVE-2015-8

[PATCH 4.2.y-ckt 023/211] vxlan: set needed headroom correctly

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Jiri Benc commit 9dc2ad1008c9f91f55ec6c89ec0f8639dfc91596 upstream. vxlan_setup is called when allocating the net_device, i.e. way before vxlan_newlink (or vxlan_dev_configure) is call

[PATCH 4.2.y-ckt 001/211] mxc_nand: fix copy_spare

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Eric Benard commit e5a5d92d9dc36055b971d79e408e345f5ce88701 upstream. it was broken by 35d5d20efad8a04c8c002c7f31241dff973977a6 "mtd: mxc_nand: cleanup copy_spare function" else we ge

[PATCH 4.2.y-ckt 028/211] ipv6: Fix IPsec pre-encap fragmentation check

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Herbert Xu commit 93efac3f2e03321129de67a3c0ba53048bb53e31 upstream. The IPv6 IPsec pre-encap path performs fragmentation for tunnel-mode packets. That is, we perform fragmentation pr

[PATCH 4.2.y-ckt 025/211] ppp, slip: Validate VJ compression slot parameters completely

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings commit 4ab42d78e37a294ac7bc56901d563c642e03c4ae upstream. Currently slhc_init() treats out-of-range values of rslots and tslots as equivalent to 0, except that if tslots

[PATCH v2] spi: sun4i: Prevent chip-select from being activated twice before a transfer

2016-01-05 Thread Marcus Weseloh
The SPI core calls set_cs before a transfer, but the SUN4I_CTL_CS_MANUAL flag is only set in transfer_one. This leads to the following pattern on the chip-select line (with runtime power-management on every transfer, without it only on the first one): activate, deactivate, activate, transfer, deac

Re: [PATCH 3.12 00/91] 3.12.52-stable review

2016-01-05 Thread Guenter Roeck
On Tue, Jan 05, 2016 at 06:46:04PM +0100, Jiri Slaby wrote: > This is the start of the stable review cycle for the 3.12.52 release. > There are 91 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. > > R

[PATCH 4.2.y-ckt 024/211] isdn_ppp: Add checks for allocation failure in isdn_ppp_open()

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings commit 0baa57d8dc32db78369d8b5176ef56c5e2e18ab3 upstream. Compile-tested only. Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller Signed-off-by: Kamal Mostafa

[PATCH 4.2.y-ckt 002/211] drivers: usb :fsl: Implement Workaround for USB Erratum A007792

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Nikhil Badola commit 523f1dec58408b36e7683a3d61a0286eed1fc1c8 upstream. USB controller version-2.5 requires to enable internal UTMI phy and program PTS field in PORTSC register before

[PATCH 4.2.y-ckt 030/211] HID: core: Avoid uninitialized buffer access

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Richard Purdie commit 79b568b9d0c7c5d81932f4486d50b38efdd6da6d upstream. hid_connect adds various strings to the buffer but they're all conditional. You can find circumstances where no

[PATCH 4.2.y-ckt 022/211] ARM: OMAP2+: board-generic: Remove stale of_irq macros

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Nishanth Menon commit a3b7470951ab49e5592d20c2bcfe5ee675221591 upstream. When commit c4082d499fa2 ("ARM: omap2+: board-generic: clean up the irq data from board file") cleaned up the d

Re: [PATCH] Add possibility to set /dev/tty number

2016-01-05 Thread One Thousand Gnomes
> This means that not including the VT subsystem resulted in a 128k > reduction in runtime footprint, and having only half the number of VT's > resulted in a 52k reduction. Assuming a linear correlation between the > number of VT's and the runtime footprint of the subsystem, that means > the s

[PATCH 4.2.y-ckt 026/211] [media] media/vivid-osd: fix info leak in ioctl

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: =?UTF-8?q?Salva=20Peir=C3=B3?= commit eda98796aff0d9bf41094b06811f5def3b4c333c upstream. The vivid_fb_ioctl() code fails to initialize the 16 _reserved bytes of struct fb_vblank after

[PATCH 4.2.y-ckt 019/211] KEYS: Fix race between key destruction and finding a keyring by name

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: David Howells commit 94c4554ba07adbdde396748ee7ae01e86cf2d8d7 upstream. There appears to be a race between: (1) key_gc_unused_keys() which frees key->security and then calls key

[PATCH 4.2.y-ckt 018/211] scsi_dh: fix randconfig build error

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Christoph Hellwig commit 294ab783ad98066b87296db1311c7ba2a60206a5 upstream. It looks like the Kconfig check that was meant to fix this (commit fe9233fb6914a0eb20166c967e3020f7f0fba2c9

[PATCH 4.2.y-ckt 017/211] netlink, mmap: fix edge-case leakages in nf queue zero-copy

2016-01-05 Thread Kamal Mostafa
4.2.8-ckt1 -stable review patch. If anyone has any objections, please let me know. -- From: Daniel Borkmann commit 6bb0fef489f667cf701853054f44579754f00a06 upstream. When netlink mmap on receive side is the consumer of nf queue data, it can happen that in some edge cases, we

Re: [RFC/PATCH] perf report: Show random usage tip on the help line

2016-01-05 Thread Andi Kleen
> Btw, does anyone have some tips to add? :) Use perf script to show individual samples Use perf report --percent-limit 5 to only show entires above 5% Use perf record -b -g / perf report --branch-history to show branch events Use perf record -b / perf report to show branch mispredictions Use perf

[PATCH 00/35 v2] separate operations from flags in the bio/request structs

2016-01-05 Thread mchristi
point, we abused them so much we just made cmd_flags 64 bits, so we could add more. The following patches seperate the operation (read, write discard, flush, etc) from cmd_flags/bi_rw. This patchset was made against linux-next from today Jan 5 2016. (git tag next-20160105). v2. 1. Dropped arg

Re: linux-next: manual merge of the rdma tree with the net-next tree

2016-01-05 Thread Stephen Rothwell
Hi Or, On Tue, 5 Jan 2016 19:05:24 +0200 Or Gerlitz wrote: > > On 1/5/2016 3:51 AM, Stephen Rothwell wrote: > > Hi Doug, > > > > Today's linux-next merge of the rdma tree got conflicts in: > > > >drivers/net/ethernet/mellanox/mlx5/core/vport.c > >include/linux/mlx5/mlx5_ifc.h > >inclu

[PATCH v4] iio: add ad5761 DAC driver

2016-01-05 Thread Ricardo Ribalda Delgado
ad5761 is a 1-channel DAC with configurable output range. The driver uses the regulator interface for its voltage ref. It shares its register layout with ad5761r, ad5721 and ad5721r. Differences: ad5761* are 16 bit, ad5721* are 12 bits. ad57*1r have an internal reference. Signed-off-by: Ricardo

[PATCH 30/35] block, fs, drivers: do not test bi_rw for REQ_OPs

2016-01-05 Thread mchristi
From: Mike Christie We no longer use the bio->bi_rw field for REQ_OPs: REQ_WRITE, REQ_DISCARD, REQ_WRITE_SAME, so this patch stops checking for them in bi_rw and also removes the related compat code. Signed-off-by: Mike Christie --- block/bio.c | 6 +++--- bloc

[PATCH 35/35] block, drivers, fs: rename REQ_FLUSH to REQ_PREFLUSH

2016-01-05 Thread mchristi
From: Mike Christie To avoid confusion between REQ_OP_FLUSH, which is handled by request_fn drivers, and upper layers requesting the block layer perform a flush sequence along with possibly a WRITE, this patch renames REQ_FLUSH to REQ_PREFLUSH. Signed-off-by: Mike Christie --- Documentation/bl

[PATCH 32/35] block: shrink bi_rw and bi_op

2016-01-05 Thread mchristi
From: Mike Christie There is no need for bi_op/op and bi_rw to be so large now, so this patch shrinks them. Signed-off-by: Mike Christie --- block/blk-core.c | 2 +- drivers/md/dm-flakey.c | 2 +- drivers/md/raid5.c | 13 +++-- fs/btrfs/check-integrity.c | 4 ++

[PATCH 31/35] block, fs: remove old REQ definitions.

2016-01-05 Thread mchristi
From: Mike Christie We no longer use REQ_WRITE. REQ_WRITE_SAME and REQ_DISCARD, so this patch removes them. Signed-off-by: Mike Christie --- include/linux/blk_types.h | 19 +-- include/linux/fs.h | 21 +++-- include/trace/events/f2fs.h | 1 - 3 files

[PATCH 33/35] block, drivers: add REQ_OP_FLUSH operation

2016-01-05 Thread mchristi
From: Mike Christie This adds a REQ_OP_FLUSH operation that is sent to request_fn based drivers by the block layer's flush code, instead of sending requests with the request->cmd_flags REQ_FLUSH bit set. For the following 3 flush related patches, I have not tested every driver. I have only teste

[PATCH 03/35] block, fs, mm, drivers: set bi_op to REQ_OP

2016-01-05 Thread mchristi
From: Mike Christie This patch converts the simple bi_rw use cases in the block, drivers, mm and fs code to use bi_op for a REQ_OP and bi_rw for rq_flag_bits. These should be simple one liner cases, so I just did them in one patch. The next patches handle the more complicated cases in a module p

[PATCH 34/35] block: add QUEUE_FLAGs for flush and fua

2016-01-05 Thread mchristi
From: Mike Christie The last patch added a REQ_OP_FLUSH for request_fn drivers and the next patch renames REQ_FLUSH to REQ_PREFLUSH which will be used by file systems and make_request_fn drivers. This leaves REQ_FLUSH/REQ_FUA defined for drivers to tell the block layer if flush/fua is supported.

[PATCH 26/35] block: set op to REQ_OP

2016-01-05 Thread mchristi
From: Mike Christie This patch converts the request related block layer code to set request->op to a REQ_OP and cmd_flags to rq_flag_bits. There is some tmp compat code when setting up cmd_flags so it still carries both the op and flags. It will be removed in in later patches in this set when I

Re: [RFC/PATCH] perf report: Show random usage tip on the help line

2016-01-05 Thread Arnaldo Carvalho de Melo
Em Wed, Jan 06, 2016 at 04:19:25AM +0900, Namhyung Kim escreveu: > Hi Arnaldo, > > On Tue, Jan 05, 2016 at 01:40:10PM -0300, Arnaldo Carvalho de Melo wrote: > > Em Tue, Jan 05, 2016 at 07:43:07PM +0900, Namhyung Kim escreveu: > > > On Tue, Jan 05, 2016 at 02:32:47PM +0800, Wangnan (F) wrote: > > >

[PATCH 20/35] dm: pass dm stats data dir instead of bi_rw

2016-01-05 Thread mchristi
From: Mike Christie It looks like dm stats cares about the data direction (READ vs WRITE) and does not need the bio/request flags. Commands like REQ_FLUSH, REQ_DISCARD and REQ_WRITE_SAME are currently always set with REQ_WRITE, so the extra check for REQ_DISCARD in dm_stats_account_io is not need

[PATCH 11/35] f2fs: set bi_op to REQ_OP

2016-01-05 Thread mchristi
From: Mike Christie This patch has f2fs set the bio bi_op to a REQ_OP, and rq_flag_bits to bi_rw. This patch is compile tested only. Signed-off-by: Mike Christie --- fs/f2fs/checkpoint.c| 10 ++ fs/f2fs/data.c | 33 - fs/f2fs/f2fs.h

[PATCH 10/35] btrfs: don't pass rq_flag_bits if there is a bio

2016-01-05 Thread mchristi
From: Mike Christie The bio bi_op and bi_rw is now setup, so there is no need to pass around the rq_flag_bits bits too. Signed-off-by: Mike Christie --- fs/btrfs/compression.c | 9 - fs/btrfs/disk-io.c | 30 -- fs/btrfs/disk-io.h | 2 +- fs/btrfs/e

[PATCH 25/35] target: set bi_op to REQ_OP

2016-01-05 Thread mchristi
From: Mike Christie This patch has the target modules set the bio bi_op to a REQ_OP, and rq_flag_bits to bi_rw. This patch is compile tested only. Signed-off-by: Mike Christie --- drivers/target/target_core_iblock.c | 38 ++--- drivers/target/target_core_pscsi.

Re: [PATCH v3 09/17] drivers: Initialize resource entry to zero

2016-01-05 Thread Helge Deller
On 05.01.2016 19:54, Toshi Kani wrote: > I/O resource descriptor, 'desc' in struct resource, needs to be > initialized to zero by default. Some drivers call kmalloc() to > allocate a resource entry, but does not initialize it to zero by > memset(). Change these drivers to call kzalloc(), instead.

[PATCH 24/35] xen: set bi_op to REQ_OP

2016-01-05 Thread mchristi
From: Mike Christie This patch has xen set the bio bi_op to a REQ_OP, and rq_flag_bits to bi_rw. This patch is compile tested only. Signed-off-by: Mike Christie --- drivers/block/xen-blkback/blkback.c | 29 + 1 file changed, 17 insertions(+), 12 deletions(-) diff

[PATCH][v4.2.y-ckt] net/mlx5e: Max mtu comparison fix

2016-01-05 Thread Joseph Salisbury
Hello, Please consider including mainline commit 50a9eea694ab8e0779069e0a4e0b12e145521468 in the next v4.2.y-ckt release. It was included in the mainline tree as of v4.4-rc2. It has been tested and confirmed to resolve: http://bugs.launchpad.net/bugs/1528466 commit 50a9eea694ab8e0779069e0a4e0b1

[PATCH 29/35] ide cd: do not set REQ_WRITE on requests.

2016-01-05 Thread mchristi
From: Mike Christie The block layer will set the correct READ/WRITE operation flags/fields when creating a request, so there is not need for drivers to set the REQ_WRITE flag. This patch is compile tested only. Signed-off-by: Mike Christie --- drivers/ide/ide-cd_ioctl.c | 3 --- 1 file change

Re: [RFC/PATCH] perf report: Show random usage tip on the help line

2016-01-05 Thread Andi Kleen
> > Thanks for the info. It's really easy doing that, nice.. > > > I understand what he suggesting, but not why. :) > > Because then adding new tips will not require rebuilding the tool? It would still need rebuilding if it was compiled in at build time. The main advantage of having the sourc

Re: BUG: KASAN: use-after-free in xfs_iflush_cluster+0x9d7/0xaf0

2016-01-05 Thread Dave Chinner
On Tue, Jan 05, 2016 at 05:30:55PM +0100, Andrea Gelmini wrote: > On Mon, Jan 04, 2016 at 07:47:58AM +1100, Dave Chinner wrote: > > > I'm recompiling, to try it again. > > > Maybe, in the meanwhile, you can do something with my files. You can find > > > 'em here: > > > http://mail.gelma.net/xfs_ka

[PATCH 16/35] nilfs: set bi_op to REQ_OP

2016-01-05 Thread mchristi
From: Mike Christie This patch has nilfs set the bio bi_op to a REQ_OP, and rq_flag_bits to bi_rw. This patch is compile tested only. Signed-off-by: Mike Christie --- fs/nilfs2/segbuf.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/fs/nilfs2/segbuf.c

[PATCH 23/35] md/raid: set bi_op to REQ_OP

2016-01-05 Thread mchristi
From: Mike Christie This patch has md/raid set the bio bi_op to a REQ_OP, and rq_flag_bits to bi_rw. This patch is compile tested only. Signed-off-by: Mike Christie --- drivers/md/bitmap.c | 2 +- drivers/md/dm-raid.c | 5 +++-- drivers/md/md.c | 11 +++ drivers/md

[PATCH 22/35] drbd: set bi_op to REQ_OP

2016-01-05 Thread mchristi
From: Mike Christie This patch has drbd set the bio bi_op to a REQ_OP, and rq_flag_bits to bi_rw. Lars and Philip, I might have split this patch up a little weird. Thisi patch handles setting up the bio, and then patch 30 (0030-block-fs-drivers-do-not-test-bi_rw-for-REQ_OPs.patch) handles where

[PATCH 19/35] dm: set bi_op to REQ_OP

2016-01-05 Thread mchristi
From: Mike Christie This patch has dm set the bio bi_op to a REQ_OP, and rq_flag_bits to bi_rw. I did some basic dm tests, but I think this patch should be considered compile tested only. I have not tested all the dm targets and I did not stress every code path I have touched. Signed-off-by: Mi

Re: Does vm_operations_struct require a .owner field?

2016-01-05 Thread Kirill A. Shutemov
On Tue, Jan 05, 2016 at 11:27:45AM -0500, Alan Stern wrote: > Hello: > > Question: The vm_operations_struct structure contains lots of callback > pointers. Is there any mechanism to prevent the callback routines and > the structure itself being unloaded from memory (if they are built into > modul

[PATCH 21/35] bcache: set bi_op to REQ_OP

2016-01-05 Thread mchristi
From: Mike Christie This patch has bcache set the bio bi_op to a REQ_OP, and rq_flag_bits to bi_rw. This patch is compile tested only. Signed-off-by: Mike Christie --- drivers/md/bcache/btree.c | 2 ++ drivers/md/bcache/debug.c | 2 ++ drivers/md/bcache/io.c| 2 +- drivers/

Re: [PATCH] perf, tools, stat: Force C numeric locale for CSV mode

2016-01-05 Thread Jiri Olsa
On Tue, Jan 05, 2016 at 11:17:45AM -0800, Andi Kleen wrote: > From: Andi Kleen > > Some locales print floating point numbers with a comma instead of a dot. > This causes problems with CSV mode because it causes extra false CSV > fields. Force the numeric locale to be always C in CSV mode. > > Be

[PATCH 17/35] ocfs2: set bi_op to REQ_OP

2016-01-05 Thread mchristi
From: Mike Christie This patch has ocfs2 set the bio bi_op to a REQ_OP, and rq_flag_bits to bi_rw. This patch is compile tested only. Signed-off-by: Mike Christie --- fs/ocfs2/cluster/heartbeat.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/fs/ocfs2/cluster/

[PATCH 18/35] pm: set bi_op to REQ_OP

2016-01-05 Thread mchristi
From: Mike Christie This patch has the pm swap code set the bio bi_op to a REQ_OP, and rq_flag_bits to bi_rw. This patch is compile tested only. Signed-off-by: Mike Christie --- kernel/power/swap.c | 31 +++ 1 file changed, 19 insertions(+), 12 deletions(-) diff -

[PATCH 28/35] blktrace: get op from req->op/bio->bi_op

2016-01-05 Thread mchristi
From: Mike Christie The bio and request struct now store the operation in bio->bi_op/request->op. This patch has blktrace not check bi_rw/cmd_flags. This patch is only compile tested. Signed-off-by: Mike Christie --- include/linux/blktrace_api.h | 2 +- include/trace/events/bcache.h | 12 ++

[PATCH 27/35] drivers: set request op to REQ_OP

2016-01-05 Thread mchristi
From: Mike Christie This patch has the block driver use the request->op for REQ_OP operations and cmd_flags for rq_flag_bits. I have only tested scsi and rbd. Signed-off-by: Mike Christie --- drivers/block/loop.c | 6 +++--- drivers/block/mtip32xx/mtip32xx.c | 2 +- drivers/blo

[PATCH 6/8] perf script: Display stat events by default

2016-01-05 Thread Jiri Olsa
If no script is specified for stat data, display stat events in raw form. $ perf stat record ls SNIP Performance counter stats for 'ls': 0.851585 task-clock (msec) #0.717 CPUs utilized 0 context-switches #0.000 K/sec

[PATCH 2/8] perf script: Process cpu/threads maps

2016-01-05 Thread Jiri Olsa
Adding processing of cpu/threads maps. Configuring session's evlist with these maps. Tested-by: Kan Liang Link: http://lkml.kernel.org/n/tip-s3txa1u2qv3bi8uspp4hi...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-script.c | 67 + 1 fil

RE: [lustre-devel] [PATCH] staging: lustre/lustre/libcfs: Fix type mismatch reported by sparse

2016-01-05 Thread Simmons, James A.
>>>2. Is it OK to hardcode the appropriate gfp_t flags for the >>>IOC_LIBCFS_MEMHOG, as the userspace >>>seems to be taking the decision about the page allocation >>>zone/strategy, is this what is intended? >> >> The memhog functionality is used to introduce memory pressure on a client >> or server

[PATCH 7/8] perf script: Add python support for stat events

2016-01-05 Thread Jiri Olsa
Add support to get stat events data in perf python scripts. The python script shall implement following new interface to process stat data: def stat___[](cpu, thread, time, val, ena, run): - is called for every stat event for given counter, if user monitors 'cycles,instructions:u" fo

[PATCH 14/35] hfsplus: set bi_op to REQ_OP

2016-01-05 Thread mchristi
From: Mike Christie This patch has hfsplus set the bio bi_op to a REQ_OP, and rq_flag_bits to bi_rw. This patch is compile tested only. Signed-off-by: Mike Christie --- fs/hfsplus/hfsplus_fs.h | 2 +- fs/hfsplus/part_tbl.c | 5 +++-- fs/hfsplus/super.c | 6 -- fs/hfsplus/wrapper

[PATCH 09/35] btrfs: update __btrfs_map_block for bi_op transition

2016-01-05 Thread mchristi
From: Mike Christie We no longer pass in a bitmap of rq_flag_bits bits to __btrfs_map_block. It will always be a REQ_OP, or the btrfs specific REQ_GET_READ_MIRRORS, so this drops the bit tests. Signed-off-by: Mike Christie --- fs/btrfs/extent-tree.c | 2 +- fs/btrfs/inode.c | 2 +- fs/

[PATCH 3/8] perf script: Process stat config event

2016-01-05 Thread Jiri Olsa
Adding processing of stat config event and initialize stat_config object. Tested-by: Kan Liang Link: http://lkml.kernel.org/n/tip-1m1s8mahzq38foo32qb7p...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/builtin-script.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/tool

[PATCH 02/35] block: add REQ_OP definitions and bi_op/op fields

2016-01-05 Thread mchristi
From: Mike Christie The following patches separate the operation (write, read, discard, etc) from the flags in bi_rw/cmd_flags. This patch adds definitions for request/bio operations, adds fields to the request/bio to set them, and some temporary compat code so the kernel/modules can use either o

[PATCH 4/8] perf script: Add process_stat/process_stat_interval scripting interface

2016-01-05 Thread Jiri Olsa
Python and perl scripting code will define those callbacks and get stat data. Tested-by: Kan Liang Link: http://lkml.kernel.org/n/tip-6802z3siu5f59wdsmhaym...@git.kernel.org Signed-off-by: Jiri Olsa --- tools/perf/util/trace-event.h | 4 1 file changed, 4 insertions(+) diff --git a/tools/

[PATCHv8 0/8] perf stat: Add scripting support

2016-01-05 Thread Jiri Olsa
hi, sending another version of stat scripting. v8 changes: - check for stat callbacks properly [Namhyung] - used '#!/usr/bin/env python' for stat-cpi.py [Namhyung] - used tuple_set_u64 for storing u64 into python tuple [Namhyung] v7 changes: - perf stat record/report patches already taken

Re: [PATCH] futex: Reduce the scope of lock_page, aka lockless futex_get_key()

2016-01-05 Thread Davidlohr Bueso
On Tue, 05 Jan 2016, Bueso wrote: On Tue, 05 Jan 2016, Peter Zijlstra wrote: On Tue, Jan 05, 2016 at 12:23:55PM -0800, Davidlohr Bueso wrote: + if (unlikely(!mapping)) { + int shmem_swizzled; + + /* +* Page lock is required to identify which s

<    4   5   6   7   8   9   10   11   12   >