[PATCH AUTOSEL 4.9 23/36] tty/serial: do not free trasnmit buffer page under port lock

2019-01-08 Thread Sasha Levin
From: Sergey Senozhatsky [ Upstream commit d72402145ace0697a6a9e8e75a3de5bf3375f78d ] LKP has hit yet another circular locking dependency between uart console drivers and debugobjects [1]: CPU0CPU1

[PATCH AUTOSEL 4.9 24/36] perf intel-pt: Fix error with config term "pt=0"

2019-01-08 Thread Sasha Levin
From: Adrian Hunter [ Upstream commit 1c6f709b9f96366cc47af23c05ecec9b8c0c392d ] Users should never use 'pt=0', but if they do it may give a meaningless error: $ perf record -e intel_pt/pt=0/u uname Error: The sys_perf_event_open() syscall returned with 22 (Invalid

[PATCH AUTOSEL 4.9 26/36] perf parse-events: Fix unchecked usage of strncpy()

2019-01-08 Thread Sasha Levin
From: Arnaldo Carvalho de Melo [ Upstream commit bd8d57fb7e25e9fcf67a9eef5fa13aabe2016e07 ] The strncpy() function may leave the destination string buffer unterminated, better use strlcpy() that we have a __weak fallback implementation for systems without it. This fixes this warning on an

[PATCH AUTOSEL 4.9 18/36] scsi: target: use consistent left-aligned ASCII INQUIRY data

2019-01-08 Thread Sasha Levin
From: David Disseldorp [ Upstream commit 0de263577de5d5e052be5f4f93334e63cc8a7f0b ] spc5r17.pdf specifies: 4.3.1 ASCII data field requirements ASCII data fields shall contain only ASCII printable characters (i.e., code values 20h to 7Eh) and may be terminated with one or more ASCII null

[PATCH AUTOSEL 4.9 17/36] net: call sk_dst_reset when set SO_DONTROUTE

2019-01-08 Thread Sasha Levin
From: yupeng [ Upstream commit 0fbe82e628c817e292ff588cd5847fc935e025f2 ] after set SO_DONTROUTE to 1, the IP layer should not route packets if the dest IP address is not in link scope. But if the socket has cached the dst_entry, such packets would be routed until the sk_dst_cache expires. So

[PATCH AUTOSEL 4.9 16/36] media: firewire: Fix app_info parameter type in avc_ca{,_app}_info

2019-01-08 Thread Sasha Levin
From: Nathan Chancellor [ Upstream commit b2e9a4eda11fd2cb1e6714e9ad3f455c402568ff ] Clang warns: drivers/media/firewire/firedtv-avc.c:999:45: warning: implicit conversion from 'int' to 'char' changes value from 159 to -97 [-Wconstant-conversion] app_info[0] = (EN50221_TAG_APP_INFO >>

[PATCH AUTOSEL 4.9 20/36] kconfig: fix file name and line number of warn_ignored_character()

2019-01-08 Thread Sasha Levin
From: Masahiro Yamada [ Upstream commit 77c1c0fa8b1477c5799bdad65026ea5ff676da44 ] Currently, warn_ignore_character() displays invalid file name and line number. The lexer should use current_file->name and yylineno, while the parser should use zconf_curname() and zconf_lineno(). This

[PATCH AUTOSEL 4.9 30/36] ALSA: bebob: fix model-id of unit for Apogee Ensemble

2019-01-08 Thread Sasha Levin
From: Takashi Sakamoto [ Upstream commit 644b2e97405b0b74845e1d3c2b4fe4c34858062b ] This commit fixes hard-coded model-id for an unit of Apogee Ensemble with a correct value. This unit uses DM1500 ASIC produced ArchWave AG (formerly known as BridgeCo AG). I note that this model supports three

[PATCH AUTOSEL 4.4 02/28] e1000e: allow non-monotonic SYSTIM readings

2019-01-08 Thread Sasha Levin
From: Miroslav Lichvar [ Upstream commit e1f65b0d70e9e5c80e15105cd96fa00174d7c436 ] It seems with some NICs supported by the e1000e driver a SYSTIM reading may occasionally be few microseconds before the previous reading and if enabled also pass e1000e_sanitize_systim() without reaching the

[PATCH AUTOSEL 4.4 05/28] arm64: perf: set suppress_bind_attrs flag to true

2019-01-08 Thread Sasha Levin
From: Anders Roxell [ Upstream commit 81e9fa8bab381f8b6eb04df7cdf0f71994099bd4 ] The armv8_pmuv3 driver doesn't have a remove function, and when the test 'CONFIG_DEBUG_TEST_DRIVER_REMOVE=y' is enabled, the following Call trace can be seen. [1.424287] Failed to register pmu: armv8_pmuv3,

[PATCH AUTOSEL 4.9 29/36] dm snapshot: Fix excessive memory usage and workqueue stalls

2019-01-08 Thread Sasha Levin
From: Nikos Tsironis [ Upstream commit 721b1d98fb517ae99ab3b757021cf81db41e67be ] kcopyd has no upper limit to the number of jobs one can allocate and issue. Under certain workloads this can lead to excessive memory usage and workqueue stalls. For example, when creating multiple dm-snapshot

[PATCH AUTOSEL 4.9 32/36] scsi: smartpqi: correct lun reset issues

2019-01-08 Thread Sasha Levin
From: Kevin Barnett [ Upstream commit 2ba55c9851d74eb015a554ef69ddf2ef061d5780 ] Problem: The Linux kernel takes a logical volume offline after a LUN reset. This is generally accompanied by this message in the dmesg output: Device offlined - not ready after error recovery Root Cause: The

[PATCH AUTOSEL 4.9 34/36] ocfs2: fix panic due to unrecovered local alloc

2019-01-08 Thread Sasha Levin
From: Junxiao Bi [ Upstream commit 532e1e54c8140188e192348c790317921cb2dc1c ] mount.ocfs2 ignore the inconsistent error that journal is clean but local alloc is unrecovered. After mount, local alloc not empty, then reserver cluster didn't alloc a new local alloc window, reserveration map is

[PATCH AUTOSEL 4.9 31/36] sysfs: Disable lockdep for driver bind/unbind files

2019-01-08 Thread Sasha Levin
From: Daniel Vetter [ Upstream commit 4f4b374332ec0ae9c738ff8ec9bed5cd97ff9adc ] This is the much more correct fix for my earlier attempt at: https://lkml.org/lkml/2018/12/10/118 Short recap: - There's not actually a locking issue, it's just lockdep being a bit too eager to complain about

[PATCH AUTOSEL 4.9 35/36] mm/page-writeback.c: don't break integrity writeback on ->writepage() error

2019-01-08 Thread Sasha Levin
From: Brian Foster [ Upstream commit 3fa750dcf29e8606e3969d13d8e188cc1c0f511d ] write_cache_pages() is used in both background and integrity writeback scenarios by various filesystems. Background writeback is mostly concerned with cleaning a certain number of dirty pages based on various mm

[PATCH AUTOSEL 4.4 01/28] platform/x86: asus-wmi: Tell the EC the OS will handle the display off hotkey

2019-01-08 Thread Sasha Levin
From: João Paulo Rechi Vita [ Upstream commit 78f3ac76d9e5219589718b9e4733bee21627b3f5 ] In the past, Asus firmwares would change the panel backlight directly through the EC when the display off hotkey (Fn+F7) was pressed, and only notify the OS of such change, with 0x33 when the LCD was ON and

[PATCH AUTOSEL 4.4 06/28] USB: serial: ftdi_sio: use rounding when calculating baud rate divisors

2019-01-08 Thread Sasha Levin
From: Nikolaj Fogh [ Upstream commit 6abd837104a3a8e1cda64fc4d7675f6c3ece9d8b ] Improve baud-rate generation by using rounding-to-closest instead of truncation in divisor calculation. Results have been verified by logic analyzer on an FT232RT (232BM) chip. The following table shows the wanted

[PATCH AUTOSEL 4.4 08/28] jffs2: Fix use of uninitialized delayed_work, lockdep breakage

2019-01-08 Thread Sasha Levin
From: Daniel Santos [ Upstream commit a788c5272769ddbcdbab297cf386413eeac04463 ] jffs2_sync_fs makes the assumption that if CONFIG_JFFS2_FS_WRITEBUFFER is defined then a write buffer is available and has been initialized. However, this does is not the case when the mtd device has no out-of-band

[PATCH AUTOSEL 4.4 10/28] powerpc/pseries/cpuidle: Fix preempt warning

2019-01-08 Thread Sasha Levin
From: Breno Leitao [ Upstream commit 2b038cbc5fcf12a7ee1cc9bfd5da1e46dacdee87 ] When booting a pseries kernel with PREEMPT enabled, it dumps the following warning: BUG: using smp_processor_id() in preemptible [] code: swapper/0/1 caller is pseries_processor_idle_init+0x5c/0x22c

[PATCH AUTOSEL 4.4 13/28] scsi: target: use consistent left-aligned ASCII INQUIRY data

2019-01-08 Thread Sasha Levin
From: David Disseldorp [ Upstream commit 0de263577de5d5e052be5f4f93334e63cc8a7f0b ] spc5r17.pdf specifies: 4.3.1 ASCII data field requirements ASCII data fields shall contain only ASCII printable characters (i.e., code values 20h to 7Eh) and may be terminated with one or more ASCII null

[PATCH AUTOSEL 4.4 12/28] net: call sk_dst_reset when set SO_DONTROUTE

2019-01-08 Thread Sasha Levin
From: yupeng [ Upstream commit 0fbe82e628c817e292ff588cd5847fc935e025f2 ] after set SO_DONTROUTE to 1, the IP layer should not route packets if the dest IP address is not in link scope. But if the socket has cached the dst_entry, such packets would be routed until the sk_dst_cache expires. So

[PATCH AUTOSEL 4.4 18/28] perf intel-pt: Fix error with config term "pt=0"

2019-01-08 Thread Sasha Levin
From: Adrian Hunter [ Upstream commit 1c6f709b9f96366cc47af23c05ecec9b8c0c392d ] Users should never use 'pt=0', but if they do it may give a meaningless error: $ perf record -e intel_pt/pt=0/u uname Error: The sys_perf_event_open() syscall returned with 22 (Invalid

[PATCH AUTOSEL 4.4 09/28] pstore/ram: Do not treat empty buffers as valid

2019-01-08 Thread Sasha Levin
From: "Joel Fernandes (Google)" [ Upstream commit 30696378f68a9e3dad6bfe55938b112e72af00c2 ] The ramoops backend currently calls persistent_ram_save_old() even if a buffer is empty. While this appears to work, it is does not seem like the right thing to do and could lead to future bugs so lets

[PATCH AUTOSEL 4.4 14/28] clk: imx6q: reset exclusive gates on init

2019-01-08 Thread Sasha Levin
From: Lucas Stach [ Upstream commit f7542d817733f461258fd3a47d77da35b2d9fc81 ] The exclusive gates may be set up in the wrong way by software running before the clock driver comes up. In that case the exclusive setup is locked in its initial state, as the complementary function can't be

[PATCH AUTOSEL 4.4 15/28] kconfig: fix file name and line number of warn_ignored_character()

2019-01-08 Thread Sasha Levin
From: Masahiro Yamada [ Upstream commit 77c1c0fa8b1477c5799bdad65026ea5ff676da44 ] Currently, warn_ignore_character() displays invalid file name and line number. The lexer should use current_file->name and yylineno, while the parser should use zconf_curname() and zconf_lineno(). This

[PATCH AUTOSEL 4.4 07/28] drm/amdgpu: Correct get_crtc_scanoutpos behavior when vpos >= vtotal

2019-01-08 Thread Sasha Levin
From: Nicholas Kazlauskas [ Upstream commit 520f08df45fbe300ed650da786a74093d658b7e1 ] When variable refresh rate is active the hardware counter can return a position >= vtotal. This results in a vpos being returned from amdgpu_display_get_crtc_scanoutpos that's a positive value. The positive

[PATCH AUTOSEL 4.4 11/28] media: firewire: Fix app_info parameter type in avc_ca{,_app}_info

2019-01-08 Thread Sasha Levin
From: Nathan Chancellor [ Upstream commit b2e9a4eda11fd2cb1e6714e9ad3f455c402568ff ] Clang warns: drivers/media/firewire/firedtv-avc.c:999:45: warning: implicit conversion from 'int' to 'char' changes value from 159 to -97 [-Wconstant-conversion] app_info[0] = (EN50221_TAG_APP_INFO >>

[PATCH AUTOSEL 4.4 16/28] kconfig: fix memory leak when EOF is encountered in quotation

2019-01-08 Thread Sasha Levin
From: Masahiro Yamada [ Upstream commit fbac5977d81cb2b2b7e37b11c459055d9585273c ] An unterminated string literal followed by new line is passed to the parser (with "multi-line strings not supported" warning shown), then handled properly there. On the other hand, an unterminated string literal

[PATCH AUTOSEL 4.4 17/28] mmc: atmel-mci: do not assume idle after atmci_request_end

2019-01-08 Thread Sasha Levin
From: Jonas Danielsson [ Upstream commit ae460c115b7aa50c9a36cf78fced07b27962c9d0 ] On our AT91SAM9260 board we use the same sdio bus for wifi and for the sd card slot. This caused the atmel-mci to give the following splat on the serial console: [ cut here ]

[PATCH AUTOSEL 4.4 27/28] mm/page-writeback.c: don't break integrity writeback on ->writepage() error

2019-01-08 Thread Sasha Levin
From: Brian Foster [ Upstream commit 3fa750dcf29e8606e3969d13d8e188cc1c0f511d ] write_cache_pages() is used in both background and integrity writeback scenarios by various filesystems. Background writeback is mostly concerned with cleaning a certain number of dirty pages based on various mm

[PATCH AUTOSEL 4.4 25/28] scsi: megaraid: fix out-of-bound array accesses

2019-01-08 Thread Sasha Levin
From: Qian Cai [ Upstream commit c7a082e4242fd8cd21a441071e622f87c16bdacc ] UBSAN reported those with MegaRAID SAS-3 3108, [ 77.467308] UBSAN: Undefined behaviour in drivers/scsi/megaraid/megaraid_sas_fp.c:117:32 [ 77.475402] index 255 is out of range for type 'MR_LD_SPAN_MAP [1]' [

[PATCH AUTOSEL 4.4 24/28] sysfs: Disable lockdep for driver bind/unbind files

2019-01-08 Thread Sasha Levin
From: Daniel Vetter [ Upstream commit 4f4b374332ec0ae9c738ff8ec9bed5cd97ff9adc ] This is the much more correct fix for my earlier attempt at: https://lkml.org/lkml/2018/12/10/118 Short recap: - There's not actually a locking issue, it's just lockdep being a bit too eager to complain about

[PATCH AUTOSEL 4.4 21/28] dm kcopyd: Fix bug causing workqueue stalls

2019-01-08 Thread Sasha Levin
From: Nikos Tsironis [ Upstream commit d7e6b8dfc7bcb3f4f3a18313581f67486a725b52 ] When using kcopyd to run callbacks through dm_kcopyd_do_callback() or submitting copy jobs with a source size of 0, the jobs are pushed directly to the complete_jobs list, which could be under processing by the

[PATCH AUTOSEL 3.18 03/19] jffs2: Fix use of uninitialized delayed_work, lockdep breakage

2019-01-08 Thread Sasha Levin
From: Daniel Santos [ Upstream commit a788c5272769ddbcdbab297cf386413eeac04463 ] jffs2_sync_fs makes the assumption that if CONFIG_JFFS2_FS_WRITEBUFFER is defined then a write buffer is available and has been initialized. However, this does is not the case when the mtd device has no out-of-band

[PATCH AUTOSEL 4.4 23/28] ALSA: bebob: fix model-id of unit for Apogee Ensemble

2019-01-08 Thread Sasha Levin
From: Takashi Sakamoto [ Upstream commit 644b2e97405b0b74845e1d3c2b4fe4c34858062b ] This commit fixes hard-coded model-id for an unit of Apogee Ensemble with a correct value. This unit uses DM1500 ASIC produced ArchWave AG (formerly known as BridgeCo AG). I note that this model supports three

[PATCH AUTOSEL 4.4 26/28] ocfs2: fix panic due to unrecovered local alloc

2019-01-08 Thread Sasha Levin
From: Junxiao Bi [ Upstream commit 532e1e54c8140188e192348c790317921cb2dc1c ] mount.ocfs2 ignore the inconsistent error that journal is clean but local alloc is unrecovered. After mount, local alloc not empty, then reserver cluster didn't alloc a new local alloc window, reserveration map is

Re: [PATCH] i2c: dev: prevent adapter retries and timeout being set as minus value

2019-01-08 Thread Wolfram Sang
On Mon, Jan 07, 2019 at 08:37:41PM +0800, Yi Zeng wrote: > If set adapter->retries to minus value from user space via ioctl, > will make __i2c_transfer and __i2c_smbus_xfer jump the calling to > adapter->algo->master_xfer and adapter->algo->smbus_xfer that > registered by the underlying bus

[PATCH AUTOSEL 4.4 20/28] perf parse-events: Fix unchecked usage of strncpy()

2019-01-08 Thread Sasha Levin
From: Arnaldo Carvalho de Melo [ Upstream commit bd8d57fb7e25e9fcf67a9eef5fa13aabe2016e07 ] The strncpy() function may leave the destination string buffer unterminated, better use strlcpy() that we have a __weak fallback implementation for systems without it. This fixes this warning on an

[PATCH AUTOSEL 3.18 09/19] clk: imx6q: reset exclusive gates on init

2019-01-08 Thread Sasha Levin
From: Lucas Stach [ Upstream commit f7542d817733f461258fd3a47d77da35b2d9fc81 ] The exclusive gates may be set up in the wrong way by software running before the clock driver comes up. In that case the exclusive setup is locked in its initial state, as the complementary function can't be

[PATCH] bio-integrity: use struct_size() in kmalloc()

2019-01-08 Thread Gustavo A. R. Silva
One of the more common cases of allocation size calculations is finding the size of a structure that has a zero-sized array at the end, along with memory for some number of elements for that array. For example: struct foo { int stuff; void *entry[]; }; instance = kmalloc(sizeof(struct

[PATCH AUTOSEL 3.18 06/19] media: firewire: Fix app_info parameter type in avc_ca{,_app}_info

2019-01-08 Thread Sasha Levin
From: Nathan Chancellor [ Upstream commit b2e9a4eda11fd2cb1e6714e9ad3f455c402568ff ] Clang warns: drivers/media/firewire/firedtv-avc.c:999:45: warning: implicit conversion from 'int' to 'char' changes value from 159 to -97 [-Wconstant-conversion] app_info[0] = (EN50221_TAG_APP_INFO >>

[PATCH AUTOSEL 3.18 01/19] MIPS: SiByte: Enable swiotlb for SWARM, LittleSur and BigSur

2019-01-08 Thread Sasha Levin
From: "Maciej W. Rozycki" [ Upstream commit e4849aff1e169b86c561738daf8ff020e9de1011 ] The Broadcom SiByte BCM1250, BCM1125, and BCM1125H SOCs have an onchip DRAM controller that supports memory amounts of up to 16GiB, and due to how the address decoder has been wired in the SOC any memory

[PATCH AUTOSEL 3.18 11/19] mmc: atmel-mci: do not assume idle after atmci_request_end

2019-01-08 Thread Sasha Levin
From: Jonas Danielsson [ Upstream commit ae460c115b7aa50c9a36cf78fced07b27962c9d0 ] On our AT91SAM9260 board we use the same sdio bus for wifi and for the sd card slot. This caused the atmel-mci to give the following splat on the serial console: [ cut here ]

[PATCH AUTOSEL 3.18 07/19] net: call sk_dst_reset when set SO_DONTROUTE

2019-01-08 Thread Sasha Levin
From: yupeng [ Upstream commit 0fbe82e628c817e292ff588cd5847fc935e025f2 ] after set SO_DONTROUTE to 1, the IP layer should not route packets if the dest IP address is not in link scope. But if the socket has cached the dst_entry, such packets would be routed until the sk_dst_cache expires. So

[PATCH AUTOSEL 3.18 08/19] scsi: target: use consistent left-aligned ASCII INQUIRY data

2019-01-08 Thread Sasha Levin
From: David Disseldorp [ Upstream commit 0de263577de5d5e052be5f4f93334e63cc8a7f0b ] spc5r17.pdf specifies: 4.3.1 ASCII data field requirements ASCII data fields shall contain only ASCII printable characters (i.e., code values 20h to 7Eh) and may be terminated with one or more ASCII null

[PATCH AUTOSEL 3.18 13/19] perf parse-events: Fix unchecked usage of strncpy()

2019-01-08 Thread Sasha Levin
From: Arnaldo Carvalho de Melo [ Upstream commit bd8d57fb7e25e9fcf67a9eef5fa13aabe2016e07 ] The strncpy() function may leave the destination string buffer unterminated, better use strlcpy() that we have a __weak fallback implementation for systems without it. This fixes this warning on an

[PATCH AUTOSEL 3.18 16/19] ALSA: bebob: fix model-id of unit for Apogee Ensemble

2019-01-08 Thread Sasha Levin
From: Takashi Sakamoto [ Upstream commit 644b2e97405b0b74845e1d3c2b4fe4c34858062b ] This commit fixes hard-coded model-id for an unit of Apogee Ensemble with a correct value. This unit uses DM1500 ASIC produced ArchWave AG (formerly known as BridgeCo AG). I note that this model supports three

[PATCH AUTOSEL 3.18 19/19] mm, proc: be more verbose about unstable VMA flags in /proc//smaps

2019-01-08 Thread Sasha Levin
From: Michal Hocko [ Upstream commit 7550c6079846a24f30d15ac75a941c8515dbedfb ] Patch series "THP eligibility reporting via proc". This series of three patches aims at making THP eligibility reporting much more robust and long term sustainable. The trigger for the change is a regression

[PATCH AUTOSEL 3.18 14/19] dm kcopyd: Fix bug causing workqueue stalls

2019-01-08 Thread Sasha Levin
From: Nikos Tsironis [ Upstream commit d7e6b8dfc7bcb3f4f3a18313581f67486a725b52 ] When using kcopyd to run callbacks through dm_kcopyd_do_callback() or submitting copy jobs with a source size of 0, the jobs are pushed directly to the complete_jobs list, which could be under processing by the

[PATCH AUTOSEL 3.18 12/19] perf svghelper: Fix unchecked usage of strncpy()

2019-01-08 Thread Sasha Levin
From: Arnaldo Carvalho de Melo [ Upstream commit 2f5302533f306d5ee87bd375aef9ca35b91762cb ] The strncpy() function may leave the destination string buffer unterminated, better use strlcpy() that we have a __weak fallback implementation for systems without it. In this specific case this would

Re: [PATCH v2 07/14] drm: move EXPORT_SYMBOL_FOR_TESTS_ONLY to drm_util.h

2019-01-08 Thread Sam Ravnborg
Hi Christoph On Thu, Jan 03, 2019 at 12:16:46AM -0800, Christoph Hellwig wrote: > On Sun, Dec 30, 2018 at 06:48:31PM +0100, Sam Ravnborg wrote: > > +/* > > + * Use EXPORT_SYMBOL_FOR_TESTS_ONLY() for functions that shall > > + * only be visible for drmselftests. > > + */ > > +#if

Re: [PATCH 1/1] mm/vmalloc: Make vmalloc_32_user() align base kernel virtual address to SHMLBA

2019-01-08 Thread Andrew Morton
On Tue, 8 Jan 2019 12:09:44 +0100 Roman Penyaev wrote: > This patch repeats the original one from David S. Miller: > > 2dca6999eed5 ("mm, perf_event: Make vmalloc_user() align base kernel > virtual address to SHMLBA") > > but for missed vmalloc_32_user() case, which also requires correct >

[PATCH AUTOSEL 3.18 17/19] sysfs: Disable lockdep for driver bind/unbind files

2019-01-08 Thread Sasha Levin
From: Daniel Vetter [ Upstream commit 4f4b374332ec0ae9c738ff8ec9bed5cd97ff9adc ] This is the much more correct fix for my earlier attempt at: https://lkml.org/lkml/2018/12/10/118 Short recap: - There's not actually a locking issue, it's just lockdep being a bit too eager to complain about

[PATCH AUTOSEL 3.18 15/19] dm snapshot: Fix excessive memory usage and workqueue stalls

2019-01-08 Thread Sasha Levin
From: Nikos Tsironis [ Upstream commit 721b1d98fb517ae99ab3b757021cf81db41e67be ] kcopyd has no upper limit to the number of jobs one can allocate and issue. Under certain workloads this can lead to excessive memory usage and workqueue stalls. For example, when creating multiple dm-snapshot

[PATCH AUTOSEL 3.18 18/19] ocfs2: fix panic due to unrecovered local alloc

2019-01-08 Thread Sasha Levin
From: Junxiao Bi [ Upstream commit 532e1e54c8140188e192348c790317921cb2dc1c ] mount.ocfs2 ignore the inconsistent error that journal is clean but local alloc is unrecovered. After mount, local alloc not empty, then reserver cluster didn't alloc a new local alloc window, reserveration map is

[PATCH AUTOSEL 4.4 28/28] mm, proc: be more verbose about unstable VMA flags in /proc//smaps

2019-01-08 Thread Sasha Levin
From: Michal Hocko [ Upstream commit 7550c6079846a24f30d15ac75a941c8515dbedfb ] Patch series "THP eligibility reporting via proc". This series of three patches aims at making THP eligibility reporting much more robust and long term sustainable. The trigger for the change is a regression

[PATCH AUTOSEL 3.18 05/19] powerpc/pseries/cpuidle: Fix preempt warning

2019-01-08 Thread Sasha Levin
From: Breno Leitao [ Upstream commit 2b038cbc5fcf12a7ee1cc9bfd5da1e46dacdee87 ] When booting a pseries kernel with PREEMPT enabled, it dumps the following warning: BUG: using smp_processor_id() in preemptible [] code: swapper/0/1 caller is pseries_processor_idle_init+0x5c/0x22c

[PATCH AUTOSEL 4.9 36/36] mm, proc: be more verbose about unstable VMA flags in /proc//smaps

2019-01-08 Thread Sasha Levin
From: Michal Hocko [ Upstream commit 7550c6079846a24f30d15ac75a941c8515dbedfb ] Patch series "THP eligibility reporting via proc". This series of three patches aims at making THP eligibility reporting much more robust and long term sustainable. The trigger for the change is a regression

[PATCH AUTOSEL 4.4 03/28] writeback: don't decrement wb->refcnt if !wb->bdi

2019-01-08 Thread Sasha Levin
From: Anders Roxell [ Upstream commit 347a28b586802d09604a149c1a1f6de5dccbe6fa ] This happened while running in qemu-system-aarch64, the AMBA PL011 UART driver when enabling CONFIG_DEBUG_TEST_DRIVER_REMOVE. arch_initcall(pl011_init) came before subsys_initcall(default_bdi_init), devtmpfs'

[PATCH AUTOSEL 3.18 04/19] pstore/ram: Do not treat empty buffers as valid

2019-01-08 Thread Sasha Levin
From: "Joel Fernandes (Google)" [ Upstream commit 30696378f68a9e3dad6bfe55938b112e72af00c2 ] The ramoops backend currently calls persistent_ram_save_old() even if a buffer is empty. While this appears to work, it is does not seem like the right thing to do and could lead to future bugs so lets

[PATCH AUTOSEL 4.4 04/28] MIPS: SiByte: Enable swiotlb for SWARM, LittleSur and BigSur

2019-01-08 Thread Sasha Levin
From: "Maciej W. Rozycki" [ Upstream commit e4849aff1e169b86c561738daf8ff020e9de1011 ] The Broadcom SiByte BCM1250, BCM1125, and BCM1125H SOCs have an onchip DRAM controller that supports memory amounts of up to 16GiB, and due to how the address decoder has been wired in the SOC any memory

[PATCH AUTOSEL 3.18 10/19] kconfig: fix memory leak when EOF is encountered in quotation

2019-01-08 Thread Sasha Levin
From: Masahiro Yamada [ Upstream commit fbac5977d81cb2b2b7e37b11c459055d9585273c ] An unterminated string literal followed by new line is passed to the parser (with "multi-line strings not supported" warning shown), then handled properly there. On the other hand, an unterminated string literal

[PATCH AUTOSEL 3.18 02/19] USB: serial: ftdi_sio: use rounding when calculating baud rate divisors

2019-01-08 Thread Sasha Levin
From: Nikolaj Fogh [ Upstream commit 6abd837104a3a8e1cda64fc4d7675f6c3ece9d8b ] Improve baud-rate generation by using rounding-to-closest instead of truncation in divisor calculation. Results have been verified by logic analyzer on an FT232RT (232BM) chip. The following table shows the wanted

[PATCH AUTOSEL 4.4 19/28] perf svghelper: Fix unchecked usage of strncpy()

2019-01-08 Thread Sasha Levin
From: Arnaldo Carvalho de Melo [ Upstream commit 2f5302533f306d5ee87bd375aef9ca35b91762cb ] The strncpy() function may leave the destination string buffer unterminated, better use strlcpy() that we have a __weak fallback implementation for systems without it. In this specific case this would

[PATCH AUTOSEL 4.4 22/28] dm snapshot: Fix excessive memory usage and workqueue stalls

2019-01-08 Thread Sasha Levin
From: Nikos Tsironis [ Upstream commit 721b1d98fb517ae99ab3b757021cf81db41e67be ] kcopyd has no upper limit to the number of jobs one can allocate and issue. Under certain workloads this can lead to excessive memory usage and workqueue stalls. For example, when creating multiple dm-snapshot

[PATCH AUTOSEL 4.14 51/53] mm/page-writeback.c: don't break integrity writeback on ->writepage() error

2019-01-08 Thread Sasha Levin
From: Brian Foster [ Upstream commit 3fa750dcf29e8606e3969d13d8e188cc1c0f511d ] write_cache_pages() is used in both background and integrity writeback scenarios by various filesystems. Background writeback is mostly concerned with cleaning a certain number of dirty pages based on various mm

[PATCH AUTOSEL 4.9 11/36] rxe: IB_WR_REG_MR does not capture MR's iova field

2019-01-08 Thread Sasha Levin
From: Chuck Lever [ Upstream commit b024dd0eba6e6d568f69d63c5e3153aba94c23e3 ] FRWR memory registration is done with a series of calls and WRs. 1. ULP invokes ib_dma_map_sg() 2. ULP invokes ib_map_mr_sg() 3. ULP posts an IB_WR_REG_MR on the Send queue Step 2 generates an iova. It is

[PATCH AUTOSEL 4.9 33/36] scsi: megaraid: fix out-of-bound array accesses

2019-01-08 Thread Sasha Levin
From: Qian Cai [ Upstream commit c7a082e4242fd8cd21a441071e622f87c16bdacc ] UBSAN reported those with MegaRAID SAS-3 3108, [ 77.467308] UBSAN: Undefined behaviour in drivers/scsi/megaraid/megaraid_sas_fp.c:117:32 [ 77.475402] index 255 is out of range for type 'MR_LD_SPAN_MAP [1]' [

[PATCH AUTOSEL 4.9 25/36] perf svghelper: Fix unchecked usage of strncpy()

2019-01-08 Thread Sasha Levin
From: Arnaldo Carvalho de Melo [ Upstream commit 2f5302533f306d5ee87bd375aef9ca35b91762cb ] The strncpy() function may leave the destination string buffer unterminated, better use strlcpy() that we have a __weak fallback implementation for systems without it. In this specific case this would

[PATCH AUTOSEL 4.14 49/53] scsi: megaraid: fix out-of-bound array accesses

2019-01-08 Thread Sasha Levin
From: Qian Cai [ Upstream commit c7a082e4242fd8cd21a441071e622f87c16bdacc ] UBSAN reported those with MegaRAID SAS-3 3108, [ 77.467308] UBSAN: Undefined behaviour in drivers/scsi/megaraid/megaraid_sas_fp.c:117:32 [ 77.475402] index 255 is out of range for type 'MR_LD_SPAN_MAP [1]' [

[PATCH AUTOSEL 4.9 27/36] dm kcopyd: Fix bug causing workqueue stalls

2019-01-08 Thread Sasha Levin
From: Nikos Tsironis [ Upstream commit d7e6b8dfc7bcb3f4f3a18313581f67486a725b52 ] When using kcopyd to run callbacks through dm_kcopyd_do_callback() or submitting copy jobs with a source size of 0, the jobs are pushed directly to the complete_jobs list, which could be under processing by the

[PATCH AUTOSEL 4.9 09/36] selinux: always allow mounting submounts

2019-01-08 Thread Sasha Levin
From: Ondrej Mosnacek [ Upstream commit 2cbdcb882f97a45f7475c67ac6257bbc16277dfe ] If a superblock has the MS_SUBMOUNT flag set, we should always allow mounting it. These mounts are done automatically by the kernel either as part of mounting some parent mount (e.g. debugfs always mounts tracefs

[PATCH AUTOSEL 4.9 01/36] platform/x86: asus-wmi: Tell the EC the OS will handle the display off hotkey

2019-01-08 Thread Sasha Levin
From: João Paulo Rechi Vita [ Upstream commit 78f3ac76d9e5219589718b9e4733bee21627b3f5 ] In the past, Asus firmwares would change the panel backlight directly through the EC when the display off hotkey (Fn+F7) was pressed, and only notify the OS of such change, with 0x33 when the LCD was ON and

[PATCH AUTOSEL 4.9 04/36] serial: set suppress_bind_attrs flag only if builtin

2019-01-08 Thread Sasha Levin
From: Anders Roxell [ Upstream commit 646097940ad35aa2c1f2012af932d55976a9f255 ] When the test 'CONFIG_DEBUG_TEST_DRIVER_REMOVE=y' is enabled, arch_initcall(pl011_init) came before subsys_initcall(default_bdi_init). devtmpfs gets killed because we try to remove a file and decrement the wb

[PATCH AUTOSEL 4.9 03/36] writeback: don't decrement wb->refcnt if !wb->bdi

2019-01-08 Thread Sasha Levin
From: Anders Roxell [ Upstream commit 347a28b586802d09604a149c1a1f6de5dccbe6fa ] This happened while running in qemu-system-aarch64, the AMBA PL011 UART driver when enabling CONFIG_DEBUG_TEST_DRIVER_REMOVE. arch_initcall(pl011_init) came before subsys_initcall(default_bdi_init), devtmpfs'

[PATCH AUTOSEL 4.9 13/36] pstore/ram: Do not treat empty buffers as valid

2019-01-08 Thread Sasha Levin
From: "Joel Fernandes (Google)" [ Upstream commit 30696378f68a9e3dad6bfe55938b112e72af00c2 ] The ramoops backend currently calls persistent_ram_save_old() even if a buffer is empty. While this appears to work, it is does not seem like the right thing to do and could lead to future bugs so lets

[PATCH AUTOSEL 4.9 19/36] clk: imx6q: reset exclusive gates on init

2019-01-08 Thread Sasha Levin
From: Lucas Stach [ Upstream commit f7542d817733f461258fd3a47d77da35b2d9fc81 ] The exclusive gates may be set up in the wrong way by software running before the clock driver comes up. In that case the exclusive setup is locked in its initial state, as the complementary function can't be

[PATCH AUTOSEL 4.14 36/53] perf parse-events: Fix unchecked usage of strncpy()

2019-01-08 Thread Sasha Levin
From: Arnaldo Carvalho de Melo [ Upstream commit bd8d57fb7e25e9fcf67a9eef5fa13aabe2016e07 ] The strncpy() function may leave the destination string buffer unterminated, better use strlcpy() that we have a __weak fallback implementation for systems without it. This fixes this warning on an

[PATCH AUTOSEL 4.14 43/53] clocksource/drivers/integrator-ap: Add missing of_node_put()

2019-01-08 Thread Sasha Levin
From: Yangtao Li [ Upstream commit 5eb73c831171115d3b4347e1e7124a5a35d8086c ] The function of_find_node_by_path() acquires a reference to the node returned by it and that reference needs to be dropped by its caller. integrator_ap_timer_init_of() doesn't do that. The pri_node and the sec_node

[PATCH AUTOSEL 4.14 40/53] tools lib subcmd: Don't add the kernel sources to the include path

2019-01-08 Thread Sasha Levin
From: Arnaldo Carvalho de Melo [ Upstream commit ece9804985b57e1ccd83b1fb6288520955a29d51 ] At some point we decided not to directly include kernel sources files when building tools/perf/, but when tools/lib/subcmd/ was forked from tools/perf it somehow ended up adding it via these two lines in

[PATCH AUTOSEL 4.14 41/53] dm snapshot: Fix excessive memory usage and workqueue stalls

2019-01-08 Thread Sasha Levin
From: Nikos Tsironis [ Upstream commit 721b1d98fb517ae99ab3b757021cf81db41e67be ] kcopyd has no upper limit to the number of jobs one can allocate and issue. Under certain workloads this can lead to excessive memory usage and workqueue stalls. For example, when creating multiple dm-snapshot

[PATCH AUTOSEL 4.14 26/53] selftests: do not macro-expand failed assertion expressions

2019-01-08 Thread Sasha Levin
From: "Dmitry V. Levin" [ Upstream commit b708a3cc9600390ccaa2b68a88087dd265154b2b ] I've stumbled over the current macro-expand behaviour of the test harness: $ gcc -Wall -xc - <<'__EOF__' TEST(macro) { int status = 0; ASSERT_TRUE(WIFSIGNALED(status)); } TEST_HARNESS_MAIN

[PATCH AUTOSEL 4.14 32/53] btrfs: improve error handling of btrfs_add_link

2019-01-08 Thread Sasha Levin
From: Johannes Thumshirn [ Upstream commit 1690dd41e0cb1dade80850ed8a3eb0121b96d22f ] In the error handling block, err holds the return value of either btrfs_del_root_ref() or btrfs_del_inode_ref() but it hasn't been checked since it's introduction with commit fe66a05a0679 (Btrfs: improve error

[PATCH AUTOSEL 4.14 22/53] IB/hfi1: Incorrect sizing of sge for PIO will OOPs

2019-01-08 Thread Sasha Levin
From: "Michael J. Ruhl" [ Upstream commit dbc2970caef74e8ff41923d302aa6fb5a4812d0e ] An incorrect sge sizing in the HFI PIO path will cause an OOPs similar to this: BUG: unable to handle kernel NULL pointer dereference at (null) IP: [] hfi1_verbs_send_pio+0x3d8/0x530 [hfi1] PGD 0 Oops: 1

[PATCH AUTOSEL 4.14 08/53] MIPS: SiByte: Enable swiotlb for SWARM, LittleSur and BigSur

2019-01-08 Thread Sasha Levin
From: "Maciej W. Rozycki" [ Upstream commit e4849aff1e169b86c561738daf8ff020e9de1011 ] The Broadcom SiByte BCM1250, BCM1125, and BCM1125H SOCs have an onchip DRAM controller that supports memory amounts of up to 16GiB, and due to how the address decoder has been wired in the SOC any memory

[PATCH AUTOSEL 4.14 14/53] rxe: IB_WR_REG_MR does not capture MR's iova field

2019-01-08 Thread Sasha Levin
From: Chuck Lever [ Upstream commit b024dd0eba6e6d568f69d63c5e3153aba94c23e3 ] FRWR memory registration is done with a series of calls and WRs. 1. ULP invokes ib_dma_map_sg() 2. ULP invokes ib_map_mr_sg() 3. ULP posts an IB_WR_REG_MR on the Send queue Step 2 generates an iova. It is

[PATCH AUTOSEL 4.14 11/53] usb: gadget: udc: renesas_usb3: add a safety connection way for forced_b_device

2019-01-08 Thread Sasha Levin
From: Yoshihiro Shimoda [ Upstream commit ceb94bc52c437463f0903e61060a94a2226fb672 ] This patch adds a safety connection way for "forced_b_device" with "workaround_for_vbus" like below: < Example for R-Car E3 Ebisu > # modprobe # echo 1 > /sys/kernel/debug/ee02.usb/b_device (connect a

[PATCH AUTOSEL 4.14 17/53] pstore/ram: Do not treat empty buffers as valid

2019-01-08 Thread Sasha Levin
From: "Joel Fernandes (Google)" [ Upstream commit 30696378f68a9e3dad6bfe55938b112e72af00c2 ] The ramoops backend currently calls persistent_ram_save_old() even if a buffer is empty. While this appears to work, it is does not seem like the right thing to do and could lead to future bugs so lets

[PATCH AUTOSEL 4.19 93/97] ocfs2: fix panic due to unrecovered local alloc

2019-01-08 Thread Sasha Levin
From: Junxiao Bi [ Upstream commit 532e1e54c8140188e192348c790317921cb2dc1c ] mount.ocfs2 ignore the inconsistent error that journal is clean but local alloc is unrecovered. After mount, local alloc not empty, then reserver cluster didn't alloc a new local alloc window, reserveration map is

[PATCH AUTOSEL 4.14 01/53] gpio: pl061: Move irq_chip definition inside struct pl061

2019-01-08 Thread Sasha Levin
From: Manivannan Sadhasivam [ Upstream commit ed8dce4c6f726b7f3c6bf40859b92a9e32f189c1 ] Keeping the irq_chip definition static will make it shared with multiple giochips in the system. This practice is considered to be bad and now we will get the below warning from gpiolib core: "detected

[PATCH AUTOSEL 4.19 91/97] scsi: megaraid: fix out-of-bound array accesses

2019-01-08 Thread Sasha Levin
From: Qian Cai [ Upstream commit c7a082e4242fd8cd21a441071e622f87c16bdacc ] UBSAN reported those with MegaRAID SAS-3 3108, [ 77.467308] UBSAN: Undefined behaviour in drivers/scsi/megaraid/megaraid_sas_fp.c:117:32 [ 77.475402] index 255 is out of range for type 'MR_LD_SPAN_MAP [1]' [

[PATCH AUTOSEL 4.14 06/53] ALSA: oxfw: add support for APOGEE duet FireWire

2019-01-08 Thread Sasha Levin
From: Takashi Sakamoto [ Upstream commit fba43f454cdf9caa3185219d116bd2a6e6354552 ] This commit adds support for APOGEE duet FireWire, launched 2007, already discontinued. This model uses Oxford Semiconductor FW971 as its communication engine. Below is information on Configuration ROM of this

[PATCH AUTOSEL 4.19 76/97] dm snapshot: Fix excessive memory usage and workqueue stalls

2019-01-08 Thread Sasha Levin
From: Nikos Tsironis [ Upstream commit 721b1d98fb517ae99ab3b757021cf81db41e67be ] kcopyd has no upper limit to the number of jobs one can allocate and issue. Under certain workloads this can lead to excessive memory usage and workqueue stalls. For example, when creating multiple dm-snapshot

[PATCH AUTOSEL 4.19 95/97] mm/swap: use nr_node_ids for avail_lists in swap_info_struct

2019-01-08 Thread Sasha Levin
From: Aaron Lu [ Upstream commit 66f71da9dd38af17dc17209cdde7987d4679a699 ] Since a2468cc9bfdf ("swap: choose swap device according to numa node"), avail_lists field of swap_info_struct is changed to an array with MAX_NUMNODES elements. This made swap_info_struct size increased to 40KiB and

[PATCH AUTOSEL 4.19 73/97] dm kcopyd: Fix bug causing workqueue stalls

2019-01-08 Thread Sasha Levin
From: Nikos Tsironis [ Upstream commit d7e6b8dfc7bcb3f4f3a18313581f67486a725b52 ] When using kcopyd to run callbacks through dm_kcopyd_do_callback() or submitting copy jobs with a source size of 0, the jobs are pushed directly to the complete_jobs list, which could be under processing by the

[PATCH AUTOSEL 4.19 87/97] scsi: mpt3sas: fix memory ordering on 64bit writes

2019-01-08 Thread Sasha Levin
From: Stephan Günther [ Upstream commit 23c3828aa2f84edec7020c7397a22931e7a879e1 ] With commit 09c2f95ad404 ("scsi: mpt3sas: Swap I/O memory read value back to cpu endianness"), 64bit writes in _base_writeq() were rewritten to use __raw_writeq() instad of writeq(). This introduced a bug

[PATCH AUTOSEL 4.19 79/97] perf tools: Add missing open_memstream() prototype for systems lacking it

2019-01-08 Thread Sasha Levin
From: Arnaldo Carvalho de Melo [ Upstream commit d7a8c4a6a055097a67ccfa3ca7c9ff1b64603a70 ] There are systems such as the Android NDK API level 24 has the open_memstream() function but doesn't provide a prototype, adding noise to the build: builtin-timechart.c: In function 'cat_backtrace':

[PATCH AUTOSEL 4.14 05/53] serial: set suppress_bind_attrs flag only if builtin

2019-01-08 Thread Sasha Levin
From: Anders Roxell [ Upstream commit 646097940ad35aa2c1f2012af932d55976a9f255 ] When the test 'CONFIG_DEBUG_TEST_DRIVER_REMOVE=y' is enabled, arch_initcall(pl011_init) came before subsys_initcall(default_bdi_init). devtmpfs gets killed because we try to remove a file and decrement the wb

[PATCH AUTOSEL 4.19 78/97] perf tools: Add missing sigqueue() prototype for systems lacking it

2019-01-08 Thread Sasha Levin
From: Arnaldo Carvalho de Melo [ Upstream commit 748fe0889c1ff12d378946bd5326e8ee8eacf5cf ] There are systems such as the Android NDK API level 24 has the sigqueue() function but doesn't provide a prototype, adding noise to the build: util/evlist.c: In function

[PATCH AUTOSEL 4.19 85/97] sysfs: Disable lockdep for driver bind/unbind files

2019-01-08 Thread Sasha Levin
From: Daniel Vetter [ Upstream commit 4f4b374332ec0ae9c738ff8ec9bed5cd97ff9adc ] This is the much more correct fix for my earlier attempt at: https://lkml.org/lkml/2018/12/10/118 Short recap: - There's not actually a locking issue, it's just lockdep being a bit too eager to complain about

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