Linux 4.17.14
Greg KH
maintainerI'm announcing the release of the 4.17.14 kernel.
All users of the 4.17 kernel series must upgrade.
The updated 4.17.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.17.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 arch/x86/events/intel/uncore.h | 2 arch/x86/events/intel/uncore_snbep.c | 10 +++- block/blk-core.c | 5 +- drivers/i2c/busses/i2c-imx.c | 3 - drivers/scsi/qla2xxx/qla_attr.c | 1 drivers/scsi/qla2xxx/qla_gbl.h | 1 drivers/scsi/qla2xxx/qla_gs.c | 4 + drivers/scsi/qla2xxx/qla_init.c | 7 +-- drivers/scsi/qla2xxx/qla_inline.h | 2 drivers/scsi/qla2xxx/qla_isr.c | 3 + drivers/scsi/qla2xxx/qla_mbx.c | 6 ++ drivers/scsi/qla2xxx/qla_mid.c | 11 ++++- drivers/scsi/qla2xxx/qla_os.c | 51 ++++++++++-------------- drivers/scsi/qla2xxx/qla_sup.c | 3 + fs/btrfs/extent_io.c | 3 + fs/jfs/jfs_dinode.h | 7 +++ fs/jfs/jfs_incore.h | 1 fs/jfs/super.c | 3 - fs/jfs/xattr.c | 10 ++-- fs/xfs/libxfs/xfs_attr_leaf.c | 5 -- fs/xfs/xfs_icache.c | 73 +++++++++++++++++++++++------------ include/linux/ring_buffer.h | 1 kernel/irq/manage.c | 9 +++- kernel/softirq.c | 2 kernel/time/tick-sched.c | 2 kernel/trace/ring_buffer.c | 16 +++++++ kernel/trace/trace.c | 6 ++ net/netlink/af_netlink.c | 4 - 29 files changed, 170 insertions(+), 83 deletions(-)
Anil Gurumurthy (1):
scsi: qla2xxx: Return error when TMF returns
Anna-Maria Gleixner (1):
nohz: Fix local_timer_softirq_pending()
Dave Chinner (1):
xfs: validate cached inodes are free when allocated
Dmitry Safonov (1):
netlink: Don't shift on 64 for ngroups
Eric Sandeen (1):
xfs: don't call xfs_da_shrink_inode with NULL bp
Esben Haabendal (1):
i2c: imx: Fix reinit_completion() use
Filipe Manana (1):
Btrfs: fix file data corruption after cloning a range and fsync
Frederic Weisbecker (1):
nohz: Fix missing tick reprogram when interrupting an inline softirq
Greg Kroah-Hartman (1):
Linux 4.17.14
Kan Liang (1):
perf/x86/intel/uncore: Fix hardcoded index of Broadwell extra PCI devices
Kees Cook (1):
jfs: Fix usercopy whitelist for inline inode data
Linus Torvalds (1):
Partially revert "block: fail op_is_write() requests to read-only partitions"
Masami Hiramatsu (1):
ring_buffer: tracing: Inherit the tracing setting to next ring buffer
Quinn Tran (4):
scsi: qla2xxx: Fix unintialized List head crash
scsi: qla2xxx: Fix NPIV deletion by calling wait_for_sess_deletion
scsi: qla2xxx: Fix driver unload by shutting down chip
scsi: qla2xxx: Fix ISP recovery on unload
Shankara Pailoor (1):
jfs: Fix inconsistency between memory allocation and ea_buf->max_size
Thomas Gleixner (1):
genirq: Make force irq threading setup more robust
Greg KH
maintainerMakefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 4 PATCHLEVEL = 17 -SUBLEVEL = 13 +SUBLEVEL = 14 EXTRAVERSION = NAME = Merciless Moray
arch/x86/events/intel/uncore.h +1 -1
@@ -23,7 +23,7 @@#define UNCORE_PCI_DEV_TYPE (data) ((data >> 8) & 0xff)#define UNCORE_PCI_DEV_IDX (data) (data & 0xff)#define UNCORE_EXTRA_PCI_DEV 0xff -#define UNCORE_EXTRA_PCI_DEV_MAX 3 +#define UNCORE_EXTRA_PCI_DEV_MAX 4#define UNCORE_EVENT_CONSTRAINT (c, n) EVENT_CONSTRAINT(c, n, 0xff)
arch/x86/events/intel/uncore_snbep.c +7 -3
@@ -1029,6 +1029,7 @@ void snbep_uncore_cpu_init(void)enum {SNBEP_PCI_QPI_PORT0_FILTER ,SNBEP_PCI_QPI_PORT1_FILTER , +BDX_PCI_QPI_PORT2_FILTER ,HSWEP_PCI_PCU_3 , };
@@ -3286,15 +3287,18 @@ static const struct pci_device_id bdx_uncore_pci_ids[] = { }, {/* QPI Port 0 filter */ PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x6f86), - .driver_data =UNCORE_PCI_DEV_DATA (UNCORE_EXTRA_PCI_DEV ,0 ), + .driver_data =UNCORE_PCI_DEV_DATA (UNCORE_EXTRA_PCI_DEV , +SNBEP_PCI_QPI_PORT0_FILTER ), }, { /* QPI Port 1 filter */PCI_DEVICE (PCI_VENDOR_ID_INTEL ,0x6f96 ), - .driver_data = UNCORE_PCI_DEV_DATA(UNCORE_EXTRA_PCI_DEV, 1), + .driver_data = UNCORE_PCI_DEV_DATA(UNCORE_EXTRA_PCI_DEV, +SNBEP_PCI_QPI_PORT1_FILTER ), }, { /* QPI Port 2 filter */PCI_DEVICE (PCI_VENDOR_ID_INTEL ,0x6f46 ), - .driver_data = UNCORE_PCI_DEV_DATA(UNCORE_EXTRA_PCI_DEV, 2), + .driver_data = UNCORE_PCI_DEV_DATA(UNCORE_EXTRA_PCI_DEV, +BDX_PCI_QPI_PORT2_FILTER ), }, { /* PCU.3 (for Capability registers) */ PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x6fc0),
block/blk-core.c +3 -2
@@ -2174,11 +2174,12 @@ static inline bool bio_check_ro(struct bio *bio, struct hd_struct *part)if (part->policy &&op_is_write (bio_op (bio))) {char b[BDEVNAME_SIZE ]; -printk (KERN_ERR +WARN_ONCE (1 ,"generic_make_request: Trying to write " "to read-only block-device %s (partno %d)\n" ,bio_devname (bio, b), part->partno); -return true; +/* Older lvm-tools actually trigger this */ +return false; }return false;
drivers/i2c/busses/i2c-imx.c +1 -2
@@ -377,6 +377,7 @@ static int i2c_imx_dma_xfer(struct imx_i2c_struct *i2c_imx, goto err_desc; } +reinit_completion (&dma->cmd_complete); txdesc->callback = i2c_imx_dma_callback; txdesc->callback_param = i2c_imx;if (dma_submit_error (dmaengine_submit (txdesc))) {
@@ -631,7 +632,6 @@ static int i2c_imx_dma_write(struct imx_i2c_struct *i2c_imx,* The first byte must be transmitted by the CPU. */ imx_i2c_write_reg (msgs->addr <<1 , i2c_imx,IMX_I2C_I2DR ); -reinit_completion (&i2c_imx->dma->cmd_complete); time_left =wait_for_completion_timeout ( &i2c_imx->dma->cmd_complete,msecs_to_jiffies (DMA_TIMEOUT ));
@@ -690,7 +690,6 @@ static int i2c_imx_dma_read(struct imx_i2c_struct *i2c_imx,if (result)return result; -reinit_completion (&i2c_imx->dma->cmd_complete); time_left =wait_for_completion_timeout ( &i2c_imx->dma->cmd_complete,msecs_to_jiffies (DMA_TIMEOUT ));
drivers/scsi/qla2xxx/qla_attr.c +1 -0
@@ -2141,6 +2141,7 @@ qla24xx_vport_delete(struct fc_vport *fc_vport)msleep (1000 );qla24xx_disable_vp (vha); +qla2x00_wait_for_sess_deletion (vha); vha->flags.delete_progress =1 ;
drivers/scsi/qla2xxx/qla_gbl.h +1 -0
@@ -213,6 +213,7 @@ void qla2x00_handle_login_done_event(struct scsi_qla_host *, fc_port_t *,int qla24xx_post_gnl_work (struct scsi_qla_host *,fc_port_t *);int qla24xx_async_abort_cmd (srb_t *);int qla24xx_post_relogin_work (struct scsi_qla_host *vha); +void qla2x00_wait_for_sess_deletion (scsi_qla_host_t *);/* * Global Functions in qla_mid.c source file.
drivers/scsi/qla2xxx/qla_gs.c +4 -0
@@ -3712,6 +3712,10 @@ int qla24xx_async_gpnid(scsi_qla_host_t *vha, port_id_t *id)return rval; done_free_sp: +spin_lock_irqsave (&vha->hw->vport_slock, flags); +list_del (&sp->elem); +spin_unlock_irqrestore (&vha->hw->vport_slock, flags); +if (sp->u.iocb_cmd.u.ctarg.req) { dma_free_coherent(&vha->hw->pdev->dev, sizeof(struct ct_sns_pkt),
drivers/scsi/qla2xxx/qla_init.c +3 -4
@@ -1518,11 +1518,10 @@ qla2x00_async_tm_cmd(fc_port_t *fcport, uint32_t flags, uint32_t lun,wait_for_completion (&tm_iocb->u.tmf.comp); - rval = tm_iocb->u.tmf.comp_status ==CS_COMPLETE ? -QLA_SUCCESS :QLA_FUNCTION_FAILED ; + rval = tm_iocb->u.tmf.data; -if ((rval !=QLA_SUCCESS ) || tm_iocb->u.tmf.data) { -ql_dbg (ql_dbg_taskm, vha,0x8030 , +if (rval !=QLA_SUCCESS ) { +ql_log (ql_log_warn, vha,0x8030 ,"TM IOCB failed (%x).\n" , rval); }
drivers/scsi/qla2xxx/qla_inline.h +2 -0
@@ -222,6 +222,8 @@ qla2xxx_get_qpair_sp(struct qla_qpair *qpair, fc_port_t *fcport, gfp_t flag) sp->fcport = fcport; sp->iocbs =1 ; sp->vha = qpair->vha; +INIT_LIST_HEAD (&sp->elem); + done:if (!sp)QLA_QPAIR_MARK_NOT_BUSY (qpair);
drivers/scsi/qla2xxx/qla_isr.c +3 -0
@@ -631,6 +631,9 @@ qla2x00_async_event(scsi_qla_host_t *vha, struct rsp_que *rsp, uint16_t *mb)unsigned long flags;fc_port_t *fcport =NULL ; +if (!vha->hw->flags.fw_started) +return ; +/* Setup to process RIO completion. */ handle_cnt =0 ;if (IS_CNA_CAPABLE (ha))
drivers/scsi/qla2xxx/qla_mbx.c +6 -0
@@ -4212,6 +4212,9 @@ qla25xx_init_req_que(struct scsi_qla_host *vha, struct req_que *req)mbx_cmd_t *mcp = &mc;struct qla_hw_data *ha = vha->hw; +if (!ha->flags.fw_started) +return QLA_SUCCESS ; +ql_dbg (ql_dbg_mbx + ql_dbg_verbose, vha,0x10d3 ,"Entered %s.\n" , __func__);
@@ -4281,6 +4284,9 @@ qla25xx_init_rsp_que(struct scsi_qla_host *vha, struct rsp_que *rsp)mbx_cmd_t *mcp = &mc;struct qla_hw_data *ha = vha->hw; +if (!ha->flags.fw_started) +return QLA_SUCCESS ; +ql_dbg (ql_dbg_mbx + ql_dbg_verbose, vha,0x10d6 ,"Entered %s.\n" , __func__);
drivers/scsi/qla2xxx/qla_mid.c +9 -2
@@ -152,11 +152,18 @@ int qla24xx_disable_vp(scsi_qla_host_t *vha) {unsigned long flags; -int ret; +int ret =QLA_SUCCESS ; +fc_port_t *fcport; + +if (vha->hw->flags.fw_started) + ret =qla24xx_control_vp (vha,VCE_COMMAND_DISABLE_VPS_LOGO_ALL ); - ret =qla24xx_control_vp (vha,VCE_COMMAND_DISABLE_VPS_LOGO_ALL );atomic_set (&vha->loop_state,LOOP_DOWN );atomic_set (&vha->loop_down_timer,LOOP_DOWN_TIME ); +list_for_each_entry (fcport, &vha->vp_fcports, list) + fcport->logout_on_delete =0 ; + +qla2x00_mark_all_devices_lost (vha,0 );/* Remove port id from vp target map */ spin_lock_irqsave (&vha->hw->hardware_lock, flags);
drivers/scsi/qla2xxx/qla_os.c +22 -29
93 lines not on this page · raw message
drivers/scsi/qla2xxx/qla_sup.c +3 -0
@@ -1880,6 +1880,9 @@ qla24xx_beacon_off(struct scsi_qla_host *vha)if (IS_P3P_TYPE (ha))return QLA_SUCCESS ; +if (!ha->flags.fw_started) +return QLA_SUCCESS ; + ha->beacon_blink_led =0 ;if (IS_QLA2031 (ha) ||IS_QLA27XX (ha))
fs/btrfs/extent_io.c +3 -0
@@ -4245,6 +4245,7 @@ int try_release_extent_mapping(struct extent_map_tree *map,struct extent_map *em;u64 start =page_offset (page);u64 end = start +PAGE_SIZE -1 ; +struct btrfs_inode *btrfs_inode =BTRFS_I (page->mapping->host);if (gfpflags_allow_blocking (mask) && page->mapping->host->i_size >SZ_16M ) {
@@ -4267,6 +4268,8 @@ int try_release_extent_mapping(struct extent_map_tree *map, extent_map_end(em) - 1, EXTENT_LOCKED | EXTENT_WRITEBACK, 0, NULL)) { +set_bit (BTRFS_INODE_NEEDS_FULL_SYNC , + &btrfs_inode->runtime_flags);remove_extent_mapping (map, em);/* once for the rb tree */ free_extent_map (em);
fs/jfs/jfs_dinode.h +7 -0
@@ -115,6 +115,13 @@ struct dinode {dxd_t _dxd;/* 16: */ union {__le32 _rdev;/* 4: */ +/* +* The fast symlink area +* is expected to overflow +* into _inlineea when +* needed (which will clear +* INLINEEA). +*/ u8 _fastsymlink[128 ]; } _u;u8 _inlineea[128 ];
fs/jfs/jfs_incore.h +1 -0
@@ -87,6 +87,7 @@ struct jfs_inode_info {struct {unchar _unused[16 ];/* 16: */ dxd_t _dxd;/* 16: */ +/* _inline may overflow into _inline_ea when needed */ unchar _inline[128 ];/* 128: inline symlink */ /* _inline_ea may overlay the last part of * file._xtroot if maxentry = XTROOTINITSLOT
fs/jfs/super.c +1 -2
@@ -967,8 +967,7 @@ static int __init init_jfs_fs(void) jfs_inode_cachep =kmem_cache_create_usercopy ("jfs_ip" ,sizeof (struct jfs_inode_info ),0 ,SLAB_RECLAIM_ACCOUNT |SLAB_MEM_SPREAD |SLAB_ACCOUNT , - offsetof(struct jfs_inode_info , i_inline), - sizeof_field(struct jfs_inode_info, i_inline), + offsetof(struct jfs_inode_info , i_inline),IDATASIZE , init_once);if (jfs_inode_cachep ==NULL )return -ENOMEM ;
fs/jfs/xattr.c +6 -4
@@ -491,15 +491,17 @@ static int ea_get(struct inode *inode, struct ea_buffer *ea_buf, int min_size)if (size >PSIZE ) {/* * To keep the rest of the code simple. Allocate a -* contiguous buffer to work with +* contiguous buffer to work with. Make the buffer large +* enough to make use of the whole extent. */ - ea_buf->xattr =kmalloc (size,GFP_KERNEL ); + ea_buf->max_size = (size + sb->s_blocksize -1 ) & + ~(sb->s_blocksize -1 ); + + ea_buf->xattr =kmalloc (ea_buf->max_size,GFP_KERNEL );if (ea_buf->xattr ==NULL )return -ENOMEM ; ea_buf->flag =EA_MALLOC ; - ea_buf->max_size = (size + sb->s_blocksize -1 ) & - ~(sb->s_blocksize -1 );if (ea_size ==0 )return 0 ;
fs/xfs/libxfs/xfs_attr_leaf.c +2 -3
@@ -803,9 +803,8 @@ xfs_attr_shortform_to_leaf(ASSERT (blkno ==0 ); error =xfs_attr3_leaf_create (args, blkno, &bp);if (error) { - error =xfs_da_shrink_inode (args,0 , bp); - bp =NULL ; -if (error) +/* xfs_attr3_leaf_create may not have instantiated a block */ +if (bp && (xfs_da_shrink_inode (args,0 , bp) !=0 )) goto out;xfs_idata_realloc (dp, size,XFS_ATTR_FORK );/* try to put */ memcpy (ifp->if_u1.if_data, tmpbuffer, size);/* it back */
fs/xfs/xfs_icache.c +48 -25
95 lines not on this page · raw message
include/linux/ring_buffer.h +1 -0
@@ -165,6 +165,7 @@ void ring_buffer_record_enable(struct ring_buffer *buffer);void ring_buffer_record_off (struct ring_buffer *buffer);void ring_buffer_record_on (struct ring_buffer *buffer);int ring_buffer_record_is_on (struct ring_buffer *buffer); +int ring_buffer_record_is_set_on (struct ring_buffer *buffer);void ring_buffer_record_disable_cpu (struct ring_buffer *buffer,int cpu);void ring_buffer_record_enable_cpu (struct ring_buffer *buffer,int cpu);
kernel/irq/manage.c +8 -1
@@ -1067,6 +1067,13 @@ static int irq_setup_forced_threading(struct irqaction *new)if (new->flags & (IRQF_NO_THREAD |IRQF_PERCPU |IRQF_ONESHOT ))return 0 ; +/* +* No further action required for interrupts which are requested as +* threaded interrupts already +*/ +if (new->handler == irq_default_primary_handler) +return 0 ; + new->flags |=IRQF_ONESHOT ;/*
@@ -1074,7 +1081,7 @@ static int irq_setup_forced_threading(struct irqaction *new)* thread handler. We force thread them as well by creating a * secondary action. */ -if (new->handler != irq_default_primary_handler && new->thread_fn) { +if (new->handler && new->thread_fn) {/* Allocate the secondary action */ new->secondary =kzalloc (sizeof (struct irqaction ),GFP_KERNEL );if (!new->secondary)
kernel/softirq.c +1 -1
@@ -387,7 +387,7 @@ static inline void tick_irq_exit(void)/* Make sure that timer wheel updates are propagated */ if ((idle_cpu (cpu) && !need_resched ()) ||tick_nohz_full_cpu (cpu)) { -if (!in_interrupt ()) +if (!in_irq ())tick_nohz_irq_exit (); }#endif
kernel/time/tick-sched.c +1 -1
@@ -642,7 +642,7 @@ static void tick_nohz_restart(struct tick_sched *ts, ktime_t now)static inline bool local_timer_softirq_pending (void ) { -return local_softirq_pending () &TIMER_SOFTIRQ ; +return local_softirq_pending () &BIT (TIMER_SOFTIRQ ); }static ktime_t tick_nohz_next_event (struct tick_sched *ts,int cpu)
kernel/trace/ring_buffer.c +16 -0
@@ -3226,6 +3226,22 @@ int ring_buffer_record_is_on(struct ring_buffer *buffer)return !atomic_read (&buffer->record_disabled); } +/** +* ring_buffer_record_is_set_on - return true if the ring buffer is set writable +* @buffer: The ring buffer to see if write is set enabled +* +* Returns true if the ring buffer is set writable by ring_buffer_record_on(). +* Note that this does NOT mean it is in a writable state. +* +* It may return true when the ring buffer has been disabled by +* ring_buffer_record_disable(), as that is a temporary disabling of +* the ring buffer. +*/ +int ring_buffer_record_is_set_on (struct ring_buffer *buffer) +{ +return !(atomic_read (&buffer->record_disabled) &RB_BUFFER_OFF ); +} +/** * ring_buffer_record_disable_cpu - stop all writes into the cpu_buffer * @buffer: The ring buffer to stop writes to.
kernel/trace/trace.c +6 -0
@@ -1375,6 +1375,12 @@ update_max_tr(struct trace_array *tr, struct task_struct *tsk, int cpu)arch_spin_lock (&tr->max_lock); +/* Inherit the recordable setting from trace_buffer */ +if (ring_buffer_record_is_set_on (tr->trace_buffer.buffer)) +ring_buffer_record_on (tr->max_buffer.buffer); +else +ring_buffer_record_off (tr->max_buffer.buffer); + buf = tr->trace_buffer.buffer; tr->trace_buffer.buffer = tr->max_buffer.buffer; tr->max_buffer.buffer = buf;
net/netlink/af_netlink.c +2 -2
@@ -1013,8 +1013,8 @@ static int netlink_bind(struct socket *sock, struct sockaddr *addr,if (nlk->ngroups ==0 ) groups =0 ; -else - groups &= (1ULL << nlk->ngroups) -1 ; +else if (nlk->ngroups <8 *sizeof (groups)) + groups &= (1UL << nlk->ngroups) -1 ; bound = nlk->bound;if (bound) {