Re: [PATCH 2/2] Subject: printk: Don't trap random context in infinite log_buf flush

2017-11-06 Thread Tejun Heo
Hello, On Sat, Nov 04, 2017 at 01:24:08PM +0900, Sergey Senozhatsky wrote: > thanks for the patch set. we are currently looking at another approach: > lkml.kernel.org/r/20171102134515.6eef1...@gandalf.local.home > > would you be interested in taking a look? Hmm... It took some tweaking but the

Re: [PATCH 2/2] Subject: printk: Don't trap random context in infinite log_buf flush

2017-11-06 Thread Tejun Heo
Hello, On Sat, Nov 04, 2017 at 01:24:08PM +0900, Sergey Senozhatsky wrote: > thanks for the patch set. we are currently looking at another approach: > lkml.kernel.org/r/20171102134515.6eef1...@gandalf.local.home > > would you be interested in taking a look? Hmm... It took some tweaking but the

[PATCH 3.16 117/294] net_sched/sfq: update hierarchical backlog when drop packet

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Konstantin Khlebnikov commit 325d5dc3f7e7c2840b65e4a2988c082c2c0025c5 upstream. When sfq_enqueue() drops head packet or packet from another queue it have to update

Re: [PATCH v10 2/9] PCI: remove unused __weak attribute in pci_register_io_range()

2017-11-06 Thread Bjorn Helgaas
> PCI: remove unused __weak attribute in pci_register_io_range() Please capitalize to follow drivers/pci convention, e.g., PCI: Remove __weak attribute from pci_register_io_range() (Also do the same for the other PCI patches.) On Fri, Oct 27, 2017 at 05:11:20PM +0100, Gabriele Paoloni wrote:

[PATCH 3.16 117/294] net_sched/sfq: update hierarchical backlog when drop packet

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Konstantin Khlebnikov commit 325d5dc3f7e7c2840b65e4a2988c082c2c0025c5 upstream. When sfq_enqueue() drops head packet or packet from another queue it have to update backlog at upper qdiscs

Re: [PATCH v10 2/9] PCI: remove unused __weak attribute in pci_register_io_range()

2017-11-06 Thread Bjorn Helgaas
> PCI: remove unused __weak attribute in pci_register_io_range() Please capitalize to follow drivers/pci convention, e.g., PCI: Remove __weak attribute from pci_register_io_range() (Also do the same for the other PCI patches.) On Fri, Oct 27, 2017 at 05:11:20PM +0100, Gabriele Paoloni wrote:

[PATCH 3.16 099/294] s390/qeth: fix L3 next-hop in xmit qeth hdr

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Julian Wiedmann commit ec2c6726322f0d270bab477e4904bf9496f70ee5 upstream. On L3, the qeth_hdr struct needs to be filled with the next-hop IP address. The current code

[PATCH 3.16 099/294] s390/qeth: fix L3 next-hop in xmit qeth hdr

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Julian Wiedmann commit ec2c6726322f0d270bab477e4904bf9496f70ee5 upstream. On L3, the qeth_hdr struct needs to be filled with the next-hop IP address. The current code accesses

[PATCH 3.16 131/294] ipv6: accept 64k - 1 packet length in ip6_find_1stfragopt()

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Stefano Brivio commit 3de33e1ba0506723ab25734e098cf280ecc34756 upstream. A packet length of exactly IPV6_MAXPLEN is allowed, we should refuse parsing options only if the

[PATCH 3.16 131/294] ipv6: accept 64k - 1 packet length in ip6_find_1stfragopt()

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Stefano Brivio commit 3de33e1ba0506723ab25734e098cf280ecc34756 upstream. A packet length of exactly IPV6_MAXPLEN is allowed, we should refuse parsing options only if the size is 64KiB or

[PATCH 3.16 068/294] sctp: don't dereference ptr before leaving _sctp_walk_{params, errors}()

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Alexander Potapenko commit b1f5bfc27a19f214006b9b4db7b9126df2dfdf5a upstream. If the length field of the iterator (|pos.p| or |err|) is past the end of the chunk, we

Re: [PATCH 2/2] scripts: coccinelle: api: detect identical chip data arrays

2017-11-06 Thread Masahiro Yamada
2017-10-09 4:18 GMT+09:00 Julia Lawall : > This semantic patch detects duplicate arrays declared using BQ27XXX_DATA > within a single structure. It is currently specific to the file > drivers/power/supply/bq27xxx_battery.c. Nevertheless, having the script in > the kernel

[PATCH 3.16 065/294] media: platform: davinci: return -EINVAL for VPFE_CMD_S_CCDC_RAW_PARAMS ioctl

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Prabhakar Lad commit da05d52d2f0f6bd61094a0cd045fed94bf7d673a upstream. this patch makes sure VPFE_CMD_S_CCDC_RAW_PARAMS ioctl no longer works for vpfe_capture

[PATCH 3.16 068/294] sctp: don't dereference ptr before leaving _sctp_walk_{params, errors}()

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Alexander Potapenko commit b1f5bfc27a19f214006b9b4db7b9126df2dfdf5a upstream. If the length field of the iterator (|pos.p| or |err|) is past the end of the chunk, we shouldn't access it.

Re: [PATCH 2/2] scripts: coccinelle: api: detect identical chip data arrays

2017-11-06 Thread Masahiro Yamada
2017-10-09 4:18 GMT+09:00 Julia Lawall : > This semantic patch detects duplicate arrays declared using BQ27XXX_DATA > within a single structure. It is currently specific to the file > drivers/power/supply/bq27xxx_battery.c. Nevertheless, having the script in > the kernel will allow others to

[PATCH 3.16 065/294] media: platform: davinci: return -EINVAL for VPFE_CMD_S_CCDC_RAW_PARAMS ioctl

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Prabhakar Lad commit da05d52d2f0f6bd61094a0cd045fed94bf7d673a upstream. this patch makes sure VPFE_CMD_S_CCDC_RAW_PARAMS ioctl no longer works for vpfe_capture driver with a minimal patch

[PATCH 3.16 090/294] net/mlx4_en: Fix wrong indication of Wake-on-LAN (WoL) support

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Inbar Karmy commit c994f778bb1cca8ebe7a4e528cefec233e93b5cc upstream. Currently when WoL is supported but disabled, ethtool reports: "Supports Wake-on: d". Fix the

[PATCH 3.16 101/294] net: remove open-coded skb_cow_head.

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: françois romieu commit a40e0a664bce465a3b8ad1d792153cef8ded9f7d upstream. Signed-off-by: Francois Romieu Signed-off-by: David S. Miller

[PATCH 3.16 090/294] net/mlx4_en: Fix wrong indication of Wake-on-LAN (WoL) support

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Inbar Karmy commit c994f778bb1cca8ebe7a4e528cefec233e93b5cc upstream. Currently when WoL is supported but disabled, ethtool reports: "Supports Wake-on: d". Fix the indication of Wol support,

[PATCH 3.16 101/294] net: remove open-coded skb_cow_head.

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: françois romieu commit a40e0a664bce465a3b8ad1d792153cef8ded9f7d upstream. Signed-off-by: Francois Romieu Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- net/core/dev.c | 4

[PATCH 3.16 020/294] USB: cdc-acm: add device-id for quirky printer

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit fe855789d605590e57f9cd968d85ecce46f5c3fd upstream. Add device-id entry for DATECS FP-2000 fiscal printer needing the NO_UNION_NORMAL quirk. Reported-by:

[PATCH 3.16 020/294] USB: cdc-acm: add device-id for quirky printer

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Johan Hovold commit fe855789d605590e57f9cd968d85ecce46f5c3fd upstream. Add device-id entry for DATECS FP-2000 fiscal printer needing the NO_UNION_NORMAL quirk. Reported-by: Anton Avramov

[PATCH 3.16 040/294] xhci: Bad Ethernet performance plugged in ASM1042A host

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Jiahau Chang commit 9da5a1092b13468839b1a864b126cacfb72ad016 upstream. When USB Ethernet is plugged in ASMEDIA ASM1042A xHCI host, bad performance was manifesting in Web

[PATCH 3.16 098/294] irqchip: brcmstb-l2: Define an irq_pm_shutdown function

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Florian Fainelli commit c017d21147848fe017772764a77a7f32c5b017f9 upstream. The Broadcom STB platforms support S5 and we allow specific hardware wake-up events to take us

[PATCH 3.16 040/294] xhci: Bad Ethernet performance plugged in ASM1042A host

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Jiahau Chang commit 9da5a1092b13468839b1a864b126cacfb72ad016 upstream. When USB Ethernet is plugged in ASMEDIA ASM1042A xHCI host, bad performance was manifesting in Web browser use (like

[PATCH 3.16 098/294] irqchip: brcmstb-l2: Define an irq_pm_shutdown function

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Florian Fainelli commit c017d21147848fe017772764a77a7f32c5b017f9 upstream. The Broadcom STB platforms support S5 and we allow specific hardware wake-up events to take us out of this state.

[PATCH 3.16 027/294] staging: rtl8188eu: add TL-WN722N v2 support

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Michael Gugino commit 5a1d4c5dd4eb2f1f8a9b30e61762f3b3b564df70 upstream. Add support for USB Device TP-Link TL-WN722N v2. VendorID: 0x2357, ProductID: 0x010c

[PATCH 3.16 153/294] dm: convert DM printk macros to pr_ macros

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Joe Perches commit d2c3c8dcb5987b8352e82089c79a41b6e17e28d2 upstream. Using pr_ is the more common logging style. Standardize style and use new macro DM_FMT. Use no_printk

[PATCH 3.16 027/294] staging: rtl8188eu: add TL-WN722N v2 support

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Michael Gugino commit 5a1d4c5dd4eb2f1f8a9b30e61762f3b3b564df70 upstream. Add support for USB Device TP-Link TL-WN722N v2. VendorID: 0x2357, ProductID: 0x010c Signed-off-by: Michael Gugino

[PATCH 3.16 153/294] dm: convert DM printk macros to pr_ macros

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Joe Perches commit d2c3c8dcb5987b8352e82089c79a41b6e17e28d2 upstream. Using pr_ is the more common logging style. Standardize style and use new macro DM_FMT. Use no_printk in DMDEBUG macros

[PATCH 3.16 156/294] l2tp: define parameters of l2tp_session_get*() as "const"

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Guillaume Nault commit 9aaef50c44f132e040dcd7686c8e78a3390037c5 upstream. Make l2tp_pernet()'s parameter constant, so that l2tp_session_get*() can declare their "net"

[PATCH 3.16 156/294] l2tp: define parameters of l2tp_session_get*() as "const"

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Guillaume Nault commit 9aaef50c44f132e040dcd7686c8e78a3390037c5 upstream. Make l2tp_pernet()'s parameter constant, so that l2tp_session_get*() can declare their "net" variable as "const".

[PATCH 3.16 127/294] drm: Release driver tracking before making the object available again

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Chris Wilson commit fe4600a548f2763dec91b3b27a1245c370ceee2a upstream. This is the same bug as we fixed in commit f6cd7daecff5 ("drm: Release driver references to

[PATCH 3.16 127/294] drm: Release driver tracking before making the object available again

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Chris Wilson commit fe4600a548f2763dec91b3b27a1245c370ceee2a upstream. This is the same bug as we fixed in commit f6cd7daecff5 ("drm: Release driver references to handle before making it

[PATCH 3.16 028/294] usb: renesas_usbhs: gadget: fix re-enabling pipe without re-connecting

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Yoshihiro Shimoda commit dfb87b8bfe09f933abaf387693992089f6f9053e upstream. This patch fixes an issue that the renesas_usbhs driver in gadget mode cannot

Re: [PATCH] Coccinelle: setup_timer: improve messages from setup_timer

2017-11-06 Thread Masahiro Yamada
2017-08-23 22:11 GMT+09:00 Julia Lawall : > Allow messages about multiple timers. > > Signed-off-by: Julia Lawall > > --- Applied to linux-kbuild/misc. -- Best Regards Masahiro Yamada

[PATCH 3.16 028/294] usb: renesas_usbhs: gadget: fix re-enabling pipe without re-connecting

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Yoshihiro Shimoda commit dfb87b8bfe09f933abaf387693992089f6f9053e upstream. This patch fixes an issue that the renesas_usbhs driver in gadget mode cannot work correctly even if I disabled

Re: [PATCH] Coccinelle: setup_timer: improve messages from setup_timer

2017-11-06 Thread Masahiro Yamada
2017-08-23 22:11 GMT+09:00 Julia Lawall : > Allow messages about multiple timers. > > Signed-off-by: Julia Lawall > > --- Applied to linux-kbuild/misc. -- Best Regards Masahiro Yamada

[PATCH 3.16 087/294] ixgbe: Initialize 64-bit stats seqcounts

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Florian Fainelli commit 7c3a4626eb65e78ebe208f48ffa21a5002f7f38e upstream. On 32-bit hosts and with CONFIG_DEBUG_LOCK_ALLOC we should be seeing a lockdep splat

[PATCH 3.16 087/294] ixgbe: Initialize 64-bit stats seqcounts

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Florian Fainelli commit 7c3a4626eb65e78ebe208f48ffa21a5002f7f38e upstream. On 32-bit hosts and with CONFIG_DEBUG_LOCK_ALLOC we should be seeing a lockdep splat indicating this seqcount is not

[PATCH 3.16 114/294] dst: Increase alignment of metrics to allow extra flag on pointers

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings For the backport of "ipv4: add reference counting to metrics", we will need a third flag on metrics pointers. This was not needed upstream as the

[PATCH 3.16 114/294] dst: Increase alignment of metrics to allow extra flag on pointers

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Ben Hutchings For the backport of "ipv4: add reference counting to metrics", we will need a third flag on metrics pointers. This was not needed upstream as the DST_METRICS_FORCE_OVERWRITE

[PATCH 3.16 107/294] usb:xhci:Add quirk for Certain failing HP keyboard on reset after resume

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Sandeep Singh commit e788787ef4f9c24aafefc480a8da5f92b914e5e6 upstream. Certain HP keyboards would keep inputting a character automatically which is the wake-up key

[PATCH 3.16 164/294] cpumask: fix spurious cpumask_of_node() on non-NUMA multi-node configs

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Tejun Heo commit b339752d054fb32863418452dff350a1086885b1 upstream. When !NUMA, cpumask_of_node(@node) equals cpu_online_mask regardless of @node. The assumption seems that

Re: [PATCH v2 01/31] coccinelle: Improve setup_timer.cocci matching

2017-11-06 Thread Masahiro Yamada
2017-09-24 5:43 GMT+09:00 Julia Lawall : > > > On Wed, 20 Sep 2017, Kees Cook wrote: > >> This improves the patch mode of setup_timer.cocci. Several patterns >> were missing: >> - assignments-before-init_timer() cases >> - limit the .data case removal to the specific struct

[PATCH 3.16 107/294] usb:xhci:Add quirk for Certain failing HP keyboard on reset after resume

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Sandeep Singh commit e788787ef4f9c24aafefc480a8da5f92b914e5e6 upstream. Certain HP keyboards would keep inputting a character automatically which is the wake-up key after S3 resume On some

[PATCH 3.16 164/294] cpumask: fix spurious cpumask_of_node() on non-NUMA multi-node configs

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Tejun Heo commit b339752d054fb32863418452dff350a1086885b1 upstream. When !NUMA, cpumask_of_node(@node) equals cpu_online_mask regardless of @node. The assumption seems that if !NUMA, there

Re: [PATCH v2 01/31] coccinelle: Improve setup_timer.cocci matching

2017-11-06 Thread Masahiro Yamada
2017-09-24 5:43 GMT+09:00 Julia Lawall : > > > On Wed, 20 Sep 2017, Kees Cook wrote: > >> This improves the patch mode of setup_timer.cocci. Several patterns >> were missing: >> - assignments-before-init_timer() cases >> - limit the .data case removal to the specific struct timer_list instance

[PATCH 3.16 047/294] RDMA/ocrdma: Fix error codes in ocrdma_create_srq()

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit f0c6e88288d65c93bbc7da4fb6f7d51b2733228a upstream. If either of these allocations fail then we return ERR_PTR(0). That's equivalent to NULL and

[PATCH 3.16 047/294] RDMA/ocrdma: Fix error codes in ocrdma_create_srq()

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit f0c6e88288d65c93bbc7da4fb6f7d51b2733228a upstream. If either of these allocations fail then we return ERR_PTR(0). That's equivalent to NULL and results in a NULL pointer

[PATCH 3.16 093/294] RDMA/uverbs: Prevent leak of reserved field

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Leon Romanovsky commit f7a6cb7b38c6845b26aaa8bbdf519ff6e3090831 upstream. initialize to zero the response structure to prevent the leakage of "resp.reserved" field.

[PATCH 3.16 031/294] usb: renesas_usbhs: gadget: disable all eps when the driver stops

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Yoshihiro Shimoda commit b8b9c974afee685789fcbb191b52d1790be3608c upstream. A gadget driver will not disable eps immediately when ->disconnect() is called.

[PATCH 3.16 093/294] RDMA/uverbs: Prevent leak of reserved field

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Leon Romanovsky commit f7a6cb7b38c6845b26aaa8bbdf519ff6e3090831 upstream. initialize to zero the response structure to prevent the leakage of "resp.reserved" field.

[PATCH 3.16 031/294] usb: renesas_usbhs: gadget: disable all eps when the driver stops

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Yoshihiro Shimoda commit b8b9c974afee685789fcbb191b52d1790be3608c upstream. A gadget driver will not disable eps immediately when ->disconnect() is called. But, since this driver assumes all

[PATCH 3.16 071/294] ARM: pxa: select both FB and FB_W100 for eseries

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 1d20d8a9fce8f1e2ef00a0f3d068fa18d59ddf8f upstream. We get a link error trying to access the w100fb_gpio_read/write functions from the platform when the

[PATCH 3.16 150/294] Clarify (and fix) MAX_LFS_FILESIZE macros

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Linus Torvalds commit 0cc3b0ec23ce4c69e1e890ed2b8d2fa932b14aad upstream. We have a MAX_LFS_FILESIZE macro that is meant to be filled in by filesystems (and

[PATCH 3.16 141/294] mtd: nandsim: remove debugfs entries in error path

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Uwe Kleine-König commit b974696da1cfc5aa0c29ed97dc8f6c239899e64b upstream. The debugfs entries must be removed before an error is returned in the probe

[PATCH 3.16 071/294] ARM: pxa: select both FB and FB_W100 for eseries

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Arnd Bergmann commit 1d20d8a9fce8f1e2ef00a0f3d068fa18d59ddf8f upstream. We get a link error trying to access the w100fb_gpio_read/write functions from the platform when the driver is a

[PATCH 3.16 150/294] Clarify (and fix) MAX_LFS_FILESIZE macros

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Linus Torvalds commit 0cc3b0ec23ce4c69e1e890ed2b8d2fa932b14aad upstream. We have a MAX_LFS_FILESIZE macro that is meant to be filled in by filesystems (and other IO targets) that know they

[PATCH 3.16 141/294] mtd: nandsim: remove debugfs entries in error path

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Uwe Kleine-König commit b974696da1cfc5aa0c29ed97dc8f6c239899e64b upstream. The debugfs entries must be removed before an error is returned in the probe function. Otherwise another try to load

[PATCH 3.16 023/294] of: device: Export of_device_{get_modalias, uvent_modalias} to modules

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Stephen Boyd commit 7a3b7cd332db08546f3cdd984f11773e0d1999e7 upstream. The ULPI bus can be built as a module, and it will soon be calling these functions when it

[PATCH 3.16 060/294] kprobes/x86: Release insn_slot in failure path

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Masami Hiramatsu commit 38115f2f8cec8087d558c062e779c443a01f87d6 upstream. The following commit: 003002e04ed3 ("kprobes: Fix arch_prepare_kprobe to handle copy insn

[PATCH 3.16 023/294] of: device: Export of_device_{get_modalias, uvent_modalias} to modules

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Stephen Boyd commit 7a3b7cd332db08546f3cdd984f11773e0d1999e7 upstream. The ULPI bus can be built as a module, and it will soon be calling these functions when it supports probing devices from

[PATCH 3.16 060/294] kprobes/x86: Release insn_slot in failure path

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Masami Hiramatsu commit 38115f2f8cec8087d558c062e779c443a01f87d6 upstream. The following commit: 003002e04ed3 ("kprobes: Fix arch_prepare_kprobe to handle copy insn failures") returns an

[PATCH 3.16 033/294] libata: array underflow in ata_find_dev()

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit 59a5e266c3f5c156750dd61a45b86daed0fa upstream. My static checker complains that "devno" can be negative, meaning that we read before the

[PATCH 3.16 033/294] libata: array underflow in ata_find_dev()

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Dan Carpenter commit 59a5e266c3f5c156750dd61a45b86daed0fa upstream. My static checker complains that "devno" can be negative, meaning that we read before the start of the loop. I've

[PATCH 3.16 042/294] xhci: fix memleak in xhci_run()

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Shu Wang commit d6f5f071f1e13cadecf8aef1faa7e5d6fbc9f33b upstream. Found this issue by kmemleak. xhci_run() did not check return val and free command for

[PATCH 3.16 042/294] xhci: fix memleak in xhci_run()

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Shu Wang commit d6f5f071f1e13cadecf8aef1faa7e5d6fbc9f33b upstream. Found this issue by kmemleak. xhci_run() did not check return val and free command for xhci_queue_vendor_command()

Re: [RFC PATCH] bpf: Add helpers to read useful task_struct members

2017-11-06 Thread Tushar Dave
On 11/02/2017 11:58 PM, Sandipan Das wrote: For added security, the layout of some structures can be randomized by enabling CONFIG_GCC_PLUGIN_RANDSTRUCT. One such structure is task_struct. To build BPF programs, we use Clang which does not support this feature. So, if we attempt to read a

Re: [RFC PATCH] bpf: Add helpers to read useful task_struct members

2017-11-06 Thread Tushar Dave
On 11/02/2017 11:58 PM, Sandipan Das wrote: For added security, the layout of some structures can be randomized by enabling CONFIG_GCC_PLUGIN_RANDSTRUCT. One such structure is task_struct. To build BPF programs, we use Clang which does not support this feature. So, if we attempt to read a

[PATCH 3.16 129/294] arm64: fpsimd: Prevent registers leaking across exec

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Dave Martin commit 096622104e14d8a1db4860bd557717067a0515d2 upstream. There are some tricky dependencies between the different stages of flushing the FPSIMD register

[PATCH 3.16 128/294] ALSA: core: Fix unexpected error at replacing user TLV

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 88c54cdf61f508ebcf8da2d819f5dfc03e954d1d upstream. When user tries to replace the user-defined control TLV, the kernel checks the change of its content via

[PATCH 3.16 129/294] arm64: fpsimd: Prevent registers leaking across exec

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Dave Martin commit 096622104e14d8a1db4860bd557717067a0515d2 upstream. There are some tricky dependencies between the different stages of flushing the FPSIMD register state during exec, and

[PATCH 3.16 128/294] ALSA: core: Fix unexpected error at replacing user TLV

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Takashi Iwai commit 88c54cdf61f508ebcf8da2d819f5dfc03e954d1d upstream. When user tries to replace the user-defined control TLV, the kernel checks the change of its content via memcmp(). The

[PATCH 3.16 113/294] audit: Fix use after free in audit_remove_watch_rule()

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Jan Kara commit d76036ab47eafa6ce52b69482e91ca3ba337d6d6 upstream. audit_remove_watch_rule() drops watch's reference to parent but then continues to work with it. That is not

[PATCH 3.16 113/294] audit: Fix use after free in audit_remove_watch_rule()

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Jan Kara commit d76036ab47eafa6ce52b69482e91ca3ba337d6d6 upstream. audit_remove_watch_rule() drops watch's reference to parent but then continues to work with it. That is not safe as parent

[PATCH 3.16 152/294] xfrm_user: fix info leak in build_aevent()

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Mathias Krause commit 931e79d7a7ddee4709c56b39de169a36804589a1 upstream. The memory reserved to dump the ID of the xfrm state includes a padding byte in struct

[PATCH 3.16 152/294] xfrm_user: fix info leak in build_aevent()

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Mathias Krause commit 931e79d7a7ddee4709c56b39de169a36804589a1 upstream. The memory reserved to dump the ID of the xfrm state includes a padding byte in struct xfrm_usersa_id added by the

[PATCH 3.16 140/294] net: systemport: Free DMA coherent descriptors on errors

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Florian Fainelli commit c2062ee3d9615828109ffe8089fbf69bed394d05 upstream. In case bcm_sysport_init_tx_ring() is not able to allocate ring->cbs, we would return with an

[PATCH 3.16 140/294] net: systemport: Free DMA coherent descriptors on errors

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Florian Fainelli commit c2062ee3d9615828109ffe8089fbf69bed394d05 upstream. In case bcm_sysport_init_tx_ring() is not able to allocate ring->cbs, we would return with an error, and call

[PATCH 3.16 124/294] Input: trackpoint - add new trackpoint firmware ID

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Aaron Ma commit ec667683c532c93fb41e100e5d61a518971060e2 upstream. Synaptics add new TP firmware ID: 0x2 and 0x3, for now both lower 2 bits are indicated as TP. Change

[PATCH 3.16 124/294] Input: trackpoint - add new trackpoint firmware ID

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Aaron Ma commit ec667683c532c93fb41e100e5d61a518971060e2 upstream. Synaptics add new TP firmware ID: 0x2 and 0x3, for now both lower 2 bits are indicated as TP. Change the constant to bitwise

[PATCH 3.16 145/294] ipv6: Add rt6_get_cookie() function

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Martin KaFai Lau commit b197df4f0f3782782e9ea8996e91b65ae33e8dd9 upstream. Instead of doing the rt6->rt6i_node check whenever we need to get the route's cookie. Refactor it

[PATCH 3.16 145/294] ipv6: Add rt6_get_cookie() function

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Martin KaFai Lau commit b197df4f0f3782782e9ea8996e91b65ae33e8dd9 upstream. Instead of doing the rt6->rt6i_node check whenever we need to get the route's cookie. Refactor it into

[PATCH 3.16 147/294] ipv6: Fix may be used uninitialized warning in rt6_check

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Steffen Klassert commit 3614364527daa870264f6dde77f02853cdecd02c upstream. rt_cookie might be used uninitialized, fix this by initializing it. Fixes:

[PATCH 3.16 147/294] ipv6: Fix may be used uninitialized warning in rt6_check

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Steffen Klassert commit 3614364527daa870264f6dde77f02853cdecd02c upstream. rt_cookie might be used uninitialized, fix this by initializing it. Fixes: c5cff8561d2d ("ipv6: add rcu grace

[PATCH 3.16 095/294] ext4: fix SEEK_HOLE/SEEK_DATA for blocksize < pagesize

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Jan Kara commit fcf5ea10992fbac3c7473a1db33d56a139333cd1 upstream. ext4_find_unwritten_pgoff() does not properly handle a situation when starting index is in the middle of a

[PATCH 3.16 030/294] usb: renesas_usbhs: fix usbhsc_resume() for !USBHSF_RUNTIME_PWCTRL

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Yoshihiro Shimoda commit 59a0879a0e17b2e43ecdc5e3299da85b8410d7ce upstream. This patch fixes an issue that some registers may be not initialized after resume

[PATCH 3.16 095/294] ext4: fix SEEK_HOLE/SEEK_DATA for blocksize < pagesize

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Jan Kara commit fcf5ea10992fbac3c7473a1db33d56a139333cd1 upstream. ext4_find_unwritten_pgoff() does not properly handle a situation when starting index is in the middle of a page and

[PATCH 3.16 030/294] usb: renesas_usbhs: fix usbhsc_resume() for !USBHSF_RUNTIME_PWCTRL

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Yoshihiro Shimoda commit 59a0879a0e17b2e43ecdc5e3299da85b8410d7ce upstream. This patch fixes an issue that some registers may be not initialized after resume if the USBHSF_RUNTIME_PWCTRL is

[PATCH 3.16 112/294] af_key: do not use GFP_KERNEL in atomic contexts

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet commit 36f41f8fc6d8aa9f8c9072d66ff7cf9055f5e69b upstream. pfkey_broadcast() might be called from non process contexts, we can not use GFP_KERNEL in these

[PATCH 3.16 112/294] af_key: do not use GFP_KERNEL in atomic contexts

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet commit 36f41f8fc6d8aa9f8c9072d66ff7cf9055f5e69b upstream. pfkey_broadcast() might be called from non process contexts, we can not use GFP_KERNEL in these cases [1]. This patch

[PATCH 3.16 115/294] ipv4: add reference counting to metrics

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet commit 3fb07daff8e99243366a081e5129560734de4ada upstream. Andrey Konovalov reported crashes in ipv4_mtu() I could reproduce the issue with KASAN kernels,

[PATCH 3.16 115/294] ipv4: add reference counting to metrics

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Eric Dumazet commit 3fb07daff8e99243366a081e5129560734de4ada upstream. Andrey Konovalov reported crashes in ipv4_mtu() I could reproduce the issue with KASAN kernels, between 10.246.7.151

[PATCH 3.16 070/294] net/mlx5: Fix command bad flow on command entry allocation failure

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Moshe Shemesh commit 219c81f7d1d5a89656cb3b53d3b4e11e93608d80 upstream. When driver fail to allocate an entry to send command to FW, it must notify the calling function

[PATCH 3.16 097/294] iscsi-target: Fix iscsi_np reset hung task during parallel delete

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Nicholas Bellinger commit 978d13d60c34818a41fc35962602bdfa5c03f214 upstream. This patch fixes a bug associated with iscsit_reset_np_thread() that can occur during

[PATCH 3.16 094/294] IB/uverbs: Fix device cleanup

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Yishai Hadas commit efdd6f53b10aead0f5cf19a93dd3eb268ac0d991 upstream. Uverbs device should be cleaned up only when there is no potential usage of. As part of

[PATCH 3.16 070/294] net/mlx5: Fix command bad flow on command entry allocation failure

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Moshe Shemesh commit 219c81f7d1d5a89656cb3b53d3b4e11e93608d80 upstream. When driver fail to allocate an entry to send command to FW, it must notify the calling function and release the memory

[PATCH 3.16 097/294] iscsi-target: Fix iscsi_np reset hung task during parallel delete

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Nicholas Bellinger commit 978d13d60c34818a41fc35962602bdfa5c03f214 upstream. This patch fixes a bug associated with iscsit_reset_np_thread() that can occur during parallel configfs rmdir of a

[PATCH 3.16 094/294] IB/uverbs: Fix device cleanup

2017-11-06 Thread Ben Hutchings
3.16.50-rc1 review patch. If anyone has any objections, please let me know. -- From: Yishai Hadas commit efdd6f53b10aead0f5cf19a93dd3eb268ac0d991 upstream. Uverbs device should be cleaned up only when there is no potential usage of. As part of ib_uverbs_remove_one which

<    4   5   6   7   8   9   10   11   12   13   >