Linux 4.13.11
Greg KH
maintainerI'm announcing the release of the 4.13.11 kernel.
All users of the 4.13 kernel series must upgrade.
The updated 4.13.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-4.13.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/powerpc/kvm/book3s_64_vio.c | 23 ++++++---- arch/powerpc/kvm/book3s_hv_rmhandlers.S | 5 ++ arch/powerpc/kvm/powerpc.c | 3 - arch/powerpc/sysdev/xive/common.c | 2 arch/s390/kernel/entry.S | 7 ++- arch/x86/kernel/amd_nb.c | 41 ++++++++++++++++++ drivers/block/nbd.c | 13 ++++- drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 6 +- drivers/gpu/drm/i915/i915_perf.c | 4 + drivers/input/mouse/elan_i2c_core.c | 1 drivers/input/tablet/gtco.c | 17 ++++--- drivers/net/can/sun4i_can.c | 3 - drivers/net/can/usb/kvaser_usb.c | 9 +++- drivers/nvme/host/fc.c | 5 +- drivers/regulator/fan53555.c | 5 +- drivers/s390/scsi/zfcp_aux.c | 5 ++ drivers/s390/scsi/zfcp_erp.c | 18 ++++---- drivers/s390/scsi/zfcp_scsi.c | 5 ++ drivers/scsi/aacraid/comminit.c | 8 ++- drivers/scsi/aacraid/linit.c | 7 ++- drivers/scsi/qla2xxx/qla_os.c | 4 - drivers/scsi/sg.c | 2 drivers/spi/spi-armada-3700.c | 10 +++- drivers/spi/spi-bcm-qspi.c | 9 ++-- drivers/xen/gntdev.c | 2 drivers/xen/xen-balloon.c | 19 +++++--- fs/ceph/caps.c | 5 +- fs/cifs/Kconfig | 5 ++ fs/cifs/cifsglob.h | 8 ++- fs/cifs/smb2pdu.c | 7 ++- fs/cifs/smb2transport.c | 26 ++++++----- fs/fuse/dir.c | 3 - fs/overlayfs/inode.c | 20 +++++++-- fs/overlayfs/namei.c | 31 ++++++------- fs/overlayfs/overlayfs.h | 3 - fs/overlayfs/readdir.c | 11 ++-- fs/overlayfs/super.c | 3 + include/uapi/linux/spi/spidev.h | 1 kernel/workqueue.c | 37 ++++++---------- lib/assoc_array.c | 51 +++++++---------------- net/wireless/sme.c | 50 ++++++++++++++++++---- net/xfrm/xfrm_user.c | 25 ++++++----- samples/trace_events/trace-events-sample.c | 2 sound/pci/hda/patch_realtek.c | 19 ++++++++ 45 files changed, 360 insertions(+), 182 deletions(-)
Alexey Kardashevskiy (1):
KVM: PPC: Book3S: Protect kvmppc_gpa_to_ua() with SRCU
Amir Goldstein (3):
ovl: fix EIO from lookup of non-indexed upper
ovl: handle ENOENT on index lookup
ovl: do not cleanup unsupported index entries
Aurélien Aptel (1):
CIFS: Fix NULL pointer deref on SMB2_tcon() failure
Baruch Siach (1):
spi: uapi: spidev: add missing ioctl header
Ben Hutchings (1):
scsi: sg: Re-fix off by one in sg_fill_request_table()
Benjamin Gilbert (1):
cifs: Select all required crypto modules
Borislav Petkov (1):
x86/cpu/AMD: Apply the Erratum 688 fix when the BIOS doesn't
Cédric Le Goater (1):
powerpc/xive: Fix the size of the cpumask used in xive_find_target_in_mask()
David Howells (1):
assoc_array: Fix a buggy node-splitting case
Dmitry Torokhov (1):
Input: gtco - fix potential out-of-bound access
Florian Fainelli (1):
spi: bcm-qspi: Fix use after free in bcm_qspi_probe() in error path
Gerhard Bertelsmann (1):
can: sun4i: fix loopback mode
Greg Kroah-Hartman (1):
Linux 4.13.11
Greg Kurz (1):
KVM: PPC: Fix oops when checking KVM_CAP_PPC_HTM
Guillaume Tucker (1):
regulator: fan53555: fix I2C device ids
Herbert Xu (1):
ipsec: Fix aborted xfrm policy dump crash
Himanshu Madhani (1):
scsi: qla2xxx: Initialize Work element before requesting IRQs
Hirofumi Nakagawa (1):
ovl: add NULL check in ovl_alloc_inode
Hui Wang (1):
ALSA: hda - fix headset mic problem for Dell machines with alc236
James Smart (1):
nvme-fc: fix iowait hang
Jeff Layton (1):
ceph: unlock dangling spinlock in try_flush_caps()
Jimmy Assarsson (2):
can: kvaser_usb: Correct return value in printout
can: kvaser_usb: Ignore CMD_FLUSH_QUEUE_REPLY messages
Johannes Berg (1):
cfg80211: fix connect/disconnect edge cases
Josef Bacik (1):
nbd: handle interrupted sendmsg with a sndtimeo set
Juergen Gross (2):
xen/gntdev: avoid out of bounds access in case of partial gntdev_mmap()
xen: fix booting ballooned down hvm guest
Kai-Heng Feng (1):
Input: elan_i2c - add ELAN0611 to the ACPI table
Kailang Yang (1):
ALSA: hda/realtek - Add support for ALC236/ALC3204
Linus Torvalds (1):
Fix tracing sample code warning.
Lionel Landwerlin (1):
drm/i915/perf: fix perf enable/disable ioctls with 32bits userspace
Martin Schwidefsky (1):
s390/kvm: fix detection of guest machine checks
Maxime Chevallier (1):
spi: a3700: Return correct value on timeout detection
Miklos Szeredi (1):
fuse: fix READDIRPLUS skipping an entry
Miquel Raynal (1):
spi: armada-3700: Fix failing commands with quad-SPI
Nicholas Piggin (1):
KVM: PPC: Book3S HV: POWER9 more doorbell fixes
Raghava Aditya Renukunta (1):
scsi: aacraid: Fix controller initialization failure
Rex Zhu (1):
drm/amd/powerplay: fix uninitialized variable
Steffen Maier (1):
scsi: zfcp: fix erp_action use-before-initialize in REC action trace
Steve French (2):
Fix encryption labels and lengths for SMB3.1.1
SMB3: Validate negotiate request must always be signed
Tejun Heo (1):
workqueue: replace pool->manager_arb mutex with a flag
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 4 PATCHLEVEL = 13 -SUBLEVEL = 10 +SUBLEVEL = 11 EXTRAVERSION = NAME = Fearless Coyote
arch/powerpc/kvm/book3s_64_vio.c +14 -9
@@ -479,28 +479,30 @@ long kvmppc_h_put_tce(struct kvm_vcpu *vcpu, unsigned long liobn,return ret; dir =iommu_tce_direction (tce); + + idx =srcu_read_lock (&vcpu->kvm->srcu); +if ((dir !=DMA_NONE ) &&kvmppc_gpa_to_ua (vcpu->kvm, - tce & ~(TCE_PCI_READ |TCE_PCI_WRITE ), &ua,NULL )) -return H_PARAMETER ; + tce & ~(TCE_PCI_READ |TCE_PCI_WRITE ), &ua,NULL )) { + ret =H_PARAMETER ; + goto unlock_exit; + } entry = ioba >> stt->page_shift;list_for_each_entry_lockless (stit, &stt->iommu_tables, next) { -if (dir ==DMA_NONE ) { +if (dir ==DMA_NONE ) ret =kvmppc_tce_iommu_unmap (vcpu->kvm, stit->tbl, entry); - }else { - idx =srcu_read_lock (&vcpu->kvm->srcu); +else ret =kvmppc_tce_iommu_map (vcpu->kvm, stit->tbl, entry, ua, dir); -srcu_read_unlock (&vcpu->kvm->srcu, idx); - }if (ret ==H_SUCCESS )continue ;if (ret ==H_TOO_HARD ) -return ret; + goto unlock_exit;WARN_ON_ONCE (1 );kvmppc_clear_tce (stit->tbl, entry);
@@ -508,7 +510,10 @@ long kvmppc_h_put_tce(struct kvm_vcpu *vcpu, unsigned long liobn,kvmppc_tce_put (stt, entry, tce); -return H_SUCCESS ; +unlock_exit: +srcu_read_unlock (&vcpu->kvm->srcu, idx); + +return ret; }EXPORT_SYMBOL_GPL (kvmppc_h_put_tce);
arch/powerpc/kvm/book3s_hv_rmhandlers.S +5 -0
@@ -1296,6 +1296,7 @@ END_FTR_SECTION_IFSET(CPU_FTR_HAS_PPR) bne 3f BEGIN_FTR_SECTION PPC_MSGSYNC + lwsync END_FTR_SECTION_IFSET(CPU_FTR_ARCH_300) lbz r0, HSTATE_HOST_IPI(r13) cmpwi r0, 0
@@ -2767,6 +2768,10 @@ END_FTR_SECTION_IFSET(CPU_FTR_ARCH_207S) PPC_MSGCLR(6) /* see if it's a host IPI */ li r3, 1 +BEGIN_FTR_SECTION + PPC_MSGSYNC + lwsync +END_FTR_SECTION_IFSET(CPU_FTR_ARCH_300) lbz r0, HSTATE_HOST_IPI(r13) cmpwi r0, 0 bnelr
arch/powerpc/kvm/powerpc.c +1 -2
@@ -639,8 +639,7 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext)break ;#endif case KVM_CAP_PPC_HTM : - r =cpu_has_feature (CPU_FTR_TM_COMP ) && -is_kvmppc_hv_enabled (kvm); + r =cpu_has_feature (CPU_FTR_TM_COMP ) && hv_enabled;break ;default : r =0 ;
arch/powerpc/sysdev/xive/common.c +1 -1
@@ -447,7 +447,7 @@ static int xive_find_target_in_mask(const struct cpumask *mask,int cpu, first, num, i;/* Pick up a starting point CPU in the mask based on fuzz */ - num =cpumask_weight (mask); + num =min_t (int,cpumask_weight (mask), nr_cpu_ids); first = fuzz % num;/* Locate it */
arch/s390/kernel/entry.S +5 -2
@@ -521,12 +521,15 @@ ENTRY(pgm_check_handler) tmhh %r8,0x0001 # test problem state bit jnz 2f # -> fault in user space #if IS_ENABLED(CONFIG_KVM) - # cleanup critical section for sie64a + # cleanup critical section for program checks in sie64a lgr %r14,%r9 slg %r14,BASED(.Lsie_critical_start) clg %r14,BASED(.Lsie_critical_length) jhe 0f - brasl %r14,.Lcleanup_sie + lg %r14,__SF_EMPTY(%r15) # get control block pointer + ni __SIE_PROG0C+3(%r14),0xfe # no longer in SIE + lctlg %c1,%c1,__LC_USER_ASCE # load primary asce + larl %r9,sie_exit # skip forward to sie_exit #endif 0: tmhh %r8,0x4000 # PER bit set in old PSW ? jnz 1f # -> enabled, can't be a double fault
arch/x86/kernel/amd_nb.c +41 -0
70 lines not on this page · raw message
drivers/block/nbd.c +11 -2
@@ -386,6 +386,15 @@ static int sock_xmit(struct nbd_device *nbd, int index, int send,return result; } +/* +* Different settings for sk->sk_sndtimeo can result in different return values +* if there is a signal pending when we enter sendmsg, because reasons? +*/ +static inline int was_interrupted (int result) +{ +return result == -ERESTARTSYS || result == -EINTR ; +} +/* always call with the tx_lock held */ static int nbd_send_cmd (struct nbd_device *nbd,struct nbd_cmd *cmd,int index) {
@@ -458,7 +467,7 @@ static int nbd_send_cmd(struct nbd_device *nbd, struct nbd_cmd *cmd, int index) result =sock_xmit (nbd, index,1 , &from, (type ==NBD_CMD_WRITE ) ?MSG_MORE :0 , &sent);if (result <=0 ) { -if (result == -ERESTARTSYS ) { +if (was_interrupted (result)) {/* If we havne't sent anything we can just return BUSY, * however if we have sent something we need to make * sure we only allow this req to be sent until we are
@@ -502,7 +511,7 @@ static int nbd_send_cmd(struct nbd_device *nbd, struct nbd_cmd *cmd, int index) } result =sock_xmit (nbd, index,1 , &from, flags, &sent);if (result <=0 ) { -if (result == -ERESTARTSYS ) { +if (was_interrupted (result)) {/* We've already sent the header, we * have no choice but to set pending and * return BUSY.
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c +3 -3
@@ -830,7 +830,7 @@ uint32_t smu7_get_xclk(struct pp_hwmgr *hwmgr) {uint32_t reference_clock, tmp;struct cgs_display_info info = {0 }; -struct cgs_mode_info mode_info; +struct cgs_mode_info mode_info = {0 }; info.mode_info = &mode_info;
@@ -3951,10 +3951,9 @@ static int smu7_program_display_gap(struct pp_hwmgr *hwmgr)uint32_t ref_clock;uint32_t refresh_rate =0 ;struct cgs_display_info info = {0 }; -struct cgs_mode_info mode_info; +struct cgs_mode_info mode_info = {0 }; info.mode_info = &mode_info; -cgs_get_active_displays_info (hwmgr->device, &info); num_active_displays = info.display_count;
@@ -3970,6 +3969,7 @@ static int smu7_program_display_gap(struct pp_hwmgr *hwmgr) frame_time_in_us =1000000 / refresh_rate; pre_vbi_time_in_us = frame_time_in_us -200 - mode_info.vblank_time_us; + data->frame_time_x2 = frame_time_in_us *2 /100 ; display_gap2 = pre_vbi_time_in_us * (ref_clock /100 );
drivers/gpu/drm/i915/i915_perf.c +4 -0
@@ -2480,6 +2480,10 @@ static const struct file_operations fops = { .poll = i915_perf_poll, .read = i915_perf_read, .unlocked_ioctl = i915_perf_ioctl, +/* Our ioctl have no arguments, so it's safe to use the same function +* to handle 32bits compatibility. +*/ + .compat_ioctl = i915_perf_ioctl, };
drivers/input/mouse/elan_i2c_core.c +1 -0
@@ -1253,6 +1253,7 @@ static const struct acpi_device_id elan_acpi_id[] = { { "ELAN0605", 0 }, { "ELAN0609", 0 }, { "ELAN060B", 0 }, + { "ELAN0611", 0 }, { "ELAN1000", 0 }, { } };
drivers/input/tablet/gtco.c +10 -7
@@ -230,13 +230,17 @@ static void parse_hid_report_descriptor(struct gtco *device, char * report,/* Walk this report and pull out the info we need */ while (i < length) { - prefix = report[i]; - -/* Skip over prefix */ - i++; + prefix = report[i++];/* Determine data size and save the data in the proper variable */ - size =PREF_SIZE (prefix); + size = (1U <<PREF_SIZE (prefix)) >>1 ; +if (i + size > length) { +dev_err (ddev, +"Not enough data (need %d, have %d)\n" , + i + size, length); +break ; + } +switch (size) {case 1 : data = report[i];
@@ -244,8 +248,7 @@ static void parse_hid_report_descriptor(struct gtco *device, char * report,case 2 : data16 =get_unaligned_le16 (&report[i]);break ; -case 3 : - size =4 ; +case 4 : data32 =get_unaligned_le32 (&report[i]);break ; }
drivers/net/can/sun4i_can.c +1 -2
@@ -342,7 +342,7 @@ static int sun4i_can_start(struct net_device *dev)/* enter the selected mode */ mod_reg_val =readl (priv->base +SUN4I_REG_MSEL_ADDR ); -if (priv->can.ctrlmode &CAN_CTRLMODE_PRESUME_ACK ) +if (priv->can.ctrlmode &CAN_CTRLMODE_LOOPBACK ) mod_reg_val |=SUN4I_MSEL_LOOPBACK_MODE ;else if (priv->can.ctrlmode &CAN_CTRLMODE_LISTENONLY ) mod_reg_val |=SUN4I_MSEL_LISTEN_ONLY_MODE ;
@@ -811,7 +811,6 @@ static int sun4ican_probe(struct platform_device *pdev) priv->can.ctrlmode_supported =CAN_CTRLMODE_BERR_REPORTING |CAN_CTRLMODE_LISTENONLY |CAN_CTRLMODE_LOOPBACK | -CAN_CTRLMODE_PRESUME_ACK |CAN_CTRLMODE_3_SAMPLES ; priv->base = addr; priv->clk = clk;
drivers/net/can/usb/kvaser_usb.c +8 -1
@@ -137,6 +137,7 @@ static inline bool kvaser_is_usbcan(const struct usb_device_id *id)#define CMD_RESET_ERROR_COUNTER 49#define CMD_TX_ACKNOWLEDGE 50#define CMD_CAN_ERROR_EVENT 51 +#define CMD_FLUSH_QUEUE_REPLY 68#define CMD_LEAF_USB_THROTTLE 77#define CMD_LEAF_LOG_MESSAGE 106
@@ -1301,6 +1302,11 @@ static void kvaser_usb_handle_message(const struct kvaser_usb *dev, goto warn;break ; +case CMD_FLUSH_QUEUE_REPLY : +if (dev->family !=KVASER_LEAF ) + goto warn; +break ; +default : warn:dev_warn (dev->udev->dev.parent,"Unhandled message (%d)\n" , msg->id);
@@ -1609,7 +1615,8 @@ static int kvaser_usb_close(struct net_device *netdev)if (err)netdev_warn (netdev,"Cannot flush queue, error %d\n" , err); -if (kvaser_usb_send_simple_msg (dev,CMD_RESET_CHIP , priv->channel)) + err =kvaser_usb_send_simple_msg (dev,CMD_RESET_CHIP , priv->channel); +if (err)netdev_warn (netdev,"Cannot reset card, error %d\n" , err); err =kvaser_usb_stop_chip (priv);
drivers/nvme/host/fc.c +3 -2
@@ -2477,10 +2477,10 @@ nvme_fc_delete_association(struct nvme_fc_ctrl *ctrl)nvme_fc_abort_aen_ops (ctrl);/* wait for all io that had to be aborted */ -spin_lock_irqsave (&ctrl->lock, flags); +spin_lock_irq (&ctrl->lock);wait_event_lock_irq (ctrl->ioabort_wait, ctrl->iocnt ==0 , ctrl->lock); ctrl->flags &= ~FCCTRL_TERMIO ; -spin_unlock_irqrestore (&ctrl->lock, flags); +spin_unlock_irq (&ctrl->lock);nvme_fc_term_aen_ops (ctrl);
@@ -2693,6 +2693,7 @@ nvme_fc_init_ctrl(struct device *dev, struct nvmf_ctrl_options *opts, ctrl->rport = rport; ctrl->dev = lport->dev; ctrl->cnum = idx; +init_waitqueue_head (&ctrl->ioabort_wait);get_device (ctrl->dev);kref_init (&ctrl->ref);
drivers/regulator/fan53555.c +4 -1
@@ -476,7 +476,10 @@ static const struct i2c_device_id fan53555_id[] = { .name = "fan53555", .driver_data = FAN53555_VENDOR_FAIRCHILD }, { - .name = "syr82x", + .name = "syr827", + .driver_data = FAN53555_VENDOR_SILERGY + }, { + .name = "syr828", .driver_data = FAN53555_VENDOR_SILERGY }, { },
drivers/s390/scsi/zfcp_aux.c +5 -0
@@ -358,6 +358,8 @@ struct zfcp_adapter *zfcp_adapter_enqueue(struct ccw_device *ccw_device) adapter->next_port_scan = jiffies; + adapter->erp_action.adapter = adapter; +if (zfcp_qdio_setup (adapter)) goto failed;
@@ -514,6 +516,9 @@ struct zfcp_port *zfcp_port_enqueue(struct zfcp_adapter *adapter, u64 wwpn, port->dev.groups = zfcp_port_attr_groups; port->dev.release = zfcp_port_release; + port->erp_action.adapter = adapter; + port->erp_action.port = port; +if (dev_set_name (&port->dev,"0x%016llx" , (unsigned long long )wwpn)) {kfree (port); goto err_out;
drivers/s390/scsi/zfcp_erp.c +11 -7
@@ -193,9 +193,8 @@ static struct zfcp_erp_action *zfcp_erp_setup_act(int need, u32 act_status,atomic_or (ZFCP_STATUS_COMMON_ERP_INUSE , &zfcp_sdev->status); erp_action = &zfcp_sdev->erp_action; -memset (erp_action,0 ,sizeof (struct zfcp_erp_action )); - erp_action->port = port; - erp_action->sdev = sdev; +WARN_ON_ONCE (erp_action->port != port); +WARN_ON_ONCE (erp_action->sdev != sdev);if (!(atomic_read (&zfcp_sdev->status) &ZFCP_STATUS_COMMON_RUNNING )) act_status |=ZFCP_STATUS_ERP_CLOSE_ONLY ;
@@ -208,8 +207,8 @@ static struct zfcp_erp_action *zfcp_erp_setup_act(int need, u32 act_status,zfcp_erp_action_dismiss_port (port);atomic_or (ZFCP_STATUS_COMMON_ERP_INUSE , &port->status); erp_action = &port->erp_action; -memset (erp_action,0 ,sizeof (struct zfcp_erp_action )); - erp_action->port = port; +WARN_ON_ONCE (erp_action->port != port); +WARN_ON_ONCE (erp_action->sdev !=NULL );if (!(atomic_read (&port->status) &ZFCP_STATUS_COMMON_RUNNING )) act_status |=ZFCP_STATUS_ERP_CLOSE_ONLY ;break ;
@@ -219,7 +218,8 @@ static struct zfcp_erp_action *zfcp_erp_setup_act(int need, u32 act_status,zfcp_erp_action_dismiss_adapter (adapter);atomic_or (ZFCP_STATUS_COMMON_ERP_INUSE , &adapter->status); erp_action = &adapter->erp_action; -memset (erp_action,0 ,sizeof (struct zfcp_erp_action )); +WARN_ON_ONCE (erp_action->port !=NULL ); +WARN_ON_ONCE (erp_action->sdev !=NULL );if (!(atomic_read (&adapter->status) &ZFCP_STATUS_COMMON_RUNNING )) act_status |=ZFCP_STATUS_ERP_CLOSE_ONLY ;
@@ -229,7 +229,11 @@ static struct zfcp_erp_action *zfcp_erp_setup_act(int need, u32 act_status,return NULL ; } - erp_action->adapter = adapter; +WARN_ON_ONCE (erp_action->adapter != adapter); +memset (&erp_action->list,0 ,sizeof (erp_action->list)); +memset (&erp_action->timer,0 ,sizeof (erp_action->timer)); + erp_action->step =ZFCP_ERP_STEP_UNINITIALIZED ; + erp_action->fsf_req_id =0 ; erp_action->action = need; erp_action->status = act_status;
drivers/s390/scsi/zfcp_scsi.c +5 -0
@@ -115,10 +115,15 @@ static int zfcp_scsi_slave_alloc(struct scsi_device *sdev)struct zfcp_unit *unit;int npiv = adapter->connection_features &FSF_FEATURE_NPIV_MODE ; + zfcp_sdev->erp_action.adapter = adapter; + zfcp_sdev->erp_action.sdev = sdev; + port =zfcp_get_port_by_wwpn (adapter, rport->port_name);if (!port)return -ENXIO ; + zfcp_sdev->erp_action.port = port; + unit =zfcp_unit_find (port,zfcp_scsi_dev_lun (sdev));if (unit)put_device (&unit->dev);
drivers/scsi/aacraid/comminit.c +5 -3
@@ -302,9 +302,11 @@ int aac_send_shutdown(struct aac_dev * dev)return -ENOMEM ;aac_fib_init (fibctx); -mutex_lock (&dev->ioctl_mutex); - dev->adapter_shutdown =1 ; -mutex_unlock (&dev->ioctl_mutex); +if (!dev->adapter_shutdown) { +mutex_lock (&dev->ioctl_mutex); + dev->adapter_shutdown =1 ; +mutex_unlock (&dev->ioctl_mutex); + } cmd = (struct aac_close *)fib_data (fibctx); cmd->command =cpu_to_le32 (VM_CloseAll);
drivers/scsi/aacraid/linit.c +6 -1
@@ -1401,8 +1401,9 @@ static void __aac_shutdown(struct aac_dev * aac) {int i; +mutex_lock (&aac->ioctl_mutex); aac->adapter_shutdown =1 ; -aac_send_shutdown (aac); +mutex_unlock (&aac->ioctl_mutex);if (aac->aif_thread) {int i;
@@ -1415,7 +1416,11 @@ static void __aac_shutdown(struct aac_dev * aac) }kthread_stop (aac->thread); } + +aac_send_shutdown (aac); +aac_adapter_disable_int (aac); +if (aac_is_src (aac)) {if (aac->max_msix >1 ) {for (i =0 ; i < aac->max_msix; i++) {
drivers/scsi/qla2xxx/qla_os.c +2 -2
@@ -3051,6 +3051,8 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) host->max_cmd_len, host->max_channel, host->max_lun, host->transportt, sht->vendor_id); +INIT_WORK (&base_vha->iocb_work, qla2x00_iocb_work_fn); +/* Set up the irqs */ ret =qla2x00_request_irqs (ha, rsp);if (ret)
@@ -3165,8 +3167,6 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) host->can_queue, base_vha->req, base_vha->mgmt_svr_loop_id, host->sg_tablesize); -INIT_WORK (&base_vha->iocb_work, qla2x00_iocb_work_fn); -if (ha->mqenable) {bool mq = false;bool startit = false;
drivers/scsi/sg.c +1 -1
@@ -837,7 +837,7 @@ sg_fill_request_table(Sg_fd *sfp, sg_req_info_t *rinfo) val =0 ;list_for_each_entry (srp, &sfp->rq_list, entry) { -if (val >SG_MAX_QUEUE ) +if (val >=SG_MAX_QUEUE )break ; rinfo[val].req_state = srp->done +1 ; rinfo[val].problem =
drivers/spi/spi-armada-3700.c +7 -3
@@ -161,7 +161,7 @@ static void a3700_spi_deactivate_cs(struct a3700_spi *a3700_spi, }static int a3700_spi_pin_mode_set (struct a3700_spi *a3700_spi, -unsigned int pin_mode) +unsigned int pin_mode,bool receiving) {u32 val;
@@ -177,6 +177,9 @@ static int a3700_spi_pin_mode_set(struct a3700_spi *a3700_spi,break ;case SPI_NBITS_QUAD : val |=A3700_SPI_DATA_PIN1 ; +/* RX during address reception uses 4-pin */ +if (receiving) + val |=A3700_SPI_ADDR_PIN ;break ;default :dev_err (&a3700_spi->master->dev,"wrong pin mode %u" , pin_mode);
@@ -392,7 +395,8 @@ static bool a3700_spi_wait_completion(struct spi_device *spi)spireg_write (a3700_spi,A3700_SPI_INT_MASK_REG ,0 ); -return true; +/* Timeout was reached */ +return false; } static bool a3700_spi_transfer_wait(struct spi_device *spi,
@@ -653,7 +657,7 @@ static int a3700_spi_transfer_one(struct spi_master *master,else if (xfer->rx_buf) nbits = xfer->rx_nbits; -a3700_spi_pin_mode_set (a3700_spi, nbits); +a3700_spi_pin_mode_set (a3700_spi, nbits, xfer->rx_buf ? true : false);if (xfer->rx_buf) {/* Set read data length */
drivers/spi/spi-bcm-qspi.c +5 -4
@@ -1278,7 +1278,7 @@ int bcm_qspi_probe(struct platform_device *pdev, goto qspi_probe_err; } }else { - goto qspi_probe_err; + goto qspi_resource_err; } res =platform_get_resource_byname (pdev,IORESOURCE_MEM ,"bspi" );
@@ -1300,7 +1300,7 @@ int bcm_qspi_probe(struct platform_device *pdev, qspi->base[CHIP_SELECT ] =devm_ioremap_resource (dev, res);if (IS_ERR (qspi->base[CHIP_SELECT ])) { ret =PTR_ERR (qspi->base[CHIP_SELECT ]); - goto qspi_probe_err; + goto qspi_resource_err; } }
@@ -1308,7 +1308,7 @@ int bcm_qspi_probe(struct platform_device *pdev, GFP_KERNEL);if (!qspi->dev_ids) { ret = -ENOMEM ; - goto qspi_probe_err; + goto qspi_resource_err; }for (val =0 ; val < num_irqs; val++) {
@@ -1397,8 +1397,9 @@ int bcm_qspi_probe(struct platform_device *pdev,bcm_qspi_hw_uninit (qspi);clk_disable_unprepare (qspi->clk); qspi_probe_err: -spi_master_put (master);kfree (qspi->dev_ids); +qspi_resource_err: +spi_master_put (master);return ret; }/* probe function to be called by SoC specific platform driver probe */
drivers/xen/gntdev.c +1 -1
@@ -1024,6 +1024,7 @@ static int gntdev_mmap(struct file *flip, struct vm_area_struct *vma)mutex_unlock (&priv->lock);if (use_ptemod) { + map->pages_vm_start = vma->vm_start; err =apply_to_page_range (vma->vm_mm, vma->vm_start, vma->vm_end - vma->vm_start, find_grant_ptes, map);
@@ -1061,7 +1062,6 @@ static int gntdev_mmap(struct file *flip, struct vm_area_struct *vma) set_grant_ptes_as_special, NULL); }#endif - map->pages_vm_start = vma->vm_start; }return 0 ;
drivers/xen/xen-balloon.c +13 -6
@@ -57,7 +57,7 @@ static int register_balloon(struct device *dev);static void watch_target (struct xenbus_watch *watch,const char *path,const char *token) { -unsigned long long new_target; +unsigned long long new_target, static_max;int err;static bool watch_fired;static long target_diff;
@@ -72,13 +72,20 @@ static void watch_target(struct xenbus_watch *watch,* pages. PAGE_SHIFT converts bytes to pages, hence PAGE_SHIFT - 10. */ new_target >>=PAGE_SHIFT -10 ; -if (watch_fired) { -balloon_set_new_target (new_target - target_diff); -return ; + +if (!watch_fired) { + watch_fired = true; + err =xenbus_scanf (XBT_NIL ,"memory" ,"static-max" ,"%llu" , + &static_max); +if (err !=1 ) + static_max = new_target; +else + static_max >>=PAGE_SHIFT -10 ; + target_diff =xen_pv_domain () ?0 + : static_max - balloon_stats.target_pages; } - watch_fired = true; - target_diff = new_target - balloon_stats.target_pages; +balloon_set_new_target (new_target - target_diff); }static struct xenbus_watch target_watch = { .node ="memory/target" ,
fs/ceph/caps.c +4 -1
@@ -1985,6 +1985,7 @@ static int try_flush_caps(struct inode *inode, u64 *ptid) retry:spin_lock (&ci->i_ceph_lock);if (ci->i_ceph_flags &CEPH_I_NOFLUSH ) { +spin_unlock (&ci->i_ceph_lock);dout ("try_flush_caps skipping %p I_NOFLUSH set\n" , inode); goto out; }
@@ -2002,8 +2003,10 @@ static int try_flush_caps(struct inode *inode, u64 *ptid)mutex_lock (&session->s_mutex); goto retry; } -if (cap->session->s_state <CEPH_MDS_SESSION_OPEN ) +if (cap->session->s_state <CEPH_MDS_SESSION_OPEN ) { +spin_unlock (&ci->i_ceph_lock); goto out; + } flushing =__mark_caps_flushing (inode, session, true, &flush_tid, &oldest_flush_tid);
fs/cifs/Kconfig +5 -0
@@ -5,9 +5,14 @@ config CIFS select CRYPTO select CRYPTO_MD4 select CRYPTO_MD5 + select CRYPTO_SHA256 + select CRYPTO_CMAC select CRYPTO_HMAC select CRYPTO_ARC4 + select CRYPTO_AEAD2 + select CRYPTO_CCM select CRYPTO_ECB + select CRYPTO_AES select CRYPTO_DES help This is the client VFS module for the SMB3 family of NAS protocols,
fs/cifs/cifsglob.h +6 -2
@@ -661,7 +661,9 @@ struct TCP_Server_Info {#endif unsigned int max_read;unsigned int max_write; -__u8 preauth_hash[512 ]; +#ifdef CONFIG_CIFS_SMB311 +__u8 preauth_sha_hash[64 ];/* save initital negprot hash */ +#endif /* 3.1.1 */ struct delayed_work reconnect;/* reconnect workqueue job */ struct mutex reconnect_mutex;/* prevent simultaneous reconnects */ unsigned long echo_interval;
@@ -849,7 +851,9 @@ struct cifs_ses {__u8 smb3signingkey[SMB3_SIGN_KEY_SIZE ];__u8 smb3encryptionkey[SMB3_SIGN_KEY_SIZE ];__u8 smb3decryptionkey[SMB3_SIGN_KEY_SIZE ]; -__u8 preauth_hash[512 ]; +#ifdef CONFIG_CIFS_SMB311 +__u8 preauth_sha_hash[64 ]; +#endif /* 3.1.1 */ }; static inline bool
fs/cifs/smb2pdu.c +5 -2
@@ -1243,7 +1243,7 @@ SMB2_tcon(const unsigned int xid, struct cifs_ses *ses, const char *tree,struct smb2_tree_connect_req *req;struct smb2_tree_connect_rsp *rsp =NULL ;struct kvec iov[2 ]; -struct kvec rsp_iov; +struct kvec rsp_iov = {NULL ,0 };int rc =0 ;int resp_buftype;int unc_path_len;
@@ -1360,7 +1360,7 @@ SMB2_tcon(const unsigned int xid, struct cifs_ses *ses, const char *tree,return rc; tcon_error_exit: -if (rsp->hdr.sync_hdr.Status ==STATUS_BAD_NETWORK_NAME ) { +if (rsp && rsp->hdr.sync_hdr.Status ==STATUS_BAD_NETWORK_NAME ) {cifs_dbg (VFS ,"BAD_NETWORK_NAME: %s\n" , tree); } goto tcon_exit;
@@ -1963,6 +1963,9 @@ SMB2_ioctl(const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_fid, }else iov[0 ].iov_len =get_rfc1002_length (req) +4 ; +/* validate negotiate request must be signed - see MS-SMB2 3.2.5.5 */ +if (opcode ==FSCTL_VALIDATE_NEGOTIATE_INFO ) + req->hdr.sync_hdr.Flags |=SMB2_FLAGS_SIGNED ; rc =SendReceive2 (xid, ses, iov, n_iov, &resp_buftype, flags, &rsp_iov);cifs_small_buf_release (req);
fs/cifs/smb2transport.c +14 -12
@@ -390,6 +390,7 @@ generate_smb30signingkey(struct cifs_ses *ses)return generate_smb3signingkey (ses, &triplet); } +#ifdef CONFIG_CIFS_SMB311 int generate_smb311signingkey (struct cifs_ses *ses)
@@ -398,25 +399,26 @@ generate_smb311signingkey(struct cifs_ses *ses)struct derivation *d; d = &triplet.signing; - d->label.iov_base ="SMB2AESCMAC" ; - d->label.iov_len =12 ; - d->context.iov_base ="SmbSign" ; - d->context.iov_len =8 ; + d->label.iov_base ="SMBSigningKey" ; + d->label.iov_len =14 ; + d->context.iov_base = ses->preauth_sha_hash; + d->context.iov_len =64 ; d = &triplet.encryption; - d->label.iov_base ="SMB2AESCCM" ; - d->label.iov_len =11 ; - d->context.iov_base ="ServerIn " ; - d->context.iov_len =10 ; + d->label.iov_base ="SMBC2SCipherKey" ; + d->label.iov_len =16 ; + d->context.iov_base = ses->preauth_sha_hash; + d->context.iov_len =64 ; d = &triplet.decryption; - d->label.iov_base ="SMB2AESCCM" ; - d->label.iov_len =11 ; - d->context.iov_base ="ServerOut" ; - d->context.iov_len =10 ; + d->label.iov_base ="SMBS2CCipherKey" ; + d->label.iov_len =16 ; + d->context.iov_base = ses->preauth_sha_hash; + d->context.iov_len =64 ; return generate_smb3signingkey(ses, &triplet); } +#endif /* 311 */ int smb3_calc_signature (struct smb_rqst *rqst,struct TCP_Server_Info *server)
fs/fuse/dir.c +2 -1
@@ -1312,7 +1312,8 @@ static int parse_dirplusfile(char *buf, size_t nbytes, struct file *file,*/ over = !dir_emit (ctx, dirent->name, dirent->namelen, dirent->ino, dirent->type); - ctx->pos = dirent->off; +if (!over) + ctx->pos = dirent->off; } buf += reclen;
fs/overlayfs/inode.c +16 -4
@@ -595,18 +595,30 @@ static bool ovl_verify_inode(struct inode *inode, struct dentry *lowerdentry,return true; } -struct inode *ovl_get_inode (struct dentry *dentry,struct dentry *upperdentry) +struct inode *ovl_get_inode (struct dentry *dentry,struct dentry *upperdentry, +struct dentry *index) {struct dentry *lowerdentry =ovl_dentry_lower (dentry);struct inode *realinode = upperdentry ?d_inode (upperdentry) :NULL ;struct inode *inode; +/* Already indexed or could be indexed on copy up? */ +bool indexed = (index || (ovl_indexdir (dentry->d_sb) && !upperdentry)); + +if (WARN_ON (upperdentry && indexed && !lowerdentry)) +return ERR_PTR (-EIO );if (!realinode) realinode =d_inode (lowerdentry); -if (!S_ISDIR (realinode->i_mode) && - (upperdentry || (lowerdentry &&ovl_indexdir (dentry->d_sb)))) { -struct inode *key =d_inode (lowerdentry ?: upperdentry); +/* +* Copy up origin (lower) may exist for non-indexed upper, but we must +* not use lower as hash key in that case. +* Hash inodes that are or could be indexed by origin inode and +* non-indexed upper inodes that could be hard linked by upper inode. +*/ +if (!S_ISDIR (realinode->i_mode) && (upperdentry || indexed)) { +struct inode *key =d_inode (indexed ? lowerdentry : + upperdentry);unsigned int nlink; inode = iget5_locked(dentry->d_sb, (unsigned long) key,
fs/overlayfs/namei.c +15 -16
@@ -405,14 +405,13 @@ int ovl_verify_index(struct dentry *index, struct path *lowerstack,* be treated as stale (i.e. after unlink of the overlay inode). * We don't know the verification rules for directory and whiteout * index entries, because they have not been implemented yet, so return -* EROFS if those entries are found to avoid corrupting an index that -* was created by a newer kernel. +* EINVAL if those entries are found to abort the mount to avoid +* corrupting an index that was created by a newer kernel. */ - err = -EROFS ; + err = -EINVAL ;if (d_is_dir (index) ||ovl_is_whiteout (index)) goto fail; - err = -EINVAL ;if (index->d_name.len <sizeof (struct ovl_fh )*2 ) goto fail;
@@ -507,6 +506,10 @@ static struct dentry *ovl_lookup_index(struct dentry *dentry, index =lookup_one_len_unlocked (name.name, ofs->indexdir, name.len);if (IS_ERR (index)) { err =PTR_ERR (index); +if (err == -ENOENT ) { + index =NULL ; + goto out; + } pr_warn_ratelimited("overlayfs: failed inode index lookup (ino=%lu, key=%*s, err=%i);\n" "overlayfs: mount with '-o index=off' to disable inodes index.\n", d_inode(origin)->i_ino, name.len, name.name,
@@ -516,18 +519,9 @@ static struct dentry *ovl_lookup_index(struct dentry *dentry, inode =d_inode (index);if (d_is_negative (index)) { -if (upper &&d_inode (origin)->i_nlink >1 ) { -pr_warn_ratelimited ("overlayfs: hard link with origin but no index (ino=%lu).\n" , -d_inode (origin)->i_ino); - goto fail; - } - -dput (index); - index =NULL ; + goto out_dput; }else if (upper &&d_inode (upper) != inode) { -pr_warn_ratelimited ("overlayfs: wrong index found (index=%pd2, ino=%lu, upper ino=%lu).\n" , - index, inode->i_ino,d_inode (upper)->i_ino); - goto fail; + goto out_dput; }else if (ovl_dentry_weird (index) ||ovl_is_whiteout (index) || ((inode->i_mode ^d_inode (origin)->i_mode) &S_IFMT )) {/*
@@ -547,6 +541,11 @@ static struct dentry *ovl_lookup_index(struct dentry *dentry,kfree (name.name);return index; +out_dput: +dput (index); + index =NULL ; + goto out; + fail:dput (index); index =ERR_PTR (-EIO );
@@ -709,7 +708,7 @@ struct dentry *ovl_lookup(struct inode *dir, struct dentry *dentry, upperdentry =dget (index);if (upperdentry || ctr) { - inode =ovl_get_inode (dentry, upperdentry); + inode =ovl_get_inode (dentry, upperdentry, index); err =PTR_ERR (inode);if (IS_ERR (inode)) goto out_free_oe;
fs/overlayfs/overlayfs.h +2 -1
@@ -284,7 +284,8 @@ int ovl_update_time(struct inode *inode, struct timespec *ts, int flags);bool ovl_is_private_xattr (const char *name);struct inode *ovl_new_inode (struct super_block *sb,umode_t mode,dev_t rdev); -struct inode *ovl_get_inode (struct dentry *dentry,struct dentry *upperdentry); +struct inode *ovl_get_inode (struct dentry *dentry,struct dentry *upperdentry, +struct dentry *index);static inline void ovl_copyattr (struct inode *from,struct inode *to) { to->i_uid = from->i_uid;
fs/overlayfs/readdir.c +5 -6
@@ -704,13 +704,12 @@ int ovl_indexdir_cleanup(struct dentry *dentry, struct vfsmount *mnt,break ; } err =ovl_verify_index (index, lowerstack, numlower); -if (err) { -if (err == -EROFS ) -break ; +/* Cleanup stale and orphan index entries */ +if (err && (err == -ESTALE || err == -ENOENT )) err =ovl_cleanup (dir, index); -if (err) -break ; - } +if (err) +break ; +dput (index); index =NULL ; }
fs/overlayfs/super.c +3 -0
@@ -174,6 +174,9 @@ static struct inode *ovl_alloc_inode(struct super_block *sb) {struct ovl_inode *oi =kmem_cache_alloc (ovl_inode_cachep,GFP_KERNEL ); +if (!oi) +return NULL ; + oi->cache =NULL ; oi->redirect =NULL ; oi->version =0 ;
include/uapi/linux/spi/spidev.h +1 -0
@@ -23,6 +23,7 @@#define SPIDEV_H #include <linux/types.h> +#include <linux/ioctl.h> /* User space versions of kernel symbols for SPI clocking modes, * matching <linux/spi/spi.h>
kernel/workqueue.c +15 -22
@@ -68,6 +68,7 @@ enum {* attach_mutex to avoid changing binding state while * worker_attach_to_pool() is in progress. */ +POOL_MANAGER_ACTIVE =1 <<0 ,/* being managed */ POOL_DISASSOCIATED = 1 << 2, /* cpu can't serve workers *//* worker flags */
@@ -165,7 +166,6 @@ struct worker_pool {/* L: hash of busy workers */ /* see manage_workers() for details on the two manager mutexes */ -struct mutex manager_arb;/* manager arbitration */ struct worker *manager;/* L: purely informational */ struct mutex attach_mutex;/* attach/detach exclusion */ struct list_head workers;/* A: attached workers */
@@ -299,6 +299,7 @@ static struct workqueue_attrs *wq_update_unbound_numa_attrs_buf;static DEFINE_MUTEX (wq_pool_mutex);/* protects pools and workqueues list */ static DEFINE_SPINLOCK (wq_mayday_lock);/* protects wq->maydays list */ +static DECLARE_WAIT_QUEUE_HEAD (wq_manager_wait);/* wait for manager to go away */ static LIST_HEAD (workqueues);/* PR: list of all workqueues */ static bool workqueue_freezing;/* PL: have wqs started freezing? */
@@ -801,7 +802,7 @@ static bool need_to_create_worker(struct worker_pool *pool)/* Do we have too many workers and should some go away? */ static bool too_many_workers (struct worker_pool *pool) { -bool managing =mutex_is_locked (&pool->manager_arb); +bool managing = pool->flags &POOL_MANAGER_ACTIVE ;int nr_idle = pool->nr_idle + managing;/* manager is considered idle */ int nr_busy = pool->nr_workers - nr_idle;
@@ -1980,24 +1981,17 @@ static bool manage_workers(struct worker *worker) {struct worker_pool *pool = worker->pool; -/* -* Anyone who successfully grabs manager_arb wins the arbitration -* and becomes the manager. mutex_trylock() on pool->manager_arb -* failure while holding pool->lock reliably indicates that someone -* else is managing the pool and the worker which failed trylock -* can proceed to executing work items. This means that anyone -* grabbing manager_arb is responsible for actually performing -* manager duties. If manager_arb is grabbed and released without -* actual management, the pool may stall indefinitely. -*/ -if (!mutex_trylock (&pool->manager_arb)) +if (pool->flags &POOL_MANAGER_ACTIVE )return false; + + pool->flags |=POOL_MANAGER_ACTIVE ; pool->manager = worker;maybe_create_worker (pool); pool->manager =NULL ; -mutex_unlock (&pool->manager_arb); + pool->flags &= ~POOL_MANAGER_ACTIVE ; +wake_up (&wq_manager_wait);return true; }
@@ -3215,7 +3209,6 @@ static int init_worker_pool(struct worker_pool *pool)setup_timer (&pool->mayday_timer, pool_mayday_timeout, (unsigned long )pool); -mutex_init (&pool->manager_arb);mutex_init (&pool->attach_mutex);INIT_LIST_HEAD (&pool->workers);
@@ -3285,13 +3278,15 @@ static void put_unbound_pool(struct worker_pool *pool)hash_del (&pool->hash_node);/* -* Become the manager and destroy all workers. Grabbing -* manager_arb prevents @pool's workers from blocking on -* attach_mutex. +* Become the manager and destroy all workers. This prevents +* @pool's workers from blocking on attach_mutex. We're the last +* manager and @pool gets freed with the flag set. */ -mutex_lock (&pool->manager_arb); -spin_lock_irq (&pool->lock); +wait_event_lock_irq (wq_manager_wait, + !(pool->flags &POOL_MANAGER_ACTIVE ), pool->lock); + pool->flags |=POOL_MANAGER_ACTIVE ; +while ((worker =first_idle_worker (pool)))destroy_worker (worker);WARN_ON (pool->nr_workers || pool->nr_idle);
@@ -3305,8 +3300,6 @@ static void put_unbound_pool(struct worker_pool *pool)if (pool->detach_completion)wait_for_completion (pool->detach_completion); -mutex_unlock (&pool->manager_arb); -/* shut down the timers */ del_timer_sync (&pool->idle_timer);del_timer_sync (&pool->mayday_timer);
lib/assoc_array.c +17 -34
71 lines not on this page · raw message
net/wireless/sme.c +41 -9
76 lines not on this page · raw message
net/xfrm/xfrm_user.c +15 -10
@@ -1684,32 +1684,34 @@ static int dump_one_policy(struct xfrm_policy *xp, int dir, int count, void *ptrstatic int xfrm_dump_policy_done (struct netlink_callback *cb) { -struct xfrm_policy_walk *walk = (struct xfrm_policy_walk *) &cb->args[1 ]; +struct xfrm_policy_walk *walk = (struct xfrm_policy_walk *)cb->args;struct net *net =sock_net (cb->skb->sk);xfrm_policy_walk_done (walk, net);return 0 ; } +static int xfrm_dump_policy_start (struct netlink_callback *cb) +{ +struct xfrm_policy_walk *walk = (struct xfrm_policy_walk *)cb->args; + +BUILD_BUG_ON (sizeof (*walk) >sizeof (cb->args)); + +xfrm_policy_walk_init (walk,XFRM_POLICY_TYPE_ANY ); +return 0 ; +} +static int xfrm_dump_policy (struct sk_buff *skb,struct netlink_callback *cb) {struct net *net =sock_net (skb->sk); -struct xfrm_policy_walk *walk = (struct xfrm_policy_walk *) &cb->args[1 ]; +struct xfrm_policy_walk *walk = (struct xfrm_policy_walk *)cb->args;struct xfrm_dump_info info; -BUILD_BUG_ON (sizeof (struct xfrm_policy_walk ) > -sizeof (cb->args) -sizeof (cb->args[0 ])); - info.in_skb = cb->skb; info.out_skb = skb; info.nlmsg_seq = cb->nlh->nlmsg_seq; info.nlmsg_flags =NLM_F_MULTI ; -if (!cb->args[0 ]) { - cb->args[0 ] =1 ; -xfrm_policy_walk_init (walk,XFRM_POLICY_TYPE_ANY ); - } - (void )xfrm_policy_walk (net, walk, dump_one_policy, &info);return skb->len;
@@ -2467,6 +2469,7 @@ static const struct nla_policy xfrma_spd_policy[XFRMA_SPD_MAX+1] = { static const struct xfrm_link { int (*doit)(struct sk_buff *, struct nlmsghdr *, struct nlattr **); + int (*start)(struct netlink_callback *); int (*dump)(struct sk_buff *, struct netlink_callback *); int (*done)(struct netlink_callback *); const struct nla_policy *nla_pol;
@@ -2480,6 +2483,7 @@ static const struct xfrm_link { [XFRM_MSG_NEWPOLICY - XFRM_MSG_BASE] = { .doit = xfrm_add_policy }, [XFRM_MSG_DELPOLICY - XFRM_MSG_BASE] = { .doit = xfrm_get_policy }, [XFRM_MSG_GETPOLICY - XFRM_MSG_BASE] = { .doit = xfrm_get_policy, + .start = xfrm_dump_policy_start, .dump = xfrm_dump_policy, .done = xfrm_dump_policy_done }, [XFRM_MSG_ALLOCSPI - XFRM_MSG_BASE] = { .doit = xfrm_alloc_userspi },
@@ -2532,6 +2536,7 @@ static int xfrm_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, {struct netlink_dump_control c = { + .start = link->start, .dump = link->dump, .done = link->done, };
samples/trace_events/trace-events-sample.c +1 -1
@@ -78,7 +78,7 @@ static int simple_thread_fn(void *arg) }static DEFINE_MUTEX (thread_mutex); -static bool simple_thread_cnt; +static int simple_thread_cnt;int foo_bar_reg (void ) {
sound/pci/hda/patch_realtek.c +19 -0
@@ -327,6 +327,7 @@ static void alc_fill_eapd_coef(struct hda_codec *codec)case 0x10ec0215 :case 0x10ec0225 :case 0x10ec0233 : +case 0x10ec0236 :case 0x10ec0255 :case 0x10ec0256 :case 0x10ec0282 :
@@ -911,6 +912,7 @@ static struct alc_codec_rename_pci_table rename_pci_tbl[] = { { 0x10ec0275, 0x1028, 0, "ALC3260" }, { 0x10ec0899, 0x1028, 0, "ALC3861" }, { 0x10ec0298, 0x1028, 0, "ALC3266" }, + { 0x10ec0236, 0x1028, 0, "ALC3204" }, { 0x10ec0256, 0x1028, 0, "ALC3246" }, { 0x10ec0225, 0x1028, 0, "ALC3253" }, { 0x10ec0295, 0x1028, 0, "ALC3254" },
@@ -3930,6 +3932,7 @@ static void alc_headset_mode_unplugged(struct hda_codec *codec)alc_process_coef_fw (codec, coef0255_1);alc_process_coef_fw (codec, coef0255);break ; +case 0x10ec0236 :case 0x10ec0256 :alc_process_coef_fw (codec, coef0256);alc_process_coef_fw (codec, coef0255);
@@ -4028,6 +4031,7 @@ static void alc_headset_mode_mic_in(struct hda_codec *codec, hda_nid_t hp_pin, };switch (codec->core.vendor_id) { +case 0x10ec0236 :case 0x10ec0255 :case 0x10ec0256 :alc_write_coef_idx (codec,0x45 ,0xc489 );
@@ -4160,6 +4164,7 @@ static void alc_headset_mode_default(struct hda_codec *codec)alc_process_coef_fw (codec, alc225_pre_hsmode);alc_process_coef_fw (codec, coef0225);break ; +case 0x10ec0236 :case 0x10ec0255 :case 0x10ec0256 :alc_process_coef_fw (codec, coef0255);
@@ -4256,6 +4261,7 @@ static void alc_headset_mode_ctia(struct hda_codec *codec)case 0x10ec0255 :alc_process_coef_fw (codec, coef0255);break ; +case 0x10ec0236 :case 0x10ec0256 :alc_process_coef_fw (codec, coef0256);break ;
@@ -4366,6 +4372,7 @@ static void alc_headset_mode_omtp(struct hda_codec *codec)case 0x10ec0255 :alc_process_coef_fw (codec, coef0255);break ; +case 0x10ec0236 :case 0x10ec0256 :alc_process_coef_fw (codec, coef0256);break ;
@@ -4451,6 +4458,7 @@ static void alc_determine_headset_type(struct hda_codec *codec) };switch (codec->core.vendor_id) { +case 0x10ec0236 :case 0x10ec0255 :case 0x10ec0256 :alc_process_coef_fw (codec, coef0255);
@@ -4705,6 +4713,7 @@ static void alc255_set_default_jack_type(struct hda_codec *codec)case 0x10ec0255 :alc_process_coef_fw (codec, alc255fw);break ; +case 0x10ec0236 :case 0x10ec0256 :alc_process_coef_fw (codec, alc256fw);break ;
@@ -6402,6 +6411,14 @@ static const struct snd_hda_pin_quirk alc269_pin_fixup_tbl[] = {ALC225_STANDARD_PINS , {0x12, 0xb7a60130}, {0x1b, 0x90170110}), +SND_HDA_PIN_QUIRK (0x10ec0236 ,0x1028 ,"Dell" ,ALC255_FIXUP_DELL1_MIC_NO_PRESENCE , + {0x12, 0x90a60140}, + {0x14, 0x90170110}, + {0x21, 0x02211020}), +SND_HDA_PIN_QUIRK (0x10ec0236 ,0x1028 ,"Dell" ,ALC255_FIXUP_DELL1_MIC_NO_PRESENCE , + {0x12, 0x90a60140}, + {0x14, 0x90170150}, + {0x21, 0x02211020}),SND_HDA_PIN_QUIRK (0x10ec0255 ,0x1028 ,"Dell" ,ALC255_FIXUP_DELL2_MIC_NO_PRESENCE , {0x14, 0x90170110}, {0x21, 0x02211020}),
@@ -6789,6 +6806,7 @@ static int patch_alc269(struct hda_codec *codec)case 0x10ec0255 : spec->codec_variant =ALC269_TYPE_ALC255 ;break ; +case 0x10ec0236 :case 0x10ec0256 : spec->codec_variant =ALC269_TYPE_ALC256 ; spec->shutup = alc256_shutup;
@@ -7840,6 +7858,7 @@ static const struct hda_device_id snd_hda_id_realtek[] = {HDA_CODEC_ENTRY (0x10ec0233 ,"ALC233" , patch_alc269),HDA_CODEC_ENTRY (0x10ec0234 ,"ALC234" , patch_alc269),HDA_CODEC_ENTRY (0x10ec0235 ,"ALC233" , patch_alc269), +HDA_CODEC_ENTRY (0x10ec0236 ,"ALC236" , patch_alc269),HDA_CODEC_ENTRY (0x10ec0255 ,"ALC255" , patch_alc269),HDA_CODEC_ENTRY (0x10ec0256 ,"ALC256" , patch_alc269), HDA_CODEC_ENTRY(0x10ec0260, "ALC260", patch_alc260),