Linux 3.9.9
Greg KH
maintainerI'm announcing the release of the 3.9.9 kernel.
All users of the 3.9 kernel series must upgrade.
The updated 3.9.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.9.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/arm/include/asm/cacheflush.h | 4 - arch/arm/mm/flush.c | 33 +++++++++ arch/arm/mm/nommu.c | 6 + arch/powerpc/platforms/pseries/eeh_pe.c | 3 arch/s390/kernel/ipl.c | 8 +- arch/s390/kernel/irq.c | 66 ++++++++++++++++++ arch/s390/pci/pci.c | 33 --------- arch/x86/include/asm/irq_remapping.h | 3 arch/x86/kernel/early-quirks.c | 20 +++++ crypto/algboss.c | 15 ++-- crypto/api.c | 6 - crypto/internal.h | 6 + drivers/ata/libata-acpi.c | 36 ++++++++++ drivers/ata/libata-core.c | 2 drivers/ata/libata.h | 2 drivers/iommu/intel_irq_remapping.c | 10 ++ drivers/iommu/irq_remapping.c | 6 + drivers/iommu/irq_remapping.h | 2 drivers/net/can/usb/usb_8dev.c | 5 + drivers/net/wan/dlci.c | 26 ++++++- drivers/net/wireless/ath/ath9k/htc_drv_main.c | 2 drivers/net/wireless/iwlwifi/dvm/rxon.c | 2 drivers/net/wireless/rt2x00/rt2800lib.c | 29 +++++--- drivers/of/base.c | 4 - fs/exec.c | 16 ++-- fs/ubifs/dir.c | 54 +++++++++++---- kernel/events/hw_breakpoint.c | 6 - net/bluetooth/l2cap_core.c | 5 + net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c | 2 net/mac80211/ieee80211_i.h | 4 - net/mac80211/mlme.c | 87 ++++++++++++++++++++++--- net/mac80211/util.c | 6 - 33 files changed, 395 insertions(+), 116 deletions(-)
Aaron Lu (1):
libata-acpi: add back ACPI based hotplug functionality
Anderson Lizardo (1):
Bluetooth: Fix crash in l2cap_build_cmd() with small MTU
Artem Bityutskiy (2):
UBIFS: prepare to fix a horrid bug
UBIFS: fix a horrid bug
Ben Hutchings (2):
s390/pci: Implement IRQ functions if !PCI s390/irq: Only define synchronize_irq() on SMP
Gavin Shan (1):
powerpc/eeh: Fix fetching bus for single-dev-PE
Greg Kroah-Hartman (1):
Linux 3.9.9
Herbert Xu (1):
crypto: algboss - Hold ref count on larval
Jaganath Kanakkassery (1):
Bluetooth: Fix invalid length check in l2cap_information_rsp()
Johannes Berg (1):
mac80211: work around broken APs not including HT info
Marc Kleine-Budde (1):
can: usb_8dev: unregister netdev before free()ing
Michael Holzheu (1):
s390/ipl: Fix FCP WWPN and LUN format strings for read
Neil Horman (1):
iommu/vt-d: add quirk for broken interrupt remapping on 55XX chipsets
Nikolay Martynov (1):
iwlwifi: dvm: fix chain noise calibration
Oleg Nesterov (2):
hw_breakpoint: Fix cpu check in task_bp_pinned(cpu)
hw_breakpoint: Use cpu_possible_mask in {reserve,release}_bp_slot()
Phil Oester (1):
netfilter: nf_conntrack_ipv6: Plug sk_buff leak in fragment handling
Simon Baatz (2):
ARM: 7755/1: handle user space mapped pages in flush_kernel_dcache_page
ARM: 7772/1: Fix missing flush_kernel_dcache_page() for noMMU
Stanislaw Gruszka (1):
rt2800: fix RT5390 & RT3290 TX power settings regression
Stephane Eranian (1):
perf: Disable monitoring on setuid processes for regular users
Sujith Manoharan (1):
ath9k_htc: Handle IDLE state transition properly
Tang Yuantian (1):
of/base: release the node correctly in of_parse_phandle_with_args()
Zefan Li (2):
dlci: acquire rtnl_lock before calling __dev_get_by_name()
dlci: validate the net device in dlci_del()
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 9 -SUBLEVEL = 8 +SUBLEVEL = 9 EXTRAVERSION = NAME = Black Squirrel Wakeup Call
arch/arm/include/asm/cacheflush.h +1 -3
@@ -320,9 +320,7 @@ static inline void flush_anon_page(struct vm_area_struct *vma, }#define ARCH_HAS_FLUSH_KERNEL_DCACHE_PAGE -static inline void flush_kernel_dcache_page (struct page *page) -{ -} +extern void flush_kernel_dcache_page (struct page *);#define flush_dcache_mmap_lock (mapping) \ spin_lock_irq(&(mapping)->tree_lock)
arch/arm/mm/flush.c +33 -0
@@ -298,6 +298,39 @@ void flush_dcache_page(struct page *page)EXPORT_SYMBOL (flush_dcache_page);/* +* Ensure cache coherency for the kernel mapping of this page. We can +* assume that the page is pinned via kmap. +* +* If the page only exists in the page cache and there are no user +* space mappings, this is a no-op since the page was already marked +* dirty at creation. Otherwise, we need to flush the dirty kernel +* cache lines directly. +*/ +void flush_kernel_dcache_page (struct page *page) +{ +if (cache_is_vivt () ||cache_is_vipt_aliasing ()) { +struct address_space *mapping; + + mapping =page_mapping (page); + +if (!mapping ||mapping_mapped (mapping)) { +void *addr; + + addr =page_address (page); +/* +* kmap_atomic() doesn't set the page virtual +* address for highmem pages, and +* kunmap_atomic() takes care of cache +* flushing already. +*/ +if (!IS_ENABLED (CONFIG_HIGHMEM ) || addr) +__cpuc_flush_dcache_area (addr,PAGE_SIZE ); + } + } +} +EXPORT_SYMBOL (flush_kernel_dcache_page); + +/* * Flush an anonymous page so that users of get_user_pages() * can safely access the data. The expected sequence is: *
arch/arm/mm/nommu.c +6 -0
@@ -57,6 +57,12 @@ void flush_dcache_page(struct page *page) }EXPORT_SYMBOL (flush_dcache_page); +void flush_kernel_dcache_page (struct page *page) +{ +__cpuc_flush_dcache_area (page_address (page),PAGE_SIZE ); +} +EXPORT_SYMBOL (flush_kernel_dcache_page); +void copy_to_user_page (struct vm_area_struct *vma,struct page *page,unsigned long uaddr,void *dst,const void *src,unsigned long len)
arch/powerpc/platforms/pseries/eeh_pe.c +2 -1
@@ -639,7 +639,8 @@ struct pci_bus *eeh_pe_bus_get(struct eeh_pe *pe)if (pe->type &EEH_PE_PHB ) { bus = pe->phb->bus; - }else if (pe->type &EEH_PE_BUS ) { + }else if (pe->type &EEH_PE_BUS || + pe->type &EEH_PE_DEVICE ) { edev = list_first_entry(&pe->edevs, struct eeh_dev, list); pdev =eeh_dev_to_pci_dev (edev);if (pdev)
arch/s390/kernel/ipl.c +4 -4
@@ -754,9 +754,9 @@ static struct bin_attribute sys_reipl_fcp_scp_data_attr = { .write = reipl_fcp_scpdata_write, }; -DEFINE_IPL_ATTR_RW (reipl_fcp, wwpn,"0x%016llx\n" ,"%016llx\n" , +DEFINE_IPL_ATTR_RW (reipl_fcp, wwpn,"0x%016llx\n" ,"%llx\n" , reipl_block_fcp->ipl_info.fcp.wwpn); -DEFINE_IPL_ATTR_RW (reipl_fcp, lun,"0x%016llx\n" ,"%016llx\n" , +DEFINE_IPL_ATTR_RW (reipl_fcp, lun,"0x%016llx\n" ,"%llx\n" , reipl_block_fcp->ipl_info.fcp.lun);DEFINE_IPL_ATTR_RW (reipl_fcp, bootprog,"%lld\n" ,"%lld\n" , reipl_block_fcp->ipl_info.fcp.bootprog);
@@ -1323,9 +1323,9 @@ static struct shutdown_action __refdata reipl_action = {/* FCP dump device attributes */ -DEFINE_IPL_ATTR_RW (dump_fcp, wwpn,"0x%016llx\n" ,"%016llx\n" , +DEFINE_IPL_ATTR_RW (dump_fcp, wwpn,"0x%016llx\n" ,"%llx\n" , dump_block_fcp->ipl_info.fcp.wwpn); -DEFINE_IPL_ATTR_RW (dump_fcp, lun,"0x%016llx\n" ,"%016llx\n" , +DEFINE_IPL_ATTR_RW (dump_fcp, lun,"0x%016llx\n" ,"%llx\n" , dump_block_fcp->ipl_info.fcp.lun);DEFINE_IPL_ATTR_RW (dump_fcp, bootprog,"%lld\n" ,"%lld\n" , dump_block_fcp->ipl_info.fcp.bootprog);
arch/s390/kernel/irq.c +66 -0
69 lines not on this page · raw message
arch/s390/pci/pci.c +0 -33
@@ -306,15 +306,6 @@ static int zpci_cfg_store(struct zpci_dev *zdev, int offset, u32 val, u8 len)return rc; } -void synchronize_irq (unsigned int irq) -{ -/* -* Not needed, the handler is protected by a lock and IRQs that occur -* after the handler is deleted are just NOPs. -*/ -} -EXPORT_SYMBOL_GPL (synchronize_irq); -void enable_irq (unsigned int irq) {struct msi_desc *msi =irq_get_msi_desc (irq);
@@ -331,30 +322,6 @@ void disable_irq(unsigned int irq) }EXPORT_SYMBOL_GPL (disable_irq); -void disable_irq_nosync (unsigned int irq) -{ -disable_irq (irq); -} -EXPORT_SYMBOL_GPL (disable_irq_nosync); - -unsigned long probe_irq_on (void ) -{ -return 0 ; -} -EXPORT_SYMBOL_GPL (probe_irq_on); - -int probe_irq_off (unsigned long val) -{ -return 0 ; -} -EXPORT_SYMBOL_GPL (probe_irq_off); - -unsigned int probe_irq_mask (unsigned long val) -{ -return val; -} -EXPORT_SYMBOL_GPL (probe_irq_mask); -void pcibios_fixup_bus (struct pci_bus *bus) { }
arch/x86/include/asm/irq_remapping.h +3 -0
@@ -23,11 +23,13 @@#define __X86_IRQ_REMAPPING_H#include <asm/io_apic.h> +#include <linux/irq.h> #ifdef CONFIG_IRQ_REMAP extern void setup_irq_remapping_ops (void );extern int irq_remapping_supported (void ); +extern void set_irq_remapping_broken (void );extern int irq_remapping_prepare (void );extern int irq_remapping_enable (void );extern void irq_remapping_disable (void );
@@ -54,6 +56,7 @@ void irq_remap_modify_chip_defaults(struct irq_chip *chip);static inline void setup_irq_remapping_ops (void ) { }static inline int irq_remapping_supported (void ) {return 0 ; } +static inline void set_irq_remapping_broken (void ) { }static inline int irq_remapping_prepare (void ) {return -ENODEV ; }static inline int irq_remapping_enable (void ) {return -ENODEV ; }static inline void irq_remapping_disable (void ) { }
arch/x86/kernel/early-quirks.c +20 -0
@@ -18,6 +18,7 @@#include <asm/apic.h> #include <asm/iommu.h> #include <asm/gart.h> +#include <asm/irq_remapping.h> static void __init fix_hypertransport_config (int num,int slot,int func) {
@@ -192,6 +193,21 @@ static void __init ati_bugs_contd(int num, int slot, int func) }#endif +static void __init intel_remapping_check (int num,int slot,int func) +{ +u8 revision; + + revision =read_pci_config_byte (num, slot, func,PCI_REVISION_ID ); + +/* +* Revision 0x13 of this chipset supports irq remapping +* but has an erratum that breaks its behavior, flag it as such +*/ +if (revision ==0x13 ) +set_irq_remapping_broken (); + +} +#define QFLAG_APPLY_ONCE 0x1#define QFLAG_APPLIED 0x2#define QFLAG_DONE (QFLAG_APPLY_ONCE|QFLAG_APPLIED)
@@ -221,6 +237,10 @@ static struct chipset early_qrk[] __initdata = { PCI_CLASS_SERIAL_SMBUS, PCI_ANY_ID, 0, ati_bugs }, { PCI_VENDOR_ID_ATI, PCI_DEVICE_ID_ATI_SBX00_SMBUS, PCI_CLASS_SERIAL_SMBUS, PCI_ANY_ID, 0, ati_bugs_contd }, + { PCI_VENDOR_ID_INTEL, 0x3403, PCI_CLASS_BRIDGE_HOST, + PCI_BASE_CLASS_BRIDGE, 0, intel_remapping_check }, + { PCI_VENDOR_ID_INTEL, 0x3406, PCI_CLASS_BRIDGE_HOST, + PCI_BASE_CLASS_BRIDGE, 0, intel_remapping_check }, {} };
crypto/algboss.c +8 -7
@@ -45,10 +45,9 @@ struct cryptomgr_param { } nu32; } attrs[CRYPTO_MAX_ATTRS ]; -char larval[CRYPTO_MAX_ALG_NAME ];char template[CRYPTO_MAX_ALG_NAME ]; -struct completion *completion; +struct crypto_larval *larval;u32 otype;u32 omask;
@@ -87,7 +86,8 @@ static int cryptomgr_probe(void *data)crypto_tmpl_put (tmpl); out: -complete_all (param->completion); +complete_all (¶m->larval->completion); +crypto_alg_put (¶m->larval->alg);kfree (param);module_put_and_exit (0 ); }
@@ -187,18 +187,19 @@ static int cryptomgr_schedule_probe(struct crypto_larval *larval) param->otype = larval->alg.cra_flags; param->omask = larval->mask; -memcpy (param->larval, larval->alg.cra_name,CRYPTO_MAX_ALG_NAME ); - - param->completion = &larval->completion; +crypto_alg_get (&larval->alg); + param->larval = larval; thread =kthread_run (cryptomgr_probe, param,"cryptomgr_probe" );if (IS_ERR (thread)) - goto err_free_param; + goto err_put_larval;wait_for_completion_interruptible (&larval->completion);return NOTIFY_STOP ; +err_put_larval: +crypto_alg_put (&larval->alg); err_free_param:kfree (param); err_put_module:
crypto/api.c +0 -6
@@ -34,12 +34,6 @@ EXPORT_SYMBOL_GPL(crypto_alg_sem);BLOCKING_NOTIFIER_HEAD (crypto_chain);EXPORT_SYMBOL_GPL (crypto_chain); -static inline struct crypto_alg *crypto_alg_get (struct crypto_alg *alg) -{ -atomic_inc (&alg->cra_refcnt); -return alg; -} -struct crypto_alg *crypto_mod_get (struct crypto_alg *alg) {return try_module_get (alg->cra_module) ?crypto_alg_get (alg) :NULL ;
crypto/internal.h +6 -0
@@ -103,6 +103,12 @@ int crypto_register_notifier(struct notifier_block *nb);int crypto_unregister_notifier (struct notifier_block *nb);int crypto_probing_notify (unsigned long val,void *v); +static inline struct crypto_alg *crypto_alg_get (struct crypto_alg *alg) +{ +atomic_inc (&alg->cra_refcnt); +return alg; +} +static inline void crypto_alg_put (struct crypto_alg *alg) {if (atomic_dec_and_test (&alg->cra_refcnt) && alg->cra_destroy)
drivers/ata/libata-acpi.c +35 -1
@@ -157,8 +157,10 @@ static void ata_acpi_handle_hotplug(struct ata_port *ap, struct ata_device *dev,spin_unlock_irqrestore (ap->lock, flags); -if (wait) +if (wait) {ata_port_wait_eh (ap); +flush_work (&ap->hotplug_task.work); + } }static void ata_acpi_dev_notify_dock (acpi_handle handle,u32 event,void *data)
@@ -215,6 +217,38 @@ static const struct acpi_dock_ops ata_acpi_ap_dock_ops = { .uevent = ata_acpi_ap_uevent, }; +void ata_acpi_hotplug_init (struct ata_host *host) +{ +int i; + +for (i =0 ; i < host->n_ports; i++) { +struct ata_port *ap = host->ports[i]; +acpi_handle handle; +struct ata_device *dev; + +if (!ap) +continue ; + + handle =ata_ap_acpi_handle (ap); +if (handle) { +/* we might be on a docking station */ +register_hotplug_dock_device (handle, + &ata_acpi_ap_dock_ops, ap); + } + +ata_for_each_dev (dev, &ap->link,ALL ) { + handle =ata_dev_acpi_handle (dev); +if (!handle) +continue ; + +/* we might be on a docking station */ +register_hotplug_dock_device (handle, + &ata_acpi_dev_dock_ops, + dev); + } + } +} +/** * ata_acpi_dissociate - dissociate ATA host from ACPI objects * @host: target ATA host
drivers/ata/libata-core.c +2 -0
@@ -6148,6 +6148,8 @@ int ata_host_register(struct ata_host *host, struct scsi_host_template *sht)if (rc) goto err_tadd; +ata_acpi_hotplug_init (host); +/* set cable, sata_spd_limit and report */ for (i =0 ; i < host->n_ports; i++) {struct ata_port *ap = host->ports[i];
drivers/ata/libata.h +2 -0
@@ -122,6 +122,7 @@ extern int ata_acpi_register(void);extern void ata_acpi_unregister (void );extern void ata_acpi_bind (struct ata_device *dev);extern void ata_acpi_unbind (struct ata_device *dev); +extern void ata_acpi_hotplug_init (struct ata_host *host);#else static inline void ata_acpi_dissociate (struct ata_host *host) { }static inline int ata_acpi_on_suspend (struct ata_port *ap) {return 0 ; }
@@ -134,6 +135,7 @@ static inline int ata_acpi_register(void) { return 0; }static inline void ata_acpi_unregister (void ) { }static inline void ata_acpi_bind (struct ata_device *dev) { }static inline void ata_acpi_unbind (struct ata_device *dev) { } +static inline void ata_acpi_hotplug_init (struct ata_host *host) {}#endif /* libata-scsi.c */
drivers/iommu/intel_irq_remapping.c +10 -0
@@ -524,6 +524,16 @@ static int __init intel_irq_remapping_supported(void)if (disable_irq_remap)return 0 ; +if (irq_remap_broken) { +WARN_TAINT (1 ,TAINT_FIRMWARE_WORKAROUND , +"This system BIOS has enabled interrupt remapping\n" +"on a chipset that contains an erratum making that\n" +"feature unstable. To maintain system stability\n" +"interrupt remapping is being disabled. Please\n" +"contact your BIOS vendor for an update\n" ); + disable_irq_remap =1 ; +return 0 ; + }if (!dmar_ir_support ())return 0 ;
drivers/iommu/irq_remapping.c +6 -0
@@ -18,6 +18,7 @@int irq_remapping_enabled;int disable_irq_remap; +int irq_remap_broken;int disable_sourceid_checking;int no_x2apic_optout;
@@ -210,6 +211,11 @@ void __init setup_irq_remapping_ops(void)#endif } +void set_irq_remapping_broken (void ) +{ + irq_remap_broken =1 ; +} +int irq_remapping_supported (void ) {if (disable_irq_remap)
drivers/iommu/irq_remapping.h +2 -0
@@ -32,6 +32,7 @@ struct pci_dev;struct msi_msg ;extern int disable_irq_remap; +extern int irq_remap_broken;extern int disable_sourceid_checking;extern int no_x2apic_optout;extern int irq_remapping_enabled;
@@ -89,6 +90,7 @@ extern struct irq_remap_ops amd_iommu_irq_ops;#define irq_remapping_enabled 0#define disable_irq_remap 1 +#define irq_remap_broken 0#endif /* CONFIG_IRQ_REMAP */
drivers/net/can/usb/usb_8dev.c +4 -1
@@ -977,7 +977,7 @@ static int usb_8dev_probe(struct usb_interface *intf, err =usb_8dev_cmd_version (priv, &version);if (err) {netdev_err (netdev,"can't get firmware version\n" ); - goto cleanup_cmd_msg_buffer; + goto cleanup_unregister_candev; }else { netdev_info(netdev, "firmware: %d.%d, hardware: %d.%d\n",
@@ -989,6 +989,9 @@ static int usb_8dev_probe(struct usb_interface *intf,return 0 ; +cleanup_unregister_candev: +unregister_netdev (priv->netdev); + cleanup_cmd_msg_buffer:kfree (priv->cmd_msg_buffer);
drivers/net/wan/dlci.c +21 -5
@@ -384,21 +384,37 @@ static int dlci_del(struct dlci_add *dlci)struct frad_local *flp;struct net_device *master, *slave;int err; +bool found = false; + +rtnl_lock ();/* validate slave device */ master =__dev_get_by_name (&init_net, dlci->devname); -if (!master) -return -ENODEV ; +if (!master) { + err = -ENODEV ; + goto out; + } + +list_for_each_entry (dlp, &dlci_devs, list) { +if (dlp->master == master) { + found = true; +break ; + } + } +if (!found) { + err = -ENODEV ; + goto out; + }if (netif_running (master)) { -return -EBUSY ; + err = -EBUSY ; + goto out; } dlp =netdev_priv (master); slave = dlp->slave; flp =netdev_priv (slave); -rtnl_lock (); err = (*flp->deassoc)(slave, master);if (!err) {list_del (&dlp->list);
@@ -407,8 +423,8 @@ static int dlci_del(struct dlci_add *dlci)dev_put (slave); } +out:rtnl_unlock (); -return err; }
drivers/net/wireless/ath/ath9k/htc_drv_main.c +1 -1
@@ -1174,7 +1174,7 @@ static int ath9k_htc_config(struct ieee80211_hw *hw, u32 changed)mutex_lock (&priv->htc_pm_lock); priv->ps_idle = !!(conf->flags &IEEE80211_CONF_IDLE ); -if (priv->ps_idle) +if (!priv->ps_idle) chip_reset = true;mutex_unlock (&priv->htc_pm_lock);
drivers/net/wireless/iwlwifi/dvm/rxon.c +1 -1
@@ -1377,7 +1377,7 @@ static void iwlagn_chain_noise_reset(struct iwl_priv *priv)struct iwl_chain_noise_data *data = &priv->chain_noise_data;int ret; -if (!(priv->calib_disabled &IWL_CHAIN_NOISE_CALIB_DISABLED )) +if (priv->calib_disabled &IWL_CHAIN_NOISE_CALIB_DISABLED )return ; if ((data->state == IWL_CHAIN_NOISE_ALIVE) &&
drivers/net/wireless/rt2x00/rt2800lib.c +18 -11
@@ -2634,19 +2634,26 @@ static void rt2800_config_txpower(struct rt2x00_dev *rt2x00dev,* TODO: we do not use +6 dBm option to do not increase power beyond * regulatory limit, however this could be utilized for devices with * CAPABILITY_POWER_LIMIT. +* +* TODO: add different temperature compensation code for RT3290 & RT5390 +* to allow to use BBP_R1 for those chips. */ -rt2800_bbp_read (rt2x00dev,1 , &r1); -if (delta <=-12 ) { - power_ctrl =2 ; - delta +=12 ; - }else if (delta <=-6 ) { - power_ctrl =1 ; - delta +=6 ; - }else { - power_ctrl =0 ; +if (!rt2x00_rt (rt2x00dev,RT3290 ) && + !rt2x00_rt (rt2x00dev,RT5390 )) { +rt2800_bbp_read (rt2x00dev,1 , &r1); +if (delta <=-12 ) { + power_ctrl =2 ; + delta +=12 ; + }else if (delta <=-6 ) { + power_ctrl =1 ; + delta +=6 ; + }else { + power_ctrl =0 ; + } +rt2x00_set_field8 (&r1,BBP1_TX_POWER_CTRL , power_ctrl); +rt2800_bbp_write (rt2x00dev,1 , r1); } -rt2x00_set_field8 (&r1,BBP1_TX_POWER_CTRL , power_ctrl); -rt2800_bbp_write (rt2x00dev,1 , r1); + offset =TX_PWR_CFG_0 ;for (i =0 ; i <EEPROM_TXPOWER_BYRATE_SIZE ; i +=2 ) {
drivers/of/base.c +2 -2
@@ -1166,11 +1166,11 @@ static int __of_parse_phandle_with_args(const struct device_node *np, out_args->args_count = count;for (i =0 ; i < count; i++) out_args->args[i] =be32_to_cpup (list++); + }else { +of_node_put (node); }/* Found it! return success */ -if (node) -of_node_put (node);return 0 ; }
fs/exec.c +9 -7
@@ -1136,13 +1136,6 @@ void setup_new_exec(struct linux_binprm * bprm)set_dumpable (current->mm, suid_dumpable); } -/* -* Flush performance counters when crossing a -* security domain: -*/ -if (!get_dumpable (current->mm)) -perf_event_exit_task (current); -/* An exec changes our domain. We are no longer part of the thread group */
@@ -1206,6 +1199,15 @@ void install_exec_creds(struct linux_binprm *bprm)commit_creds (bprm->cred); bprm->cred =NULL ; + +/* +* Disable monitoring for regular users +* when executing setuid binaries. Must +* wait until new credentials are committed +* by commit_creds() above +*/ +if (get_dumpable (current->mm) !=SUID_DUMP_USER ) +perf_event_exit_task (current);/* * cred_guard_mutex must be held at least to this point to prevent * ptrace_attach() from altering our determination of the task's
fs/ubifs/dir.c +39 -15
125 lines not on this page · raw message
kernel/events/hw_breakpoint.c +3 -3
@@ -120,7 +120,7 @@ static int task_bp_pinned(int cpu, struct perf_event *bp, enum bp_type_idx type)list_for_each_entry (iter, &bp_task_head, hw.bp_list) {if (iter->hw.bp_target == tsk &&find_slot_idx (iter) == type && - cpu == iter->cpu) + (iter->cpu <0 || cpu == iter->cpu)) count +=hw_breakpoint_weight (iter); }
@@ -149,7 +149,7 @@ fetch_bp_busy_slots(struct bp_busy_slots *slots, struct perf_event *bp,return ; } -for_each_online_cpu (cpu) { +for_each_possible_cpu (cpu) {unsigned int nr; nr =per_cpu (nr_cpu_bp_pinned[type], cpu);
@@ -235,7 +235,7 @@ toggle_bp_slot(struct perf_event *bp, bool enable, enum bp_type_idx type,if (cpu >=0 ) {toggle_bp_task_slot (bp, cpu, enable, type, weight); }else { -for_each_online_cpu (cpu) +for_each_possible_cpu (cpu)toggle_bp_task_slot (bp, cpu, enable, type, weight); }
net/bluetooth/l2cap_core.c +4 -1
@@ -2743,6 +2743,9 @@ static struct sk_buff *l2cap_build_cmd(struct l2cap_conn *conn, u8 code,BT_DBG ("conn %p, code 0x%2.2x, ident 0x%2.2x, len %u" , conn, code, ident, dlen); +if (conn->mtu <L2CAP_HDR_SIZE +L2CAP_CMD_HDR_SIZE ) +return NULL ; + len =L2CAP_HDR_SIZE +L2CAP_CMD_HDR_SIZE + dlen; count = min_t(unsigned int, conn->mtu, len);
@@ -4221,7 +4224,7 @@ static inline int l2cap_information_rsp(struct l2cap_conn *conn,struct l2cap_info_rsp *rsp = (struct l2cap_info_rsp *) data;u16 type, result; -if (cmd_len !=sizeof (*rsp)) +if (cmd_len <sizeof (*rsp))return -EPROTO ; type =__le16_to_cpu (rsp->type);
net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c +1 -1
@@ -204,7 +204,7 @@ static unsigned int __ipv6_conntrack_in(struct net *net,if (ct !=NULL && !nf_ct_is_untracked (ct)) { help =nfct_help (ct);if ((help && help->helper) || !nf_ct_is_confirmed (ct)) { -nf_conntrack_get_reasm (skb); +nf_conntrack_get_reasm (reasm); NF_HOOK_THRESH(NFPROTO_IPV6, hooknum, reasm, (struct net_device *)in, (struct net_device *)out,
net/mac80211/ieee80211_i.h +2 -2
@@ -1520,9 +1520,9 @@ static inline void ieee80211_tx_skb(struct ieee80211_sub_if_data *sdata,ieee80211_tx_skb_tid (sdata, skb,7 ); } -void ieee802_11_parse_elems (u8 *start,size_t len, +void ieee802_11_parse_elems (const u8 *start,size_t len,struct ieee802_11_elems *elems); -u32 ieee802_11_parse_elems_crc (u8 *start,size_t len, +u32 ieee802_11_parse_elems_crc (const u8 *start,size_t len,struct ieee802_11_elems *elems,u64 filter,u32 crc); u32 ieee80211_mandatory_rates(struct ieee80211_local *local,
net/mac80211/mlme.c +80 -7
130 lines not on this page · raw message
net/mac80211/util.c +3 -3
@@ -626,12 +626,12 @@ void ieee80211_queue_delayed_work(struct ieee80211_hw *hw, }EXPORT_SYMBOL (ieee80211_queue_delayed_work); -u32 ieee802_11_parse_elems_crc (u8 *start,size_t len, +u32 ieee802_11_parse_elems_crc (const u8 *start,size_t len,struct ieee802_11_elems *elems,u64 filter,u32 crc) {size_t left = len; -u8 *pos = start; +const u8 *pos = start;bool calc_crc = filter !=0 ;DECLARE_BITMAP (seen_elems,256 );
@@ -877,7 +877,7 @@ u32 ieee802_11_parse_elems_crc(u8 *start, size_t len,return crc; } -void ieee802_11_parse_elems (u8 *start,size_t len, +void ieee802_11_parse_elems (const u8 *start,size_t len,struct ieee802_11_elems *elems) {ieee802_11_parse_elems_crc (start, len, elems,0 ,0 );