[PATCH AUTOSEL for 4.9 049/100] IB/rxe: increment msn only when completing a request

2017-12-12 Thread alexander . levin
From: David Marchand [ Upstream commit 9fcd67d1772c43d2f23e8fca56acc7219e991676 ] According to C9-147, MSN should only be incremented when the last packet of a multi packet request has been received. "Logically, the requester associates a sequential Send Sequence

[PATCH AUTOSEL for 4.9 049/100] IB/rxe: increment msn only when completing a request

2017-12-12 Thread alexander . levin
From: David Marchand [ Upstream commit 9fcd67d1772c43d2f23e8fca56acc7219e991676 ] According to C9-147, MSN should only be incremented when the last packet of a multi packet request has been received. "Logically, the requester associates a sequential Send Sequence Number (SSN) with each WQE

[PATCH AUTOSEL for 4.9 046/100] nbd: set queue timeout properly

2017-12-12 Thread alexander . levin
From: Josef Bacik [ Upstream commit f8586855031a1d6b243f013c3082631346fddfad ] We can't just set the timeout on the tagset, we have to set it on the queue as it would have been setup already at this point. Signed-off-by: Josef Bacik Signed-off-by: Jens Axboe

[PATCH AUTOSEL for 4.9 046/100] nbd: set queue timeout properly

2017-12-12 Thread alexander . levin
From: Josef Bacik [ Upstream commit f8586855031a1d6b243f013c3082631346fddfad ] We can't just set the timeout on the tagset, we have to set it on the queue as it would have been setup already at this point. Signed-off-by: Josef Bacik Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL for 4.9 048/100] IB/rxe: double free on error

2017-12-12 Thread alexander . levin
From: Dan Carpenter [ Upstream commit ded260235308f340b979258a4c736e06ba12c747 ] "goto err;" has it's own kfree_skb() call so it's a double free. We only need to free on the "goto exit;" path. Fixes: 8700e3e7c485 ("Soft RoCE driver") Signed-off-by: Dan Carpenter

[PATCH AUTOSEL for 4.9 048/100] IB/rxe: double free on error

2017-12-12 Thread alexander . levin
From: Dan Carpenter [ Upstream commit ded260235308f340b979258a4c736e06ba12c747 ] "goto err;" has it's own kfree_skb() call so it's a double free. We only need to free on the "goto exit;" path. Fixes: 8700e3e7c485 ("Soft RoCE driver") Signed-off-by: Dan Carpenter Signed-off-by: Doug Ledford

[PATCH AUTOSEL for 4.9 079/100] scsi: mpt3sas: Fix IO error occurs on pulling out a drive from RAID1 volume created on two SATA drive

2017-12-12 Thread alexander . levin
From: Sreekanth Reddy [ Upstream commit 2ce9a3645299ba1752873d333d73f67620f4550b ] Whenever an I/O for a RAID volume fails with IOCStatus MPI2_IOCSTATUS_SCSI_IOC_TERMINATED and SCSIStatus equal to (MPI2_SCSI_STATE_TERMINATED | MPI2_SCSI_STATE_NO_SCSI_STATUS) then

[PATCH AUTOSEL for 4.9 079/100] scsi: mpt3sas: Fix IO error occurs on pulling out a drive from RAID1 volume created on two SATA drive

2017-12-12 Thread alexander . levin
From: Sreekanth Reddy [ Upstream commit 2ce9a3645299ba1752873d333d73f67620f4550b ] Whenever an I/O for a RAID volume fails with IOCStatus MPI2_IOCSTATUS_SCSI_IOC_TERMINATED and SCSIStatus equal to (MPI2_SCSI_STATE_TERMINATED | MPI2_SCSI_STATE_NO_SCSI_STATUS) then return the I/O to SCSI midlayer

[PATCH AUTOSEL for 4.9 081/100] PM / OPP: Move error message to debug level

2017-12-12 Thread alexander . levin
From: Fabio Estevam [ Upstream commit 035ed07208dc501d023873447113f3f178592156 ] On some i.MX6 platforms which do not have speed grading check, opp table will not be created in platform code, so cpufreq driver prints the following error message: cpu cpu0:

[PATCH AUTOSEL for 4.9 080/100] PCI: Create SR-IOV virtfn/physfn links before attaching driver

2017-12-12 Thread alexander . levin
From: Stuart Hayes [ Upstream commit 27d6162944b9b34c32cd5841acd21786637ee743 ] When creating virtual functions, create the "virtfn%u" and "physfn" links in sysfs *before* attaching the driver instead of after. When we attach the driver to the new virtual network

[PATCH AUTOSEL for 4.9 081/100] PM / OPP: Move error message to debug level

2017-12-12 Thread alexander . levin
From: Fabio Estevam [ Upstream commit 035ed07208dc501d023873447113f3f178592156 ] On some i.MX6 platforms which do not have speed grading check, opp table will not be created in platform code, so cpufreq driver prints the following error message: cpu cpu0: dev_pm_opp_get_opp_count: OPP table

[PATCH AUTOSEL for 4.9 080/100] PCI: Create SR-IOV virtfn/physfn links before attaching driver

2017-12-12 Thread alexander . levin
From: Stuart Hayes [ Upstream commit 27d6162944b9b34c32cd5841acd21786637ee743 ] When creating virtual functions, create the "virtfn%u" and "physfn" links in sysfs *before* attaching the driver instead of after. When we attach the driver to the new virtual network interface first, there is a

[PATCH AUTOSEL for 4.9 052/100] irda: vlsi_ir: fix check for DMA mapping errors

2017-12-12 Thread alexander . levin
From: Alexey Khoroshilov [ Upstream commit 6ac3b77a67513ff86b684aa256ea01c0e5b5 ] vlsi_alloc_ring() checks for DMA mapping errors by comparing returned address with zero, while pci_dma_mapping_error() should be used. Found by Linux Driver Verification project

[PATCH AUTOSEL for 4.9 052/100] irda: vlsi_ir: fix check for DMA mapping errors

2017-12-12 Thread alexander . levin
From: Alexey Khoroshilov [ Upstream commit 6ac3b77a67513ff86b684aa256ea01c0e5b5 ] vlsi_alloc_ring() checks for DMA mapping errors by comparing returned address with zero, while pci_dma_mapping_error() should be used. Found by Linux Driver Verification project (linuxtesting.org).

[PATCH AUTOSEL for 4.9 063/100] xhci: plat: Register shutdown for xhci_plat

2017-12-12 Thread alexander . levin
From: Adam Wallis [ Upstream commit b07c12517f2aed0add8ce18146bb426b14099392 ] Shutdown should be called for xhci_plat devices especially for situations where kexec might be used by stopping DMA transactions. Signed-off-by: Adam Wallis

[PATCH AUTOSEL for 4.9 063/100] xhci: plat: Register shutdown for xhci_plat

2017-12-12 Thread alexander . levin
From: Adam Wallis [ Upstream commit b07c12517f2aed0add8ce18146bb426b14099392 ] Shutdown should be called for xhci_plat devices especially for situations where kexec might be used by stopping DMA transactions. Signed-off-by: Adam Wallis Signed-off-by: Mathias Nyman Signed-off-by: Greg

[PATCH AUTOSEL for 4.9 066/100] ARM: dma-mapping: disallow dma_get_sgtable() for non-kernel managed memory

2017-12-12 Thread alexander . levin
From: Russell King [ Upstream commit 916a008b4b8ecc02fbd035cfb133773dba1ff3d7 ] dma_get_sgtable() tries to create a scatterlist table containing valid struct page pointers for the coherent memory allocation passed in to it. However, memory can be declared via

[PATCH AUTOSEL for 4.9 066/100] ARM: dma-mapping: disallow dma_get_sgtable() for non-kernel managed memory

2017-12-12 Thread alexander . levin
From: Russell King [ Upstream commit 916a008b4b8ecc02fbd035cfb133773dba1ff3d7 ] dma_get_sgtable() tries to create a scatterlist table containing valid struct page pointers for the coherent memory allocation passed in to it. However, memory can be declared via dma_declare_coherent_memory(), or

[PATCH AUTOSEL for 4.9 062/100] net: moxa: fix TX overrun memory leak

2017-12-12 Thread alexander . levin
From: Jonas Jensen [ Upstream commit c2b341a620018d4eaeb0e85c16274ac4e5f153d4 ] moxart_mac_start_xmit() doesn't care where tx_tail is, tx_head can catch and pass tx_tail, which is bad because moxart_tx_finished() isn't guaranteed to catch up on freeing resources from

[PATCH AUTOSEL for 4.9 065/100] Btrfs: fix an integer overflow check

2017-12-12 Thread alexander . levin
From: Dan Carpenter [ Upstream commit 457ae7268b29c33dee1c0feb143a15f6029d177b ] This isn't super serious because you need CAP_ADMIN to run this code. I added this integer overflow check last year but apparently I am rubbish at writing integer overflow checks...

[PATCH AUTOSEL for 4.9 062/100] net: moxa: fix TX overrun memory leak

2017-12-12 Thread alexander . levin
From: Jonas Jensen [ Upstream commit c2b341a620018d4eaeb0e85c16274ac4e5f153d4 ] moxart_mac_start_xmit() doesn't care where tx_tail is, tx_head can catch and pass tx_tail, which is bad because moxart_tx_finished() isn't guaranteed to catch up on freeing resources from tx_tail. Add a check in

[PATCH AUTOSEL for 4.9 065/100] Btrfs: fix an integer overflow check

2017-12-12 Thread alexander . levin
From: Dan Carpenter [ Upstream commit 457ae7268b29c33dee1c0feb143a15f6029d177b ] This isn't super serious because you need CAP_ADMIN to run this code. I added this integer overflow check last year but apparently I am rubbish at writing integer overflow checks... There are two issues. First,

[PATCH AUTOSEL for 4.9 057/100] net: ipconfig: fix ic_close_devs() use-after-free

2017-12-12 Thread alexander . levin
From: Mark Rutland [ Upstream commit ffefb6f4d6ad699a2b5484241bc46745a53235d0 ] Our chosen ic_dev may be anywhere in our list of ic_devs, and we may free it before attempting to close others. When we compare d->dev and ic_dev->dev, we're potentially dereferencing memory

[PATCH AUTOSEL for 4.9 057/100] net: ipconfig: fix ic_close_devs() use-after-free

2017-12-12 Thread alexander . levin
From: Mark Rutland [ Upstream commit ffefb6f4d6ad699a2b5484241bc46745a53235d0 ] Our chosen ic_dev may be anywhere in our list of ic_devs, and we may free it before attempting to close others. When we compare d->dev and ic_dev->dev, we're potentially dereferencing memory returned to the

[PATCH AUTOSEL for 4.9 069/100] backlight: pwm_bl: Fix overflow condition

2017-12-12 Thread alexander . levin
From: Derek Basehore [ Upstream commit 5d0c49acebc9488e37db95f1d4a55644e545ffe7 ] This fixes an overflow condition that can happen with high max brightness and period values in compute_duty_cycle. This fixes it by using a 64 bit variable for computing the duty cycle.

[PATCH AUTOSEL for 4.9 068/100] bnxt_en: Fix NULL pointer dereference in reopen failure path

2017-12-12 Thread alexander . levin
From: Sankar Patchineelam [ Upstream commit 2247925f0942dc4e7c09b1cde45ca18461d94c5f ] Net device reset can fail when the h/w or f/w is in a bad state. Subsequent netdevice open fails in bnxt_hwrm_stat_ctx_alloc(). The cleanup invokes bnxt_hwrm_resource_free()

[PATCH AUTOSEL for 4.9 069/100] backlight: pwm_bl: Fix overflow condition

2017-12-12 Thread alexander . levin
From: Derek Basehore [ Upstream commit 5d0c49acebc9488e37db95f1d4a55644e545ffe7 ] This fixes an overflow condition that can happen with high max brightness and period values in compute_duty_cycle. This fixes it by using a 64 bit variable for computing the duty cycle. Signed-off-by: Derek

[PATCH AUTOSEL for 4.9 068/100] bnxt_en: Fix NULL pointer dereference in reopen failure path

2017-12-12 Thread alexander . levin
From: Sankar Patchineelam [ Upstream commit 2247925f0942dc4e7c09b1cde45ca18461d94c5f ] Net device reset can fail when the h/w or f/w is in a bad state. Subsequent netdevice open fails in bnxt_hwrm_stat_ctx_alloc(). The cleanup invokes bnxt_hwrm_resource_free() which inturn calls

[PATCH AUTOSEL for 4.9 086/100] tracing: Exclude 'generic fields' from histograms

2017-12-12 Thread alexander . levin
From: Tom Zanussi [ Upstream commit a15f7fc20389a8827d5859907568b201234d4b79 ] There are a small number of 'generic fields' (comm/COMM/cpu/CPU) that are found by trace_find_event_field() but are only meant for filtering. Specifically, they unlike normal fields,

[PATCH AUTOSEL for 4.9 086/100] tracing: Exclude 'generic fields' from histograms

2017-12-12 Thread alexander . levin
From: Tom Zanussi [ Upstream commit a15f7fc20389a8827d5859907568b201234d4b79 ] There are a small number of 'generic fields' (comm/COMM/cpu/CPU) that are found by trace_find_event_field() but are only meant for filtering. Specifically, they unlike normal fields, they have a size of 0 and thus

[PATCH AUTOSEL for 4.9 070/100] crypto: talitos - fix ctr-aes-talitos

2017-12-12 Thread alexander . levin
From: LEROY Christophe [ Upstream commit 70d355ccea899dad47dc22d3a4406998f55143fd ] ctr-aes-talitos test fails as follows on SEC2 [0.837427] alg: skcipher: Test 1 failed (invalid result) on encryption for ctr-aes-talitos [0.845763] : 16 36 d5 ee 34 f8

[PATCH AUTOSEL for 4.9 070/100] crypto: talitos - fix ctr-aes-talitos

2017-12-12 Thread alexander . levin
From: LEROY Christophe [ Upstream commit 70d355ccea899dad47dc22d3a4406998f55143fd ] ctr-aes-talitos test fails as follows on SEC2 [0.837427] alg: skcipher: Test 1 failed (invalid result) on encryption for ctr-aes-talitos [0.845763] : 16 36 d5 ee 34 f8 06 25 d7 7f 8e 56 ca 88

[PATCH AUTOSEL for 4.9 075/100] kvm, mm: account kvm related kmem slabs to kmemcg

2017-12-12 Thread alexander . levin
From: Shakeel Butt [ Upstream commit 46bea48ac241fe0b413805952dda74dd0c09ba8b ] The kvm slabs can consume a significant amount of system memory and indeed in our production environment we have observed that a lot of machines are spending significant amount of memory that

[PATCH AUTOSEL for 4.9 075/100] kvm, mm: account kvm related kmem slabs to kmemcg

2017-12-12 Thread alexander . levin
From: Shakeel Butt [ Upstream commit 46bea48ac241fe0b413805952dda74dd0c09ba8b ] The kvm slabs can consume a significant amount of system memory and indeed in our production environment we have observed that a lot of machines are spending significant amount of memory that can not be left as

[PATCH AUTOSEL for 4.9 088/100] ASoC: img-parallel-out: Add pm_runtime_get/put to set_fmt callback

2017-12-12 Thread alexander . levin
From: Ed Blake [ Upstream commit c70458890ff15d858bd347fa9f563818bcd6e457 ] Add pm_runtime_get_sync and pm_runtime_put calls to set_fmt callback function. This fixes a bus error during boot when CONFIG_SUSPEND is defined when this function gets called while the device is

[PATCH AUTOSEL for 4.9 088/100] ASoC: img-parallel-out: Add pm_runtime_get/put to set_fmt callback

2017-12-12 Thread alexander . levin
From: Ed Blake [ Upstream commit c70458890ff15d858bd347fa9f563818bcd6e457 ] Add pm_runtime_get_sync and pm_runtime_put calls to set_fmt callback function. This fixes a bus error during boot when CONFIG_SUSPEND is defined when this function gets called while the device is runtime disabled and

[PATCH AUTOSEL for 4.9 089/100] powerpc/xmon: Avoid tripping SMP hardlockup watchdog

2017-12-12 Thread alexander . levin
From: Nicholas Piggin [ Upstream commit 064996d62a33ffe10264b5af5dca92d54f60f806 ] The SMP hardlockup watchdog cross-checks other CPUs for lockups, which causes xmon headaches because it's assuming interrupts hard disabled means no watchdog troubles. Try to improve that by

[PATCH AUTOSEL for 4.9 089/100] powerpc/xmon: Avoid tripping SMP hardlockup watchdog

2017-12-12 Thread alexander . levin
From: Nicholas Piggin [ Upstream commit 064996d62a33ffe10264b5af5dca92d54f60f806 ] The SMP hardlockup watchdog cross-checks other CPUs for lockups, which causes xmon headaches because it's assuming interrupts hard disabled means no watchdog troubles. Try to improve that by calling

[PATCH AUTOSEL for 4.9 056/100] cpufreq: Fix creation of symbolic links to policy directories

2017-12-12 Thread alexander . levin
From: "Rafael J. Wysocki" [ Upstream commit 2f0ba790df51721794c11abc7a076d407392f648 ] The cpufreq core only tries to create symbolic links from CPU directories in sysfs to policy directories in cpufreq_add_dev(), either when a given CPU is registered or when the

[PATCH AUTOSEL for 4.9 072/100] crypto: talitos - fix memory corruption on SEC2

2017-12-12 Thread alexander . levin
From: LEROY Christophe [ Upstream commit e04a61bebc5da1535b6f194b464295b8d558e2fc ] On SEC2, when using the old descriptors type (hmac snoop no afeu) for doing IPsec, the CICV out pointeur points out of the allocated memory. [2.502554]

[PATCH AUTOSEL for 4.9 056/100] cpufreq: Fix creation of symbolic links to policy directories

2017-12-12 Thread alexander . levin
From: "Rafael J. Wysocki" [ Upstream commit 2f0ba790df51721794c11abc7a076d407392f648 ] The cpufreq core only tries to create symbolic links from CPU directories in sysfs to policy directories in cpufreq_add_dev(), either when a given CPU is registered or when the cpufreq driver is registered,

[PATCH AUTOSEL for 4.9 072/100] crypto: talitos - fix memory corruption on SEC2

2017-12-12 Thread alexander . levin
From: LEROY Christophe [ Upstream commit e04a61bebc5da1535b6f194b464295b8d558e2fc ] On SEC2, when using the old descriptors type (hmac snoop no afeu) for doing IPsec, the CICV out pointeur points out of the allocated memory. [2.502554]

[PATCH AUTOSEL for 4.9 074/100] rtc: pl031: make interrupt optional

2017-12-12 Thread alexander . levin
From: Russell King [ Upstream commit 5b64a2965dfdfca8039e93303c64e2b15c19ff0c ] On some platforms, the interrupt for the PL031 is optional. Avoid trying to claim the interrupt if it's not specified. Reviewed-by: Linus Walleij

[PATCH AUTOSEL for 4.9 074/100] rtc: pl031: make interrupt optional

2017-12-12 Thread alexander . levin
From: Russell King [ Upstream commit 5b64a2965dfdfca8039e93303c64e2b15c19ff0c ] On some platforms, the interrupt for the PL031 is optional. Avoid trying to claim the interrupt if it's not specified. Reviewed-by: Linus Walleij Signed-off-by: Russell King Signed-off-by: Alexandre Belloni

[PATCH AUTOSEL for 4.9 091/100] scsi: lpfc: Fix secure firmware updates

2017-12-12 Thread alexander . levin
From: Dick Kennedy [ Upstream commit 184fc2b9a8bcbda9c14d0a1e7fbecfc028c7702e ] Firmware update fails with: status x17 add_status x56 on the final write If multiple DMA buffers are used for the download, some firmware revs have difficulty with signatures and crcs

[PATCH AUTOSEL for 4.9 091/100] scsi: lpfc: Fix secure firmware updates

2017-12-12 Thread alexander . levin
From: Dick Kennedy [ Upstream commit 184fc2b9a8bcbda9c14d0a1e7fbecfc028c7702e ] Firmware update fails with: status x17 add_status x56 on the final write If multiple DMA buffers are used for the download, some firmware revs have difficulty with signatures and crcs split across the dma buffer

[PATCH AUTOSEL for 4.9 090/100] fm10k: fix mis-ordered parameters in declaration for .ndo_set_vf_bw

2017-12-12 Thread alexander . levin
From: Jacob Keller [ Upstream commit 3e256ac5b1ec307e5dd5a4c99fbdbc651446c738 ] We've had support for setting both a minimum and maximum bandwidth via .ndo_set_vf_bw since commit 883a9ccbae56 ("fm10k: Add support for SR-IOV to driver", 2014-09-20). Likely because we

[PATCH AUTOSEL for 4.9 092/100] scsi: lpfc: PLOGI failures during NPIV testing

2017-12-12 Thread alexander . levin
From: Dick Kennedy [ Upstream commit e8bcf0ae4c0346fdc78ebefe0eefcaa6a6622d38 ] Local Reject/Invalid RPI errors seen during discovery. Temporary RPI cleanup was occurring regardless of SLI rev. It's only necessary on SLI-4. Adjust the test for whether cleanup is

[PATCH AUTOSEL for 4.9 090/100] fm10k: fix mis-ordered parameters in declaration for .ndo_set_vf_bw

2017-12-12 Thread alexander . levin
From: Jacob Keller [ Upstream commit 3e256ac5b1ec307e5dd5a4c99fbdbc651446c738 ] We've had support for setting both a minimum and maximum bandwidth via .ndo_set_vf_bw since commit 883a9ccbae56 ("fm10k: Add support for SR-IOV to driver", 2014-09-20). Likely because we do not support minimum

[PATCH AUTOSEL for 4.9 092/100] scsi: lpfc: PLOGI failures during NPIV testing

2017-12-12 Thread alexander . levin
From: Dick Kennedy [ Upstream commit e8bcf0ae4c0346fdc78ebefe0eefcaa6a6622d38 ] Local Reject/Invalid RPI errors seen during discovery. Temporary RPI cleanup was occurring regardless of SLI rev. It's only necessary on SLI-4. Adjust the test for whether cleanup is necessary. Signed-off-by:

[PATCH AUTOSEL for 4.9 076/100] net: phy: at803x: Change error to EINVAL for invalid MAC

2017-12-12 Thread alexander . levin
From: Dan Murphy [ Upstream commit fc7556877d1748ac00958822a0a3bba1d4bd9e0d ] Change the return error code to EINVAL if the MAC address is not valid in the set_wol function. Signed-off-by: Dan Murphy Signed-off-by: David S. Miller

[PATCH AUTOSEL for 4.9 076/100] net: phy: at803x: Change error to EINVAL for invalid MAC

2017-12-12 Thread alexander . levin
From: Dan Murphy [ Upstream commit fc7556877d1748ac00958822a0a3bba1d4bd9e0d ] Change the return error code to EINVAL if the MAC address is not valid in the set_wol function. Signed-off-by: Dan Murphy Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/phy/at803x.c | 2

[PATCH AUTOSEL for 4.9 064/100] netfilter: nfnetlink_queue: fix secctx memory leak

2017-12-12 Thread alexander . levin
From: Liping Zhang [ Upstream commit 77c1c03c5b8ef28e55bb0aff29b1e006037ca645 ] We must call security_release_secctx to free the memory returned by security_secid_to_secctx, otherwise memory may be leaked forever. Fixes: ef493bd930ae ("netfilter: nfnetlink_queue: add

[PATCH AUTOSEL for 4.9 064/100] netfilter: nfnetlink_queue: fix secctx memory leak

2017-12-12 Thread alexander . levin
From: Liping Zhang [ Upstream commit 77c1c03c5b8ef28e55bb0aff29b1e006037ca645 ] We must call security_release_secctx to free the memory returned by security_secid_to_secctx, otherwise memory may be leaked forever. Fixes: ef493bd930ae ("netfilter: nfnetlink_queue: add security context

[PATCH AUTOSEL for 4.9 077/100] PCI: Avoid bus reset if bridge itself is broken

2017-12-12 Thread alexander . levin
From: David Daney [ Upstream commit 357027786f3523d26f42391aa4c075b8495e5d28 ] When checking to see if a PCI bus can safely be reset, we previously checked to see if any of the children had their PCI_DEV_FLAGS_NO_BUS_RESET flag set. Children marked with that flag are

[PATCH AUTOSEL for 4.9 077/100] PCI: Avoid bus reset if bridge itself is broken

2017-12-12 Thread alexander . levin
From: David Daney [ Upstream commit 357027786f3523d26f42391aa4c075b8495e5d28 ] When checking to see if a PCI bus can safely be reset, we previously checked to see if any of the children had their PCI_DEV_FLAGS_NO_BUS_RESET flag set. Children marked with that flag are known not to behave well

[PATCH AUTOSEL for 4.9 073/100] crypto: crypto4xx - increase context and scatter ring buffer elements

2017-12-12 Thread alexander . levin
From: Christian Lamparter [ Upstream commit 778f81d6cdb7d25360f082ac0384d5103f04eca5 ] If crypto4xx is used in conjunction with dm-crypt, the available ring buffer elements are not enough to handle the load properly. On an aes-cbc-essiv:sha256 encrypted swap partition the

[PATCH AUTOSEL for 4.9 073/100] crypto: crypto4xx - increase context and scatter ring buffer elements

2017-12-12 Thread alexander . levin
From: Christian Lamparter [ Upstream commit 778f81d6cdb7d25360f082ac0384d5103f04eca5 ] If crypto4xx is used in conjunction with dm-crypt, the available ring buffer elements are not enough to handle the load properly. On an aes-cbc-essiv:sha256 encrypted swap partition the read performance is

Re: [PATCH 0/8] make some functions return bool

2017-12-12 Thread Randy Dunlap
On 12/12/2017 06:14 PM, Yaowei Bai wrote: > On Tue, Dec 12, 2017 at 09:20:56AM -0800, Randy Dunlap wrote: >> On 12/11/2017 11:21 PM, Yaowei Bai wrote: >>> On Mon, Dec 11, 2017 at 09:50:03PM -0800, David Rientjes wrote: On Mon, 11 Dec 2017, Yaowei Bai wrote: > This patchset makes some

Re: [PATCH 0/8] make some functions return bool

2017-12-12 Thread Randy Dunlap
On 12/12/2017 06:14 PM, Yaowei Bai wrote: > On Tue, Dec 12, 2017 at 09:20:56AM -0800, Randy Dunlap wrote: >> On 12/11/2017 11:21 PM, Yaowei Bai wrote: >>> On Mon, Dec 11, 2017 at 09:50:03PM -0800, David Rientjes wrote: On Mon, 11 Dec 2017, Yaowei Bai wrote: > This patchset makes some

Re: [PATCH 1/8] mm/memblock: memblock_is_map/region_memory can be boolean

2017-12-12 Thread Yaowei Bai
On Tue, Dec 12, 2017 at 08:03:11AM -0800, Joe Perches wrote: > On Mon, 2017-12-11 at 21:55 -0500, Yaowei Bai wrote: > > This patch makes memblock_is_map/region_memory return bool due to these > > two functions only using either true or false as its return value. > [] > > @@ -1690,13 +1690,13 @@

[PATCH AUTOSEL for 4.9 078/100] scsi: cxgb4i: fix Tx skb leak

2017-12-12 Thread alexander . levin
From: Varun Prakash [ Upstream commit 9b3a081fb62158b50bcc90522ca2423017544367 ] In case of connection reset Tx skb queue can have some skbs which are not transmitted so purge Tx skb queue in release_offload_resources() to avoid skb leak. Signed-off-by: Varun Prakash

Re: [PATCH 1/8] mm/memblock: memblock_is_map/region_memory can be boolean

2017-12-12 Thread Yaowei Bai
On Tue, Dec 12, 2017 at 08:03:11AM -0800, Joe Perches wrote: > On Mon, 2017-12-11 at 21:55 -0500, Yaowei Bai wrote: > > This patch makes memblock_is_map/region_memory return bool due to these > > two functions only using either true or false as its return value. > [] > > @@ -1690,13 +1690,13 @@

[PATCH AUTOSEL for 4.9 078/100] scsi: cxgb4i: fix Tx skb leak

2017-12-12 Thread alexander . levin
From: Varun Prakash [ Upstream commit 9b3a081fb62158b50bcc90522ca2423017544367 ] In case of connection reset Tx skb queue can have some skbs which are not transmitted so purge Tx skb queue in release_offload_resources() to avoid skb leak. Signed-off-by: Varun Prakash Signed-off-by: Martin K.

[PATCH v3] arm64: fault: avoid send SIGBUS two times

2017-12-12 Thread Dongjiu Geng
do_sea() calls arm64_notify_die() which will always signal user-space. It also returns whether APEI claimed the external abort as a RAS notification. If it returns failure do_mem_abort() will signal user-space too. do_mem_abort() wants to know if we handled the error, we always call

[PATCH AUTOSEL for 4.9 093/100] vfio/pci: Virtualize Maximum Payload Size

2017-12-12 Thread alexander . levin
From: Alex Williamson [ Upstream commit 523184972b282cd9ca17a76f6ca4742394856818 ] With virtual PCI-Express chipsets, we now see userspace/guest drivers trying to match the physical MPS setting to a virtual downstream port. Of course a lone physical device surrounded

[PATCH v3] arm64: fault: avoid send SIGBUS two times

2017-12-12 Thread Dongjiu Geng
do_sea() calls arm64_notify_die() which will always signal user-space. It also returns whether APEI claimed the external abort as a RAS notification. If it returns failure do_mem_abort() will signal user-space too. do_mem_abort() wants to know if we handled the error, we always call

[PATCH AUTOSEL for 4.9 093/100] vfio/pci: Virtualize Maximum Payload Size

2017-12-12 Thread alexander . levin
From: Alex Williamson [ Upstream commit 523184972b282cd9ca17a76f6ca4742394856818 ] With virtual PCI-Express chipsets, we now see userspace/guest drivers trying to match the physical MPS setting to a virtual downstream port. Of course a lone physical device surrounded by virtual interconnects

[PATCH AUTOSEL for 4.9 094/100] fm10k: ensure we process SM mbx when processing VF mbx

2017-12-12 Thread alexander . levin
From: Jacob Keller [ Upstream commit 17a91809942ca32c70026d2d5ba3348a2c4fdf8f ] When we process VF mailboxes, the driver is likely going to also queue up messages to the switch manager. This process merely queues up the FIFO, but doesn't actually begin the transmission

[PATCH AUTOSEL for 4.9 094/100] fm10k: ensure we process SM mbx when processing VF mbx

2017-12-12 Thread alexander . levin
From: Jacob Keller [ Upstream commit 17a91809942ca32c70026d2d5ba3348a2c4fdf8f ] When we process VF mailboxes, the driver is likely going to also queue up messages to the switch manager. This process merely queues up the FIFO, but doesn't actually begin the transmission process. Because we hold

[PATCH AUTOSEL for 4.9 096/100] staging: greybus: light: Release memory obtained by kasprintf

2017-12-12 Thread alexander . levin
From: Arvind Yadav [ Upstream commit 04820da21050b35eed68aa046115d810163ead0c ] Free memory region, if gb_lights_channel_config is not successful. Signed-off-by: Arvind Yadav Reviewed-by: Rui Miguel Silva Signed-off-by:

[PATCH AUTOSEL for 4.9 096/100] staging: greybus: light: Release memory obtained by kasprintf

2017-12-12 Thread alexander . levin
From: Arvind Yadav [ Upstream commit 04820da21050b35eed68aa046115d810163ead0c ] Free memory region, if gb_lights_channel_config is not successful. Signed-off-by: Arvind Yadav Reviewed-by: Rui Miguel Silva Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin ---

[PATCH AUTOSEL for 4.9 095/100] net: ipv6: send NS for DAD when link operationally up

2017-12-12 Thread alexander . levin
From: Mike Manning [ Upstream commit 1f372c7bfb23286d2bf4ce0423ab488e86b74bb2 ] The NS for DAD are sent on admin up as long as a valid qdisc is found. A race condition exists by which these packets will not egress the interface if the operational state of the lower device

[PATCH AUTOSEL for 4.9 095/100] net: ipv6: send NS for DAD when link operationally up

2017-12-12 Thread alexander . levin
From: Mike Manning [ Upstream commit 1f372c7bfb23286d2bf4ce0423ab488e86b74bb2 ] The NS for DAD are sent on admin up as long as a valid qdisc is found. A race condition exists by which these packets will not egress the interface if the operational state of the lower device is not yet up. The

[PATCH AUTOSEL for 4.4 05/59] cpuidle: Validate cpu_dev in cpuidle_add_sysfs()

2017-12-12 Thread alexander . levin
From: Vaidyanathan Srinivasan [ Upstream commit ad0a45fd9c14feebd000b6e84189d0edff265170 ] If a given cpu is not in cpu_present and cpu hotplug is disabled, arch can skip setting up the cpu_dev. Arch cpuidle driver should pass correct cpu mask for registration, but

[PATCH AUTOSEL for 4.4 05/59] cpuidle: Validate cpu_dev in cpuidle_add_sysfs()

2017-12-12 Thread alexander . levin
From: Vaidyanathan Srinivasan [ Upstream commit ad0a45fd9c14feebd000b6e84189d0edff265170 ] If a given cpu is not in cpu_present and cpu hotplug is disabled, arch can skip setting up the cpu_dev. Arch cpuidle driver should pass correct cpu mask for registration, but failing to do so by the

[PATCH AUTOSEL for 4.4 06/59] r8152: fix the list rx_done may be used without initialization

2017-12-12 Thread alexander . levin
From: hayeswang [ Upstream commit 98d068ab52b4b11d403995ed14154660797e7136 ] The list rx_done would be initialized when the linking on occurs. Therefore, if a napi is scheduled without any linking on before, the following kernel panic would happen. BUG: unable to

[PATCH AUTOSEL for 4.4 06/59] r8152: fix the list rx_done may be used without initialization

2017-12-12 Thread alexander . levin
From: hayeswang [ Upstream commit 98d068ab52b4b11d403995ed14154660797e7136 ] The list rx_done would be initialized when the linking on occurs. Therefore, if a napi is scheduled without any linking on before, the following kernel panic would happen. BUG: unable to handle kernel NULL

[PATCH AUTOSEL for 4.4 09/59] bna: integer overflow bug in debugfs

2017-12-12 Thread alexander . levin
From: Dan Carpenter [ Upstream commit 13e2d5187f6b965ba3556caedb914baf81b98ed2 ] We could allocate less memory than intended because we do: bnad->regdata = kzalloc(len << 2, GFP_KERNEL); The shift can overflow leading to a crash. This is debugfs code so the

[PATCH AUTOSEL for 4.4 09/59] bna: integer overflow bug in debugfs

2017-12-12 Thread alexander . levin
From: Dan Carpenter [ Upstream commit 13e2d5187f6b965ba3556caedb914baf81b98ed2 ] We could allocate less memory than intended because we do: bnad->regdata = kzalloc(len << 2, GFP_KERNEL); The shift can overflow leading to a crash. This is debugfs code so the impact is very small.

[PATCH AUTOSEL for 4.9 060/100] virtio_balloon: prevent uninitialized variable use

2017-12-12 Thread alexander . levin
From: Arnd Bergmann [ Upstream commit f0bb2d50dfcc519f06f901aac88502be6ff1df2c ] The latest gcc-7.0.1 snapshot reports a new warning: virtio/virtio_balloon.c: In function 'update_balloon_stats': virtio/virtio_balloon.c:258:26: error: 'events[2]' is used uninitialized in this

[PATCH AUTOSEL for 4.9 060/100] virtio_balloon: prevent uninitialized variable use

2017-12-12 Thread alexander . levin
From: Arnd Bergmann [ Upstream commit f0bb2d50dfcc519f06f901aac88502be6ff1df2c ] The latest gcc-7.0.1 snapshot reports a new warning: virtio/virtio_balloon.c: In function 'update_balloon_stats': virtio/virtio_balloon.c:258:26: error: 'events[2]' is used uninitialized in this function

[PATCH] MAINTAINERS: NTB: Update contact info

2017-12-12 Thread Allen Hubbe
I am no longer employed by Dell EMC. For the purposes of NTB driver development and maintenance, please contact me via my personal email. Signed-off-by: Allen Hubbe Signed-off-by: Allen Hubbe --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH v3 2/6] iommu/vt-d: Add Intel IOMMU debugfs to show context internals

2017-12-12 Thread Lu Baolu
Hi, Sorry for late reply. On 12/08/2017 04:19 AM, Mehta, Sohil wrote: > On Wed, 2017-12-06 at 16:16 +0800, Lu Baolu wrote: >> Hi, >> >> On 12/06/2017 11:43 AM, Sohil Mehta wrote: >>> From: Gayatri Kammela >>> >>> >>> + seq_printf(m, "%s Context table entries for

[PATCH] MAINTAINERS: NTB: Update contact info

2017-12-12 Thread Allen Hubbe
I am no longer employed by Dell EMC. For the purposes of NTB driver development and maintenance, please contact me via my personal email. Signed-off-by: Allen Hubbe Signed-off-by: Allen Hubbe --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS

Re: [PATCH v3 2/6] iommu/vt-d: Add Intel IOMMU debugfs to show context internals

2017-12-12 Thread Lu Baolu
Hi, Sorry for late reply. On 12/08/2017 04:19 AM, Mehta, Sohil wrote: > On Wed, 2017-12-06 at 16:16 +0800, Lu Baolu wrote: >> Hi, >> >> On 12/06/2017 11:43 AM, Sohil Mehta wrote: >>> From: Gayatri Kammela >>> >>> >>> + seq_printf(m, "%s Context table entries for Bus: %d\n", >>> +

[PATCH AUTOSEL for 4.9 067/100] cpuidle: powernv: Pass correct drv->cpumask for registration

2017-12-12 Thread alexander . levin
From: Vaidyanathan Srinivasan [ Upstream commit 293d264f13cbde328d5477f49e3103edbc1dc191 ] drv->cpumask defaults to cpu_possible_mask in __cpuidle_driver_init(). On PowerNV platform cpu_present could be less than cpu_possible in cases where firmware detects the cpu,

[PATCH AUTOSEL for 4.9 067/100] cpuidle: powernv: Pass correct drv->cpumask for registration

2017-12-12 Thread alexander . levin
From: Vaidyanathan Srinivasan [ Upstream commit 293d264f13cbde328d5477f49e3103edbc1dc191 ] drv->cpumask defaults to cpu_possible_mask in __cpuidle_driver_init(). On PowerNV platform cpu_present could be less than cpu_possible in cases where firmware detects the cpu, but it is not available to

[PATCH AUTOSEL for 4.4 15/59] inet: frag: release spinlock before calling icmp_send()

2017-12-12 Thread alexander . levin
From: Eric Dumazet [ Upstream commit ec4fbd64751de18729eaa816ec69e4b504b5a7a2 ] Dmitry reported a lockdep splat [1] (false positive) that we can fix by releasing the spinlock before calling icmp_send() from ip_expire() This is a false positive because sending an ICMP

[PATCH AUTOSEL for 4.4 15/59] inet: frag: release spinlock before calling icmp_send()

2017-12-12 Thread alexander . levin
From: Eric Dumazet [ Upstream commit ec4fbd64751de18729eaa816ec69e4b504b5a7a2 ] Dmitry reported a lockdep splat [1] (false positive) that we can fix by releasing the spinlock before calling icmp_send() from ip_expire() This is a false positive because sending an ICMP message can not possibly

[PATCH AUTOSEL for 4.4 08/59] sch_dsmark: fix invalid skb_cow() usage

2017-12-12 Thread alexander . levin
From: Eric Dumazet [ Upstream commit aea92fb2e09e29653b023d4254ac9fbf94221538 ] skb_cow(skb, sizeof(ip header)) is not very helpful in this context. First we need to use pskb_may_pull() to make sure the ip header is in skb linear part, then use skb_try_make_writable() to

[PATCH AUTOSEL for 4.4 13/59] netfilter: nfnl_cthelper: fix runtime expectation policy updates

2017-12-12 Thread alexander . levin
From: Pablo Neira Ayuso [ Upstream commit 2c422257550f123049552b39f7af6e3428a60f43 ] We only allow runtime updates of expectation policies for timeout and maximum number of expectations, otherwise reject the update. Signed-off-by: Pablo Neira Ayuso

[PATCH AUTOSEL for 4.4 08/59] sch_dsmark: fix invalid skb_cow() usage

2017-12-12 Thread alexander . levin
From: Eric Dumazet [ Upstream commit aea92fb2e09e29653b023d4254ac9fbf94221538 ] skb_cow(skb, sizeof(ip header)) is not very helpful in this context. First we need to use pskb_may_pull() to make sure the ip header is in skb linear part, then use skb_try_make_writable() to address clones issues.

[PATCH AUTOSEL for 4.4 13/59] netfilter: nfnl_cthelper: fix runtime expectation policy updates

2017-12-12 Thread alexander . levin
From: Pablo Neira Ayuso [ Upstream commit 2c422257550f123049552b39f7af6e3428a60f43 ] We only allow runtime updates of expectation policies for timeout and maximum number of expectations, otherwise reject the update. Signed-off-by: Pablo Neira Ayuso Acked-by: Liping Zhang Signed-off-by: Sasha

[PATCH AUTOSEL for 4.9 071/100] crypto: talitos - fix AEAD test failures

2017-12-12 Thread alexander . levin
From: LEROY Christophe [ Upstream commit ec8c7d14acc0a477429d3a6fade5dab72c996c82 ] AEAD tests fail when destination SG list has more than 1 element. [2.058752] alg: aead: Test 1 failed on encryption for authenc-hmac-sha1-cbc-aes-talitos [2.066965] :

[PATCH AUTOSEL for 4.4 14/59] netfilter: nfnl_cthelper: Fix memory leak

2017-12-12 Thread alexander . levin
From: Jeffy Chen [ Upstream commit f83bf8da1135ca635aac8f062cad3f001fcf3a26 ] We have memory leaks of nf_conntrack_helper & expect_policy. Signed-off-by: Jeffy Chen Signed-off-by: Pablo Neira Ayuso Signed-off-by:

[PATCH AUTOSEL for 4.9 071/100] crypto: talitos - fix AEAD test failures

2017-12-12 Thread alexander . levin
From: LEROY Christophe [ Upstream commit ec8c7d14acc0a477429d3a6fade5dab72c996c82 ] AEAD tests fail when destination SG list has more than 1 element. [2.058752] alg: aead: Test 1 failed on encryption for authenc-hmac-sha1-cbc-aes-talitos [2.066965] : 53 69 6e 67 6c 65 20 62 6c

[PATCH AUTOSEL for 4.4 14/59] netfilter: nfnl_cthelper: Fix memory leak

2017-12-12 Thread alexander . levin
From: Jeffy Chen [ Upstream commit f83bf8da1135ca635aac8f062cad3f001fcf3a26 ] We have memory leaks of nf_conntrack_helper & expect_policy. Signed-off-by: Jeffy Chen Signed-off-by: Pablo Neira Ayuso Signed-off-by: Sasha Levin --- net/netfilter/nfnetlink_cthelper.c | 12 +--- 1 file

[PATCH AUTOSEL for 4.4 11/59] usb: gadget: f_uvc: Sanity check wMaxPacketSize for SuperSpeed

2017-12-12 Thread alexander . levin
From: Roger Quadros [ Upstream commit 16bb05d98c904a4f6c5ce7e2d992299f794acbf2 ] As per USB3.0 Specification "Table 9-20. Standard Endpoint Descriptor", for interrupt and isochronous endpoints, wMaxPacketSize must be set to 1024 if the endpoint defines bMaxBurst to be greater

[PATCH AUTOSEL for 4.4 12/59] usb: gadget: udc: remove pointer dereference after free

2017-12-12 Thread alexander . levin
From: "Gustavo A. R. Silva" [ Upstream commit 1f459262b0e1649a1e5ad12fa4c66eb76c2220ce ] Remove pointer dereference after free. Addresses-Coverity-ID: 1091173 Acked-by: Michal Nazarewicz Signed-off-by: Gustavo A. R. Silva

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