4.18.19-stable review
Subsystems (8)
Greg Kroah-Hartman
maintainerPATCH 188/350 Revert "f2fs: fix to clear PG_checked flag in set_page_dirty()"
In reply to Greg Kroah-Hartman4.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jaegeuk Kim <[email protected]>
commit 164a63fa6b384e30ceb96ed80bc7dc3379bc0960 upstream.
This reverts commit 66110abc4c931f879d70e83e1281f891699364bf.
If we clear the cold data flag out of the writeback flow, we can miscount -1 by end_io, which incurs a deadlock caused by all I/Os being blocked during heavy GC.
Balancing F2FS Async:
- IO (CP: 1, Data: -1, Flush: ( 0 0 1), Discard: ( ...
GC thread: IRQ
- move_data_page()
- set_page_dirty()
- clear_cold_data()
- f2fs_write_end_io()
- type = WB_DATA_TYPE(page); here, we get wrong type
- dec_page_count(sbi, type);
- f2fs_wait_on_page_writeback()
--- fs/f2fs/data.c | 4 ---- 1 file changed, 4 deletions(-)
fs/f2fs/data.c +0 -4
@@ -2501,10 +2501,6 @@ static int f2fs_set_data_page_dirty(struif (!PageUptodate (page))SetPageUptodate (page); -/* don't remain PG_checked flag which was set during GC */ -if (is_cold_data (page)) -clear_cold_data (page); -if (f2fs_is_atomic_file (inode) && !f2fs_is_commit_atomic_write (inode)) {if (!IS_ATOMIC_WRITTEN_PAGE (page)) {f2fs_register_inmem_page (inode, page);
Greg Kroah-Hartman
maintainerPATCH 189/350 f2fs: fix to recover cold bit of inode block during POR
In reply to Greg Kroah-Hartman4.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Chao Yu <[email protected]>
commit ef2a007134b4eaa39264c885999f296577bc87d2 upstream.
Testcase to reproduce this bug:
1. mkfs.f2fs /dev/sdd
2. mount -t f2fs /dev/sdd /mnt/f2fs
3. touch /mnt/f2fs/file
4. sync
5. chattr +A /mnt/f2fs/file
6. xfs_io -f /mnt/f2fs/file -c "fsync"
7. godown /mnt/f2fs
8. umount /mnt/f2fs
9. mount -t f2fs /dev/sdd /mnt/f2fs
10. chattr -A /mnt/f2fs/file
11. xfs_io -f /mnt/f2fs/file -c "fsync"
12. umount /mnt/f2fs
13. mount -t f2fs /dev/sdd /mnt/f2fs
14. lsattr /mnt/f2fs/file
-----------------N- /mnt/f2fs/file
But actually, we expect the corrct result is:
-------A---------N- /mnt/f2fs/file
The reason is in step 9) we missed to recover cold bit flag in inode block, so later, in fsync, we will skip write inode block due to below condition check, result in lossing data in another SPOR.
f2fs_fsync_node_pages()
if (!IS_DNODE(page) || !is_cold_node(page)) continue;
Note that, I guess that some non-dir inode has already lost cold bit during POR, so in order to reenable recovery for those inode, let's try to recover cold bit in f2fs_iget() to save more fsynced data.
--- fs/f2fs/inode.c | 6 ++++++ fs/f2fs/node.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-)
fs/f2fs/inode.c +6 -0
@@ -287,6 +287,12 @@ static int do_read_inode(struct inode *iif (f2fs_has_inline_data (inode) && !f2fs_exist_data (inode))__recover_inline_status (inode, node_page); +/* try to recover cold bit for non-dir inode */ +if (!S_ISDIR (inode->i_mode) && !is_cold_node (node_page)) { +set_cold_node (node_page, false); +set_page_dirty (node_page); + } +/* get rdev by using inline_info */ __get_inode_rdev (inode, ri);
fs/f2fs/node.c +1 -1
@@ -2356,7 +2356,7 @@ retry:if (!PageUptodate (ipage))SetPageUptodate (ipage);fill_node_footer (ipage, ino, ino,0 , true); -set_cold_node (page, false); +set_cold_node (ipage, false); src =F2FS_INODE (page); dst =F2FS_INODE (ipage);
Greg Kroah-Hartman
maintainerPATCH 172/350 usb: chipidea: Prevent unbalanced IRQ disable
In reply to Greg Kroah-Hartman4.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Loic Poulain <[email protected]>
[ Upstream commit 8b97d73c4d72a2abf58f8e49062a7ee1e5f1334e ]
The ChipIdea IRQ is disabled before scheduling the otg work and re-enabled on otg work completion. However if the job is already scheduled we have to undo the effect of disable_irq int order to balance the IRQ disable-depth value.
--- drivers/usb/chipidea/otg.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/usb/chipidea/otg.h +2 -1
@@ -17,7 +17,8 @@ void ci_handle_vbus_change(struct ci_hdrstatic inline void ci_otg_queue_work (struct ci_hdrc *ci) {disable_irq_nosync (ci->irq); -queue_work (ci->wq, &ci->work); +if (queue_work (ci->wq, &ci->work) == false) +enable_irq (ci->irq); }#endif /* __DRIVERS_USB_CHIPIDEA_OTG_H */
Greg Kroah-Hartman
maintainerPATCH 155/350 Drivers: hv: vmbus: Use cpumask_var_t for on-stack cpu mask
In reply to Greg Kroah-Hartman4.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Dexuan Cui <[email protected]>
[ Upstream commit 25355252607ca288f329ee033f387764883393f6 ]
A cpumask structure on the stack can cause a warning with CONFIG_NR_CPUS=8192 (e.g. Ubuntu 16.04 and 18.04 use this):
drivers/hv//channel_mgmt.c: In function ‘init_vp_index’:
drivers/hv//channel_mgmt.c:702:1: warning: the frame size of 1032 bytes
is larger than 1024 bytes [-Wframe-larger-than=]
Nowadays it looks most distros enable CONFIG_CPUMASK_OFFSTACK=y, and hence we can work around the warning by using cpumask_var_t.
--- drivers/hv/channel_mgmt.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)
drivers/hv/channel_mgmt.c +9 -5
@@ -606,16 +606,18 @@ static void init_vp_index(struct vmbus_cbool perf_chn = vmbus_devs[dev_type].perf_device;struct vmbus_channel *primary = channel->primary_channel;int next_node; -struct cpumask available_mask; +cpumask_var_t available_mask;struct cpumask *alloced_mask;if ((vmbus_proto_version ==VERSION_WS2008 ) || - (vmbus_proto_version ==VERSION_WIN7 ) || (!perf_chn)) { + (vmbus_proto_version ==VERSION_WIN7 ) || (!perf_chn) || + !alloc_cpumask_var (&available_mask,GFP_KERNEL )) {/* * Prior to win8, all channel interrupts are * delivered on cpu 0. * Also if the channel is not a performance critical * channel, bind it to cpu 0. +* In case alloc_cpumask_var() fails, bind it to cpu 0. */ channel->numa_node =0 ; channel->target_cpu =0 ;
@@ -653,7 +655,7 @@ static void init_vp_index(struct vmbus_ccpumask_clear (alloced_mask); } -cpumask_xor (&available_mask, alloced_mask, +cpumask_xor (available_mask, alloced_mask,cpumask_of_node (primary->numa_node)); cur_cpu =-1 ;
@@ -671,10 +673,10 @@ static void init_vp_index(struct vmbus_c }while (true) { - cur_cpu =cpumask_next (cur_cpu, &available_mask); + cur_cpu =cpumask_next (cur_cpu, available_mask);if (cur_cpu >= nr_cpu_ids) { cur_cpu =-1 ; -cpumask_copy (&available_mask, +cpumask_copy (available_mask,cpumask_of_node (primary->numa_node));continue ; }
@@ -704,6 +706,8 @@ static void init_vp_index(struct vmbus_c channel->target_cpu = cur_cpu; channel->target_vp =hv_cpu_number_to_vp_number (cur_cpu); + +free_cpumask_var (available_mask); }static void vmbus_wait_for_unload (void )
Greg Kroah-Hartman
maintainerPATCH 19/350 pcmcia: Implement CLKRUN protocol disabling for Ricoh bridges
In reply to Greg Kroah-Hartman4.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Maciej S. Szmigiero <[email protected]>
commit 95691e3eddc41da2d1cd3cca51fecdfb46bd85bc upstream.
Currently, "disable_clkrun" yenta_socket module parameter is only implemented for TI CardBus bridges.
Add also an implementation for Ricoh bridges that have the necessary setting documented in publicly available datasheets.
Tested on a RL5C476II with a Sunrich C-160 CardBus NIC that doesn't work correctly unless the CLKRUN protocol is disabled.
Let's also make it clear in its description that the "disable_clkrun" module parameter only works on these two previously mentioned brands of CardBus bridges.
--- drivers/pcmcia/ricoh.h | 35 +++++++++++++++++++++++++++++++++++ drivers/pcmcia/yenta_socket.c | 3 ++- 2 files changed, 37 insertions(+), 1 deletion(-)
drivers/pcmcia/ricoh.h +35 -0
@@ -119,6 +119,10 @@#define RL5C4XX_MISC_CONTROL 0x2F/* 8 bit */ #define RL5C4XX_ZV_ENABLE 0x08 +/* Misc Control 3 Register */ +#define RL5C4XX_MISC3 0x00A2/* 16 bit */ +#define RL5C47X_MISC3_CB_CLKRUN_DIS BIT(1) +#ifdef __YENTA_H#define rl_misc (socket) ((socket)->private[0])
@@ -156,6 +160,35 @@ static void ricoh_set_zv(struct yenta_so } } +static void ricoh_set_clkrun (struct yenta_socket *socket,bool quiet) +{ +u16 misc3; + +/* +* RL5C475II likely has this setting, too, however no datasheet +* is publicly available for this chip +*/ +if (socket->dev->device !=PCI_DEVICE_ID_RICOH_RL5C476 && + socket->dev->device !=PCI_DEVICE_ID_RICOH_RL5C478 ) +return ; + +if (socket->dev->revision <0x80 ) +return ; + + misc3 =config_readw (socket,RL5C4XX_MISC3 ); +if (misc3 &RL5C47X_MISC3_CB_CLKRUN_DIS ) { +if (!quiet) +dev_dbg (&socket->dev->dev, +"CLKRUN feature already disabled\n" ); + }else if (disable_clkrun) { +if (!quiet) +dev_info (&socket->dev->dev, +"Disabling CLKRUN feature\n" ); + misc3 |=RL5C47X_MISC3_CB_CLKRUN_DIS ; +config_writew (socket,RL5C4XX_MISC3 , misc3); + } +} +static void ricoh_save_state (struct yenta_socket *socket) {rl_misc (socket) =config_readw (socket,RL5C4XX_MISC );
@@ -172,6 +205,7 @@ static void ricoh_restore_state(struct yconfig_writew (socket,RL5C4XX_16BIT_IO_0 ,rl_io (socket));config_writew (socket,RL5C4XX_16BIT_MEM_0 ,rl_mem (socket));config_writew (socket,RL5C4XX_CONFIG ,rl_config (socket)); +ricoh_set_clkrun (socket, true); }
@@ -197,6 +231,7 @@ static int ricoh_override(struct yenta_sconfig_writew (socket,RL5C4XX_CONFIG , config);ricoh_set_zv (socket); +ricoh_set_clkrun (socket, false);return 0 ; }
drivers/pcmcia/yenta_socket.c +2 -1
@@ -26,7 +26,8 @@static bool disable_clkrun;module_param (disable_clkrun, bool,0444 ); -MODULE_PARM_DESC (disable_clkrun,"If PC card doesn't function properly, please try this option" ); +MODULE_PARM_DESC (disable_clkrun, +"If PC card doesn't function properly, please try this option (TI and Ricoh bridges only)" );static bool isa_probe =1 ;module_param (isa_probe, bool,0444 );
Greg Kroah-Hartman
maintainerPATCH 11/350 hwmon: (pmbus) Fix page count auto-detection.
In reply to Greg Kroah-Hartman4.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Dmitry Bazhenov <[email protected]>
commit e7c6a55606b5c46b449d76588968b4d8caae903f upstream.
Devices with compatible="pmbus" field have zero initial page count, and pmbus_clear_faults() being called before the page count auto- detection does not actually clear faults because it depends on the page count. Non-cleared faults in its turn may fail the subsequent page count auto-detection.
This patch fixes this problem by calling pmbus_clear_fault_page() for currently set page and calling pmbus_clear_faults() after the page count was detected.
--- drivers/hwmon/pmbus/pmbus.c | 2 ++ drivers/hwmon/pmbus/pmbus_core.c | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-)
drivers/hwmon/pmbus/pmbus.c +2 -0
@@ -118,6 +118,8 @@ static int pmbus_identify(struct i2c_cli }else { info->pages =1 ; } + +pmbus_clear_faults (client); }if (pmbus_check_byte_register (client,0 ,PMBUS_VOUT_MODE )) {
drivers/hwmon/pmbus/pmbus_core.c +4 -1
@@ -2015,7 +2015,10 @@ static int pmbus_init_common(struct i2c_if (ret >=0 && (ret &PB_CAPABILITY_ERROR_CHECK )) client->flags |=I2C_CLIENT_PEC ; -pmbus_clear_faults (client); +if (data->info->pages) +pmbus_clear_faults (client); +else +pmbus_clear_fault_page (client,-1 );if (info->identify) { ret = (*info->identify)(client, info);
Greg Kroah-Hartman
maintainerPATCH 16/350 block: make sure writesame bio is aligned with logical block size
In reply to Greg Kroah-Hartman4.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ming Lei <[email protected]>
commit 34ffec60b27aa81d04e274e71e4c6ef740f75fc7 upstream.
Obviously the created writesame bio has to be aligned with logical block size, and use bio_allowed_max_sectors() to retrieve this number.
--- block/blk-lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
block/blk-lib.c +1 -1
@@ -161,7 +161,7 @@ static int __blkdev_issue_write_same(strreturn -EOPNOTSUPP ;/* Ensure that max_write_same_sectors doesn't overflow bi_size */ - max_write_same_sectors =UINT_MAX >>9 ; + max_write_same_sectors =bio_allowed_max_sectors (q);while (nr_sects) { bio =next_bio (bio,1 , gfp_mask);
Greg Kroah-Hartman
maintainerPATCH 15/350 block: make sure discard bio is aligned with logical block size
In reply to Greg Kroah-Hartman4.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ming Lei <[email protected]>
commit 1adfc5e4136f5967d591c399aff95b3b035f16b7 upstream.
Obviously the created discard bio has to be aligned with logical block size.
This patch introduces the helper of bio_allowed_max_sectors() for this purpose.
--- block/blk-lib.c | 3 +-- block/blk-merge.c | 3 ++- block/blk.h | 10 ++++++++++ 3 files changed, 13 insertions(+), 3 deletions(-)
block/blk-lib.c +1 -2
@@ -58,8 +58,7 @@ int __blkdev_issue_discard(struct block_if (!req_sects) goto fail; -if (req_sects >UINT_MAX >>9 ) - req_sects =UINT_MAX >>9 ; + req_sects =min (req_sects,bio_allowed_max_sectors (q)); end_sect = sector + req_sects;
block/blk-merge.c +2 -1
@@ -27,7 +27,8 @@ static struct bio *blk_bio_discard_split/* Zero-sector (unknown) and one-sector granularities are the same. */ granularity =max (q->limits.discard_granularity >>9 ,1U ); - max_discard_sectors =min (q->limits.max_discard_sectors,UINT_MAX >>9 ); + max_discard_sectors =min (q->limits.max_discard_sectors, +bio_allowed_max_sectors (q)); max_discard_sectors -= max_discard_sectors % granularity;if (unlikely (!max_discard_sectors)) {
block/blk.h +10 -0
@@ -327,6 +327,16 @@ static inline unsigned long blk_rq_deadl }/* +* The max size one bio can handle is UINT_MAX becasue bvec_iter.bi_size +* is defined as 'unsigned int', meantime it has to aligned to with logical +* block size which is the minimum accepted unit by hardware. +*/ +static inline unsigned int bio_allowed_max_sectors (struct request_queue *q) +{ +return round_down (UINT_MAX ,queue_logical_block_size (q)) >>9 ; +} + +/* * Internal io_context interface */ void get_io_context (struct io_context *ioc);
Greg Kroah-Hartman
maintainerPATCH 18/350 dma-mapping: fix panic caused by passing empty cma command line argument
In reply to Greg Kroah-Hartman4.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: He Zhe <[email protected]>
commit a3ceed87b07769fb80ce9dc6b604e515dba14c4b upstream.
early_cma does not check input argument before passing it to simple_strtoull. The argument would be a NULL pointer if "cma", without its value, is set in command line and thus causes the following panic.
PANIC: early exception 0xe3 IP 10:ffffffffa3e9db8d error 0 cr2 0x0
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.19.0-rc3-yocto-standard+ #7 [ 0.000000] RIP: 0010:_parse_integer_fixup_radix+0xd/0x70 ... [ 0.000000] Call Trace: [ 0.000000] simple_strtoull+0x29/0x70 [ 0.000000] memparse+0x26/0x90 [ 0.000000] early_cma+0x17/0x6a [ 0.000000] do_early_param+0x57/0x8e [ 0.000000] parse_args+0x208/0x320 [ 0.000000] ? rdinit_setup+0x30/0x30 [ 0.000000] parse_early_options+0x29/0x2d [ 0.000000] ? rdinit_setup+0x30/0x30 [ 0.000000] parse_early_param+0x36/0x4d [ 0.000000] setup_arch+0x336/0x99e [ 0.000000] start_kernel+0x6f/0x4e6 [ 0.000000] x86_64_start_reservations+0x24/0x26 [ 0.000000] x86_64_start_kernel+0x6f/0x72 [ 0.000000] secondary_startup_64+0xa4/0xb0
This patch adds a check to prevent the panic.
--- kernel/dma/contiguous.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
kernel/dma/contiguous.c +5 -1
@@ -49,7 +49,11 @@ static phys_addr_t limit_cmdline;static int __init early_cma (char *p) { -pr_debug ("%s(%s)\n" , __func__, p); +if (!p) { +pr_err ("Config string not provided\n" ); +return -EINVAL ; + } + size_cmdline =memparse (p, &p);if (*p !='@' )return 0 ;
Greg Kroah-Hartman
maintainerPATCH 40/350 x86/speculation: Support Enhanced IBRS on future CPUs
In reply to Greg Kroah-Hartman4.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Sai Praneeth <[email protected]>
commit 706d51681d636a0c4a5ef53395ec3b803e45ed4d upstream.
Future Intel processors will support "Enhanced IBRS" which is an "always on" mode i.e. IBRS bit in SPEC_CTRL MSR is enabled once and never disabled.
Quoted 1 line
From the specification [1]:
"With enhanced IBRS, the predicted targets of indirect branches
executed cannot be controlled by software that was executed in a less privileged predictor mode or on another logical processor. As a result, software operating on a processor with enhanced IBRS need not use WRMSR to set IA32_SPEC_CTRL.IBRS after every transition to a more privileged predictor mode. Software can isolate predictor modes effectively simply by setting the bit once. Software need not disable enhanced IBRS prior to entering a sleep state such as MWAIT or HLT."
If Enhanced IBRS is supported by the processor then use it as the preferred spectre v2 mitigation mechanism instead of Retpoline. Intel's Retpoline white paper [2] states:
"Retpoline is known to be an effective branch target injection (Spectre
variant 2) mitigation on Intel processors belonging to family 6 (enumerated by the CPUID instruction) that do not have support for enhanced IBRS. On processors that support enhanced IBRS, it should be used for mitigation instead of retpoline."
The reason why Enhanced IBRS is the recommended mitigation on processors which support it is that these processors also support CET which provides a defense against ROP attacks. Retpoline is very similar to ROP techniques and might trigger false positives in the CET defense.
If Enhanced IBRS is selected as the mitigation technique for spectre v2, the IBRS bit in SPEC_CTRL MSR is set once at boot time and never cleared. Kernel also has to make sure that IBRS bit remains set after VMEXIT because the guest might have cleared the bit. This is already covered by the existing x86_spec_ctrl_set_guest() and x86_spec_ctrl_restore_host() speculation control functions.
Enhanced IBRS still requires IBPB for full mitigation.
[1] Speculative-Execution-Side-Channel-Mitigations.pdf
[2] Retpoline-A-Branch-Target-Injection-Mitigation.pdf Both documents are available at:
https://bugzilla.kernel.org/show_bug.cgi?id=199511
--- arch/x86/include/asm/cpufeatures.h | 1 + arch/x86/include/asm/nospec-branch.h | 1 + arch/x86/kernel/cpu/bugs.c | 20 ++++++++++++++++++-- arch/x86/kernel/cpu/common.c | 3 +++ 4 files changed, 23 insertions(+), 2 deletions(-)
arch/x86/include/asm/cpufeatures.h +1 -0
@@ -220,6 +220,7 @@#define X86_FEATURE_STIBP ( 7*32+27)/* Single Thread Indirect Branch Predictors */ #define X86_FEATURE_ZEN ( 7*32+28)/* "" CPU is AMD family 0x17 (Zen) */ #define X86_FEATURE_L1TF_PTEINV ( 7*32+29)/* "" L1TF workaround PTE inversion */ +#define X86_FEATURE_IBRS_ENHANCED ( 7*32+30)/* Enhanced IBRS */ /* Virtualization flags: Linux defined, word 8 */ #define X86_FEATURE_TPR_SHADOW ( 8*32+ 0)/* Intel TPR Shadow */
arch/x86/include/asm/nospec-branch.h +1 -0
@@ -215,6 +215,7 @@ enum spectre_v2_mitigation {SPECTRE_V2_RETPOLINE_GENERIC ,SPECTRE_V2_RETPOLINE_AMD ,SPECTRE_V2_IBRS , + SPECTRE_V2_IBRS_ENHANCED, };/* The Speculative Store Bypass disable variants */
arch/x86/kernel/cpu/bugs.c +18 -2
@@ -139,6 +139,7 @@ static const char *spectre_v2_strings[] [SPECTRE_V2_RETPOLINE_MINIMAL_AMD] = "Vulnerable: Minimal AMD ASM retpoline", [SPECTRE_V2_RETPOLINE_GENERIC] = "Mitigation: Full generic retpoline", [SPECTRE_V2_RETPOLINE_AMD] = "Mitigation: Full AMD retpoline", + [SPECTRE_V2_IBRS_ENHANCED] = "Mitigation: Enhanced IBRS", };#undef pr_fmt
@@ -381,6 +382,13 @@ static void __init spectre_v2_select_mitcase SPECTRE_V2_CMD_FORCE :case SPECTRE_V2_CMD_AUTO : +if (boot_cpu_has (X86_FEATURE_IBRS_ENHANCED )) { + mode =SPECTRE_V2_IBRS_ENHANCED ; +/* Force it so VMEXIT will restore correctly */ + x86_spec_ctrl_base |=SPEC_CTRL_IBRS ; +wrmsrl (MSR_IA32_SPEC_CTRL , x86_spec_ctrl_base); + goto specv2_set_mode; + }if (IS_ENABLED (CONFIG_RETPOLINE )) goto retpoline_auto;break ;
@@ -418,6 +426,7 @@ retpoline_auto:setup_force_cpu_cap (X86_FEATURE_RETPOLINE ); } +specv2_set_mode: spectre_v2_enabled = mode;pr_info ("%s\n" , spectre_v2_strings[mode]);
@@ -440,9 +449,16 @@ retpoline_auto:/* * Retpoline means the kernel is safe because it has no indirect -* branches. But firmware isn't, so use IBRS to protect that. +* branches. Enhanced IBRS protects firmware too, so, enable restricted +* speculation around firmware calls only when Enhanced IBRS isn't +* supported. +* +* Use "mode" to check Enhanced IBRS instead of boot_cpu_has(), because +* the user might select retpoline on the kernel command line and if +* the CPU supports Enhanced IBRS, kernel might un-intentionally not +* enable IBRS around firmware calls. */ -if (boot_cpu_has (X86_FEATURE_IBRS )) { +if (boot_cpu_has (X86_FEATURE_IBRS ) && mode !=SPECTRE_V2_IBRS_ENHANCED ) {setup_force_cpu_cap (X86_FEATURE_USE_IBRS_FW );pr_info ("Enabling Restricted Speculation for firmware calls\n" ); }
arch/x86/kernel/cpu/common.c +3 -0
@@ -1015,6 +1015,9 @@ static void __init cpu_set_bug_bits(stru !cpu_has(c, X86_FEATURE_AMD_SSB_NO))setup_force_cpu_bug (X86_BUG_SPEC_STORE_BYPASS ); +if (ia32_cap &ARCH_CAP_IBRS_ALL ) +setup_force_cpu_cap (X86_FEATURE_IBRS_ENHANCED ); +if (x86_match_cpu (cpu_no_meltdown))return ;
Greg Kroah-Hartman
maintainerPATCH 38/350 x86/corruption-check: Fix panic in memory_corruption_check() when boot option without value is provided
In reply to Greg Kroah-Hartman4.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: He Zhe <[email protected]>
commit ccde460b9ae5c2bd5e4742af0a7f623c2daad566 upstream.
memory_corruption_check[{_period|_size}]()'s handlers do not check input argument before passing it to kstrtoul() or simple_strtoull(). The argument would be a NULL pointer if each of the kernel parameters, without its value, is set in command line and thus cause the following panic.
PANIC: early exception 0xe3 IP 10:ffffffff73587c22 error 0 cr2 0x0
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.18-rc8+ #2 [ 0.000000] RIP: 0010:kstrtoull+0x2/0x10 ... [ 0.000000] Call Trace [ 0.000000] ? set_corruption_check+0x21/0x49 [ 0.000000] ? do_early_param+0x4d/0x82 [ 0.000000] ? parse_args+0x212/0x330 [ 0.000000] ? rdinit_setup+0x26/0x26 [ 0.000000] ? parse_early_options+0x20/0x23 [ 0.000000] ? rdinit_setup+0x26/0x26 [ 0.000000] ? parse_early_param+0x2d/0x39 [ 0.000000] ? setup_arch+0x2f7/0xbf4 [ 0.000000] ? start_kernel+0x5e/0x4c2 [ 0.000000] ? load_ucode_bsp+0x113/0x12f [ 0.000000] ? secondary_startup_64+0xa5/0xb0
This patch adds checks to prevent the panic.
--- arch/x86/kernel/check.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
arch/x86/kernel/check.c +15 -0
@@ -31,6 +31,11 @@ static __init int set_corruption_check(cssize_t ret;unsigned long val; +if (!arg) { +pr_err ("memory_corruption_check config string not provided\n" ); +return -EINVAL ; + } + ret =kstrtoul (arg,10 , &val);if (ret)return ret;
@@ -45,6 +50,11 @@ static __init int set_corruption_check_pssize_t ret;unsigned long val; +if (!arg) { +pr_err ("memory_corruption_check_period config string not provided\n" ); +return -EINVAL ; + } + ret =kstrtoul (arg,10 , &val);if (ret)return ret;
@@ -59,6 +69,11 @@ static __init int set_corruption_check_schar *end;unsigned size; +if (!arg) { +pr_err ("memory_corruption_check_size config string not provided\n" ); +return -EINVAL ; + } + size =memparse (arg, &end);if (*end =='\0' )
Greg Kroah-Hartman
maintainerPATCH 36/350 x86/speculation: Enable cross-hyperthread spectre v2 STIBP mitigation
In reply to Greg Kroah-Hartman4.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jiri Kosina <[email protected]>
commit 53c613fe6349994f023245519265999eed75957f upstream.
STIBP is a feature provided by certain Intel ucodes / CPUs. This feature (once enabled) prevents cross-hyperthread control of decisions made by indirect branch predictors.
Enable this feature if
- the CPU is vulnerable to spectre v2
- the CPU supports SMT and has SMT siblings online
- spectre_v2 mitigation autoselection is enabled (default)
After some previous discussion, this leaves STIBP on all the time, as wrmsr on crossing kernel boundary is a no-no. This could perhaps later be a bit more optimized (like disabling it in NOHZ, experiment with disabling it in idle, etc) if needed.
Note that the synchronization of the mask manipulation via newly added spec_ctrl_mutex is currently not strictly needed, as the only updater is already being serialized by cpu_add_remove_lock, but let's make this a little bit more future-proof.
--- arch/x86/kernel/cpu/bugs.c | 57 ++++++++++++++++++++++++++++++++++++++++----- kernel/cpu.c | 11 +++++++- 2 files changed, 61 insertions(+), 7 deletions(-)
arch/x86/kernel/cpu/bugs.c +51 -6
@@ -35,12 +35,10 @@ static void __init spectre_v2_select_mitstatic void __init ssb_select_mitigation (void );static void __init l1tf_select_mitigation (void ); -/* -* Our boot-time value of the SPEC_CTRL MSR. We read it once so that any -* writes to SPEC_CTRL contain whatever reserved bits have been set. -*/ -u64 __ro_after_init x86_spec_ctrl_base; +/* The base value of the SPEC_CTRL MSR that always has to be preserved. */ +u64 x86_spec_ctrl_base;EXPORT_SYMBOL_GPL (x86_spec_ctrl_base); +static DEFINE_MUTEX (spec_ctrl_mutex);/* * The vendor and possibly platform specific bits which can be modified in
@@ -324,6 +322,46 @@ static enum spectre_v2_mitigation_cmd __return cmd; } +static bool stibp_needed (void ) +{ +if (spectre_v2_enabled ==SPECTRE_V2_NONE ) +return false; + +if (!boot_cpu_has (X86_FEATURE_STIBP )) +return false; + +return true; +} + +static void update_stibp_msr (void *info) +{ +wrmsrl (MSR_IA32_SPEC_CTRL , x86_spec_ctrl_base); +} + +void arch_smt_update (void ) +{ +u64 mask; + +if (!stibp_needed ()) +return ; + +mutex_lock (&spec_ctrl_mutex); + mask = x86_spec_ctrl_base; +if (cpu_smt_control ==CPU_SMT_ENABLED ) + mask |=SPEC_CTRL_STIBP ; +else + mask &= ~SPEC_CTRL_STIBP ; + +if (mask != x86_spec_ctrl_base) { +pr_info ("Spectre v2 cross-process SMT mitigation: %s STIBP\n" , + cpu_smt_control ==CPU_SMT_ENABLED ? +"Enabling" :"Disabling" ); + x86_spec_ctrl_base = mask; +on_each_cpu (update_stibp_msr,NULL ,1 ); + } +mutex_unlock (&spec_ctrl_mutex); +} +static void __init spectre_v2_select_mitigation (void ) {enum spectre_v2_mitigation_cmd cmd =spectre_v2_parse_cmdline ();
@@ -408,6 +446,9 @@ retpoline_auto:setup_force_cpu_cap (X86_FEATURE_USE_IBRS_FW );pr_info ("Enabling Restricted Speculation for firmware calls\n" ); } + +/* Enable STIBP if appropriate */ +arch_smt_update (); }#undef pr_fmt
@@ -798,6 +839,8 @@ static ssize_t l1tf_show_state(char *bufstatic ssize_t cpu_show_common (struct device *dev,struct device_attribute *attr,char *buf,unsigned int bug) { +int ret; +if (!boot_cpu_has_bug (bug))return sprintf (buf,"Not affected\n" );
@@ -815,10 +858,12 @@ static ssize_t cpu_show_common(struct dereturn sprintf (buf,"Mitigation: __user pointer sanitization\n" );case X86_BUG_SPECTRE_V2 : -return sprintf (buf,"%s%s%s%s\n" , spectre_v2_strings[spectre_v2_enabled], + ret =sprintf (buf,"%s%s%s%s%s\n" , spectre_v2_strings[spectre_v2_enabled],boot_cpu_has (X86_FEATURE_USE_IBPB ) ?", IBPB" :"" ,boot_cpu_has (X86_FEATURE_USE_IBRS_FW ) ?", IBRS_FW" :"" , + (x86_spec_ctrl_base &SPEC_CTRL_STIBP ) ?", STIBP" :"" ,spectre_v2_module_string ()); +return ret;case X86_BUG_SPEC_STORE_BYPASS :return sprintf (buf,"%s\n" , ssb_strings[ssb_mode]);
kernel/cpu.c +10 -1
@@ -2033,6 +2033,12 @@ static void cpuhp_online_cpu_device(unsikobject_uevent (&dev->kobj,KOBJ_ONLINE ); } +/* +* Architectures that need SMT-specific errata handling during SMT hotplug +* should override this. +*/ +void __weak arch_smt_update (void ) { }; +static int cpuhp_smt_disable (enum cpuhp_smt_control ctrlval) {int cpu, ret =0 ;
@@ -2059,8 +2065,10 @@ static int cpuhp_smt_disable(enum cpuhp_*/ cpuhp_offline_cpu_device (cpu); } -if (!ret) +if (!ret) { cpu_smt_control = ctrlval; +arch_smt_update (); + }cpu_maps_update_done ();return ret; }
@@ -2071,6 +2079,7 @@ static int cpuhp_smt_enable(void)cpu_maps_update_begin (); cpu_smt_control =CPU_SMT_ENABLED ; +arch_smt_update ();for_each_present_cpu (cpu) {/* Skip online CPUs and CPUs on offline nodes */ if (cpu_online (cpu) || !node_online (cpu_to_node (cpu)))
Greg Kroah-Hartman
maintainerPATCH 33/350 ALSA: hda - Add mic quirk for the Lenovo G50-30 (17aa:3905)
In reply to Greg Kroah-Hartman4.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jeremy Cline <[email protected]>
commit e7bb6ad5685f05685dd8a6a5eda7bfcd14d5f95b upstream.
The Lenovo G50-30, like other G50 models, has a Conexant codec that requires a quirk for its inverted stereo dmic.
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1249364
--- sound/pci/hda/patch_conexant.c | 1 + 1 file changed, 1 insertion(+)
sound/pci/hda/patch_conexant.c +1 -0
@@ -980,6 +980,7 @@ static const struct snd_pci_quirk cxt506SND_PCI_QUIRK (0x17aa ,0x21da ,"Lenovo X220" ,CXT_PINCFG_LENOVO_TP410 ),SND_PCI_QUIRK (0x17aa ,0x21db ,"Lenovo X220-tablet" ,CXT_PINCFG_LENOVO_TP410 ),SND_PCI_QUIRK (0x17aa ,0x38af ,"Lenovo IdeaPad Z560" ,CXT_FIXUP_MUTE_LED_EAPD ), +SND_PCI_QUIRK (0x17aa ,0x3905 ,"Lenovo G50-30" ,CXT_FIXUP_STEREO_DMIC ),SND_PCI_QUIRK (0x17aa ,0x390b ,"Lenovo G50-80" ,CXT_FIXUP_STEREO_DMIC ),SND_PCI_QUIRK (0x17aa ,0x3975 ,"Lenovo U300s" ,CXT_FIXUP_STEREO_DMIC ), SND_PCI_QUIRK(0x17aa, 0x3977, "Lenovo IdeaPad U310", CXT_FIXUP_STEREO_DMIC),
Greg Kroah-Hartman
maintainerPATCH 35/350 ALSA: ca0106: Disable IZD on SB0570 DAC to fix audio pops
In reply to Greg Kroah-Hartman4.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Alex Stanoev <[email protected]>
commit ac237c28d5ac1b241d58b1b7b4b9fa10efb22fb5 upstream.
The Creative Audigy SE (SB0570) card currently exhibits an audible pop whenever playback is stopped or resumed, or during silent periods of an audio stream. Initialise the IZD bit to the 0 to eliminate these pops.
The Infinite Zero Detection (IZD) feature on the DAC causes the output to be shunted to Vcap after 2048 samples of silence. This discharges the AC coupling capacitor through the output and causes the aforementioned pop/click noise.
The behaviour of the IZD bit is described on page 15 of the WM8768GEDS
datasheet: "With IZD=1, applying MUTE for 1024 consecutive input samples will cause all outputs to be connected directly to VCAP. This also happens if 2048 consecutive zero input samples are applied to all 6 channels, and IZD=0. It will be removed as soon as any channel receives a non-zero input". I believe the second sentence might be referring to IZD=1 instead of IZD=0 given the observed behaviour of the card.
This change should make the DAC initialisation consistent with Creative's Windows driver, as this popping persists when initialising the card in Linux and soft rebooting into Windows, but is not present on a cold boot to Windows.
--- sound/pci/ca0106/ca0106.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/pci/ca0106/ca0106.h +1 -1
@@ -582,7 +582,7 @@#define SPI_PL_BIT_R_R (2<<7)/* right channel = right */ #define SPI_PL_BIT_R_C (3<<7)/* right channel = (L+R)/2 */ #define SPI_IZD_REG 2 -#define SPI_IZD_BIT (1<<4)/* infinite zero detect */ +#define SPI_IZD_BIT (0<<4)/* infinite zero detect */ #define SPI_FMT_REG 3#define SPI_FMT_BIT_RJ (0<<0)/* right justified mode */
Greg Kroah-Hartman
maintainerPATCH 32/350 ALSA: hda/realtek - Fix the problem of the front MIC on the Lenovo M715
In reply to Greg Kroah-Hartman4.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Hui Wang <[email protected]>
commit d06fb562bff5d14defdacbd92449bacbaedd5cdf upstream.
The front MIC on the Lenovo M715 can't record sound, after applying the ALC294_FIXUP_LENOVO_MIC_LOCATION, the problem is fixed. So add the pin configuration of this machine to the pin quirk table.
--- sound/pci/hda/patch_realtek.c | 6 ++++++ 1 file changed, 6 insertions(+)
sound/pci/hda/patch_realtek.c +6 -0
@@ -6801,6 +6801,12 @@ static const struct snd_hda_pin_quirk al {0x21, 0x0221101f}),SND_HDA_PIN_QUIRK (0x10ec0235 ,0x17aa ,"Lenovo" ,ALC294_FIXUP_LENOVO_MIC_LOCATION , {0x14, 0x90170110}, + {0x19, 0x02a11030}, + {0x1a, 0x02a11040}, + {0x1b, 0x01011020}, + {0x21, 0x0221101f}), +SND_HDA_PIN_QUIRK (0x10ec0235 ,0x17aa ,"Lenovo" ,ALC294_FIXUP_LENOVO_MIC_LOCATION , + {0x14, 0x90170110}, {0x19, 0x02a11020}, {0x1a, 0x02a11030}, {0x21, 0x0221101f}),
Greg Kroah-Hartman
maintainerPATCH 28/350 parisc: Fix map_pages() to not overwrite existing pte entries
In reply to Greg Kroah-Hartman4.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Helge Deller <[email protected]>
commit 3c229b3f2dd8133f61bb81d3cb018be92f4bba39 upstream.
Fix a long-existing small nasty bug in the map_pages() implementation which leads to overwriting already written pte entries with zero, *if* map_pages() is called a second time with an end address which isn't aligned on a pmd boundry. This happens for example if we want to remap only the text segment read/write in order to run alternative patching on the code. Exiting the loop when we reach the end address fixes this.
--- arch/parisc/mm/init.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-)
arch/parisc/mm/init.c +2 -6
@@ -495,12 +495,8 @@ static void __init map_pages(unsigned lo pte =pte_mkhuge (pte); } -if (address >= end_paddr) { -if (force) -break ; -else -pte_val (pte) =0 ; - } +if (address >= end_paddr) +break ;set_pte (pg_table, pte);
Greg Kroah-Hartman
maintainerPATCH 30/350 ALSA: hda - Add quirk for ASUS G751 laptop
In reply to Greg Kroah-Hartman4.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Takashi Iwai <[email protected]>
commit 11ba6111160290ccd35562f4e05cec08942a6c4c upstream.
ASUS G751 requires the extra COEF initialization to make it microphone working properly.
--- sound/pci/hda/patch_realtek.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
sound/pci/hda/patch_realtek.c +10 -0
@@ -7690,6 +7690,7 @@ enum { ALC662_FIXUP_ASUS_Nx50, ALC668_FIXUP_ASUS_Nx51_HEADSET_MODE, ALC668_FIXUP_ASUS_Nx51, +ALC668_FIXUP_ASUS_G751 ,ALC891_FIXUP_HEADSET_MODE ,ALC891_FIXUP_DELL_MIC_NO_PRESENCE , ALC662_FIXUP_ACER_VERITON,
@@ -7959,6 +7960,14 @@ static const struct hda_fixup alc662_fix .chained = true, .chain_id = ALC668_FIXUP_ASUS_Nx51_HEADSET_MODE, }, + [ALC668_FIXUP_ASUS_G751] = { + .type = HDA_FIXUP_VERBS, + .v.verbs = (const struct hda_verb []) { + {0x20 ,AC_VERB_SET_COEF_INDEX ,0xc3 }, + {0x20 ,AC_VERB_SET_PROC_COEF ,0x4000 }, + {} + }, + }, [ALC891_FIXUP_HEADSET_MODE] = { .type = HDA_FIXUP_FUNC, .v.func = alc_fixup_headset_mode,
@@ -8032,6 +8041,7 @@ static const struct snd_pci_quirk alc662SND_PCI_QUIRK (0x1043 ,0x11cd ,"Asus N550" , ALC662_FIXUP_ASUS_Nx50),SND_PCI_QUIRK (0x1043 ,0x13df ,"Asus N550JX" ,ALC662_FIXUP_BASS_1A ),SND_PCI_QUIRK (0x1043 ,0x129d ,"Asus N750" , ALC662_FIXUP_ASUS_Nx50), +SND_PCI_QUIRK (0x1043 ,0x12ff ,"ASUS G751" ,ALC668_FIXUP_ASUS_G751 ),SND_PCI_QUIRK (0x1043 ,0x1477 ,"ASUS N56VZ" ,ALC662_FIXUP_BASS_MODE4_CHMAP ),SND_PCI_QUIRK (0x1043 ,0x15a7 ,"ASUS UX51VZH" ,ALC662_FIXUP_BASS_16 ), SND_PCI_QUIRK(0x1043, 0x177d, "ASUS N551", ALC668_FIXUP_ASUS_Nx51),
Greg Kroah-Hartman
maintainerPATCH 26/350 acpi, nfit: Fix Address Range Scrub completion tracking
In reply to Greg Kroah-Hartman4.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Dan Williams <[email protected]>
commit d3abaf43bab8d5b0a3c6b982100d9e2be96de4ad upstream.
The Address Range Scrub implementation tried to skip running scrubs against ranges that were already scrubbed by the BIOS. Unfortunately that support also resulted in early scrub completions as evidenced by this debug output from nfit_test:
nd_region region9: ARS: range 1 short complete nd_region region3: ARS: range 1 short complete nd_region region4: ARS: range 2 ARS start (0) nd_region region4: ARS: range 2 short complete
...i.e. completions without any indications that the scrub was started.
This state of affairs was hard to see in the code due to the proliferation of state bits and mistakenly trying to track done state per-range when the completion is a global property of the bus.
So, kill the four ARS state bits (ARS_REQ, ARS_REQ_REDO, ARS_DONE, and ARS_SHORT), and replace them with just 2 request flags ARS_REQ_SHORT and ARS_REQ_LONG. The implementation will still complete and reap the results of BIOS initiated ARS, but it will not attempt to use that information to affect the completion status of scrubbing the ranges from a Linux perspective.
Instead, try to synchronously run a short ARS per range at init time and schedule a long scrub in the background. If ARS is busy with an ARS request, schedule both a short and a long scrub for when ARS returns to idle. This logic also satisfies the intent of what ARS_REQ_REDO was trying to achieve. The new rule is that the REQ flag stays set until the next successful ars_start() for that range.
With the new policy that the REQ flags are not cleared until the next start, the implementation no longer loses requests as can be seen from the following log:
nd_region region3: ARS: range 1 ARS start short (0) nd_region region9: ARS: range 1 ARS start short (0) nd_region region3: ARS: range 1 complete nd_region region4: ARS: range 2 ARS start short (0) nd_region region9: ARS: range 1 complete nd_region region9: ARS: range 1 ARS start long (0) nd_region region4: ARS: range 2 complete nd_region region3: ARS: range 1 ARS start long (0) nd_region region9: ARS: range 1 complete nd_region region3: ARS: range 1 complete nd_region region4: ARS: range 2 ARS start long (0) nd_region region4: ARS: range 2 complete
...note that the nfit_test emulated driver provides 2 buses, that is why some of the range indices are duplicated. Notice that each range now successfully completes a short and long scrub.
--- drivers/acpi/nfit/core.c | 161 +++++++++++++++++++++++++++-------------------- drivers/acpi/nfit/nfit.h | 9 +- 2 files changed, 100 insertions(+), 70 deletions(-)
drivers/acpi/nfit/core.c +95 -66
@@ -2456,7 +2456,8 @@ static int ars_get_cap(struct acpi_nfit_return cmd_rc; } -static int ars_start (struct acpi_nfit_desc *acpi_desc,struct nfit_spa *nfit_spa) +static int ars_start (struct acpi_nfit_desc *acpi_desc, +struct nfit_spa *nfit_spa,enum nfit_ars_state req_type) {int rc;int cmd_rc;
@@ -2467,7 +2468,7 @@ static int ars_start(struct acpi_nfit_dememset (&ars_start,0 ,sizeof (ars_start)); ars_start.address = spa->address; ars_start.length = spa->length; -if (test_bit (ARS_SHORT , &nfit_spa->ars_state)) +if (req_type ==ARS_REQ_SHORT ) ars_start.flags =ND_ARS_RETURN_PREV_DATA ;if (nfit_spa_type (spa) ==NFIT_SPA_PM ) ars_start.type =ND_ARS_PERSISTENT ;
@@ -2524,6 +2525,15 @@ static void ars_complete(struct acpi_nfistruct nd_region *nd_region = nfit_spa->nd_region;struct device *dev; +lockdep_assert_held (&acpi_desc->init_mutex); +/* +* Only advance the ARS state for ARS runs initiated by the +* kernel, ignore ARS results from BIOS initiated runs for scrub +* completion tracking. +*/ +if (acpi_desc->scrub_spa != nfit_spa) +return ; +if ((ars_status->address >= spa->address && ars_status->address < spa->address + spa->length) || (ars_status->address < spa->address)) {
@@ -2543,23 +2553,13 @@ static void ars_complete(struct acpi_nfi }else return ; -if (test_bit (ARS_DONE , &nfit_spa->ars_state)) -return ; - -if (!test_and_clear_bit (ARS_REQ , &nfit_spa->ars_state)) -return ; - + acpi_desc->scrub_spa =NULL ;if (nd_region) { dev =nd_region_dev (nd_region);nvdimm_region_notify (nd_region,NVDIMM_REVALIDATE_POISON ); }else dev = acpi_desc->dev; - -dev_dbg (dev,"ARS: range %d %s complete\n" , spa->range_index, -test_bit (ARS_SHORT , &nfit_spa->ars_state) - ?"short" :"long" ); -clear_bit (ARS_SHORT , &nfit_spa->ars_state); -set_bit (ARS_DONE , &nfit_spa->ars_state); +dev_dbg (dev,"ARS: range %d complete\n" , spa->range_index); }static int ars_status_process_records (struct acpi_nfit_desc *acpi_desc)
@@ -2840,46 +2840,55 @@ static int acpi_nfit_query_poison(structreturn 0 ; } -static int ars_register (struct acpi_nfit_desc *acpi_desc,struct nfit_spa *nfit_spa, -int *query_rc) +static int ars_register (struct acpi_nfit_desc *acpi_desc, +struct nfit_spa *nfit_spa) { -int rc = *query_rc; +int rc; -if (no_init_ars) +if (no_init_ars ||test_bit (ARS_FAILED , &nfit_spa->ars_state))return acpi_nfit_register_region (acpi_desc, nfit_spa); -set_bit (ARS_REQ , &nfit_spa->ars_state); -set_bit (ARS_SHORT , &nfit_spa->ars_state); +set_bit (ARS_REQ_SHORT , &nfit_spa->ars_state); +set_bit (ARS_REQ_LONG , &nfit_spa->ars_state); -switch (rc) { +switch (acpi_nfit_query_poison (acpi_desc)) {case 0 :case -EAGAIN : - rc =ars_start (acpi_desc, nfit_spa); -if (rc == -EBUSY ) { - *query_rc = rc; + rc =ars_start (acpi_desc, nfit_spa,ARS_REQ_SHORT ); +/* shouldn't happen, try again later */ +if (rc == -EBUSY )break ; - }else if (rc ==0 ) { - rc =acpi_nfit_query_poison (acpi_desc); - }else { +if (rc) {set_bit (ARS_FAILED , &nfit_spa->ars_state);break ; } -if (rc == -EAGAIN ) -clear_bit (ARS_SHORT , &nfit_spa->ars_state); -else if (rc ==0 ) -ars_complete (acpi_desc, nfit_spa); +clear_bit (ARS_REQ_SHORT , &nfit_spa->ars_state); + rc =acpi_nfit_query_poison (acpi_desc); +if (rc) +break ; + acpi_desc->scrub_spa = nfit_spa; +ars_complete (acpi_desc, nfit_spa); +/* +* If ars_complete() says we didn't complete the +* short scrub, we'll try again with a long +* request. +*/ + acpi_desc->scrub_spa =NULL ;break ;case -EBUSY : +case -ENOMEM :case -ENOSPC : +/* +* BIOS was using ARS, wait for it to complete (or +* resources to become available) and then perform our +* own scrubs. +*/ break ;default :set_bit (ARS_FAILED , &nfit_spa->ars_state);break ; } -if (test_and_clear_bit (ARS_DONE , &nfit_spa->ars_state)) -set_bit (ARS_REQ , &nfit_spa->ars_state); -return acpi_nfit_register_region (acpi_desc, nfit_spa); }
@@ -2901,6 +2910,8 @@ static unsigned int __acpi_nfit_scrub(ststruct device *dev = acpi_desc->dev;struct nfit_spa *nfit_spa; +lockdep_assert_held (&acpi_desc->init_mutex); +if (acpi_desc->cancel)return 0 ;
@@ -2924,21 +2935,49 @@ static unsigned int __acpi_nfit_scrub(stars_complete_all (acpi_desc);list_for_each_entry (nfit_spa, &acpi_desc->spas, list) { +enum nfit_ars_state req_type; +int rc; +if (test_bit (ARS_FAILED , &nfit_spa->ars_state))continue ; -if (test_bit (ARS_REQ , &nfit_spa->ars_state)) { -int rc =ars_start (acpi_desc, nfit_spa); -clear_bit (ARS_DONE , &nfit_spa->ars_state); - dev =nd_region_dev (nfit_spa->nd_region); -dev_dbg (dev,"ARS: range %d ARS start (%d)\n" , - nfit_spa->spa->range_index, rc); -if (rc ==0 || rc == -EBUSY ) -return 1 ; -dev_err (dev,"ARS: range %d ARS failed (%d)\n" , - nfit_spa->spa->range_index, rc); -set_bit (ARS_FAILED , &nfit_spa->ars_state); +/* prefer short ARS requests first */ +if (test_bit (ARS_REQ_SHORT , &nfit_spa->ars_state)) + req_type =ARS_REQ_SHORT ; +else if (test_bit (ARS_REQ_LONG , &nfit_spa->ars_state)) + req_type =ARS_REQ_LONG ; +else +continue ; + rc =ars_start (acpi_desc, nfit_spa, req_type); + + dev =nd_region_dev (nfit_spa->nd_region); +dev_dbg (dev,"ARS: range %d ARS start %s (%d)\n" , + nfit_spa->spa->range_index, + req_type ==ARS_REQ_SHORT ?"short" :"long" , + rc); +/* +* Hmm, we raced someone else starting ARS? Try again in +* a bit. +*/ +if (rc == -EBUSY ) +return 1 ; +if (rc ==0 ) { +dev_WARN_ONCE (dev, acpi_desc->scrub_spa, +"scrub start while range %d active\n" , + acpi_desc->scrub_spa->spa->range_index); +clear_bit (req_type, &nfit_spa->ars_state); + acpi_desc->scrub_spa = nfit_spa; +/* +* Consider this spa last for future scrub +* requests +*/ +list_move_tail (&nfit_spa->list, &acpi_desc->spas); +return 1 ; } + +dev_err (dev,"ARS: range %d ARS failed (%d)\n" , + nfit_spa->spa->range_index, rc); +set_bit (ARS_FAILED , &nfit_spa->ars_state); }return 0 ; }
@@ -2994,6 +3033,7 @@ static void acpi_nfit_init_ars(struct acstruct nd_cmd_ars_cap ars_cap;int rc; +set_bit (ARS_FAILED , &nfit_spa->ars_state);memset (&ars_cap,0 ,sizeof (ars_cap)); rc =ars_get_cap (acpi_desc, &ars_cap, nfit_spa);if (rc <0 )
@@ -3010,16 +3050,14 @@ static void acpi_nfit_init_ars(struct ac nfit_spa->clear_err_unit = ars_cap.clear_err_unit; acpi_desc->max_ars =max (nfit_spa->max_ars, acpi_desc->max_ars);clear_bit (ARS_FAILED , &nfit_spa->ars_state); -set_bit (ARS_REQ , &nfit_spa->ars_state); }static int acpi_nfit_register_regions (struct acpi_nfit_desc *acpi_desc) {struct nfit_spa *nfit_spa; -int rc, query_rc; +int rc;list_for_each_entry (nfit_spa, &acpi_desc->spas, list) { -set_bit (ARS_FAILED , &nfit_spa->ars_state);switch (nfit_spa_type (nfit_spa->spa)) {case NFIT_SPA_VOLATILE :case NFIT_SPA_PM :
@@ -3028,20 +3066,12 @@ static int acpi_nfit_register_regions(st } } -/* -* Reap any results that might be pending before starting new -* short requests. -*/ - query_rc =acpi_nfit_query_poison (acpi_desc); -if (query_rc ==0 ) -ars_complete_all (acpi_desc); -list_for_each_entry (nfit_spa, &acpi_desc->spas, list)switch (nfit_spa_type (nfit_spa->spa)) {case NFIT_SPA_VOLATILE :case NFIT_SPA_PM :/* register regions and kick off initial ARS run */ - rc =ars_register (acpi_desc, nfit_spa, &query_rc); + rc =ars_register (acpi_desc, nfit_spa);if (rc)return rc;break ;
@@ -3236,7 +3266,8 @@ static int acpi_nfit_clear_to_send(strucreturn 0 ; } -int acpi_nfit_ars_rescan (struct acpi_nfit_desc *acpi_desc,unsigned long flags) +int acpi_nfit_ars_rescan (struct acpi_nfit_desc *acpi_desc, +enum nfit_ars_state req_type) {struct device *dev = acpi_desc->dev;int scheduled =0 , busy =0 ;
@@ -3256,13 +3287,10 @@ int acpi_nfit_ars_rescan(struct acpi_nfiif (test_bit (ARS_FAILED , &nfit_spa->ars_state))continue ; -if (test_and_set_bit (ARS_REQ , &nfit_spa->ars_state)) +if (test_and_set_bit (req_type, &nfit_spa->ars_state)) busy++; -else { -if (test_bit (ARS_SHORT , &flags)) -set_bit (ARS_SHORT , &nfit_spa->ars_state); +else scheduled++; - } }if (scheduled) {sched_ars (acpi_desc);
@@ -3448,10 +3476,11 @@ static void acpi_nfit_update_notify(strustatic void acpi_nfit_uc_error_notify (struct device *dev,acpi_handle handle) {struct acpi_nfit_desc *acpi_desc =dev_get_drvdata (dev); -unsigned long flags = (acpi_desc->scrub_mode ==HW_ERROR_SCRUB_ON ) ? -0 :1 <<ARS_SHORT ; -acpi_nfit_ars_rescan (acpi_desc, flags); +if (acpi_desc->scrub_mode ==HW_ERROR_SCRUB_ON ) +acpi_nfit_ars_rescan (acpi_desc,ARS_REQ_LONG ); +else +acpi_nfit_ars_rescan (acpi_desc,ARS_REQ_SHORT ); }void __acpi_nfit_notify (struct device *dev,acpi_handle handle,u32 event)
drivers/acpi/nfit/nfit.h +5 -4
@@ -118,9 +118,8 @@ enum nfit_dimm_notifiers { };enum nfit_ars_state { -ARS_REQ , -ARS_DONE , -ARS_SHORT , +ARS_REQ_SHORT , +ARS_REQ_LONG ,ARS_FAILED , };
@@ -197,6 +196,7 @@ struct acpi_nfit_desc {struct device *dev;u8 ars_start_flags;struct nd_cmd_ars_status *ars_status; +struct nfit_spa *scrub_spa;struct delayed_work dwork;struct list_head list;struct kernfs_node *scrub_count_state;
@@ -251,7 +251,8 @@ struct nfit_blk {extern struct list_head acpi_descs;extern struct mutex acpi_desc_lock; -int acpi_nfit_ars_rescan (struct acpi_nfit_desc *acpi_desc,unsigned long flags); +int acpi_nfit_ars_rescan (struct acpi_nfit_desc *acpi_desc, +enum nfit_ars_state req_type);#ifdef CONFIG_X86_MCE void nfit_mce_register (void );
Greg Kroah-Hartman
maintainerPATCH 24/350 ipmi: Fix timer race with module unload
In reply to Greg Kroah-Hartman4.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jan Glauber <[email protected]>
commit 0711e8c1b4572d076264e71b0002d223f2666ed7 upstream.
Please note that below oops is from an older kernel, but the same race seems to be present in the upstream kernel too.
---8<---
The following panic was encountered during removing the ipmi_ssif module:
[ 526.352555] Unable to handle kernel paging request at virtual address ffff000006923090 [ 526.360464] Mem abort info: [ 526.363257] ESR = 0x86000007 [ 526.366304] Exception class = IABT (current EL), IL = 32 bits [ 526.372221] SET = 0, FnV = 0 [ 526.375269] EA = 0, S1PTW = 0 [ 526.378405] swapper pgtable: 4k pages, 48-bit VAs, pgd = 000000008ae60416 [ 526.385185] [ffff000006923090] *pgd=000000bffcffe803, *pud=000000bffcffd803, *pmd=0000009f4731a003, *pte=0000000000000000 [ 526.396141] Internal error: Oops: 86000007 [#1] SMP [ 526.401008] Modules linked in: nls_iso8859_1 ipmi_devintf joydev input_leds ipmi_msghandler shpchp sch_fq_codel ib_iser rdma_cm iw_cm ib_cm ib_core iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi ip_tables x_tables autofs4 btrfs zstd_compress raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear i2c_smbus hid_generic usbhid uas hid usb_storage ast aes_ce_blk i2c_algo_bit aes_ce_cipher qede ttm crc32_ce ptp crct10dif_ce drm_kms_helper ghash_ce syscopyarea sha2_ce sysfillrect sysimgblt pps_core fb_sys_fops sha256_arm64 sha1_ce mpt3sas qed drm raid_class ahci scsi_transport_sas libahci gpio_xlp i2c_xlp9xx aes_neon_bs aes_neon_blk crypto_simd cryptd aes_arm64 [last unloaded: ipmi_ssif] [ 526.468085] CPU: 125 PID: 0 Comm: swapper/125 Not tainted 4.15.0-35-generic #38~lp1775396+build.1 [ 526.476942] Hardware name: To be filled by O.E.M. Saber/Saber, BIOS 0ACKL022 08/14/2018 [ 526.484932] pstate: 00400009 (nzcv daif +PAN -UAO) [ 526.489713] pc : 0xffff000006923090 [ 526.493198] lr : call_timer_fn+0x34/0x178 [ 526.497194] sp : ffff000009b0bdd0 [ 526.500496] x29: ffff000009b0bdd0 x28: 0000000000000082 [ 526.505796] x27: 0000000000000002 x26: ffff000009515188 [ 526.511096] x25: ffff000009515180 x24: ffff0000090f1018 [ 526.516396] x23: ffff000009519660 x22: dead000000000200 [ 526.521696] x21: ffff000006923090 x20: 0000000000000100 [ 526.526995] x19: ffff809eeb466a40 x18: 0000000000000000 [ 526.532295] x17: 000000000000000e x16: 0000000000000007 [ 526.537594] x15: 0000000000000000 x14: 071c71c71c71c71c [ 526.542894] x13: 0000000000000000 x12: 0000000000000000 [ 526.548193] x11: 0000000000000001 x10: ffff000009b0be88 [ 526.553493] x9 : 0000000000000000 x8 : 0000000000000005 [ 526.558793] x7 : ffff80befc1f8528 x6 : 0000000000000020 [ 526.564092] x5 : 0000000000000040 x4 : 0000000020001b20 [ 526.569392] x3 : 0000000000000000 x2 : ffff809eeb466a40 [ 526.574692] x1 : ffff000006923090 x0 : ffff809eeb466a40 [ 526.579992] Process swapper/125 (pid: 0, stack limit = 0x000000002eb50acc) [ 526.586854] Call trace: [ 526.589289] 0xffff000006923090 [ 526.592419] expire_timers+0xc8/0x130 [ 526.596070] run_timer_softirq+0xec/0x1b0 [ 526.600070] __do_softirq+0x134/0x328 [ 526.603726] irq_exit+0xc8/0xe0 [ 526.606857] __handle_domain_irq+0x6c/0xc0 [ 526.610941] gic_handle_irq+0x84/0x188 [ 526.614679] el1_irq+0xe8/0x180 [ 526.617822] cpuidle_enter_state+0xa0/0x328 [ 526.621993] cpuidle_enter+0x34/0x48 [ 526.625564] call_cpuidle+0x44/0x70 [ 526.629040] do_idle+0x1b8/0x1f0 [ 526.632256] cpu_startup_entry+0x2c/0x30 [ 526.636174] secondary_start_kernel+0x11c/0x130 [ 526.640694] Code: bad PC value [ 526.643800] ---[ end trace d020b0b8417c2498 ]--- [ 526.648404] Kernel panic - not syncing: Fatal exception in interrupt [ 526.654778] SMP: stopping secondary CPUs [ 526.658734] Kernel Offset: disabled [ 526.662211] CPU features: 0x5800c38 [ 526.665688] Memory Limit: none [ 526.668768] ---[ end Kernel panic - not syncing: Fatal exception in interrupt
Prevent mod_timer from arming a timer that was already removed by del_timer during module unload.
--- drivers/char/ipmi/ipmi_ssif.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
drivers/char/ipmi/ipmi_ssif.c +6 -4
@@ -606,8 +606,9 @@ static void msg_done_handler(struct ssif flags =ipmi_ssif_lock_cond (ssif_info, &oflags); ssif_info->waiting_alert = true; ssif_info->rtc_us_timer =SSIF_MSG_USEC ; -mod_timer (&ssif_info->retry_timer, - jiffies +SSIF_MSG_JIFFIES ); +if (!ssif_info->stopping) +mod_timer (&ssif_info->retry_timer, + jiffies +SSIF_MSG_JIFFIES );ipmi_ssif_unlock_cond (ssif_info, flags);return ; }
@@ -939,8 +940,9 @@ static void msg_written_handler(struct s ssif_info->waiting_alert = true; ssif_info->retries_left =SSIF_RECV_RETRIES ; ssif_info->rtc_us_timer =SSIF_MSG_PART_USEC ; -mod_timer (&ssif_info->retry_timer, - jiffies +SSIF_MSG_PART_JIFFIES ); +if (!ssif_info->stopping) +mod_timer (&ssif_info->retry_timer, + jiffies +SSIF_MSG_PART_JIFFIES );ipmi_ssif_unlock_cond (ssif_info, flags); } }
Greg Kroah-Hartman
maintainerPATCH 22/350 ACPICA: AML Parser: fix parse loop to correctly skip erroneous extended opcodes
In reply to Greg Kroah-Hartman4.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Erik Schmauss <[email protected]>
commit c64baa3a6fa207d112706bc5e7fd645cd8a8663f upstream.
AML opcodes come in two lengths: 1-byte opcodes and 2-byte, extended opcodes. If an error occurs due to illegal opcodes during table load, the AML parser needs to continue loading the table. In order to do this, it needs to skip parsing of the offending opcode and operands associated with that opcode.
This change fixes the AML parse loop to correctly skip parsing of incorrect extended opcodes. Previously, only the short opcodes were skipped correctly.
--- drivers/acpi/acpica/psloop.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-)
drivers/acpi/acpica/psloop.c +13 -1
@@ -417,6 +417,7 @@ acpi_status acpi_ps_parse_loop(struct acunion acpi_parse_object *op =NULL ;/* current op */ struct acpi_parse_state *parser_state;u8 *aml_op_start =NULL ; +u8 opcode_length;ACPI_FUNCTION_TRACE_PTR (ps_parse_loop, walk_state);
@@ -540,8 +541,19 @@ acpi_status acpi_ps_parse_loop(struct ac"Skip parsing opcode %s" ,acpi_ps_get_opcode_name (walk_state->opcode))); + +/* +* Determine the opcode length before skipping the opcode. +* An opcode can be 1 byte or 2 bytes in length. +*/ + opcode_length =1 ; +if ((walk_state->opcode &0xFF00 ) == +AML_EXTENDED_OPCODE ) { + opcode_length =2 ; + } walk_state->parser_state.aml = - walk_state->aml +1 ; + walk_state->aml + opcode_length; + walk_state->parser_state.aml =acpi_ps_get_next_package_end (&walk_state->parser_state);
Greg Kroah-Hartman
maintainerPATCH 23/350 kprobes/x86: Use preempt_enable() in optimized_callback()
In reply to Greg Kroah-Hartman4.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Masami Hiramatsu <[email protected]>
commit 2e62024c265aa69315ed02835623740030435380 upstream.
The following commit:
a19b2e3d7839 ("kprobes/x86: Remove IRQ disabling from ftrace-based/optimized kprobes”)
removed local_irq_save/restore() from optimized_callback(), the handler might be interrupted by the rescheduling interrupt and might be rescheduled - so we must not use the preempt_enable_no_resched() macro.
Use preempt_enable() instead, to not lose preemption events.
[ mingo: Improved the changelog. ]
--- arch/x86/kernel/kprobes/opt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/kprobes/opt.c +1 -1
@@ -179,7 +179,7 @@ optimized_callback(struct optimized_kproopt_pre_handler (&op->kp, regs);__this_cpu_write (current_kprobe,NULL ); } -preempt_enable_no_resched (); +preempt_enable (); }NOKPROBE_SYMBOL (optimized_callback);
Greg Kroah-Hartman
maintainercover 4.18.19-stable review
This is the start of the stable review cycle for the 4.18.19 release. There are 350 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Tue Nov 13 22:15:28 UTC 2018. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
https://www.kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.18.19-rc1.gz
or in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.18.y
and the diffstat can be found below.
thanks,
greg k-h
-------------
Pseudo-Shortlog of commits:
Greg Kroah-Hartman <[email protected]>
Linux 4.18.19-rc1
Daniel Colascione <[email protected]>
bpf: wait for running BPF programs when updating map-in-map
Jann Horn <[email protected]>
userns: also map extents in the reverse map to kernel IDs
David Ahern <[email protected]>
net: sched: Remove TCA_OPTIONS from policy
Filipe Manana <[email protected]>
Btrfs: fix use-after-free when dumping free space
Filipe Manana <[email protected]>
Btrfs: fix use-after-free during inode eviction
Josef Bacik <[email protected]>
btrfs: move the dio_sem higher up the callchain
Josef Bacik <[email protected]>
btrfs: don't run delayed_iputs in commit
Josef Bacik <[email protected]>
btrfs: fix insert_reserved error handling
Josef Bacik <[email protected]>
btrfs: only free reserved extent if we didn't insert it
Josef Bacik <[email protected]>
btrfs: don't use ctl->free_space for max_extent_size
Josef Bacik <[email protected]>
btrfs: set max_extent_size properly
Josef Bacik <[email protected]>
btrfs: reset max_extent_size properly
Filipe Manana <[email protected]>
Btrfs: fix deadlock when writing out free space caches
Filipe Manana <[email protected]>
Btrfs: fix assertion on fsync of regular file when using no-holes feature
Filipe Manana <[email protected]>
Btrfs: fix null pointer dereference on compressed write path error
Qu Wenruo <[email protected]>
btrfs: qgroup: Dirty all qgroups before rescan
Filipe Manana <[email protected]>
Btrfs: fix wrong dentries after fsync of file that got its parent replaced
Filipe Manana <[email protected]>
Btrfs: fix warning when replaying log after fsync of a tmpfile
Josef Bacik <[email protected]>
btrfs: make sure we create all new block groups
Josef Bacik <[email protected]>
btrfs: reset max_extent_size on clear in a bitmap
Josef Bacik <[email protected]>
btrfs: protect space cache inode alloc with GFP_NOFS
Josef Bacik <[email protected]>
btrfs: release metadata before running delayed refs
Chris Mason <[email protected]>
Btrfs: don't clean dirty pages during buffered writes
Josef Bacik <[email protected]>
btrfs: wait on caching when putting the bg cache
Jeff Mahoney <[email protected]>
btrfs: keep trim from interfering with transaction commits
Jeff Mahoney <[email protected]>
btrfs: don't attempt to trim devices that don't support it
Jeff Mahoney <[email protected]>
btrfs: iterate all devices during trim, instead of fs_devices::alloc_list
Qu Wenruo <[email protected]>
btrfs: Ensure btrfs_trim_fs can trim the whole filesystem
Qu Wenruo <[email protected]>
btrfs: Enhance btrfs_trim_fs function to handle error better
Jeff Mahoney <[email protected]>
btrfs: fix error handling in btrfs_dev_replace_start
Jeff Mahoney <[email protected]>
btrfs: fix error handling in free_log_tree
Qu Wenruo <[email protected]>
btrfs: locking: Add extra check in btrfs_init_new_buffer() to avoid deadlock
Qu Wenruo <[email protected]>
btrfs: Handle owner mismatch gracefully when walking up tree
Qu Wenruo <[email protected]>
btrfs: qgroup: Avoid calling qgroup functions if qgroup is not enabled
Masami Hiramatsu <[email protected]>
tracing: Return -ENOENT if there is no target synthetic event
Breno Leitao <[email protected]>
selftests/powerpc: Fix ptrace tm failure
Masami Hiramatsu <[email protected]>
selftests/ftrace: Fix synthetic event test to delete event correctly
Johan Hovold <[email protected]>
soc/tegra: pmc: Fix child-node lookup
Bjorn Andersson <[email protected]>
soc: qcom: rmtfs-mem: Validate that scm is available
Thor Thayer <[email protected]>
arm64: dts: stratix10: Correct System Manager register size
Thor Thayer <[email protected]>
ARM: dts: socfpga: Fix SDRAM node address for Arria10
Nicolas Pitre <[email protected]>
Cramfs: fix abad comparison when wrap-arounds occur
Colin Ian King <[email protected]>
rpmsg: smd: fix memory leak on channel create
Tri Vo <[email protected]>
arm64: lse: remove -fcall-used-x0 flag
Hans Verkuil <[email protected]>
media: hdmi.h: rename ADOBE_RGB to OPRGB and ADOBE_YCC to OPYCC
Hans Verkuil <[email protected]>
media: replace ADOBERGB by OPRGB
Hans Verkuil <[email protected]>
media: media colorspaces*.rst: rename AdobeRGB to opRGB
Johan Hovold <[email protected]>
drm/mediatek: fix OF sibling-node lookup
Hans Verkuil <[email protected]>
media: adv7842: when the EDID is cleared, unconfigure CEC as well
Hans Verkuil <[email protected]>
media: adv7604: when the EDID is cleared, unconfigure CEC as well
Mauro Carvalho Chehab <[email protected]>
media: em28xx: fix handler for vidioc_s_input()
Mauro Carvalho Chehab <[email protected]>
media: em28xx: make v4l2-compliance happier by starting sequence on zero
Mauro Carvalho Chehab <[email protected]>
media: em28xx: fix input name for Terratec AV 350
Mauro Carvalho Chehab <[email protected]>
media: tvp5150: avoid going past array on v4l2_querymenu()
Mauro Carvalho Chehab <[email protected]>
media: em28xx: use a default format if TRY_FMT fails
Hans Verkuil <[email protected]>
media: cec: forgot to cancel delayed work
Hans Verkuil <[email protected]>
media: cec: fix the Signal Free Time calculation
Hans Verkuil <[email protected]>
media: cec: add new tx/rx status bits to detect aborts/timeouts
Manjunath Patil <[email protected]>
xen-blkfront: fix kernel panic with negotiate_mq error path
Juergen Gross <[email protected]>
xen: remove size limit of privcmd-buf mapping interface
Juergen Gross <[email protected]>
xen: fix xen_qlock_wait()
Hans Verkuil <[email protected]>
media: cec: integrate cec_validate_phys_addr() in cec-api.c
Hans Verkuil <[email protected]>
media: cec: make cec_get_edid_spa_location() an inline function
He Zhe <[email protected]>
kgdboc: Passing ekgdboc to command line causes panic
Mauro Carvalho Chehab <[email protected]>
Revert "media: dvbsky: use just one mutex for serializing device R/W ops"
Hans Verkuil <[email protected]>
media: v4l2-tpg: fix kernel oops when enabling HFLIP and OSD
Johan Hovold <[email protected]>
net: bcmgenet: fix OF child-node lookup
Maciej W. Rozycki <[email protected]>
TC: Set DMA masks for devices
Will Deacon <[email protected]>
iommu/arm-smmu: Ensure that page-table updates are visible before TLBI
Christophe Lombard <[email protected]>
ocxl: Fix access to the AFU Descriptor Data
Johan Hovold <[email protected]>
power: supply: twl4030-charger: fix OF sibling-node lookup
Maciej W. Rozycki <[email protected]>
rtc: cmos: Remove the `use_acpi_alarm' module parameter for !ACPI
Maciej W. Rozycki <[email protected]>
rtc: cmos: Fix non-ACPI undefined reference to `hpet_rtc_interrupt'
Soeren Moch <[email protected]>
rtc: ds1307: fix ds1339 wakealarm support
Aaro Koskinen <[email protected]>
MIPS: OCTEON: fix out of bounds array access on CN68XX
Maciej W. Rozycki <[email protected]>
MIPS: memset: Fix CPU_DADDI_WORKAROUNDS `small_fixup' regression
Nicholas Piggin <[email protected]>
powerpc/64s/hash: Do not use PPC_INVALIDATE_ERAT on CPUs before POWER9
Michael Neuling <[email protected]>
powerpc/tm: Fix HFSCR bit for no suspend case
Christophe Leroy <[email protected]>
powerpc/msi: Fix compile error on mpc83xx
Jan Kara <[email protected]>
fsnotify: Fix busy inodes during unmount
Lubomir Rintel <[email protected]>
media: ov7670: make "xclk" clock optional
Damien Le Moal <[email protected]>
dm zoned: fix various dmz_get_mblock() issues
Damien Le Moal <[email protected]>
dm zoned: fix metadata block ref counting
Wenwen Wang <[email protected]>
dm ioctl: harden copy_params()'s copy_from_user() from malicious users
Amir Goldstein <[email protected]>
lockd: fix access beyond unterminated strings in prints
Trond Myklebust <[email protected]>
nfsd: Fix an Oops in free_session()
Andrew Elble <[email protected]>
nfsd: correctly decrement odstate refcount in error path
Benjamin Coddington <[email protected]>
nfs: Fix a missed page unlock after pg_doio()
Trond Myklebust <[email protected]>
NFSv4.1: Fix the r/wsize checking
Johan Hovold <[email protected]>
NFC: nfcmrvl_uart: fix OF child-node lookup
Lukas Wunner <[email protected]>
genirq: Fix race on spurious interrupt detection
He Zhe <[email protected]>
printk: Fix panic caused by passing log_buf_len to command line
Steve French <[email protected]>
smb3: on kerberos mount if server doesn't specify auth type use krb5
Steve French <[email protected]>
smb3: do not attempt cifs operation in smb3 query info error path
Steve French <[email protected]>
smb3: allow stats which track session and share reconnects to be reset
Andreas Kemnade <[email protected]>
w1: omap-hdq: fix missing bus unregister at removal
Eugen Hristev <[email protected]>
iio: adc: at91: fix wrong channel number in triggered buffer mode
Eugen Hristev <[email protected]>
iio: adc: at91: fix acking DRDY irq on simple conversions
Alexey Khoroshilov <[email protected]>
iio: adc: imx25-gcq: Fix leak of device_node in mx25_gcq_setup_cfgs()
Lars-Peter Clausen <[email protected]>
iio: ad5064: Fix regulator handling
Arnd Bergmann <[email protected]>
kbuild: fix kernel/bounds.c 'W=1' warning
Mark Rutland <[email protected]>
KVM: arm64: Fix caching of host MDCR_EL2 value
Punit Agrawal <[email protected]>
KVM: arm/arm64: Ensure only THP is candidate for adjustment
Ralph Campbell <[email protected]>
mm/hmm: fix race between hmm_mirror_unregister() and mmu_notifier callback
Ralph Campbell <[email protected]>
mm/rmap: map_pte() was not handling private ZONE_DEVICE page properly
Mike Kravetz <[email protected]>
hugetlbfs: dirty pages as they are added to pagecache
Eric Biggers <[email protected]>
ima: fix showing large 'violations' or 'runtime_measurements_count'
Vlastimil Babka <[email protected]>
mm: /proc/pid/smaps_rollup: fix NULL pointer deref in smaps_pte_range()
Jason A. Donenfeld <[email protected]>
crypto: speck - remove Speck
Ard Biesheuvel <[email protected]>
crypto: aegis/generic - fix for big endian systems
Ard Biesheuvel <[email protected]>
crypto: morus/generic - fix for big endian systems
Mikulas Patocka <[email protected]>
crypto: aesni - don't use GFP_ATOMIC allocation if the request doesn't cross a page in gcm
Horia Geantă <[email protected]>
crypto: tcrypt - fix ghash-generic speed test
Ondrej Mosnacek <[email protected]>
crypto: lrw - Fix out-of bounds access on counter overflow
Eric W. Biederman <[email protected]>
signal: Guard against negative signal numbers in copy_siginfo_from_user32
Eric W. Biederman <[email protected]>
signal/GenWQE: Fix sending of SIGKILL
Keith Busch <[email protected]>
PCI: vmd: White list for fast interrupt handlers
Bin Meng <[email protected]>
PCI: Add Device IDs for Intel GPU "spurious interrupt" quirk
Lukas Wunner <[email protected]>
PCI/ASPM: Fix link_state teardown on device removal
Vignesh R <[email protected]>
ARM: dts: dra7: Fix up unaligned access setting for PCIe EP
Qiuxu Zhuo <[email protected]>
EDAC, skx_edac: Fix logical channel intermediate decoding
Tony Luck <[email protected]>
EDAC, {i7core,sb,skx}_edac: Fix uncorrected error counting
Michael Jin <[email protected]>
EDAC, amd64: Add Family 17h, models 10h-2fh support
Breno Leitao <[email protected]>
HID: hiddev: fix potential Spectre v1
Jason Gerecke <[email protected]>
HID: wacom: Work around HID descriptor bug in DTK-2451 and DTH-2452
Stephen Smalley <[email protected]>
selinux: fix mounting of cgroup2 under older policies
Theodore Ts'o <[email protected]>
ext4: fix use-after-free race in ext4_remount()'s error path
Wang Shilong <[email protected]>
ext4: propagate error from dquot_initialize() in EXT4_IOC_FSSETXATTR
Wang Shilong <[email protected]>
ext4: fix setattr project check in fssetxattr ioctl
Lukas Czerner <[email protected]>
ext4: initialize retries variable in ext4_da_write_inline_data_begin()
Theodore Ts'o <[email protected]>
ext4: fix EXT4_IOC_SWAP_BOOT
Al Viro <[email protected]>
gfs2_meta: ->mount() can get NULL dev_name
Jan Kara <[email protected]>
jbd2: fix use after free in jbd2_log_do_checkpoint()
Jason Gunthorpe <[email protected]>
IB/rxe: Revise the ib_wr_opcode enum
Artemy Kovalyov <[email protected]>
IB/mlx5: Fix MR cache initialization
Daniel Mack <[email protected]>
ASoC: sta32x: set ->component pointer in private struct
Takashi Iwai <[email protected]>
ASoC: intel: skylake: Add missing break in skl_tplg_get_token()
Dan Williams <[email protected]>
libnvdimm, pmem: Fix badblocks population for 'raw' namespaces
Dan Williams <[email protected]>
libnvdimm, region: Fail badblocks listing for inactive regions
Alexander Duyck <[email protected]>
libnvdimm: Hold reference on parent while scheduling async init
Christian Lamparter <[email protected]>
dmaengine: ppc4xx: fix off-by-one build failure
Stefan Nuernberger <[email protected]>
net/ipv4: defensive cipso option parsing
Luca Coelho <[email protected]>
iwlwifi: mvm: check return value of rs_rate_from_ucode_rate()
Felix Fietkau <[email protected]>
mt76: mt76x2: fix multi-interface beacon configuration
Yoshihiro Shimoda <[email protected]>
usb: gadget: udc: renesas_usb3: Fix b-device mode for "workaround"
Adam Thomson <[email protected]>
usb: typec: tcpm: Fix APDO PPS order checking to be based on voltage
Shuah Khan (Samsung OSG) <[email protected]>
usbip:vudc: BUG kmalloc-2048 (Not tainted): Poison overwritten
Lubomir Rintel <[email protected]>
libertas: don't set URB_ZERO_PACKET on IN USB transfer
Juergen Gross <[email protected]>
xen/pvh: don't try to unplug emulated devices
Roger Pau Monne <[email protected]>
xen/pvh: increase early stack size
Juergen Gross <[email protected]>
xen: make xen_qlock_wait() nestable
Juergen Gross <[email protected]>
xen: fix race in xen_qlock_wait()
Boris Ostrovsky <[email protected]>
xen/balloon: Support xend-based toolstack
Vasilis Liaskovitis <[email protected]>
xen/blkfront: avoid NULL blkfront_info dereference on device removal
Dr. Greg Wettstein <[email protected]>
tpm: Restore functionality to xen vtpm driver.
Joe Jin <[email protected]>
xen-swiotlb: use actually allocated size on check physical continuous
Marek Szyprowski <[email protected]>
ARM: dts: exynos: Mark 1 GHz CPU OPP as suspend OPP on Exynos5250
Marek Szyprowski <[email protected]>
ARM: dts: exynos: Convert exynos5250.dtsi to opp-v2 bindings
Viresh Kumar <[email protected]>
arm: dts: exynos: Add missing cooling device properties for CPUs
Viresh Kumar <[email protected]>
OPP: Free OPP table properly on performance state irregularities
Chao Yu <[email protected]>
f2fs: fix to account IO correctly
Chao Yu <[email protected]>
f2fs: fix to recover cold bit of inode block during POR
Jaegeuk Kim <[email protected]>
Revert "f2fs: fix to clear PG_checked flag in set_page_dirty()"
Prarit Bhargava <[email protected]>
cpupower: Fix AMD Family 0x17 msr_pstate size
Takashi Iwai <[email protected]>
ALSA: hda: Check the non-cached stream buffers more explicitly
Vijay Immanuel <[email protected]>
IB/rxe: fix for duplicate request processing and ack psns
Paul Cercueil <[email protected]>
dmaengine: dma-jz4780: Return error if not probed from DT
Alexandre Belloni <[email protected]>
mfd: menelaus: Fix possible race condition and leak
Eric W. Biederman <[email protected]>
signal: Always deliver the kernel's SIGKILL and SIGSTOP to a pid namespace init
Yunlei He <[email protected]>
f2fs: report error if quota off error during umount
Zhikang Zhang <[email protected]>
f2fs: avoid sleeping under spin_lock
James Smart <[email protected]>
scsi: lpfc: Correct race with abort on completion path
James Smart <[email protected]>
scsi: lpfc: Correct soft lockup when running mds diagnostics
Alexandre Belloni <[email protected]>
uio: ensure class is registered before devices
Moni Shoua <[email protected]>
IB/mlx5: Allow transition of DCI QP to reset
Stephen Boyd <[email protected]>
firmware: coreboot: Unmap ioregion after device population
Waiman Long <[email protected]>
driver/dma/ioat: Call del_timer_sync() without holding prep_lock
Casey Schaufler <[email protected]>
Smack: ptrace capability use fixes
Loic Poulain <[email protected]>
usb: chipidea: Prevent unbalanced IRQ disable
Horia Geantă <[email protected]>
crypto: caam - fix implicit casts in endianness helpers
Vignesh R <[email protected]>
PCI: dwc: pci-dra7xx: Enable errata i870 for both EP and RC mode
Suzuki K Poulose <[email protected]>
coresight: etb10: Fix handling of perf mode
Tonghao Zhang <[email protected]>
PCI/MSI: Warn and return error if driver enables MSI/MSI-X twice
Chao Yu <[email protected]>
f2fs: fix to recover inode's i_flags during POR
Chao Yu <[email protected]>
f2fs: fix to recover inode's crtime during POR
Anshuman Gupta <[email protected]>
xhci: Avoid USB autosuspend when resuming USB2 ports.
Bartosz Golaszewski <[email protected]>
nvmem: check the return value of nvmem_add_cells()
Shaohua Li <[email protected]>
MD: fix invalid stored role for a disk
Theodore Ts'o <[email protected]>
ext4: fix argument checking in EXT4_IOC_MOVE_EXT
Alexandre Belloni <[email protected]>
usb: gadget: udc: atmel: handle at91sam9rl PMC
Fabrice Gasnier <[email protected]>
usb: dwc2: fix a race with external vbus supply
Lina Iyer <[email protected]>
irqchip/pdc: Setup all edge interrupts as rising edge at GIC
Chuck Lever <[email protected]>
xprtrdma: Reset credit grant properly after a disconnect
Mika Westerberg <[email protected]>
PCI / ACPI: Enable wake automatically for power managed bridges
Jorgen Hansen <[email protected]>
VMCI: Resource wildcard match fixed
Dexuan Cui <[email protected]>
Drivers: hv: vmbus: Use cpumask_var_t for on-stack cpu mask
Jaegeuk Kim <[email protected]>
f2fs: clear PageError on the read path
Javier Martinez Canillas <[email protected]>
tpm: suppress transmit cmd error logs when TPM 1.2 is disabled/deactivated
Adam Thomson <[email protected]>
usb: typec: tcpm: Report back negotiated PPS voltage and current
Alan Douglas <[email protected]>
PCI: cadence: Use AXI region 0 to signal interrupts from EP
Honghui Zhang <[email protected]>
PCI: mediatek: Fix mtk_pcie_find_port() endpoint/port matching logic
[email protected] <[email protected]>
usb: host: ohci-at91: fix request of irq for optional gpio
Selvin Xavier <[email protected]>
RDMA/bnxt_re: Fix recursive lock warning in debug kernel
Selvin Xavier <[email protected]>
RDMA/bnxt_re: Avoid accessing nq->bar_reg_iomem in failure case
Denis Drozdov <[email protected]>
IB/ipoib: Clear IPCB before icmp_send
Parav Pandit <[email protected]>
RDMA/core: Do not expose unsupported counters
Wenwen Wang <[email protected]>
scsi: megaraid_sas: fix a missing-check bug
Jim Mattson <[email protected]>
KVM: nVMX: Clear reserved bits of #DB exit qualification
David Howells <[email protected]>
UAPI: ndctl: Fix g++-unsupported initialisation in headers
Evan Green <[email protected]>
scsi: ufs: Schedule clk gating work on correct queue
Finn Thain <[email protected]>
scsi: esp_scsi: Track residual for PIO transfers
Jack Wang <[email protected]>
md: fix memleak for mempool
Xiao Ni <[email protected]>
MD: Memory leak when flush bio size is zero
Chao Yu <[email protected]>
f2fs: fix to account IO correctly for cgroup writeback
Johan Hovold <[email protected]>
net: stmmac: dwmac-sun8i: fix OF child-node lookup
Michal Hocko <[email protected]>
cgroup, netclassid: add a preemption point to write_classid
Geert Uytterhoeven <[email protected]>
thermal: da9062/61: Prevent hardware access during system suspend
Geert Uytterhoeven <[email protected]>
thermal: rcar_thermal: Prevent doing work after unbind
Diego Viola <[email protected]>
libata: Apply NOLPM quirk for SAMSUNG MZ7TD256HAFV-000L9
Martin Willi <[email protected]>
ath10k: schedule hardware restart if WMI command times out
Sebastian Basierski <[email protected]>
ixgbevf: VF2VF TCP RSS
Shannon Nelson <[email protected]>
ixgbe: disallow IPsec Tx offload when in SR-IOV mode
Justin Chen <[email protected]>
gpio: brcmstb: allow 0 width GPIO banks
Sara Sharon <[email protected]>
iwlwifi: mvm: fix BAR seq ctrl reporting
Siva Rebbagondla <[email protected]>
rsi: fix memory alignment issue in ARM32 platforms
Andrew Lunn <[email protected]>
net: dsa: mv88e6xxx: Fix writing to a PHY page.
Yunsheng Lin <[email protected]>
net: hns3: Fix for vf vlan delete failed problem
Yunsheng Lin <[email protected]>
net: hns3: Fix ping exited problem when doing lp selftest
Yunsheng Lin <[email protected]>
net: hns3: Preserve vlan 0 in hardware table
Douglas Anderson <[email protected]>
pinctrl: ssbi-gpio: Fix pm8xxx_pin_config_get() to be compliant
Douglas Anderson <[email protected]>
pinctrl: spmi-mpp: Fix pmic_mpp_config_get() to be compliant
Arnaldo Carvalho de Melo <[email protected]>
perf tests: Fix record+probe_libc_inet_pton.sh without ping's debuginfo
YueHaibing <[email protected]>
failover: Add missing check to validate 'slave_dev' in net_failover_slave_unregister
Alexei Starovoitov <[email protected]>
bpf/verifier: fix verifier instability
Stephen Boyd <[email protected]>
pinctrl: qcom: spmi-mpp: Fix drive strength setting
Hans de Goede <[email protected]>
ACPI / LPSS: Add alternative ACPI HIDs for Cherry Trail DMA controllers
Linus Walleij <[email protected]>
spi: gpio: No MISO does not imply no RX
Masami Hiramatsu <[email protected]>
kprobes: Return error if we fail to reuse kprobe instead of BUG_ON()
Will Deacon <[email protected]>
arm64: entry: Allow handling of undefined instructions from EL1
Paolo Valente <[email protected]>
block, bfq: correctly charge and reset entity service in all cases
Antoine Tenart <[email protected]>
net: phy: phylink: ensure the carrier is off when starting phylink
Fuyun Liang <[email protected]>
net: hns3: Set STATE_DOWN bit of hdev state when stopping net
Peng Li <[email protected]>
net: hns3: Check hdev state when getting link status
Arend van Spriel <[email protected]>
brcmfmac: fix for proper support of 160MHz bandwidth
YueHaibing <[email protected]>
pinctrl: qcom: spmi-mpp: Fix err handling of pmic_mpp_set_mux
YueHaibing <[email protected]>
pinctrl: sunxi: fix 'pctrl->functions' allocation in sunxi_pinctrl_build_state
Jian Shen <[email protected]>
net: hns3: Fix ets validate issue
Jian Shen <[email protected]>
net: hns3: Add nic state check before calling netif_tx_wake_queue
Ben Hutchings <[email protected]>
x86: boot: Fix EFI stub alignment
Christian Hewitt <[email protected]>
Bluetooth: btbcm: Add entry for BCM4335C0 UART bluetooth
Yunsheng Lin <[email protected]>
net: hns3: Fix for packet buffer setting bug
Jacob Keller <[email protected]>
ice: update fw version check logic
Bruce Allan <[email protected]>
ice: fix changing of ring descriptor size (ethtool -G)
Will Deacon <[email protected]>
signal: Introduce COMPAT_SIGMINSTKSZ for use in compat_sys_sigaltstack
Gustavo A. R. Silva <[email protected]>
mtd: rawnand: atmel: Fix potential NULL pointer dereference
Xiaochen Shen <[email protected]>
x86/intel_rdt: Show missing resctrl mount options
Viresh Kumar <[email protected]>
cpufreq: dt: Try freeing static OPPs only if we have added them
Dou Liyang <[email protected]>
ACPI / processor: Fix the return value of acpi_processor_ids_walk()
Rajneesh Bhardwaj <[email protected]>
ACPI / PM: LPIT: Register sysfs attributes based on FADT
Jeffrey Hugo <[email protected]>
ACPI/PPTT: Handle architecturally unknown cache types
Sagi Grimberg <[email protected]>
nvmet-rdma: use a private workqueue for delete
Lubomir Rintel <[email protected]>
x86/olpc: Indicate that legacy PC XO-1 platform should not register RTC
Luca Coelho <[email protected]>
iwlwifi: mvm: check for n_profiles validity in EWRD ACPI
Emmanuel Grumbach <[email protected]>
iwlwifi: mvm: clear HW_RESTART_REQUESTED when stopping the interface
Shaul Triebitz <[email protected]>
iwlwifi: pcie: avoid empty free RB queue
Masahiro Yamada <[email protected]>
mtd: rawnand: denali: set SPARE_AREA_SKIP_BYTES register to 8 if unset
Wang Dongsheng <[email protected]>
sdhci: acpi: add free_slot callback
Yu Zhao <[email protected]>
mmc: sdhci-pci-o2micro: Add quirk for O2 Micro dev 0x8620 rev 0x01
Ben Peddell <[email protected]>
bcache: Populate writeback_rate_minimum attribute
Prarit Bhargava <[email protected]>
cpupower: Fix coredump on VMWare
Sanskriti Sharma <[email protected]>
perf strbuf: Match va_{add,copy} with va_end
Sanskriti Sharma <[email protected]>
perf tools: Cleanup trace-event-info 'tdata' leak
Sanskriti Sharma <[email protected]>
perf tools: Free temporary 'sys' string in read_event_files()
Nathan Chancellor <[email protected]>
spi: spi-ep93xx: Use dma_data_direction for ep93xx_spi_dma_{finish,prepare}Javier González <[email protected]>
lightnvm: pblk: fix race condition on metadata I/O
Jia-Ju Bai <[email protected]>
lightnvm: pblk: fix two sleep-in-atomic-context bugs
Javier González <[email protected]>
lightnvm: pblk: fix race on sysfs line state
Thierry Reding <[email protected]>
hwmon: (pwm-fan) Set fan speed to 0 on suspend
Janosch Frank <[email protected]>
s390/sthyi: Fix machine name validity indication
Serhey Popovych <[email protected]>
tun: Consistently configure generic netdev params via rtnetlink
Ryan C Goodfellow <[email protected]>
nfp: devlink port split support for 1x100G CXP NIC
Suzuki K Poulose <[email protected]>
arm64: cpufeature: ctr: Fix cpu capability check for late CPUs
Omar Sandoval <[email protected]>
swim: fix cleanup on setup error
Omar Sandoval <[email protected]>
ataflop: fix error handling during setup
Paolo Abeni <[email protected]>
netfilter: xt_nat: fix DNAT target for shifted portmap ranges
Waiman Long <[email protected]>
locking/lockdep: Fix debug_locks off performance problem
Masahisa Kojima <[email protected]>
net: socionext: Reset tx queue in ndo_stop
Wolfram Sang <[email protected]>
i2c: rcar: cleanup DMA for all kinds of failure
Masami Hiramatsu <[email protected]>
selftests: ftrace: Add synthetic event syntax testcase
Leo Li <[email protected]>
drm: Get ref on CRTC commit object when waiting for flip_done
Heiner Kallweit <[email protected]>
r8169: re-enable MSI-X on RTL8168g
Nathan Chancellor <[email protected]>
net: qla3xxx: Remove overflowing shift statement
Sebastian Andrzej Siewior <[email protected]>
x86/fpu: Remove second definition of fpu in __fpu__restore_sig()
Milian Wolff <[email protected]>
perf report: Don't crash on invalid inline debug information
David Miller <[email protected]>
perf cpu_map: Align cpu map synthesized events properly.
Jarod Wilson <[email protected]>
perf tools: Fix use of alternatives to find JDIR
Jiri Olsa <[email protected]>
perf evsel: Store ids for events with their own cpus perf_event__synthesize_event_update_cpus
Song Muchun <[email protected]>
sched/fair: Fix the min_vruntime update logic in dequeue_entity()
Pieter Jansen van Vuuren <[email protected]>
nfp: flower: use offsets provided by pedit instead of index for ipv6
Pieter Jansen van Vuuren <[email protected]>
nfp: flower: fix pedit set actions for multiple partial masks
Jian-Hong Pan <[email protected]>
r8169: Enable MSI-X on RTL8106e
Jiri Olsa <[email protected]>
perf vendor events intel: Fix wrong filter_band* values for uncore events
Florian Westphal <[email protected]>
xfrm: policy: use hlist rcu variants on insert
Björn Töpel <[email protected]>
xsk: do not call synchronize_net() under RCU read lock
Shuah Khan (Samsung OSG) <[email protected]>
selftests: usbip: add wait after attach and before checking port status
Jiri Olsa <[email protected]>
Revert "perf tools: Fix PMU term format max value calculation"
Keith Busch <[email protected]>
nvme: remove ns sibling before clearing path
Eric Dumazet <[email protected]>
bpf: do not blindly change rlimit in reuseport net selftest
Tomi Valkeinen <[email protected]>
drm: fix use of freed memory in drm_mode_setcrtc
Marek Szyprowski <[email protected]>
ARM: dts: exynos: Disable pull control for MAX8997 interrupts on Origen
Sai Praneeth <[email protected]>
x86/speculation: Support Enhanced IBRS on future CPUs
Sebastian Andrzej Siewior <[email protected]>
x86/mm/pat: Disable preemption around __flush_tlb_all()
He Zhe <[email protected]>
x86/corruption-check: Fix panic in memory_corruption_check() when boot option without value is provided
Juergen Gross <[email protected]>
x86/xen: Fix boot loader version reported for PVH guests
Jiri Kosina <[email protected]>
x86/speculation: Enable cross-hyperthread spectre v2 STIBP mitigation
Alex Stanoev <[email protected]>
ALSA: ca0106: Disable IZD on SB0570 DAC to fix audio pops
Hans de Goede <[email protected]>
ALSA: hda: Add 2 more models to the power_save blacklist
Jeremy Cline <[email protected]>
ALSA: hda - Add mic quirk for the Lenovo G50-30 (17aa:3905)
Hui Wang <[email protected]>
ALSA: hda/realtek - Fix the problem of the front MIC on the Lenovo M715
Takashi Iwai <[email protected]>
ALSA: hda - Fix headphone pin config for ASUS G751
Takashi Iwai <[email protected]>
ALSA: hda - Add quirk for ASUS G751 laptop
Helge Deller <[email protected]>
parisc: Fix exported address of os_hpmc handler
Helge Deller <[email protected]>
parisc: Fix map_pages() to not overwrite existing pte entries
John David Anglin <[email protected]>
parisc: Fix address in HPMC IVA
Dan Williams <[email protected]>
acpi, nfit: Fix Address Range Scrub completion tracking
David Arcari <[email protected]>
mailbox: PCC: handle parse error
Jan Glauber <[email protected]>
ipmi: Fix timer race with module unload
Masami Hiramatsu <[email protected]>
kprobes/x86: Use preempt_enable() in optimized_callback()
Erik Schmauss <[email protected]>
ACPICA: AML Parser: fix parse loop to correctly skip erroneous extended opcodes
Erik Schmauss <[email protected]>
ACPICA: AML interpreter: add region addresses in global list during initialization
Bart Van Assche <[email protected]>
ACPI / OSL: Use 'jiffies' as the time bassis for acpi_os_get_timer()
Maciej S. Szmigiero <[email protected]>
pcmcia: Implement CLKRUN protocol disabling for Ricoh bridges
He Zhe <[email protected]>
dma-mapping: fix panic caused by passing empty cma command line argument
Rafael J. Wysocki <[email protected]>
cpufreq: conservative: Take limits changes into account properly
Ming Lei <[email protected]>
block: make sure writesame bio is aligned with logical block size
Ming Lei <[email protected]>
block: make sure discard bio is aligned with logical block size
Ming Lei <[email protected]>
block: don't deal with discard limit in blkdev_issue_discard()
Jens Axboe <[email protected]>
block: setup bounce bio_sets properly
Hou Tao <[email protected]>
jffs2: free jffs2_sb_info through jffs2_kill_sb()
Dmitry Bazhenov <[email protected]>
hwmon: (pmbus) Fix page count auto-detection.
Tang Junhui <[email protected]>
bcache: fix miss key refill->end in writeback
Tang Junhui <[email protected]>
bcache: correct dirty data statistics
Tang Junhui <[email protected]>
bcache: trace missed reading by cache_missed
Rafał Miłecki <[email protected]>
spi: bcm-qspi: fix calculation of address length
Rafał Miłecki <[email protected]>
spi: bcm-qspi: switch back to reading flash using smaller chunks
Chuanhua Han <[email protected]>
spi: spi-mem: Adjust op len based on message/transfer size limitations
Ahmad Fatoum <[email protected]>
mtd: spi-nor: fsl-quadspi: Don't let -EINVAL on the bus
Mika Westerberg <[email protected]>
mtd: spi-nor: intel-spi: Add support for Intel Ice Lake SPI serial flash
Liu Xiang <[email protected]>
mtd: spi-nor: fsl-quadspi: fix read error for flash size larger than 16MB
Miquel Raynal <[email protected]>
mtd: rawnand: marvell: fix the IRQ handler complete() condition
-------------
Diffstat:
Documentation/filesystems/fscrypt.rst | 10 - Documentation/media/uapi/cec/cec-ioc-receive.rst | 25 +- Documentation/media/uapi/v4l/biblio.rst | 10 - Documentation/media/uapi/v4l/colorspaces-defs.rst | 8 +- .../media/uapi/v4l/colorspaces-details.rst | 13 +- Documentation/media/videodev2.h.rst.exceptions | 6 +- Makefile | 4 +- arch/arm/boot/dts/dra7.dtsi | 2 +- arch/arm/boot/dts/exynos3250.dtsi | 16 + arch/arm/boot/dts/exynos4210-origen.dts | 9 + arch/arm/boot/dts/exynos4210.dtsi | 13 + arch/arm/boot/dts/exynos4412.dtsi | 9 + arch/arm/boot/dts/exynos5250.dtsi | 114 +++- arch/arm/boot/dts/socfpga_arria10.dtsi | 2 +- arch/arm/crypto/Kconfig | 6 - arch/arm/crypto/Makefile | 2 - arch/arm/crypto/speck-neon-core.S | 434 ------------ arch/arm/crypto/speck-neon-glue.c | 288 -------- arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi | 2 +- arch/arm64/crypto/Kconfig | 6 - arch/arm64/crypto/Makefile | 3 - arch/arm64/crypto/speck-neon-core.S | 352 ---------- arch/arm64/crypto/speck-neon-glue.c | 282 -------- arch/arm64/kernel/cpufeature.c | 22 +- arch/arm64/kernel/entry.S | 2 +- arch/arm64/kernel/traps.c | 11 +- arch/arm64/lib/Makefile | 2 +- arch/m68k/configs/amiga_defconfig | 1 - arch/m68k/configs/apollo_defconfig | 1 - arch/m68k/configs/atari_defconfig | 1 - arch/m68k/configs/bvme6000_defconfig | 1 - arch/m68k/configs/hp300_defconfig | 1 - arch/m68k/configs/mac_defconfig | 1 - arch/m68k/configs/multi_defconfig | 1 - arch/m68k/configs/mvme147_defconfig | 1 - arch/m68k/configs/mvme16x_defconfig | 1 - arch/m68k/configs/q40_defconfig | 1 - arch/m68k/configs/sun3_defconfig | 1 - arch/m68k/configs/sun3x_defconfig | 1 - arch/mips/cavium-octeon/executive/cvmx-helper.c | 2 +- arch/mips/lib/memset.S | 4 +- arch/parisc/kernel/entry.S | 2 +- arch/parisc/kernel/hpmc.S | 3 +- arch/parisc/kernel/traps.c | 3 +- arch/parisc/mm/init.c | 8 +- arch/powerpc/include/asm/mpic.h | 7 + arch/powerpc/kernel/mce_power.c | 7 + arch/powerpc/kernel/setup_64.c | 18 +- arch/powerpc/mm/hash_native_64.c | 4 +- arch/s390/defconfig | 1 - arch/s390/kernel/sthyi.c | 8 +- arch/x86/boot/tools/build.c | 7 + arch/x86/crypto/aesni-intel_glue.c | 2 +- arch/x86/include/asm/cpufeatures.h | 1 + arch/x86/include/asm/kvm_host.h | 1 + arch/x86/include/asm/nospec-branch.h | 1 + arch/x86/include/asm/tlbflush.h | 6 + arch/x86/kernel/check.c | 15 + arch/x86/kernel/cpu/bugs.c | 77 ++- arch/x86/kernel/cpu/common.c | 3 + arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 7 + arch/x86/kernel/fpu/signal.c | 1 - arch/x86/kernel/kprobes/opt.c | 2 +- arch/x86/kvm/vmx.c | 7 +- arch/x86/mm/pageattr.c | 6 +- arch/x86/platform/olpc/olpc-xo1-rtc.c | 3 + arch/x86/xen/enlighten_pvh.c | 2 +- arch/x86/xen/platform-pci-unplug.c | 4 + arch/x86/xen/spinlock.c | 35 +- arch/x86/xen/xen-pvh.S | 2 +- block/bfq-wf2q.c | 13 +- block/blk-lib.c | 33 +- block/blk-merge.c | 3 +- block/blk.h | 10 + block/bounce.c | 37 +- crypto/Kconfig | 14 - crypto/Makefile | 1 - crypto/aegis.h | 20 +- crypto/lrw.c | 7 +- crypto/morus1280.c | 7 +- crypto/morus640.c | 16 +- crypto/speck.c | 307 --------- crypto/tcrypt.c | 3 + crypto/testmgr.c | 24 - crypto/testmgr.h | 738 --------------------- drivers/acpi/acpi_lpit.c | 6 + drivers/acpi/acpi_lpss.c | 2 + drivers/acpi/acpi_processor.c | 7 +- drivers/acpi/acpica/dsopcode.c | 4 + drivers/acpi/acpica/psloop.c | 14 +- drivers/acpi/nfit/core.c | 163 +++-- drivers/acpi/nfit/nfit.h | 9 +- drivers/acpi/osl.c | 15 +- drivers/acpi/pptt.c | 33 +- drivers/ata/libata-core.c | 1 + drivers/block/ataflop.c | 25 +- drivers/block/swim.c | 13 +- drivers/block/xen-blkfront.c | 4 + drivers/bluetooth/btbcm.c | 1 + drivers/char/ipmi/ipmi_ssif.c | 10 +- drivers/char/tpm/tpm-interface.c | 3 +- drivers/char/tpm/xen-tpmfront.c | 2 +- drivers/cpufreq/cpufreq-dt.c | 34 +- drivers/cpufreq/cpufreq_conservative.c | 6 +- drivers/crypto/caam/regs.h | 28 +- drivers/dma/dma-jz4780.c | 5 + drivers/dma/ioat/init.c | 9 +- drivers/dma/ppc4xx/adma.c | 2 +- drivers/edac/amd64_edac.c | 14 + drivers/edac/amd64_edac.h | 3 + drivers/edac/i7core_edac.c | 1 + drivers/edac/sb_edac.c | 1 + drivers/edac/skx_edac.c | 3 +- drivers/firmware/google/coreboot_table.c | 7 +- drivers/gpio/gpio-brcmstb.c | 15 +- drivers/gpu/drm/drm_atomic.c | 5 + drivers/gpu/drm/drm_atomic_helper.c | 12 +- drivers/gpu/drm/drm_crtc.c | 10 +- drivers/gpu/drm/mediatek/mtk_hdmi.c | 5 +- drivers/hid/usbhid/hiddev.c | 18 +- drivers/hid/wacom_wac.c | 19 + drivers/hv/channel_mgmt.c | 14 +- drivers/hwmon/pmbus/pmbus.c | 2 + drivers/hwmon/pmbus/pmbus_core.c | 5 +- drivers/hwmon/pwm-fan.c | 12 +- drivers/hwtracing/coresight/coresight-etb10.c | 4 + drivers/i2c/busses/i2c-rcar.c | 6 +- drivers/iio/adc/at91_adc.c | 6 +- drivers/iio/adc/fsl-imx25-gcq.c | 6 + drivers/iio/dac/ad5064.c | 53 +- drivers/infiniband/core/sysfs.c | 19 +- drivers/infiniband/hw/bnxt_re/qplib_fp.c | 3 +- drivers/infiniband/hw/bnxt_re/qplib_rcfw.c | 13 +- drivers/infiniband/hw/mlx5/mr.c | 2 +- drivers/infiniband/hw/mlx5/qp.c | 4 +- drivers/infiniband/sw/rxe/rxe_resp.c | 8 +- drivers/infiniband/sw/rxe/rxe_verbs.h | 2 + drivers/infiniband/ulp/ipoib/ipoib_cm.c | 8 +- drivers/iommu/arm-smmu.c | 6 + drivers/irqchip/qcom-pdc.c | 1 + drivers/lightnvm/pblk-core.c | 5 +- drivers/lightnvm/pblk-recovery.c | 6 +- drivers/lightnvm/pblk-sysfs.c | 8 +- drivers/lightnvm/pblk-write.c | 14 +- drivers/mailbox/pcc.c | 7 +- drivers/md/bcache/btree.c | 2 +- drivers/md/bcache/request.c | 2 +- drivers/md/bcache/super.c | 3 +- drivers/md/bcache/sysfs.c | 2 + drivers/md/dm-ioctl.c | 18 +- drivers/md/dm-zoned-metadata.c | 80 ++- drivers/md/md.c | 30 +- drivers/media/cec/cec-adap.c | 94 +-- drivers/media/cec/cec-api.c | 19 +- drivers/media/cec/cec-edid.c | 60 -- drivers/media/common/v4l2-tpg/v4l2-tpg-colors.c | 262 ++++---- drivers/media/common/v4l2-tpg/v4l2-tpg-core.c | 2 +- drivers/media/i2c/adv7511.c | 6 +- drivers/media/i2c/adv7604.c | 6 +- drivers/media/i2c/adv7842.c | 4 +- drivers/media/i2c/ov7670.c | 27 +- drivers/media/i2c/tc358743.c | 4 +- drivers/media/i2c/tvp5150.c | 2 +- drivers/media/platform/vivid/vivid-core.h | 2 +- drivers/media/platform/vivid/vivid-ctrls.c | 6 +- drivers/media/platform/vivid/vivid-vid-out.c | 2 +- drivers/media/usb/dvb-usb-v2/dvbsky.c | 16 +- drivers/media/usb/em28xx/em28xx-cards.c | 33 +- drivers/media/usb/em28xx/em28xx-video.c | 92 ++- drivers/media/usb/em28xx/em28xx.h | 8 +- drivers/media/v4l2-core/v4l2-dv-timings.c | 12 +- drivers/mfd/menelaus.c | 13 +- drivers/misc/genwqe/card_base.h | 2 +- drivers/misc/genwqe/card_dev.c | 9 +- drivers/misc/ocxl/config.c | 4 +- drivers/misc/vmw_vmci/vmci_driver.c | 2 +- drivers/misc/vmw_vmci/vmci_resource.c | 3 +- drivers/mmc/host/sdhci-acpi.c | 8 + drivers/mmc/host/sdhci-pci-o2micro.c | 3 + drivers/mtd/nand/raw/atmel/nand-controller.c | 4 + drivers/mtd/nand/raw/denali.c | 14 +- drivers/mtd/nand/raw/marvell_nand.c | 2 +- drivers/mtd/spi-nor/fsl-quadspi.c | 15 +- drivers/mtd/spi-nor/intel-spi-pci.c | 1 + drivers/net/dsa/mv88e6xxx/phy.c | 3 + drivers/net/ethernet/broadcom/genet/bcmmii.c | 2 +- drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 4 +- drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 4 +- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c | 6 +- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 30 +- .../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 5 + drivers/net/ethernet/intel/ice/ice.h | 4 +- drivers/net/ethernet/intel/ice/ice_controlq.c | 30 +- drivers/net/ethernet/intel/ice/ice_ethtool.c | 17 +- drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c | 3 + drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 4 + drivers/net/ethernet/netronome/nfp/flower/action.c | 35 +- drivers/net/ethernet/netronome/nfp/nfp_devlink.c | 17 +- drivers/net/ethernet/qlogic/qla3xxx.c | 2 - drivers/net/ethernet/realtek/r8169.c | 12 +- drivers/net/ethernet/socionext/netsec.c | 3 + drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 12 +- drivers/net/net_failover.c | 3 + drivers/net/phy/phylink.c | 3 + drivers/net/tun.c | 2 + drivers/net/wireless/ath/ath10k/wmi.c | 6 + .../net/wireless/broadcom/brcm80211/brcmutil/d11.c | 34 +- .../broadcom/brcm80211/include/brcmu_wifi.h | 2 + drivers/net/wireless/intel/iwlwifi/mvm/fw.c | 8 +- drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 9 +- drivers/net/wireless/intel/iwlwifi/mvm/rs.c | 24 +- drivers/net/wireless/intel/iwlwifi/mvm/tx.c | 9 +- drivers/net/wireless/intel/iwlwifi/pcie/rx.c | 32 +- drivers/net/wireless/marvell/libertas/if_usb.c | 2 - drivers/net/wireless/mediatek/mt76/mt76x2_mac.c | 3 +- drivers/net/wireless/rsi/rsi_91x_usb.c | 11 +- drivers/nfc/nfcmrvl/uart.c | 5 +- drivers/nvdimm/bus.c | 4 + drivers/nvdimm/pmem.c | 4 +- drivers/nvdimm/region_devs.c | 11 +- drivers/nvme/host/core.c | 2 +- drivers/nvme/target/rdma.c | 19 +- drivers/nvmem/core.c | 10 +- drivers/opp/of.c | 1 + drivers/pci/controller/dwc/pci-dra7xx.c | 11 +- drivers/pci/controller/pcie-cadence-ep.c | 11 +- drivers/pci/controller/pcie-mediatek.c | 11 + drivers/pci/controller/vmd.c | 13 +- drivers/pci/msi.c | 9 +- drivers/pci/pci-acpi.c | 16 +- drivers/pci/pcie/aspm.c | 2 +- drivers/pci/quirks.c | 4 + drivers/pci/remove.c | 4 +- drivers/pcmcia/ricoh.h | 35 + drivers/pcmcia/yenta_socket.c | 3 +- drivers/pinctrl/qcom/pinctrl-spmi-mpp.c | 27 +- drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c | 28 +- drivers/pinctrl/sunxi/pinctrl-sunxi.c | 15 +- drivers/power/supply/twl4030_charger.c | 5 +- drivers/rpmsg/qcom_smd.c | 7 +- drivers/rtc/rtc-cmos.c | 29 +- drivers/rtc/rtc-ds1307.c | 1 - drivers/scsi/esp_scsi.c | 1 + drivers/scsi/esp_scsi.h | 2 + drivers/scsi/lpfc/lpfc_scsi.c | 14 +- drivers/scsi/lpfc/lpfc_sli.c | 7 + drivers/scsi/mac_esp.c | 2 + drivers/scsi/megaraid/megaraid_sas_base.c | 3 + drivers/scsi/ufs/ufshcd.c | 5 +- drivers/soc/qcom/rmtfs_mem.c | 5 + drivers/soc/tegra/pmc.c | 2 +- drivers/spi/spi-bcm-qspi.c | 4 +- drivers/spi/spi-ep93xx.c | 36 +- drivers/spi/spi-gpio.c | 10 +- drivers/spi/spi-mem.c | 15 + drivers/tc/tc.c | 8 +- drivers/thermal/da9062-thermal.c | 4 +- drivers/thermal/rcar_thermal.c | 1 + drivers/tty/serial/kgdboc.c | 5 + drivers/uio/uio.c | 9 + drivers/usb/chipidea/otg.h | 3 +- drivers/usb/dwc2/hcd.c | 10 +- drivers/usb/gadget/udc/atmel_usba_udc.c | 2 + drivers/usb/gadget/udc/renesas_usb3.c | 3 + drivers/usb/host/ohci-at91.c | 2 + drivers/usb/host/xhci-hub.c | 5 + drivers/usb/host/xhci-ring.c | 1 + drivers/usb/typec/tcpm.c | 10 +- drivers/usb/usbip/vudc_main.c | 10 +- drivers/video/hdmi.c | 8 +- drivers/w1/masters/omap_hdq.c | 2 + drivers/xen/privcmd-buf.c | 22 +- drivers/xen/swiotlb-xen.c | 6 + drivers/xen/xen-balloon.c | 13 +- fs/btrfs/ctree.c | 17 + fs/btrfs/dev-replace.c | 7 +- fs/btrfs/extent-tree.c | 168 +++-- fs/btrfs/file.c | 41 +- fs/btrfs/free-space-cache.c | 42 +- fs/btrfs/inode.c | 15 +- fs/btrfs/ioctl.c | 11 +- fs/btrfs/qgroup.c | 5 + fs/btrfs/qgroup.h | 2 + fs/btrfs/relocation.c | 2 +- fs/btrfs/transaction.c | 15 +- fs/btrfs/tree-log.c | 86 ++- fs/cifs/cifs_debug.c | 3 + fs/cifs/cifs_spnego.c | 6 +- fs/cifs/inode.c | 10 +- fs/cramfs/inode.c | 3 +- fs/crypto/fscrypt_private.h | 4 - fs/crypto/keyinfo.c | 10 - fs/ext4/ext4.h | 3 +- fs/ext4/inline.c | 2 +- fs/ext4/ioctl.c | 97 ++- fs/ext4/move_extent.c | 8 +- fs/ext4/super.c | 73 +- fs/f2fs/data.c | 17 +- fs/f2fs/extent_cache.c | 51 +- fs/f2fs/f2fs.h | 7 +- fs/f2fs/inode.c | 6 + fs/f2fs/node.c | 9 +- fs/f2fs/recovery.c | 1 + fs/f2fs/super.c | 19 +- fs/gfs2/ops_fstype.c | 3 + fs/jbd2/checkpoint.c | 4 +- fs/jffs2/super.c | 4 +- fs/lockd/host.c | 2 +- fs/nfs/nfs4client.c | 16 +- fs/nfs/pagelist.c | 40 +- fs/nfsd/nfs4state.c | 3 +- fs/notify/fsnotify.c | 3 + fs/notify/mark.c | 39 +- fs/proc/task_mmu.c | 4 +- include/crypto/speck.h | 62 -- include/drm/drm_atomic.h | 11 + include/linux/compat.h | 3 + include/linux/fs.h | 3 + include/linux/hdmi.h | 4 +- include/linux/signal.h | 2 +- include/linux/tc.h | 1 + include/media/cec.h | 72 +- include/rdma/ib_verbs.h | 34 +- include/uapi/linux/cec.h | 3 + include/uapi/linux/fs.h | 4 +- include/uapi/linux/ndctl.h | 48 +- include/uapi/linux/videodev2.h | 23 +- include/uapi/rdma/ib_user_verbs.h | 20 +- kernel/bounds.c | 4 +- kernel/bpf/syscall.c | 13 + kernel/bpf/verifier.c | 16 +- kernel/bpf/xskmap.c | 10 +- kernel/cpu.c | 11 +- kernel/dma/contiguous.c | 6 +- kernel/irq/manage.c | 8 +- kernel/kprobes.c | 27 +- kernel/locking/lockdep.c | 4 +- kernel/printk/printk.c | 7 +- kernel/sched/fair.c | 2 +- kernel/signal.c | 18 +- kernel/trace/trace_events_hist.c | 4 +- kernel/user_namespace.c | 12 +- lib/debug_locks.c | 2 +- mm/hmm.c | 36 +- mm/hugetlb.c | 6 + mm/page_vma_mapped.c | 24 +- net/core/netclassid_cgroup.c | 1 + net/ipv4/cipso_ipv4.c | 11 +- net/netfilter/xt_nat.c | 2 + net/sched/sch_api.c | 1 - net/sunrpc/svc_xprt.c | 2 +- net/sunrpc/xprtrdma/svc_rdma_backchannel.c | 1 + net/sunrpc/xprtrdma/transport.c | 6 + net/xdp/xsk.c | 2 + net/xfrm/xfrm_policy.c | 8 +- security/integrity/ima/ima_fs.c | 6 +- security/selinux/hooks.c | 5 + security/smack/smack_lsm.c | 13 +- sound/pci/ca0106/ca0106.h | 2 +- sound/pci/hda/hda_controller.h | 1 + sound/pci/hda/hda_intel.c | 15 +- sound/pci/hda/patch_conexant.c | 1 + sound/pci/hda/patch_realtek.c | 26 + sound/soc/codecs/sta32x.c | 3 + sound/soc/intel/skylake/skl-topology.c | 1 + tools/perf/Makefile.config | 2 +- tools/perf/builtin-report.c | 1 + .../pmu-events/arch/x86/ivytown/uncore-power.json | 16 +- .../pmu-events/arch/x86/jaketown/uncore-power.json | 16 +- .../tests/shell/record+probe_libc_inet_pton.sh | 2 +- tools/perf/util/event.c | 1 + tools/perf/util/evsel.c | 3 + tools/perf/util/pmu.c | 13 +- tools/perf/util/srcline.c | 3 + tools/perf/util/strbuf.c | 10 +- tools/perf/util/trace-event-info.c | 2 + tools/perf/util/trace-event-read.c | 5 +- tools/power/cpupower/utils/cpufreq-info.c | 2 + tools/power/cpupower/utils/helpers/amd.c | 7 +- .../selftests/drivers/usb/usbip/usbip_test.sh | 4 + .../trigger-synthetic-event-createremove.tc | 12 +- .../inter-event/trigger-synthetic-event-syntax.tc | 80 +++ tools/testing/selftests/net/reuseport_bpf.c | 13 +- .../selftests/powerpc/ptrace/ptrace-tm-spd-gpr.c | 4 +- virt/kvm/arm/arm.c | 4 +- virt/kvm/arm/mmu.c | 8 +- 386 files changed, 3265 insertions(+), 4010 deletions(-)
Greg Kroah-Hartman
maintainerPATCH 12/350 jffs2: free jffs2_sb_info through jffs2_kill_sb()
4.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Hou Tao <[email protected]>
commit 92e2921f7eee63450a5f953f4b15dc6210219430 upstream.
When an invalid mount option is passed to jffs2, jffs2_parse_options() will fail and jffs2_sb_info will be freed, but then jffs2_sb_info will be used (use-after-free) and freeed (double-free) in jffs2_kill_sb().
Fix it by removing the buggy invocation of kfree() when getting invalid mount options.
--- fs/jffs2/super.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
fs/jffs2/super.c +1 -3
@@ -285,10 +285,8 @@ static int jffs2_fill_super(struct super sb->s_fs_info = c; ret =jffs2_parse_options (c, data); -if (ret) { -kfree (c); +if (ret)return -EINVAL ; - }/* Initialize JFFS2 superblock locks, the further initialization will * be done later */
Greg Kroah-Hartman
maintainerPATCH 8/350 bcache: trace missed reading by cache_missed
In reply to Greg Kroah-Hartman4.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Tang Junhui <[email protected]>
commit 502b291568fc7faf1ebdb2c2590f12851db0ff76 upstream.
Missed reading IOs are identified by s->cache_missed, not the s->cache_miss, so in trace_bcache_read() using trace_bcache_read to identify whether the IO is missed or not.
--- drivers/md/bcache/request.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/bcache/request.c +1 -1
@@ -843,7 +843,7 @@ static void cached_dev_read_done_bh(strubch_mark_cache_accounting (s->iop.c, s->d, !s->cache_missed, s->iop.bypass); -trace_bcache_read (s->orig_bio, !s->cache_miss, s->iop.bypass); +trace_bcache_read (s->orig_bio, !s->cache_missed, s->iop.bypass);if (s->iop.status)continue_at_nobarrier (cl, cached_dev_read_error, bcache_wq);
Greg Kroah-Hartman
maintainerPATCH 4/350 mtd: spi-nor: fsl-quadspi: Dont let -EINVAL on the bus
In reply to Greg Kroah-Hartman4.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Ahmad Fatoum <[email protected]>
commit 000412276370a9bcfec73b3752ceefd9a927f1db upstream.
fsl_qspi_get_seqid() may return -EINVAL, but fsl_qspi_init_ahb_read() doesn't check for error codes with the result that -EINVAL could find itself signalled over the bus.
In conjunction with the LS1046A SoC's A-009283 errata ("Illegal accesses to SPI flash memory can result in a system hang") this illegal access to SPI flash memory results in a system hang if userspace attempts reading later on.
Avoid this by always checking fsl_qspi_get_seqid()'s return value and bail out otherwise.
--- drivers/mtd/spi-nor/fsl-quadspi.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-)
drivers/mtd/spi-nor/fsl-quadspi.c +10 -4
@@ -544,6 +544,9 @@ fsl_qspi_runcmd(struct fsl_qspi *q, u8 c/* trigger the LUT now */ seqid =fsl_qspi_get_seqid (q, cmd); +if (seqid <0 ) +return seqid; +qspi_writel (q, (seqid <<QUADSPI_IPCR_SEQID_SHIFT ) | len, base +QUADSPI_IPCR );
@@ -672,7 +675,7 @@ static void fsl_qspi_set_map_addr(struct* causes the controller to clear the buffer, and use the sequence pointed * by the QUADSPI_BFGENCR[SEQID] to initiate a read from the flash. */ -static void fsl_qspi_init_ahb_read (struct fsl_qspi *q) +static int fsl_qspi_init_ahb_read (struct fsl_qspi *q) {void __iomem *base = q->iobase;int seqid;
@@ -697,8 +700,13 @@ static void fsl_qspi_init_ahb_read(struc/* Set the default lut sequence for AHB Read. */ seqid =fsl_qspi_get_seqid (q, q->nor[0 ].read_opcode); +if (seqid <0 ) +return seqid; +qspi_writel (q, seqid <<QUADSPI_BFGENCR_SEQID_SHIFT , q->iobase +QUADSPI_BFGENCR ); + +return 0 ; }/* This function was used to prepare and enable QSPI clock */
@@ -806,9 +814,7 @@ static int fsl_qspi_nor_setup_last(strucfsl_qspi_init_lut (q);/* Init for AHB read */ -fsl_qspi_init_ahb_read (q); - -return 0 ; +return fsl_qspi_init_ahb_read (q); }static const struct of_device_id fsl_qspi_dt_ids[] = {
Greg Kroah-Hartman
maintainerPATCH 6/350 spi: bcm-qspi: switch back to reading flash using smaller chunks
In reply to Greg Kroah-Hartman4.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Rafał Miłecki <[email protected]>
commit 940ec770c295682993d1cccce3081fd7c74fece8 upstream.
Fixing/optimizing bcm_qspi_bspi_read() performance introduced two changes:
1) It added a loop to read all requested data using multiple BSPI ops.
2) It bumped max size of a single BSPI block request from 256 to 512 B.
The later change resulted in occasional BSPI timeouts causing a regression.
For some unknown reason hardware doesn't always handle reads as expected when using 512 B chunks. In such cases it may happen that BSPI returns amount of requested bytes without the last 1-3 ones. It provides the remaining bytes later but doesn't raise an interrupt until another LR start.
Switching back to 256 B reads fixes that problem and regression.
--- drivers/spi/spi-bcm-qspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/spi-bcm-qspi.c +1 -1
@@ -89,7 +89,7 @@#define BSPI_BPP_MODE_SELECT_MASK BIT(8)#define BSPI_BPP_ADDR_SELECT_MASK BIT(16) -#define BSPI_READ_LENGTH 512 +#define BSPI_READ_LENGTH 256/* MSPI register offsets */ #define MSPI_SPCR0_LSB 0x000
Greg Kroah-Hartman
maintainerPATCH 2/350 mtd: spi-nor: fsl-quadspi: fix read error for flash size larger than 16MB
In reply to Greg Kroah-Hartman4.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Liu Xiang <[email protected]>
commit 41fe242979e463d6ad251077ded01b825a330b7e upstream.
If the size of spi-nor flash is larger than 16MB, the read_opcode is set to SPINOR_OP_READ_1_1_4_4B, and fsl_qspi_get_seqid() will return -EINVAL when cmd is SPINOR_OP_READ_1_1_4_4B. This can cause read operation fail.
--- drivers/mtd/spi-nor/fsl-quadspi.c | 1 + 1 file changed, 1 insertion(+)
drivers/mtd/spi-nor/fsl-quadspi.c +1 -0
@@ -478,6 +478,7 @@ static int fsl_qspi_get_seqid(struct fsl {switch (cmd) {case SPINOR_OP_READ_1_1_4 : +case SPINOR_OP_READ_1_1_4_4B :return SEQID_READ ;case SPINOR_OP_WREN :return SEQID_WREN ;
Greg Kroah-Hartman
maintainerPATCH 10/350 bcache: fix miss key refill->end in writeback
In reply to Greg Kroah-Hartman4.18-stable review patch. If anyone has any objections, please let me know.
------------------
From: Tang Junhui <[email protected]>
commit 2d6cb6edd2c7fb4f40998895bda45006281b1ac5 upstream.
refill->end record the last key of writeback, for example, at the first time, keys (1,128K) to (1,1024K) are flush to the backend device, but the end key (1,1024K) is not included, since the bellow code:
if (bkey_cmp(k, refill->end) >= 0) {
ret = MAP_DONE;
goto out;
}And in the next time when we refill writeback keybuf again, we searched key start from (1,1024K), and got a key bigger than it, so the key (1,1024K) missed.
This patch modify the above code, and let the end key to be included to the writeback key buffer.
--- drivers/md/bcache/btree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/bcache/btree.c +1 -1
@@ -2380,7 +2380,7 @@ static int refill_keybuf_fn(struct btreestruct keybuf *buf = refill->buf;int ret =MAP_CONTINUE ; -if (bkey_cmp (k, refill->end) >=0 ) { +if (bkey_cmp (k, refill->end) >0 ) { ret =MAP_DONE ; goto out; }
stable-rc/linux-4.18.y boot: 100 boots: 9 failed, 67 passed with 16 offline, 8 conflicts (v4.18.18-351-g3c7d01cd1ddb)
stable-rc/linux-4.18.y boot: 100 boots: 9 failed, 67 passed with 16 offline, 8 conflicts (v4.18.18-351-g3c7d01cd1ddb)
Full Boot Summary: https://kernelci.org/boot/all/job/stable-rc/branch/linux-4.18.y/kernel/v4.18.18-351-g3c7d01cd1ddb/
Full Build Summary: https://kernelci.org/build/stable-rc/branch/linux-4.18.y/kernel/v4.18.18-351-g3c7d01cd1ddb/
Tree: stable-rc
Branch: linux-4.18.y
Git Describe: v4.18.18-351-g3c7d01cd1ddb
Git Commit: 3c7d01cd1ddbc9a886879493eb0fc25482f399d8
Git URL: http://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
Tested: 57 unique boards, 21 SoC families, 15 builds out of 187
Boot Regressions Detected:
arm:
bcm2835_defconfig:
bcm2837-rpi-3-b:
lab-baylibre: failing since 1 day (last pass: v4.18.17-35-g46c86a0ac4a1 - first fail: v4.18.18)
multi_v7_defconfig:
imx6q-sabrelite:
lab-baylibre: new failure (last pass: v4.18.17)
meson8b-odroidc1:
lab-baylibre: new failure (last pass: v4.18.17)
qemu:
lab-baylibre: new failure (last pass: v4.18.17)
sun8i-h2-plus-libretech-all-h3-cc:
lab-baylibre: new failure (last pass: v4.18.17)
sun8i-h3-libretech-all-h3-cc:
lab-baylibre: new failure (last pass: v4.18.17)
sunxi_defconfig:
sun8i-h2-plus-libretech-all-h3-cc:
lab-baylibre: failing since 1 day (last pass: v4.18.17-35-g46c86a0ac4a1 - first fail: v4.18.18)
sun8i-h3-libretech-all-h3-cc:
lab-baylibre: failing since 1 day (last pass: v4.18.17-35-g46c86a0ac4a1 - first fail: v4.18.18)
vexpress_defconfig:
qemu:
lab-baylibre: failing since 1 day (last pass: v4.18.17-35-g46c86a0ac4a1 - first fail: v4.18.18)arm64:
defconfig:
bcm2837-rpi-3-b:
lab-baylibre: new failure (last pass: v4.18.17-35-g46c86a0ac4a1)
meson-gxbb-nanopi-k2:
lab-baylibre: new failure (last pass: v4.18.17-35-g46c86a0ac4a1)
meson-gxbb-p200:
lab-baylibre: new failure (last pass: v4.18.17-35-g46c86a0ac4a1)
meson-gxl-s905x-khadas-vim:
lab-baylibre: new failure (last pass: v4.18.17-35-g46c86a0ac4a1)
meson-gxl-s905x-libretech-cc:
lab-baylibre: new failure (last pass: v4.18.17-35-g46c86a0ac4a1)
qemu:
lab-baylibre: new failure (last pass: v4.18.17-35-g46c86a0ac4a1)
sun50i-h5-libretech-all-h3-cc:
lab-baylibre: new failure (last pass: v4.18.17-35-g46c86a0ac4a1)x86:
x86_64_defconfig:
qemu:
lab-baylibre: failing since 1 day (last pass: v4.18.17-35-g46c86a0ac4a1 - first fail: v4.18.18)Boot Failures Detected:
arm:
bcm2835_defconfig
bcm2837-rpi-3-b: 1 failed lab
sunxi_defconfig
sun8i-h2-plus-libretech-all-h3-cc: 1 failed lab sun8i-h3-libretech-all-h3-cc: 1 failed lab
multi_v7_defconfig
imx6q-sabrelite: 1 failed lab sun8i-h2-plus-libretech-all-h3-cc: 1 failed lab sun8i-h3-libretech-all-h3-cc: 1 failed lab
arm64:
defconfig
meson-gxbb-nanopi-k2: 1 failed lab meson-gxl-s905x-libretech-cc: 1 failed lab sun50i-h5-libretech-all-h3-cc: 1 failed lab
Offline Platforms:
arm:
omap2plus_defconfig:
am335x-boneblack: 1 offline lab
sunxi_defconfig:
sun5i-r8-chip: 1 offline lab
tegra_defconfig:
tegra124-jetson-tk1: 1 offline lab
bcm2835_defconfig:
bcm2835-rpi-b: 1 offline lab
sama5_defconfig:
at91-sama5d4_xplained: 1 offline lab
multi_v7_defconfig:
alpine-db: 1 offline lab
am335x-boneblack: 1 offline lab
at91-sama5d4_xplained: 1 offline lab socfpga_cyclone5_de0_sockit: 1 offline lab
sun5i-r8-chip: 1 offline lab
tegra124-jetson-tk1: 1 offline lab
arm64:
defconfig:
apq8016-sbc: 1 offline lab
juno-r2: 1 offline lab
meson-gxl-s905d-p230: 1 offline lab
meson-gxl-s905x-p212: 1 offline lab
mt7622-rfb1: 1 offline labConflicting Boot Failures Detected: (These likely are not failures as other labs are reporting PASS. Needs review.)
arm:
multi_v7_defconfig:
qemu:
lab-baylibre: FAIL
lab-mhart: PASS
meson8b-odroidc1:
lab-baylibre: FAIL
lab-baylibre-seattle: PASS
vexpress_defconfig:
qemu:
lab-baylibre: FAIL
lab-mhart: PASS
arm64:
defconfig:
bcm2837-rpi-3-b:
lab-baylibre: FAIL
lab-mhart: PASS
lab-baylibre-seattle: PASS
meson-gxbb-p200:
lab-baylibre: FAIL
lab-baylibre-seattle: PASS
meson-gxl-s905x-khadas-vim:
lab-baylibre: FAIL
lab-baylibre-seattle: PASS
qemu:
lab-baylibre: FAIL
lab-mhart: PASSx86:
x86_64_defconfig:
qemu:
lab-baylibre: FAIL
lab-mhart: PASS---
For more info write to <[email protected]>
Quoted 10 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.18.19 release. There are 350 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Tue Nov 13 22:15:28 UTC 2018. Anything received after that time might be too late.
The whole patch series can be found in one patch at:
Quoted 8 lines
https://www.kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.18.19-rc1.gzor in the git tree and branch at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.gitlinux-4.18.y
and the diffstat can be found below.thanks,
greg k-h
Results from Linaro’s test farm.
No regressions on arm64, arm, x86_64, and i386.
Summary
------------------------------------------------------------------------
kernel: 4.18.19-rc1
git repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git branch: linux-4.18.y
git commit: a77acf393de04dda4d98962043a030467400b27f
git describe: v4.18.18-351-ga77acf393de0
Test details: https://qa-reports.linaro.org/lkft/linux-stable-rc-4.18-oe/build/v4.18.18-351-ga77acf393de0
No regressions (compared to build v4.18.18)
Ran 21337 total tests in the following environments and test suites.
Environments
--------------
- dragonboard-410c - arm64
- hi6220-hikey - arm64
- i386
- juno-r2 - arm64
- qemu_arm
- qemu_arm64
- qemu_i386
- qemu_x86_64
- x15 - arm
- x86_64
Test Suites
-----------
* boot
* ltp-fcntl-locktests-tests
* ltp-filecaps-tests
* ltp-fs-tests
* ltp-fs_bind-tests
* ltp-fs_perms_simple-tests
* ltp-fsx-tests
* ltp-hugetlb-tests
* ltp-io-tests
* ltp-ipc-tests
* ltp-math-tests
* ltp-nptl-tests
* ltp-pty-tests
* ltp-sched-tests
* ltp-securebits-tests
* ltp-syscalls-tests
* ltp-timers-tests
* kselftest
* libhugetlbfs
* ltp-cap_bounds-tests
* ltp-containers-tests
* ltp-cve-tests
* ltp-open-posix-tests
* kselftest-vsyscall-mode-native
* kselftest-vsyscall-mode-none
--
Linaro LKFT
https://lkft.linaro.org
Quoted 8 lines · Greg Kroah-Hartman
This is the start of the stable review cycle for the 4.18.19 release. There are 350 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know.
Responses should be made by Tue Nov 13 22:15:28 UTC 2018. Anything received after that time might be too late.
Build results:
total: 136 pass: 136 fail: 0 Qemu test results: total: 296 pass: 296 fail: 0
Details are available at https://kerneltests.org/builders/.
Guenter