Linux 3.18.102
Greg KH
maintainerI'm announcing the release of the 3.18.102 kernel.
All users of the 3.18 kernel series must upgrade.
The updated 3.18.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.18.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/alpha/kernel/console.c | 1 arch/arm/mach-omap2/clockdomains7xx_data.c | 2 arch/ia64/kernel/module.c | 4 arch/powerpc/kvm/book3s_64_mmu_host.c | 5 - arch/powerpc/kvm/book3s_pr.c | 6 + arch/x86/kernel/i8259.c | 1 drivers/acpi/processor_driver.c | 7 + drivers/acpi/processor_throttling.c | 62 ++++++++------- drivers/char/ipmi/ipmi_watchdog.c | 8 - drivers/clk/clk-si5351.c | 2 drivers/cpufreq/sh-cpufreq.c | 45 ++++++---- drivers/gpu/drm/msm/msm_gem.c | 14 ++- drivers/gpu/drm/omapdrm/omap_dmm_tiler.c | 5 + drivers/hsi/clients/ssi_protocol.c | 5 - drivers/i2c/busses/i2c-scmi.c | 4 drivers/infiniband/core/cma.c | 5 - drivers/infiniband/ulp/ipoib/ipoib_ib.c | 13 +++ drivers/infiniband/ulp/ipoib/ipoib_main.c | 16 +++ drivers/input/touchscreen/ar1021_i2c.c | 2 drivers/md/raid10.c | 1 drivers/media/dvb-core/dvb_ca_en50221.c | 23 +++++ drivers/media/dvb-frontends/si2168.c | 3 drivers/media/pci/bt8xx/bt878.c | 3 drivers/mfd/palmas.c | 14 +++ drivers/mmc/core/core.c | 8 + drivers/mmc/host/omap_hsmmc.c | 4 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c | 1 drivers/net/ethernet/intel/e1000e/netdev.c | 6 + drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c | 2 drivers/net/wan/pc300too.c | 1 drivers/net/wireless/ath/regd.c | 19 ++-- drivers/net/wireless/rndis_wlan.c | 4 drivers/pinctrl/core.c | 24 ++++- drivers/platform/x86/asus-nb-wmi.c | 9 ++ drivers/power/pda_power.c | 49 ++++++----- drivers/scsi/lpfc/lpfc_sli.c | 3 drivers/scsi/mac_esp.c | 33 +++++-- drivers/scsi/virtio_scsi.c | 24 +++++ drivers/spi/spi-dw-mmio.c | 2 drivers/video/console/vgacon.c | 34 ++++++-- drivers/video/fbdev/sm501fb.c | 1 drivers/video/fbdev/udlfb.c | 14 ++- fs/btrfs/send.c | 23 +++++ fs/cifs/netmisc.c | 6 - kernel/irq/manage.c | 4 net/ipv4/tcp_input.c | 16 ++- net/ipv6/ndisc.c | 2 net/mac80211/status.c | 1 sound/pci/hda/patch_realtek.c | 12 ++ 50 files changed, 415 insertions(+), 140 deletions(-)
Alexey Kardashevskiy (1):
KVM: PPC: Book3S PR: Exit KVM on failed mapping
Alexey Khoroshilov (1):
sm501fb: don't return zero on failure path in sm501fb_start()
Bernd Faust (1):
e1000e: fix timing for 82579 Gigabit Ethernet controller
Bjorn Helgaas (1):
vgacon: Set VGA struct resource types
Christophe JAILLET (1):
media: bt8xx: Fix err 'bt878_probe()'
Dan Carpenter (3):
HSI: ssi_protocol: double free in ssip_pn_xmit()
mmc: host: omap_hsmmc: checking for NULL instead of IS_ERR()
cifs: small underflow in cnvrtDosUnixTm()
Daniel Drake (1):
mmc: avoid removing non-removable hosts during suspend
David Ahern (1):
net: ipv6: send unsolicited NA on admin up
David Gibson (1):
scsi: virtio_scsi: Always try to read VPD pages
Dmitry Torokhov (1):
Input: ar1021_i2c - fix too long name in driver's device table
Edgar Cherkasov (1):
i2c: i2c-scmi: add a MS HID
Emmanuel Grumbach (1):
mac80211: don't parse encrypted management frames in ieee80211_frame_acked
Erez Shitrit (1):
IB/ipoib: Avoid memory leak if the SA returns a different DGID
Eric Dumazet (1):
tcp: remove poll() flakes with FastOpen
Feras Daoud (1):
IB/ipoib: Update broadcast object if PKey value was changed in index 0
Filipe Manana (1):
Btrfs: send, fix file hole not being preserved due to inline extent
Finn Thain (1):
scsi: mac_esp: Replace bogus memory barrier with spinlock
Florian Fainelli (1):
pinctrl: Really force states during suspend/resume
Greg Kroah-Hartman (1):
Linux 3.18.102
Hans de Goede (2):
x86: i8259: export legacy_pic symbol
genirq: Use irqd_get_trigger_type to compare the trigger type for shared IRQs
James Smart (1):
Fix driver usage of 128B WQEs when WQ_CREATE is V1.
Jasmin J (1):
media/dvb-core: Race condition when writing to CAM
Keerthy (1):
mfd: palmas: Reset the POWERHOLD mux during power off
Kishon Vijay Abraham I (1):
ARM: DRA7: clockdomain: Change the CLKTRCTRL of CM_PCIE_CLKSTCTRL to SW_WKUP
Leon Romanovsky (1):
RDMA/ucma: Fix access to non-initialized CM_ID object
Maksim Salau (1):
video: fbdev: udlfb: Fix buffer on stack
Marek Vasut (1):
spi: dw: Disable clock after unregistering the host
Michael Trimarchi (1):
power: supply: pda_power: move from timer to delayed_work
Mikhail Paulyshka (1):
ALSA: hda - Fix headset microphone detection for ASUS N551 and N751
Mohammed Shafi Shajakhan (1):
ath: Fix updating radar flags for coutry code India
Pan Bian (3):
wan: pc300too: abort path on failure
qlcnic: fix unchecked return value
rndis_wlan: add return value validation
Parav Pandit (1):
RDMA/cma: Use correct size when writing netlink stats
Peter Ujfalusi (1):
drm/omap: DMM: Check for DMM readiness after successful transaction commit
Prakash Kamliya (1):
drm/msm: fix leak in failed get_pages
Robert Lippert (1):
ipmi/watchdog: fix wdog hang on panic waiting for ipmi response
Ron Economos (1):
media: [RESEND] media: dvb-frontends: Add delay to Si2168 restart
Santeri Toivonen (1):
platform/x86: asus-nb-wmi: Add wapf4 quirk for the X302UA
Scott Wood (1):
bnx2x: Align RX buffers
Sergei Trofimovich (1):
ia64: fix module loading for gcc-5.4
Sergej Sawazki (1):
clk: si5351: Rename internal plls to avoid name collisions
Shaohua Li (1):
md/raid10: skip spare disk as 'first' disk
Thomas Gleixner (2):
ACPI/processor: Replace racy task affinity logic cpufreq/sh: Replace racy task affinity logic
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 18 -SUBLEVEL = 101 +SUBLEVEL = 102 EXTRAVERSION = NAME = Diseased Newt
arch/alpha/kernel/console.c +1 -0
@@ -20,6 +20,7 @@struct pci_controller *pci_vga_hose;static struct resource alpha_vga = { .name ="alpha-vga+" , + .flags =IORESOURCE_IO , .start =0x3C0 , .end =0x3DF };
arch/arm/mach-omap2/clockdomains7xx_data.c +1 -1
@@ -524,7 +524,7 @@ static struct clockdomain pcie_7xx_clkdm = { .dep_bit = DRA7XX_PCIE_STATDEP_SHIFT, .wkdep_srcs = pcie_wkup_sleep_deps, .sleepdep_srcs = pcie_wkup_sleep_deps, - .flags = CLKDM_CAN_HWSUP_SWSUP, + .flags = CLKDM_CAN_SWSUP, };static struct clockdomain atl_7xx_clkdm = {
arch/ia64/kernel/module.c +2 -2
@@ -153,7 +153,7 @@ slot (const struct insn *insn)static int apply_imm64 (struct module *mod,struct insn *insn,uint64_t val) { -if (slot (insn) !=2 ) { +if (slot (insn) !=1 &&slot (insn) !=2 ) {printk (KERN_ERR "%s: invalid slot number %d for IMM64\n" , mod->name,slot (insn));return 0 ;
@@ -165,7 +165,7 @@ apply_imm64 (struct module *mod, struct insn *insn, uint64_t val)static int apply_imm60 (struct module *mod,struct insn *insn,uint64_t val) { -if (slot (insn) !=2 ) { +if (slot (insn) !=1 &&slot (insn) !=2 ) {printk (KERN_ERR "%s: invalid slot number %d for IMM60\n" , mod->name,slot (insn));return 0 ;
arch/powerpc/kvm/book3s_64_mmu_host.c +4 -1
@@ -176,12 +176,15 @@ map_again: ret = ppc_md.hpte_insert (hpteg, vpn, hpaddr, rflags, vflags, hpsize, hpsize,MMU_SEGSIZE_256M ); -if (ret <0 ) { +if (ret ==-1 ) {/* If we couldn't map a primary PTE, try a secondary */ hash = ~hash; vflags ^=HPTE_V_SECONDARY ; attempt++; goto map_again; + }else if (ret <0 ) { + r = -EIO ; + goto out_unlock; }else {trace_kvm_book3s_64_mmu_map (rflags, hpteg, vpn, hpaddr, orig_pte);
arch/powerpc/kvm/book3s_pr.c +5 -1
@@ -625,7 +625,11 @@ int kvmppc_handle_pagefault(struct kvm_run *run, struct kvm_vcpu *vcpu,kvmppc_mmu_unmap_page (vcpu, &pte); }/* The guest's PTE is not mapped yet. Map on the host */ -kvmppc_mmu_map_page (vcpu, &pte, iswrite); +if (kvmppc_mmu_map_page (vcpu, &pte, iswrite) == -EIO ) { +/* Exit KVM if mapping failed */ + run->exit_reason =KVM_EXIT_INTERNAL_ERROR ; +return RESUME_HOST ; + }if (data) vcpu->stat.sp_storage++; else if (vcpu->arch.mmu.is_dcbz32(vcpu) &&
arch/x86/kernel/i8259.c +1 -0
@@ -405,6 +405,7 @@ struct legacy_pic default_legacy_pic = { };struct legacy_pic *legacy_pic = &default_legacy_pic; +EXPORT_SYMBOL (legacy_pic);static int __init i8259A_init_ops (void ) {
drivers/acpi/processor_driver.c +6 -1
@@ -231,11 +231,16 @@ static int __acpi_processor_start(struct acpi_device *device)static int acpi_processor_start (struct device *dev) {struct acpi_device *device =ACPI_COMPANION (dev); +int ret;if (!device)return -ENODEV ; -return __acpi_processor_start (device); +/* Protect against concurrent CPU hotplug operations */ +get_online_cpus (); + ret =__acpi_processor_start (device); +put_online_cpus (); +return ret; }static int acpi_processor_stop (struct device *dev)
drivers/acpi/processor_throttling.c +36 -26
116 lines not on this page · raw message
drivers/char/ipmi/ipmi_watchdog.c +4 -4
@@ -509,7 +509,7 @@ static void panic_halt_ipmi_heartbeat(void) msg.cmd =IPMI_WDOG_RESET_TIMER ; msg.data =NULL ; msg.data_len =0 ; -atomic_add (2 , &panic_done_count); +atomic_add (1 , &panic_done_count); rv = ipmi_request_supply_msgs(watchdog_user, (struct ipmi_addr *) &addr, 0,
@@ -519,7 +519,7 @@ static void panic_halt_ipmi_heartbeat(void) &panic_halt_heartbeat_recv_msg, 1);if (rv) -atomic_sub (2 , &panic_done_count); +atomic_sub (1 , &panic_done_count); }static struct ipmi_smi_msg panic_halt_smi_msg = {
@@ -543,12 +543,12 @@ static void panic_halt_ipmi_set_timeout(void)/* Wait for the messages to be free. */ while (atomic_read (&panic_done_count) !=0 )ipmi_poll_interface (watchdog_user); -atomic_add (2 , &panic_done_count); +atomic_add (1 , &panic_done_count); rv =i_ipmi_set_timeout (&panic_halt_smi_msg, &panic_halt_recv_msg, &send_heartbeat_now);if (rv) { -atomic_sub (2 , &panic_done_count); +atomic_sub (1 , &panic_done_count); printk(KERN_WARNING PFX "Unable to extend the watchdog timeout."); }else {
drivers/clk/clk-si5351.c +1 -1
@@ -72,7 +72,7 @@ static const char * const si5351_input_names[] = {"xtal" ,"clkin" };static const char *const si5351_pll_names[] = { -"plla" ,"pllb" ,"vxco" +"si5351_plla" ,"si5351_pllb" ,"si5351_vxco" };static const char *const si5351_msynth_names[] = { "ms0", "ms1", "ms2", "ms3", "ms4", "ms5", "ms6", "ms7"
drivers/cpufreq/sh-cpufreq.c +27 -18
81 lines not on this page · raw message
drivers/gpu/drm/msm/msm_gem.c +10 -4
@@ -83,14 +83,17 @@ static struct page **get_pages(struct drm_gem_object *obj)return p; } + msm_obj->pages = p; + msm_obj->sgt =drm_prime_pages_to_sg (p, npages);if (IS_ERR (msm_obj->sgt)) { +void *ptr =ERR_CAST (msm_obj->sgt); +dev_err (dev->dev,"failed to allocate sgt\n" ); -return ERR_CAST (msm_obj->sgt); + msm_obj->sgt =NULL ; +return ptr; } - msm_obj->pages = p; -/* For non-cached buffers, ensure the new pages are clean * because display controller, GPU, etc. are not coherent: */
@@ -113,7 +116,10 @@ static void put_pages(struct drm_gem_object *obj)if (msm_obj->flags & (MSM_BO_WC |MSM_BO_UNCACHED ))dma_unmap_sg (obj->dev->dev, msm_obj->sgt->sgl, msm_obj->sgt->nents,DMA_BIDIRECTIONAL ); -sg_free_table (msm_obj->sgt); + +if (msm_obj->sgt) +sg_free_table (msm_obj->sgt); +kfree (msm_obj->sgt);if (iommu_present (&platform_bus_type))
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c +5 -0
@@ -280,7 +280,12 @@ static int dmm_txn_commit(struct dmm_txn *txn, bool wait) msecs_to_jiffies(1)) <= 0) {dev_err (dmm->dev,"timed out waiting for done\n" ); ret = -ETIMEDOUT ; + goto cleanup; } + +/* Check the engine status before continue */ + ret =wait_status (engine,DMM_PATSTATUS_READY | +DMM_PATSTATUS_VALID |DMM_PATSTATUS_DONE ); } cleanup:
drivers/hsi/clients/ssi_protocol.c +3 -2
@@ -976,7 +976,7 @@ static int ssip_pn_xmit(struct sk_buff *skb, struct net_device *dev) goto drop;/* Pad to 32-bits - FIXME: Revisit*/ if ((skb->len &3 ) &&skb_pad (skb,4 - (skb->len &3 ))) - goto drop; + goto inc_dropped;/* * Modem sends Phonet messages over SSI with its own endianess...
@@ -1028,8 +1028,9 @@ static int ssip_pn_xmit(struct sk_buff *skb, struct net_device *dev) drop2:hsi_free_msg (msg); drop: - dev->stats.tx_dropped++;dev_kfree_skb (skb); +inc_dropped: + dev->stats.tx_dropped++;return 0 ; }
drivers/i2c/busses/i2c-scmi.c +4 -0
@@ -18,6 +18,9 @@#define ACPI_SMBUS_HC_CLASS "smbus"#define ACPI_SMBUS_HC_DEVICE_NAME "cmi" +/* SMBUS HID definition as supported by Microsoft Windows */ +#define ACPI_SMBUS_MS_HID "SMB0001" +ACPI_MODULE_NAME ("smbus_cmi" );struct smbus_methods_t {
@@ -51,6 +54,7 @@ static const struct smbus_methods_t ibm_smbus_methods = {static const struct acpi_device_id acpi_smbus_cmi_ids[] = { {"SMBUS01" , (kernel_ulong_t)&smbus_methods}, {ACPI_SMBUS_IBM_HID , (kernel_ulong_t)&ibm_smbus_methods}, + {ACPI_SMBUS_MS_HID , (kernel_ulong_t)&smbus_methods}, {"" ,0 } };MODULE_DEVICE_TABLE (acpi, acpi_smbus_cmi_ids);
drivers/infiniband/core/cma.c +4 -1
@@ -3350,6 +3350,9 @@ int rdma_join_multicast(struct rdma_cm_id *id, struct sockaddr *addr,struct cma_multicast *mc;int ret; +if (!id->device) +return -EINVAL ; + id_priv = container_of(id, struct rdma_id_private, id);if (!cma_comp (id_priv,RDMA_CM_ADDR_BOUND ) && !cma_comp (id_priv,RDMA_CM_ADDR_RESOLVED ))
@@ -3632,7 +3635,7 @@ static int cma_get_id_stats(struct sk_buff *skb, struct netlink_callback *cb) RDMA_NL_RDMA_CM_ATTR_SRC_ADDR)) goto out;if (ibnl_put_attr (skb, nlh, -rdma_addr_size (cma_src_addr (id_priv)), +rdma_addr_size (cma_dst_addr (id_priv)),cma_dst_addr (id_priv),RDMA_NL_RDMA_CM_ATTR_DST_ADDR )) goto out;
drivers/infiniband/ulp/ipoib/ipoib_ib.c +13 -0
@@ -955,6 +955,19 @@ static inline int update_parent_pkey(struct ipoib_dev_priv *priv)*/ priv->dev->broadcast[8 ] = priv->pkey >>8 ; priv->dev->broadcast[9 ] = priv->pkey &0xff ; + +/* +* Update the broadcast address in the priv->broadcast object, +* in case it already exists, otherwise no one will do that. +*/ +if (priv->broadcast) { +spin_lock_irq (&priv->lock); +memcpy (priv->broadcast->mcmember.mgid.raw, + priv->dev->broadcast +4 , +sizeof (union ib_gid )); +spin_unlock_irq (&priv->lock); + } +return 0 ; }
drivers/infiniband/ulp/ipoib/ipoib_main.c +16 -0
@@ -488,6 +488,22 @@ static void path_rec_completion(int status,spin_lock_irqsave (&priv->lock, flags);if (!IS_ERR_OR_NULL (ah)) { +/* +* pathrec.dgid is used as the database key from the LLADDR, +* it must remain unchanged even if the SA returns a different +* GID to use in the AH. +*/ +if (memcmp (pathrec->dgid.raw, path->pathrec.dgid.raw, +sizeof (union ib_gid ))) { +ipoib_dbg ( + priv, +"%s got PathRec for gid %pI6 while asked for %pI6\n" , + dev->name, pathrec->dgid.raw, + path->pathrec.dgid.raw); +memcpy (pathrec->dgid.raw, path->pathrec.dgid.raw, +sizeof (union ib_gid )); + } + path->pathrec = *pathrec; old_ah = path->ah;
drivers/input/touchscreen/ar1021_i2c.c +1 -1
@@ -152,7 +152,7 @@ static int __maybe_unused ar1021_i2c_resume(struct device *dev) static SIMPLE_DEV_PM_OPS(ar1021_i2c_pm, ar1021_i2c_suspend, ar1021_i2c_resume);static const struct i2c_device_id ar1021_i2c_id[] = { - {"MICROCHIP_AR1021_I2C" ,0 }, + {"ar1021" ,0 }, { }, };MODULE_DEVICE_TABLE (i2c, ar1021_i2c_id);
drivers/md/raid10.c +1 -0
@@ -4132,6 +4132,7 @@ static int raid10_start_reshape(struct mddev *mddev) diff =0 ;if (first || diff < min_offset_diff) min_offset_diff = diff; + first =0 ; } }
drivers/media/dvb-core/dvb_ca_en50221.c +23 -0
@@ -749,6 +749,29 @@ static int dvb_ca_en50221_write_data(struct dvb_ca_private *ca, int slot, u8 * b goto exit; } +/* +* It may need some time for the CAM to settle down, or there might +* be a race condition between the CAM, writing HC and our last +* check for DA. This happens, if the CAM asserts DA, just after +* checking DA before we are setting HC. In this case it might be +* a bug in the CAM to keep the FR bit, the lower layer/HW +* communication requires a longer timeout or the CAM needs more +* time internally. But this happens in reality! +* We need to read the status from the HW again and do the same +* we did for the previous check for DA +*/ + status = ca->pub->read_cam_control (ca->pub, slot,CTRLIF_STATUS ); +if (status <0 ) + goto exit; + +if (status & (STATUSREG_DA |STATUSREG_RE )) { +if (status &STATUSREG_DA ) +dvb_ca_en50221_thread_wakeup (ca); + + status = -EAGAIN ; + goto exit; + } +/* send the amount of data */ if ((status = ca->pub->write_cam_control (ca->pub, slot,CTRLIF_SIZE_HIGH , bytes_write >>8 )) !=0 ) goto exit;
drivers/media/dvb-frontends/si2168.c +3 -0
@@ -14,6 +14,8 @@* GNU General Public License for more details. */ +#include <linux/delay.h> +#include "si2168_priv.h" static const struct dvb_frontend_ops si2168_ops;
@@ -380,6 +382,7 @@ static int si2168_init(struct dvb_frontend *fe)if (ret) goto err; +udelay (100 );memcpy (cmd.args,"\x85" ,1 ); cmd.wlen =1 ; cmd.rlen =1 ;
drivers/media/pci/bt8xx/bt878.c +1 -2
@@ -425,8 +425,7 @@ static int bt878_probe(struct pci_dev *dev, const struct pci_device_id *pci_id) bt878_num);if (bt878_num >=BT878_MAX ) {printk (KERN_ERR "bt878: Too many devices inserted\n" ); - result = -ENOMEM ; - goto fail0; +return -ENOMEM ; }if (pci_enable_device (dev))return -EIO ;
drivers/mfd/palmas.c +14 -0
@@ -430,6 +430,20 @@ static void palmas_power_off(void) {unsigned int addr;int ret, slave; +struct device_node *np = palmas_dev->dev->of_node; + +if (of_property_read_bool (np,"ti,palmas-override-powerhold" )) { + addr =PALMAS_BASE_TO_REG (PALMAS_PU_PD_OD_BASE , +PALMAS_PRIMARY_SECONDARY_PAD2 ); + slave =PALMAS_BASE_TO_SLAVE (PALMAS_PU_PD_OD_BASE ); + + ret =regmap_update_bits (palmas_dev->regmap[slave], addr, +PALMAS_PRIMARY_SECONDARY_PAD2_GPIO_7_MASK ,0 ); +if (ret) +dev_err (palmas_dev->dev, +"Unable to write PRIMARY_SECONDARY_PAD2 %d\n" , + ret); + }if (!palmas_dev)return ;
drivers/mmc/core/core.c +8 -0
@@ -2656,6 +2656,14 @@ int mmc_pm_notify(struct notifier_block *notify_block,if (!err)break ; +if (!mmc_card_is_removable (host)) { +dev_warn (mmc_dev (host), +"pre_suspend failed for non-removable host: " +"%d\n" , err); +/* Avoid removing non-removable hosts */ +break ; + } +/* Calling bus_ops->remove() with a claimed host can deadlock */ host->bus_ops->remove (host);mmc_claim_host (host);
drivers/mmc/host/omap_hsmmc.c +2 -2
@@ -1757,8 +1757,8 @@ static int omap_hsmmc_configure_wake_irq(struct omap_hsmmc_host *host)*/ if (host->pdata->controller_flags &OMAP_HSMMC_SWAKEUP_MISSING ) {struct pinctrl *p =devm_pinctrl_get (host->dev); -if (!p) { - ret = -ENODEV ; +if (IS_ERR (p)) { + ret =PTR_ERR (p); goto err_free_irq; }if (IS_ERR (pinctrl_lookup_state (p,PINCTRL_STATE_DEFAULT ))) {
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c +1 -0
@@ -2024,6 +2024,7 @@ static void bnx2x_set_rx_buf_size(struct bnx2x *bp)ETH_OVREHEAD + mtu +BNX2X_FW_RX_ALIGN_END ; + fp->rx_buf_size =SKB_DATA_ALIGN (fp->rx_buf_size);/* Note : rx_buf_size doesn't take into account NET_SKB_PAD */ if (fp->rx_buf_size +NET_SKB_PAD <=PAGE_SIZE ) fp->rx_frag_size = fp->rx_buf_size +NET_SKB_PAD ;
drivers/net/ethernet/intel/e1000e/netdev.c +6 -0
@@ -3507,6 +3507,12 @@ s32 e1000e_get_base_timinca(struct e1000_adapter *adapter, u32 *timinca)switch (hw->mac.type) {case e1000_pch2lan: +/* Stable 96MHz frequency */ + incperiod = INCPERIOD_96MHz; + incvalue = INCVALUE_96MHz; + shift = INCVALUE_SHIFT_96MHz; + adapter->cc.shift = shift + INCPERIOD_SHIFT_96MHz; +break ;case e1000_pch_lpt:/* On I217, the clock frequency is 25MHz or 96MHz as * indicated by the System Clock Frequency Indication
drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c +2 -0
@@ -126,6 +126,8 @@ static int qlcnic_sriov_virtid_fn(struct qlcnic_adapter *adapter, int vf_id)return 0 ; pos =pci_find_ext_capability (dev,PCI_EXT_CAP_ID_SRIOV ); +if (!pos) +return 0 ;pci_read_config_word (dev, pos +PCI_SRIOV_VF_OFFSET , &offset);pci_read_config_word (dev, pos +PCI_SRIOV_VF_STRIDE , &stride);
drivers/net/wan/pc300too.c +1 -0
@@ -347,6 +347,7 @@ static int pc300_pci_init_one(struct pci_dev *pdev, card->rambase == NULL) {pr_err ("ioremap() failed\n" );pc300_pci_remove_one (pdev); +return -ENOMEM ; }/* PLX PCI 9050 workaround for local configuration register read bug */
drivers/net/wireless/ath/regd.c +12 -7
@@ -254,8 +254,12 @@ bool ath_is_49ghz_allowed(u16 regdomain)EXPORT_SYMBOL (ath_is_49ghz_allowed);/* Frequency is one where radar detection is required */ -static bool ath_is_radar_freq (u16 center_freq) +static bool ath_is_radar_freq (u16 center_freq, +struct ath_regulatory *reg) + { +if (reg->country_code ==CTRY_INDIA ) +return (center_freq >=5500 && center_freq <=5700 );return (center_freq >=5260 && center_freq <=5700 ); }
@@ -306,7 +310,7 @@ __ath_reg_apply_beaconing_flags(struct wiphy *wiphy, enum nl80211_reg_initiator initiator, struct ieee80211_channel *ch) { - if (ath_is_radar_freq(ch->center_freq) || + if (ath_is_radar_freq(ch->center_freq, reg) || (ch->flags & IEEE80211_CHAN_RADAR)) return;
@@ -395,8 +399,9 @@ ath_reg_apply_ir_flags(struct wiphy *wiphy, } } -/* Always apply Radar/DFS rules on freq range 5260 MHz - 5700 MHz */ -static void ath_reg_apply_radar_flags (struct wiphy *wiphy) +/* Always apply Radar/DFS rules on freq range 5500 MHz - 5700 MHz */ +static void ath_reg_apply_radar_flags (struct wiphy *wiphy, +struct ath_regulatory *reg) {struct ieee80211_supported_band *sband;struct ieee80211_channel *ch;
@@ -409,7 +414,7 @@ static void ath_reg_apply_radar_flags(struct wiphy *wiphy)for (i =0 ; i < sband->n_channels; i++) { ch = &sband->channels[i]; -if (!ath_is_radar_freq (ch->center_freq)) +if (!ath_is_radar_freq (ch->center_freq, reg))continue ;/* We always enable radar detection/DFS on this * frequency range. Additionally we also apply on
@@ -505,7 +510,7 @@ void ath_reg_notifier_apply(struct wiphy *wiphy, struct ath_common *common = container_of(reg, struct ath_common, regulatory);/* We always apply this */ -ath_reg_apply_radar_flags (wiphy); +ath_reg_apply_radar_flags (wiphy, reg);/* * This would happen when we have sent a custom regulatory request
@@ -653,7 +658,7 @@ ath_regd_init_wiphy(struct ath_regulatory *reg, }wiphy_apply_custom_regulatory (wiphy, regd); -ath_reg_apply_radar_flags (wiphy); +ath_reg_apply_radar_flags (wiphy, reg);ath_reg_apply_world_flags (wiphy,NL80211_REGDOM_SET_BY_DRIVER , reg);return 0 ; }
drivers/net/wireless/rndis_wlan.c +4 -0
@@ -3425,6 +3425,10 @@ static int rndis_wlan_bind(struct usbnet *usbdev, struct usb_interface *intf)/* because rndis_command() sleeps we need to use workqueue */ priv->workqueue =create_singlethread_workqueue ("rndis_wlan" ); +if (!priv->workqueue) { +wiphy_free (wiphy); +return -ENOMEM ; + }INIT_WORK (&priv->work, rndis_wlan_worker);INIT_DELAYED_WORK (&priv->dev_poller_work, rndis_device_poller);INIT_DELAYED_WORK (&priv->scan_work, rndis_get_scan_results);
drivers/pinctrl/core.c +17 -7
@@ -977,19 +977,16 @@ struct pinctrl_state *pinctrl_lookup_state(struct pinctrl *p,EXPORT_SYMBOL_GPL (pinctrl_lookup_state);/** -* pinctrl_select_state() - select/activate/program a pinctrl state to HW +* pinctrl_commit_state() - select/activate/program a pinctrl state to HW * @p: the pinctrl handle for the device that requests configuration * @state: the state handle to select/activate/program */ -int pinctrl_select_state (struct pinctrl *p,struct pinctrl_state *state) +static int pinctrl_commit_state (struct pinctrl *p,struct pinctrl_state *state) {struct pinctrl_setting *setting, *setting2;struct pinctrl_state *old_state = p->state;int ret; -if (p->state == state) -return 0 ; -if (p->state) {/* * For each pinmux setting in the old state, forget SW's record
@@ -1053,6 +1050,19 @@ unapply_new_state:return ret; } + +/** +* pinctrl_select_state() - select/activate/program a pinctrl state to HW +* @p: the pinctrl handle for the device that requests configuration +* @state: the state handle to select/activate/program +*/ +int pinctrl_select_state (struct pinctrl *p,struct pinctrl_state *state) +{ +if (p->state == state) +return 0 ; + +return pinctrl_commit_state (p, state); +}EXPORT_SYMBOL_GPL (pinctrl_select_state);static void devm_pinctrl_release (struct device *dev,void *res)
@@ -1221,7 +1231,7 @@ void pinctrl_unregister_map(struct pinctrl_map const *map)int pinctrl_force_sleep (struct pinctrl_dev *pctldev) {if (!IS_ERR (pctldev->p) && !IS_ERR (pctldev->hog_sleep)) -return pinctrl_select_state (pctldev->p, pctldev->hog_sleep); +return pinctrl_commit_state (pctldev->p, pctldev->hog_sleep);return 0 ; }EXPORT_SYMBOL_GPL (pinctrl_force_sleep);
@@ -1233,7 +1243,7 @@ EXPORT_SYMBOL_GPL(pinctrl_force_sleep);int pinctrl_force_default (struct pinctrl_dev *pctldev) {if (!IS_ERR (pctldev->p) && !IS_ERR (pctldev->hog_default)) -return pinctrl_select_state (pctldev->p, pctldev->hog_default); +return pinctrl_commit_state (pctldev->p, pctldev->hog_default);return 0 ; }EXPORT_SYMBOL_GPL (pinctrl_force_default);
drivers/platform/x86/asus-nb-wmi.c +9 -0
@@ -99,6 +99,15 @@ static const struct dmi_system_id asus_quirks[] = {*/ .driver_data = &quirk_asus_wapf4, }, + { + .callback = dmi_matched, + .ident = "ASUSTeK COMPUTER INC. X302UA", + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"ASUSTeK COMPUTER INC." ), + DMI_MATCH(DMI_PRODUCT_NAME, "X302UA"), + }, + .driver_data = &quirk_asus_wapf4, + }, { .callback = dmi_matched, .ident = "ASUSTeK COMPUTER INC. X401U",
drivers/power/pda_power.c +27 -22
109 lines not on this page · raw message
drivers/scsi/lpfc/lpfc_sli.c +3 -0
@@ -13469,6 +13469,9 @@ lpfc_wq_create(struct lpfc_hba *phba, struct lpfc_queue *wq,case LPFC_Q_CREATE_VERSION_1 :bf_set (lpfc_mbx_wq_create_wqe_count, &wq_create->u.request_1, wq->entry_count); +bf_set (lpfc_mbox_hdr_version, &shdr->request, +LPFC_Q_CREATE_VERSION_1 ); +switch (wq->entry_size) {default :case 64 :
drivers/scsi/mac_esp.c +23 -10
@@ -55,6 +55,7 @@ struct mac_esp_priv {int error; };static struct esp *esp_chips[2 ]; +static DEFINE_SPINLOCK (esp_chips_lock);#define MAC_ESP_GET_PRIV (esp) ((struct mac_esp_priv *) \ platform_get_drvdata((struct platform_device *) \
@@ -562,15 +563,18 @@ static int esp_mac_probe(struct platform_device *dev) } host->irq =IRQ_MAC_SCSI ; - esp_chips[dev->id] = esp; -mb (); -if (esp_chips[!dev->id] ==NULL ) { - err =request_irq (host->irq, mac_scsi_esp_intr,0 ,"ESP" ,NULL ); -if (err <0 ) { - esp_chips[dev->id] =NULL ; - goto fail_free_priv; - } + +/* The request_irq() call is intended to succeed for the first device +* and fail for the second device. +*/ + err =request_irq (host->irq, mac_scsi_esp_intr,0 ,"ESP" ,NULL ); +spin_lock (&esp_chips_lock); +if (err <0 && esp_chips[!dev->id] ==NULL ) { +spin_unlock (&esp_chips_lock); + goto fail_free_priv; } + esp_chips[dev->id] = esp; +spin_unlock (&esp_chips_lock); err =scsi_esp_register (esp, &dev->dev);if (err)
@@ -579,8 +583,13 @@ static int esp_mac_probe(struct platform_device *dev)return 0 ; fail_free_irq: -if (esp_chips[!dev->id] ==NULL ) +spin_lock (&esp_chips_lock); + esp_chips[dev->id] =NULL ; +if (esp_chips[!dev->id] ==NULL ) { +spin_unlock (&esp_chips_lock);free_irq (host->irq, esp); + }else +spin_unlock (&esp_chips_lock); fail_free_priv:kfree (mep); fail_free_command_block:
@@ -599,9 +608,13 @@ static int esp_mac_remove(struct platform_device *dev)scsi_esp_unregister (esp); +spin_lock (&esp_chips_lock); esp_chips[dev->id] =NULL ; -if (!(esp_chips[0 ] || esp_chips[1 ])) +if (esp_chips[!dev->id] ==NULL ) { +spin_unlock (&esp_chips_lock);free_irq (irq,NULL ); + }else +spin_unlock (&esp_chips_lock);kfree (mep);
drivers/scsi/virtio_scsi.c +24 -0
@@ -28,6 +28,7 @@#include <scsi/scsi_device.h> #include <scsi/scsi_cmnd.h> #include <scsi/scsi_tcq.h> +#include <scsi/scsi_devinfo.h> #include <linux/seqlock.h> #define VIRTIO_SCSI_MEMPOOL_SZ 64
@@ -664,6 +665,28 @@ static int virtscsi_device_reset(struct scsi_cmnd *sc)return virtscsi_tmf (vscsi, cmd); } +static int virtscsi_device_alloc (struct scsi_device *sdevice) +{ +/* +* Passed through SCSI targets (e.g. with qemu's 'scsi-block') +* may have transfer limits which come from the host SCSI +* controller or something on the host side other than the +* target itself. +* +* To make this work properly, the hypervisor can adjust the +* target's VPD information to advertise these limits. But +* for that to work, the guest has to look at the VPD pages, +* which we won't do by default if it is an SPC-2 device, even +* if it does actually support it. +* +* So, set the blist to always try to read the VPD pages. +*/ + sdevice->sdev_bflags =BLIST_TRY_VPD_PAGES ; + +return 0 ; +} + +/** * virtscsi_change_queue_depth() - Change a virtscsi target's queue depth * @sdev: Virtscsi target whose queue depth to change
@@ -752,6 +775,7 @@ static struct scsi_host_template virtscsi_host_template_single = { .change_queue_depth = virtscsi_change_queue_depth, .eh_abort_handler = virtscsi_abort, .eh_device_reset_handler = virtscsi_device_reset, + .slave_alloc = virtscsi_device_alloc, .can_queue = 1024, .dma_boundary = UINT_MAX,
drivers/spi/spi-dw-mmio.c +1 -1
@@ -118,8 +118,8 @@ static int dw_spi_mmio_remove(struct platform_device *pdev) {struct dw_spi_mmio *dwsmmio =platform_get_drvdata (pdev); -clk_disable_unprepare (dwsmmio->clk);dw_spi_remove_host (&dwsmmio->dws); +clk_disable_unprepare (dwsmmio->clk);return 0 ; }
drivers/video/console/vgacon.c +26 -8
@@ -409,7 +409,10 @@ static const char *vgacon_startup(void) vga_video_port_val =VGA_CRT_DM ;if ((screen_info.orig_video_ega_bx &0xff ) !=0x10 ) {static struct resource ega_console_resource = - { .name ="ega" , .start =0x3B0 , .end =0x3BF }; + { .name ="ega" , + .flags =IORESOURCE_IO , + .start =0x3B0 , + .end =0x3BF }; vga_video_type =VIDEO_TYPE_EGAM ; vga_vram_size =0x8000 ; display_desc ="EGA+" ;
@@ -417,9 +420,15 @@ static const char *vgacon_startup(void) &ega_console_resource); }else {static struct resource mda1_console_resource = - { .name ="mda" , .start =0x3B0 , .end =0x3BB }; + { .name ="mda" , + .flags =IORESOURCE_IO , + .start =0x3B0 , + .end =0x3BB };static struct resource mda2_console_resource = - { .name ="mda" , .start =0x3BF , .end =0x3BF }; + { .name ="mda" , + .flags =IORESOURCE_IO , + .start =0x3BF , + .end =0x3BF }; vga_video_type =VIDEO_TYPE_MDA ; vga_vram_size =0x2000 ; display_desc ="*MDA" ;
@@ -441,15 +450,21 @@ static const char *vgacon_startup(void) vga_vram_size =0x8000 ;if (!screen_info.orig_video_isVGA) { -static struct resource ega_console_resource - = { .name ="ega" , .start =0x3C0 , .end =0x3DF }; +static struct resource ega_console_resource = + { .name ="ega" , + .flags =IORESOURCE_IO , + .start =0x3C0 , + .end =0x3DF }; vga_video_type =VIDEO_TYPE_EGAC ; display_desc ="EGA" ;request_resource (&ioport_resource, &ega_console_resource); }else { -static struct resource vga_console_resource - = { .name ="vga+" , .start =0x3C0 , .end =0x3DF }; +static struct resource vga_console_resource = + { .name ="vga+" , + .flags =IORESOURCE_IO , + .start =0x3C0 , + .end =0x3DF }; vga_video_type =VIDEO_TYPE_VGAC ; display_desc ="VGA+" ; request_resource(&ioport_resource,
@@ -493,7 +508,10 @@ static const char *vgacon_startup(void) } }else {static struct resource cga_console_resource = - { .name ="cga" , .start =0x3D4 , .end =0x3D5 }; + { .name ="cga" , + .flags =IORESOURCE_IO , + .start =0x3D4 , + .end =0x3D5 }; vga_video_type =VIDEO_TYPE_CGA ; vga_vram_size =0x2000 ; display_desc ="*CGA" ;
drivers/video/fbdev/sm501fb.c +1 -0
@@ -1600,6 +1600,7 @@ static int sm501fb_start(struct sm501fb_info *info, info->fbmem =ioremap (res->start,resource_size (res));if (info->fbmem ==NULL ) {dev_err (dev,"cannot remap framebuffer\n" ); + ret = -ENXIO ; goto err_mem_res; }
drivers/video/fbdev/udlfb.c +12 -2
@@ -1490,15 +1490,25 @@ static struct device_attribute fb_device_attrs[] = {static int dlfb_select_std_channel (struct dlfb_data *dev) {int ret; -u8 set_def_chn[] = {0x57 ,0xCD ,0xDC ,0xA7 , +void *buf; +static const u8 set_def_chn[] = { +0x57 ,0xCD ,0xDC ,0xA7 ,0x1C ,0x88 ,0x5E ,0x15 ,0x60 ,0xFE ,0xC6 ,0x97 ,0x16 ,0x3D ,0x47 ,0xF2 }; + buf =kmemdup (set_def_chn,sizeof (set_def_chn),GFP_KERNEL ); + +if (!buf) +return -ENOMEM ; + ret =usb_control_msg (dev->udev,usb_sndctrlpipe (dev->udev,0 ),NR_USB_REQUEST_CHANNEL , (USB_DIR_OUT |USB_TYPE_VENDOR ),0 ,0 , - set_def_chn,sizeof (set_def_chn),USB_CTRL_SET_TIMEOUT ); + buf,sizeof (set_def_chn),USB_CTRL_SET_TIMEOUT ); + +kfree (buf); +return ret; }
fs/btrfs/send.c +21 -2
@@ -4663,13 +4663,19 @@ static int is_extent_unchanged(struct send_ctx *sctx,while (key.offset < ekey->offset + left_len) { ei = btrfs_item_ptr(eb, slot, struct btrfs_file_extent_item); right_type =btrfs_file_extent_type (eb, ei); -if (right_type !=BTRFS_FILE_EXTENT_REG ) { +if (right_type !=BTRFS_FILE_EXTENT_REG && + right_type !=BTRFS_FILE_EXTENT_INLINE ) { ret =0 ; goto out; } right_disknr =btrfs_file_extent_disk_bytenr (eb, ei); - right_len =btrfs_file_extent_num_bytes (eb, ei); +if (right_type ==BTRFS_FILE_EXTENT_INLINE ) { + right_len =btrfs_file_extent_inline_len (eb, slot, ei); + right_len =PAGE_ALIGN (right_len); + }else { + right_len =btrfs_file_extent_num_bytes (eb, ei); + } right_offset =btrfs_file_extent_offset (eb, ei); right_gen =btrfs_file_extent_generation (eb, ei);
@@ -4683,6 +4689,19 @@ static int is_extent_unchanged(struct send_ctx *sctx, goto out; } +/* +* We just wanted to see if when we have an inline extent, what +* follows it is a regular extent (wanted to check the above +* condition for inline extents too). This should normally not +* happen but it's possible for example when we have an inline +* compressed extent representing data with a size matching +* the page size (currently the same as sector size). +*/ +if (right_type ==BTRFS_FILE_EXTENT_INLINE ) { + ret =0 ; + goto out; + } + left_offset_fixed = left_offset;if (key.offset < ekey->offset) {/* Fix the right offset for 2a and 7. */
fs/cifs/netmisc.c +3 -3
@@ -980,10 +980,10 @@ struct timespec cnvrtDosUnixTm(__le16 le_date, __le16 le_time, int offset)cifs_dbg (VFS ,"illegal hours %d\n" , st->Hours); days = sd->Day; month = sd->Month; -if ((days >31 ) || (month >12 )) { +if (days <1 || days >31 || month <1 || month >12 ) {cifs_dbg (VFS ,"illegal date, month %d day: %d\n" , month, days); -if (month >12 ) - month =12 ; + days =clamp (days,1 ,31 ); + month =clamp (month,1 ,12 ); } month -=1 ; days += total_days_of_prev_months[month];
kernel/irq/manage.c +3 -1
@@ -1058,8 +1058,10 @@ __setup_irq(unsigned int irq, struct irq_desc *desc, struct irqaction *new)* set the trigger type must match. Also all must * agree on ONESHOT. */ +unsigned int oldtype =irqd_get_trigger_type (&desc->irq_data); +if (!((old->flags & new->flags) &IRQF_SHARED ) || - ((old->flags ^ new->flags) &IRQF_TRIGGER_MASK ) || + (oldtype != (new->flags &IRQF_TRIGGER_MASK )) || ((old->flags ^ new->flags) &IRQF_ONESHOT )) goto mismatch;
net/ipv4/tcp_input.c +9 -7
@@ -5322,10 +5322,6 @@ void tcp_finish_connect(struct sock *sk, struct sk_buff *skb)else tp->pred_flags =0 ; -if (!sock_flag (sk,SOCK_DEAD )) { - sk->sk_state_change (sk); -sk_wake_async (sk,SOCK_WAKE_IO ,POLL_OUT ); - } } static bool tcp_rcv_fastopen_synack(struct sock *sk, struct sk_buff *synack,
@@ -5380,6 +5376,7 @@ static int tcp_rcv_synsent_state_process(struct sock *sk, struct sk_buff *skb,struct tcp_sock *tp =tcp_sk (sk);struct tcp_fastopen_cookie foc = { .len =-1 };int saved_clamp = tp->rx_opt.mss_clamp; +bool fastopen_fail;tcp_parse_options (skb, &tp->rx_opt,0 , &foc);if (tp->rx_opt.saw_tstamp && tp->rx_opt.rcv_tsecr)
@@ -5482,10 +5479,15 @@ static int tcp_rcv_synsent_state_process(struct sock *sk, struct sk_buff *skb,tcp_finish_connect (sk, skb); -if ((tp->syn_fastopen || tp->syn_data) && -tcp_rcv_fastopen_synack (sk, skb, &foc)) -return -1 ; + fastopen_fail = (tp->syn_fastopen || tp->syn_data) && +tcp_rcv_fastopen_synack (sk, skb, &foc); +if (!sock_flag (sk,SOCK_DEAD )) { + sk->sk_state_change (sk); +sk_wake_async (sk,SOCK_WAKE_IO ,POLL_OUT ); + } +if (fastopen_fail) +return -1 ;if (sk->sk_write_pending || icsk->icsk_accept_queue.rskq_defer_accept || icsk->icsk_ack.pingpong) {
net/ipv6/ndisc.c +2 -0
@@ -1646,6 +1646,8 @@ static int ndisc_netdev_event(struct notifier_block *this, unsigned long event,case NETDEV_CHANGEADDR :neigh_changeaddr (&nd_tbl, dev);fib6_run_gc (0 , net, false); +/* fallthrough */ +case NETDEV_UP : idev =in6_dev_get (dev);if (!idev)break ;
net/mac80211/status.c +1 -0
@@ -194,6 +194,7 @@ static void ieee80211_frame_acked(struct sta_info *sta, struct sk_buff *skb) }if (ieee80211_is_action (mgmt->frame_control) && + !ieee80211_has_protected (mgmt->frame_control) && mgmt->u.action.category ==WLAN_CATEGORY_HT && mgmt->u.action.u.ht_smps.action ==WLAN_HT_ACTION_SMPS &&ieee80211_sdata_running (sdata)) {
sound/pci/hda/patch_realtek.c +10 -2
@@ -6493,6 +6493,7 @@ enum {ALC668_FIXUP_DELL_DISABLE_AAMIX ,ALC668_FIXUP_DELL_XPS13 , ALC662_FIXUP_ASUS_Nx50, + ALC668_FIXUP_ASUS_Nx51_HEADSET_MODE, ALC668_FIXUP_ASUS_Nx51, };
@@ -6740,14 +6741,21 @@ static const struct hda_fixup alc662_fixups[] = { .chained = true, .chain_id =ALC662_FIXUP_BASS_1A }, + [ALC668_FIXUP_ASUS_Nx51_HEADSET_MODE] = { + .type = HDA_FIXUP_FUNC, + .v.func = alc_fixup_headset_mode_alc668, + .chain_id =ALC662_FIXUP_BASS_CHMAP + }, [ALC668_FIXUP_ASUS_Nx51] = { .type = HDA_FIXUP_PINS, .v.pins = (const struct hda_pintbl []) { - {0x1a ,0x90170151 },/* bass speaker */ + {0x19 ,0x03a1913d },/* use as headphone mic, without its own jack detect */ + {0x1a ,0x90170151 },/* bass speaker */ + {0x1b ,0x03a1113c },/* use as headset mic, without its own jack detect */ {} }, .chained = true, - .chain_id = ALC662_FIXUP_BASS_CHMAP, + .chain_id = ALC668_FIXUP_ASUS_Nx51_HEADSET_MODE, }, };
Quoted 9 lines · Greg KH
I'm announcing the release of the 3.18.102 kernel.
All users of the 3.18 kernel series must upgrade.
The updated 3.18.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
linux-3.18.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
Builds and boots on the OnePlus3T, no regressions noticed so far. Thanks!
Quoted 3 lines
thanks,
greg k-h
Signature · 2 lines
Harsh Shandilya PRJKT Development LLC
Hello,
Until 3.18.102, it looks like following patch series for v4l2 seems missed.
273caa2 media: v4l2-compat-ioctl32.c: make ctrl_is_pointer work for subdevs a1dfb4c media: v4l2-compat-ioctl32.c: refactor compat ioctl32 logic d83a824 media: v4l2-compat-ioctl32.c: don't copy back the result for certain errors
169f24c media: v4l2-compat-ioctl32.c: drop pr_info for unknown buffer type a751be5 media: v4l2-compat-ioctl32.c: copy clip list in put_v4l2_window32 b8c601e media: v4l2-compat-ioctl32.c: fix ctrl_is_pointer 8ed5a59 media: v4l2-compat-ioctl32.c: copy m.userptr in put_v4l2_plane32 333b1e9 media: v4l2-compat-ioctl32.c: avoid sizeof(type) 486c521 media: v4l2-compat-ioctl32.c: move 'helper' functions to __get/put_v4l2_format32
b7b957d media: v4l2-compat-ioctl32.c: fix the indentation 3ee6d04 media: v4l2-compat-ioctl32.c: add missing VIDIOC_PREPARE_BUF 181a4a2 media: v4l2-ioctl.c: don't copy back the result for -ENOTTY
Any plan to apply the series?
Best Regards,
- Seung-Woo Kim
Quoted 13 lines · Greg KH
I'm announcing the release of the 3.18.102 kernel.
All users of the 3.18 kernel series must upgrade.
The updated 3.18.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.gitlinux-3.18.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=summarythanks,
greg k-h
Greg KH
maintainerQuoted 4 lines · Seung-Woo Kim
Hello,
Until 3.18.102, it looks like following patch series for v4l2 seems missed.
Quoted 14 lines
273caa2 media:
v4l2-compat-ioctl32.c: makectrl_is_pointerwork for subdevs a1dfb4c media:v4l2-compat-ioctl32.c: refactor compat ioctl32 logic d83a824 media:v4l2-compat-ioctl32.c: don't copy back the result for certain errors
169f24c media:v4l2-compat-ioctl32.c: droppr_infofor unknown buffer type a751be5 media:v4l2-compat-ioctl32.c: copy clip list input_v4l2_window32b8c601e media:v4l2-compat-ioctl32.c: fixctrl_is_pointer8ed5a59 media:v4l2-compat-ioctl32.c: copy m.userptr input_v4l2_plane32333b1e9 media:v4l2-compat-ioctl32.c: avoid sizeof(type) 486c521 media:v4l2-compat-ioctl32.c: move 'helper' functions to __get/put_v4l2_format32
b7b957d media:v4l2-compat-ioctl32.c: fix the indentation 3ee6d04 media:v4l2-compat-ioctl32.c: add missingVIDIOC_PREPARE_BUF181a4a2 media:v4l2-ioctl.c: don't copy back the result for-ENOTTY
That is correct.
Quoted 1 line
Any plan to apply the series?
Do you have a backported version of this series that will apply to that kernel tree? If so, I'll be glad to apply it but I'm pretty sure the reason I did not apply them was because they did not apply correctly.
Also, are you even sure you need these patches for 3.18.y? Do you have a v4l2 device that relies on these fixes?
thanks,
greg k-h
Quoted 20 lines · Greg KH
Quoted 4 lines · Seung-Woo Kim
Hello,
Until 3.18.102, it looks like following patch series for v4l2 seems missed.
Quoted 14 lines
273caa2 media:
v4l2-compat-ioctl32.c: makectrl_is_pointerwork for subdevs a1dfb4c media:v4l2-compat-ioctl32.c: refactor compat ioctl32 logic d83a824 media:v4l2-compat-ioctl32.c: don't copy back the result for certain errors
169f24c media:v4l2-compat-ioctl32.c: droppr_infofor unknown buffer type a751be5 media:v4l2-compat-ioctl32.c: copy clip list input_v4l2_window32b8c601e media:v4l2-compat-ioctl32.c: fixctrl_is_pointer8ed5a59 media:v4l2-compat-ioctl32.c: copy m.userptr input_v4l2_plane32333b1e9 media:v4l2-compat-ioctl32.c: avoid sizeof(type) 486c521 media:v4l2-compat-ioctl32.c: move 'helper' functions to __get/put_v4l2_format32
b7b957d media:v4l2-compat-ioctl32.c: fix the indentation 3ee6d04 media:v4l2-compat-ioctl32.c: add missingVIDIOC_PREPARE_BUF181a4a2 media:v4l2-ioctl.c: don't copy back the result for-ENOTTY
Quoted 7 lines
That is correct.
Quoted 1 line
Any plan to apply the series?
Do you have a backported version of this series that will apply to that kernel tree? If so, I'll be glad to apply it but I'm pretty sure the reason I did not apply them was because they did not apply correctly.
I dit not do it myself. I just checked the series is applied on other stable trees.
Quoted 3 lines
Also, are you even sure you need these patches for 3.18.y? Do you have a v4l2 device that relies on these fixes?
I've just expected A-34624167 is also fixed from other ARM64 devices based on 3.18.y.
Best Regards,
- Seung-Woo Kim
Quoted 7 lines
thanks,
greg k-h
Signature · 3 lines
Seung-Woo Kim Samsung Research --
Greg KH
maintainerQuoted 25 lines · Seung-Woo Kim
Quoted 22 lines · Greg KH
Quoted 4 lines · Seung-Woo Kim
Hello,
Until 3.18.102, it looks like following patch series for v4l2 seems missed.
Quoted 14 lines
273caa2 media:
v4l2-compat-ioctl32.c: makectrl_is_pointerwork for subdevs a1dfb4c media:v4l2-compat-ioctl32.c: refactor compat ioctl32 logic d83a824 media:v4l2-compat-ioctl32.c: don't copy back the result for certain errors
169f24c media:v4l2-compat-ioctl32.c: droppr_infofor unknown buffer type a751be5 media:v4l2-compat-ioctl32.c: copy clip list input_v4l2_window32b8c601e media:v4l2-compat-ioctl32.c: fixctrl_is_pointer8ed5a59 media:v4l2-compat-ioctl32.c: copy m.userptr input_v4l2_plane32333b1e9 media:v4l2-compat-ioctl32.c: avoid sizeof(type) 486c521 media:v4l2-compat-ioctl32.c: move 'helper' functions to __get/put_v4l2_format32
b7b957d media:v4l2-compat-ioctl32.c: fix the indentation 3ee6d04 media:v4l2-compat-ioctl32.c: add missingVIDIOC_PREPARE_BUF181a4a2 media:v4l2-ioctl.c: don't copy back the result for-ENOTTYThat is correct.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Any plan to apply the series?
Do you have a backported version of this series that will apply to that kernel tree? If so, I'll be glad to apply it but I'm pretty sure the reason I did not apply them was because they did not apply correctly.
I dit not do it myself. I just checked the series is applied on other stable trees.
Yes because those trees needed that series. Also, 3.18.y is barely alive, if you need to rely on this kernel tree for a device, you are already maintaining it yourself, right?
Quoted 5 lines
Quoted 2 lines
Also, are you even sure you need these patches for 3.18.y? Do you have a v4l2 device that relies on these fixes?
I've just expected A-34624167 is also fixed from other ARM64 devices based on 3.18.y.
What is "A-34624167"?
Again, do you have a v4l2 device that uses this interface that needs these fixes? In looking at the 3.18.y tree, that's a very small list of devices that are very old and rare from what I remember.
And if you do have such a device, can you just move to 4.4.y instead? If you need these patches on 3.18.y, I'll be glad to apply them if you provide a backported series that you can verify work for you.
thanks,
greg k-h
Em Tue, 27 Mar 2018 16:31:49 +0900
Seung-Woo Kim <[email protected]> escreveu:
Quoted 23 lines · Greg KH
Quoted 22 lines · Seung-Woo Kim
Quoted 4 lines
Hello,
Until 3.18.102, it looks like following patch series for v4l2 seems missed.
Quoted 14 lines
273caa2 media:
v4l2-compat-ioctl32.c: makectrl_is_pointerwork for subdevs a1dfb4c media:v4l2-compat-ioctl32.c: refactor compat ioctl32 logic d83a824 media:v4l2-compat-ioctl32.c: don't copy back the result for certain errors
169f24c media:v4l2-compat-ioctl32.c: droppr_infofor unknown buffer type a751be5 media:v4l2-compat-ioctl32.c: copy clip list input_v4l2_window32b8c601e media:v4l2-compat-ioctl32.c: fixctrl_is_pointer8ed5a59 media:v4l2-compat-ioctl32.c: copy m.userptr input_v4l2_plane32333b1e9 media:v4l2-compat-ioctl32.c: avoid sizeof(type) 486c521 media:v4l2-compat-ioctl32.c: move 'helper' functions to __get/put_v4l2_format32
b7b957d media:v4l2-compat-ioctl32.c: fix the indentation 3ee6d04 media:v4l2-compat-ioctl32.c: add missingVIDIOC_PREPARE_BUF181a4a2 media:v4l2-ioctl.c: don't copy back the result for-ENOTTYThat is correct.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Any plan to apply the series?
Do you have a backported version of this series that will apply to that kernel tree? If so, I'll be glad to apply it but I'm pretty sure the reason I did not apply them was because they did not apply correctly.
I dit not do it myself. I just checked the series is applied on other stable trees.
Backporting it from Kernel 4.1 is quite simple. Just two patches have trivial conflicts.
I did a quick backport at:
https://git.linuxtv.org/mchehab/experimental.git/log/?h=v3.18.102%2bCVE
Please notice that I didn't test it yet.
Will build such Kernel and see how it behaves with compat32.
If it works fine, I'll submit for stable.
Regards,
Mauro
CVE-2017-13166 fixes for Kernel 3.18 - was: Re: Linux 3.18.102
Em Tue, 27 Mar 2018 08:30:54 -0300
Mauro Carvalho Chehab <[email protected]> escreveu:
Quoted 38 lines
Em Tue, 27 Mar 2018 16:31:49 +0900
Seung-Woo Kim <[email protected]> escreveu:Quoted 23 lines · Greg KH
Quoted 22 lines · Seung-Woo Kim
Quoted 4 lines
Hello,
Until 3.18.102, it looks like following patch series for v4l2 seems missed.
Quoted 14 lines
273caa2 media:
v4l2-compat-ioctl32.c: makectrl_is_pointerwork for subdevs a1dfb4c media:v4l2-compat-ioctl32.c: refactor compat ioctl32 logic d83a824 media:v4l2-compat-ioctl32.c: don't copy back the result for certain errors
169f24c media:v4l2-compat-ioctl32.c: droppr_infofor unknown buffer type a751be5 media:v4l2-compat-ioctl32.c: copy clip list input_v4l2_window32b8c601e media:v4l2-compat-ioctl32.c: fixctrl_is_pointer8ed5a59 media:v4l2-compat-ioctl32.c: copy m.userptr input_v4l2_plane32333b1e9 media:v4l2-compat-ioctl32.c: avoid sizeof(type) 486c521 media:v4l2-compat-ioctl32.c: move 'helper' functions to __get/put_v4l2_format32
b7b957d media:v4l2-compat-ioctl32.c: fix the indentation 3ee6d04 media:v4l2-compat-ioctl32.c: add missingVIDIOC_PREPARE_BUF181a4a2 media:v4l2-ioctl.c: don't copy back the result for-ENOTTYThat is correct.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Any plan to apply the series?
Do you have a backported version of this series that will apply to that kernel tree? If so, I'll be glad to apply it but I'm pretty sure the reason I did not apply them was because they did not apply correctly.
I dit not do it myself. I just checked the series is applied on other stable trees.
Backporting it from Kernel 4.1 is quite simple. Just two patches have trivial conflicts.
Quoted 8 lines
I did a quick backport at:
https://git.linuxtv.org/mchehab/experimental.git/log/?h=v3.18.102%2bCVEPlease notice that I didn't test it yet.
Will build such Kernel and see how it behaves with compat32.
If it works fine, I'll submit for stable.
Hi Seung-Woo,
I did some tests here with the vivid driver and v4l2-compliance tool.
I had to apply a few fixes on the top of the 4.1 patchset. With those fixes, compat32 is working fine with Kernel 3.18.102 on my test environment.
Feel free to use it on your tree. The patches are under the top of 3.18.102, on my development tree:
https://git.linuxtv.org/mchehab/experimental.git/log/?h=v3.18.102%2bCVE
It should be noticed that 5 other patches are required for it to work at Kernel 3.18 and to make v4l2-compliance to produce the same results on both 32 bits and 64 bits version.
Those two are backports from upstream and contains some control fixes applied at Kernel 4.1:
1663cf48e2eb media: media/v4l2-ctrls: volatiles should not generate CH_VALUE d53d22eb0ea4 media: v4l2-ctrls: fix sparse warning
This patch fix an extra issue with compat32 code that is specific to Kernel 3.18, and backports a change that also happened upstream:
2ba950543618 media: v4l2-compat-ioctl32: use compat_u64 for video standard
Those 2 patches are required to fix some issues that I suspect that also affect upstream patches:
acf19bbe76c5 media: v4l2-compat-ioctl32: initialize a reserved field ccaf872a9873 media: v4l2-compat-ioctl32: don't oops on overlay
However, I didn't test with other Kernel versions yet. Such patches should go through the usual review at media ML.
After having them reviewed and applied upstream (if needed), I'll submit the entire series for Greg to pick for Kernel 3.18.
Regards,
Mauro