mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
28168 Commits
Author | SHA1 | Message | Date | |
---|---|---|---|---|
|
40324f8696 |
Merge remote-tracking branch 'remotes/origin/tmp-4576e0e' into msm-4.14
* remotes/origin/tmp-4576e0e: Linux 4.14.26 KVM: x86: fix backward migration with async_PF bpf, ppc64: fix out of bounds access in tail call bpf: allow xadd only on aligned memory bpf: add schedule points in percpu arrays management bpf, arm64: fix out of bounds access in tail call bpf, x64: implement retpoline for tail call bpf: fix rcu lockdep warning for lpm_trie map_free callback bpf: fix memory leak in lpm_trie map_free callback function bpf: fix mlock precharge on arraymaps Linux 4.14.25 nvme-rdma: don't suppress send completions md: only allow remove_and_add_spares when no sync_thread running. ARM: dts: LogicPD Torpedo: Fix I2C1 pinmux ARM: dts: LogicPD SOM-LV: Fix I2C1 pinmux ACPI / bus: Parse tables as term_list for Dell XPS 9570 and Precision M5530 KVM/x86: remove WARN_ON() for when vm_munmap() fails KVM/x86: Fix wrong macro references of X86_CR0_PG_BIT and X86_CR4_PAE_BIT in kvm_valid_sregs() PCI/ASPM: Deal with missing root ports in link state handling KVM: x86: fix vcpu initialization with userspace lapic KVM/VMX: Optimize vmx_vcpu_run() and svm_vcpu_run() by marking the RDMSR path as unlikely() KVM: x86: move LAPIC initialization after VMCS creation KVM/x86: Remove indirect MSR op calls from SPEC_CTRL KVM: mmu: Fix overlap between public and private memslots KVM: X86: Fix SMRAM accessing even if VM is shutdown KVM: x86: extend usage of RET_MMIO_PF_* constants ARM: kvm: fix building with gcc-8 ARM: mvebu: Fix broken PL310_ERRATA_753970 selects ARM: dts: rockchip: Remove 1.8 GHz operation point from phycore som ARM: orion: fix orion_ge00_switch_board_info initialization x86/mm: Fix {pmd,pud}_{set,clear}_flags() nospec: Allow index argument to have const-qualified type KVM: s390: consider epoch index on TOD clock syncs KVM: s390: consider epoch index on hotplugged CPUs KVM: s390: provide only a single function for setting the tod (fix SCK) KVM: s390: take care of clock-comparator sign control EDAC, sb_edac: Fix out of bound writes during DIMM configuration on KNL media: m88ds3103: don't call a non-initalized function blk-mq: don't call io sched's .requeue_request when requeueing rq to ->dispatch s390/qeth: fix IPA command submission race s390/qeth: fix IP address lookup for L3 devices Revert "s390/qeth: fix using of ref counter for rxip addresses" s390/qeth: fix double-free on IP add/remove race s390/qeth: fix IP removal on offline cards s390/qeth: fix overestimated count of buffer elements s390/qeth: fix SETIP command handling s390/qeth: fix underestimated count of buffer elements virtio-net: disable NAPI only when enabled during XDP set tuntap: disable preemption during XDP processing tuntap: correctly add the missing XDP flush tcp: purge write queue upon RST netlink: put module reference if dump start fails mlxsw: spectrum_router: Do not unconditionally clear route offload indication cls_u32: fix use after free in u32_destroy_key() amd-xgbe: Restore PCI interrupt enablement setting on resume net/mlx5e: Verify inline header size do not exceed SKB linear size bridge: Fix VLAN reference count problem sctp: fix dst refcnt leak in sctp_v6_get_dst() net: ipv4: Set addr_type in hash_keys for forwarded case mlxsw: spectrum_router: Fix error path in mlxsw_sp_vr_create tcp: revert F-RTO extension to detect more spurious timeouts tcp: revert F-RTO middle-box workaround sctp: do not pr_err for the duplicated node in transport rhlist net/sched: cls_u32: fix cls_u32 on filter replace net_sched: gen_estimator: fix broken estimators based on percpu stats net/mlx5e: Fix loopback self test when GRO is off doc: Change the min default value of tcp_wmem/tcp_rmem. tcp_bbr: better deal with suboptimal GSO rxrpc: Fix send in rxrpc_send_data_packet() tcp: Honor the eor bit in tcp_mtu_probe net: phy: fix phy_start to consider PHY_IGNORE_INTERRUPT net/mlx5e: Specify numa node when allocating drop rq mlxsw: spectrum_switchdev: Check success of FDB add operation sctp: fix dst refcnt leak in sctp_v4_get_dst net/mlx5e: Fix TCP checksum in LRO buffers udplite: fix partial checksum initialization sctp: verify size of a new chunk in _sctp_make_chunk() ppp: prevent unregistered channels from connecting to PPP units net: sched: report if filter is too large to dump netlink: ensure to loop over all netns in genlmsg_multicast_allns() net: ipv4: don't allow setting net.ipv4.route.min_pmtu below 68 net: fix race on decreasing number of TX queues net: ethernet: ti: cpsw: fix net watchdog timeout net: amd-xgbe: fix comparison to bitshift when dealing with a mask ipv6 sit: work around bogus gcc-8 -Wrestrict warning hdlc_ppp: carrier detect ok, don't turn off negotiation fib_semantics: Don't match route with mismatching tclassid bridge: check brport attr show in brport_show x86/cpu_entry_area: Sync cpu_entry_area to initial_page_table x86/platform/intel-mid: Handle Intel Edison reboot correctly x86/xen: Zero MSR_IA32_SPEC_CTRL before suspend direct-io: Fix sleep in atomic due to sync AIO dax: fix vma_is_fsdax() helper cpufreq: s3c24xx: Fix broken s3c_cpufreq_init() vfio: disable filesystem-dax page pinning block: kyber: fix domain token leak during requeue block: fix the count of PGPGOUT for WRITE_SAME btrfs: use proper endianness accessors for super_copy parisc: Fix ordering of cache and TLB flushes parisc: Reduce irq overhead when run in qemu parisc: Use cr16 interval timers unconditionally on qemu timers: Forward timer base before migrating timers mmc: dw_mmc: Fix out-of-bounds access for slot's caps mmc: dw_mmc: Factor out dw_mci_init_slot_caps mmc: dw_mmc: Avoid accessing registers in runtime suspended state mmc: dw_mmc-k3: Fix out-of-bounds access through DT alias mmc: sdhci-pci: Fix S0i3 for Intel BYT-based controllers ALSA: hda - Fix pincfg at resume on Lenovo T470 dock ALSA: hda: Add a power_save blacklist ALSA: x86: Fix missing spinlock and mutex initializations ALSA: control: Fix memory corruption risk in snd_ctl_elem_read ALSA: usb-audio: Add a quirck for B&W PX headphones tpm_tis_spi: Use DMA-safe memory for SPI transfers tpm: constify transmit data pointers tpm_tis: fix potential buffer overruns caused by bit glitches on the bus tpm_i2c_nuvoton: fix potential buffer overruns caused by bit glitches on the bus tpm_i2c_infineon: fix potential buffer overruns caused by bit glitches on the bus tpm: fix potential buffer overruns caused by bit glitches on the bus tpm: st33zp24: fix potential buffer overruns caused by bit glitches on the bus ixgbe: fix crash in build_skb Rx code path Bluetooth: btusb: Use DMI matching for QCA reset_resume quirking ANDROID: uid_sys_stats: Copy task_struct comm field to bigger buffer FROMLIST: ARM: amba: Don't read past the end of sysfs "driver_override" buffer Conflicts: kernel/time/timer.c Change-Id: Iab19f552a822c233175e6553faf5c62447844201 Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org> |
||
|
e2c3f72702 |
ALSA: hda - Fix pincfg at resume on Lenovo T470 dock
commit 71db96ddfa72671bd43cacdcc99ca178d90ba267 upstream. We've added a quirk to enable the recent Lenovo dock support, where it overwrites the pin configs of NID 0x17 and 19, not only updating the pin config cache. It works right after the boot, but the problem is that the pin configs are occasionally cleared when the machine goes to PM. Meanwhile the quirk writes the pin configs only at the pre-probe, so this won't be applied any longer. For addressing that issue, this patch moves the code to overwrite the pin configs into HDA_FIXUP_ACT_INIT section so that it's always applied at both probe and resume time. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=195161 Fixes: 61fcf8ece9b6 ("ALSA: hda/realtek - Enable Thinkpad Dock device for ALC298 platform") Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|
34516912bf |
ALSA: hda: Add a power_save blacklist
commit 1ba8f9d308174e647b864c36209b4d7934d99888 upstream. On some boards setting power_save to a non 0 value leads to clicking / popping sounds when ever we enter/leave powersaving mode. Ideally we would figure out how to avoid these sounds, but that is not always feasible. This commit adds a blacklist for devices where powersaving is known to cause problems and disables it on these devices. Note I tried to put this blacklist in userspace first: https://github.com/systemd/systemd/pull/8128 But the systemd maintainers rightfully pointed out that it would be impossible to then later remove entries once we actually find a way to make power-saving work on listed boards without issues. Having this list in the kernel will allow removal of the blacklist entry in the same commit which fixes the clicks / plops. The blacklist only applies to the default power_save module-option value, if a user explicitly sets the module-option then the blacklist is not used. [ added an ifdef CONFIG_PM for the build error -- tiwai] BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=1525104 BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=198611 Cc: stable@vger.kernel.org Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|
e5e9a08e15 |
ALSA: x86: Fix missing spinlock and mutex initializations
commit 350144069abf351c743d766b2fba9cb9b7cd32a1 upstream. The commit change for supporting the multiple ports moved involved some code shuffling, and there the initializations of spinlock and mutex in snd_intelhad object were dropped mistakenly. This patch adds the missing initializations again for each port. Fixes: b4eb0d522fcb ("ALSA: x86: Split snd_intelhad into card and PCM specific structures") Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|
a2102a155f |
ALSA: control: Fix memory corruption risk in snd_ctl_elem_read
commit 5a23699a39abc5328921a81b89383d088f6ba9cc upstream. The patch "ALSA: control: code refactoring for ELEM_READ/ELEM_WRITE operations" introduced a potential for kernel memory corruption due to an incorrect if statement allowing non-readable controls to fall through and call the get function. For TLV controls a driver can omit SNDRV_CTL_ELEM_ACCESS_READ to ensure that only the TLV get function can be called. Instead the normal get() can be invoked unexpectedly and as the driver expects that this will only be called for controls <= 512 bytes, potentially try to copy >512 bytes into the 512 byte return array, so corrupting kernel memory. The problem is an attempt to refactor the snd_ctl_elem_read function to invert the logic so that it conditionally aborted if the control is unreadable instead of conditionally executing. But the if statement wasn't inverted correctly. The correct inversion of if (a && !b) is if (!a || b) Fixes: becf9e5d553c2 ("ALSA: control: code refactoring for ELEM_READ/ELEM_WRITE operations") Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|
ebc24a828a |
ALSA: usb-audio: Add a quirck for B&W PX headphones
commit 240a8af929c7c57dcde28682725b29cf8474e8e5 upstream. The capture interface doesn't work and the playback interface only supports 48 kHz sampling rate even though it advertises more rates. Signed-off-by: Erik Veijola <erik.veijola@gmail.com> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|
07f0d9dd34 |
Merge remote-tracking branch 'remotes/origin/tmp-85ab9a0' into msm-4.14
* remotes/origin/tmp-85ab9a0: Linux 4.14.24 net: sched: fix use-after-free in tcf_block_put_ext net_sched: get rid of rcu_barrier() in tcf_block_put_ext() net: sched: crash on blocks with goto chain action net: sched: fix crash when deleting secondary chains arm64: dts: marvell: mcbin: add comphy references to Ethernet ports arm64: dts: marvell: add comphy nodes on cp110 master and slave powerpc/pseries: Enable RAS hotplug events later MIPS: Implement __multi3 for GCC7 MIPS64r6 builds mlxsw: pci: Wait after reset before accessing HW nfp: always unmask aux interrupts at init of_mdio: avoid MDIO bus removal when a PHY is missing net: gianfar_ptp: move set_fipers() to spinlock protecting area sctp: make use of pre-calculated len sctp: add a ceiling to optlen in some sockopts xen/gntdev: Fix partial gntdev_mmap() cleanup xen/gntdev: Fix off-by-one error when unmapping with holes SolutionEngine771x: fix Ether platform data mdio-sun4i: Fix a memory leak xen-netfront: enable device after manual module load bnxt_en: Fix the 'Invalid VF' id check in bnxt_vf_ndo_prep routine. bnxt_en: Fix population of flow_type in bnxt_hwrm_cfa_flow_alloc() x86/platform/intel-mid: Revert "Make 'bt_sfi_data' const" nvme-fabrics: initialize default host->id in nvmf_host_default() powerpc/pseries: Make RAS IRQ explicitly dependent on DLPAR WQ leds: core: Fix regression caused by commit 2b83ff96f51d bpf: sockmap missing NULL psock check ia64, sched/cputime: Fix build error if CONFIG_VIRT_CPU_ACCOUNTING_NATIVE=y block: drain queue before waiting for q_usage_counter becoming zero wcn36xx: Fix dynamic power saving can: flex_can: Correct the checking for frame length in flexcan_start_xmit() mac80211: mesh: drop frames appearing to be from us nl80211: Check for the required netlink attribute presence net: ena: unmask MSI-X only after device initialization is completed i40e: don't remove netdev->dev_addr when syncing uc list i40e/i40evf: Account for frags split over multiple descriptors in check linearize uapi libc compat: add fallback for unsupported libcs x86/efi: Fix kernel param add_efi_memmap regression RDMA/netlink: Fix locking around __ib_get_device_by_index drm/ttm: check the return value of kzalloc NET: usb: qmi_wwan: add support for YUGA CLM920-NC5 PID 0x9625 e1000: fix disabling already-disabled warning macvlan: Fix one possible double free xfs: quota: check result of register_shrinker() xfs: quota: fix missed destroy of qi_tree_lock IB/ipoib: Fix race condition in neigh creation IB/mlx4: Fix mlx4_ib_alloc_mr error flow Input: xen-kbdfront - do not advertise multi-touch pressure support ip6_tunnel: allow ip6gre dev mtu to be set below 1280 btrfs: Fix flush bio leak s390/dasd: fix wrongly assigned configuration data afs: Fix missing error handling in afs_write_end() genirq: Guard handle_bad_irq log messages IB/mlx5: Fix mlx5_ib_alloc_mr error flow led: core: Fix brightness setting when setting delay_off=0 perf/x86/intel: Plug memory leak in intel_pmu_init() bnx2x: Improve reliability in case of nested PCI errors tg3: Enable PHY reset in MTU change path for 5720 tg3: Add workaround to restrict 5762 MRRS to 2048 tipc: fix tipc_mon_delete() oops in tipc_enable_bearer() error path tipc: error path leak fixes in tipc_enable_bearer() netfilter: nf_tables: fix potential NULL-ptr deref in nf_tables_dump_obj_done() crypto: inside-secure - fix request allocations in invalidation path crypto: inside-secure - free requests even if their handling failed crypto: inside-secure - per request invalidation arm64: dts: renesas: ulcb: Remove renesas, no-ether-link property lib/mpi: Fix umul_ppmm() for MIPS64r6 crypto: af_alg - Fix race around ctx->rcvused by making it atomic_t ARM: dts: ls1021a: fix incorrect clock references RDMA/vmw_pvrdma: Call ib_umem_release on destroy QP path i915: Reject CCS modifiers for pipe C on Geminilake netfilter: uapi: correct UNTRACKED conntrack state bit number scsi: storvsc: Fix scsi_cmd error assignments in storvsc_handle_error netfilter: nf_tables: fix chain filter in nf_tables_dump_rules() xen/balloon: Mark unallocated host memory as UNUSABLE ASoC: rsnd: fixup ADG register mask net/mlx5: Stay in polling mode when command EQ destroy fails net/mlx5: Cleanup IRQs in case of unload failure net/mlx5e: Fix ETS BW check net: stmmac: Fix bad RX timestamp extraction net: stmmac: Fix TX timestamp calculation ip6_tunnel: get the min mtu properly in ip6_tnl_xmit ip6_gre: remove the incorrect mtu limit for ipgre tap ip_gre: remove the incorrect mtu limit for ipgre tap vxlan: update skb dst pmtu on tx path net: arc_emac: fix arc_emac_rx() error paths net: mediatek: setup proper state for disabled GMAC on the default x86-64/Xen: eliminate W+X mappings staging: ion: Fix ion_cma_heap allocations cgroup: Fix deadlock in cpu hotplug path ASoC: nau8825: fix issue that pop noise when start capture spi: atmel: fixed spin_lock usage inside atmel_spi_remove mac80211_hwsim: Fix a possible sleep-in-atomic bug in hwsim_get_radio_nl x86/stacktrace: Make zombie stack traces reliable xfrm: Reinject transport-mode packets through tasklet drm/nouveau/pci: do a msi rearm on init net: phy: xgene: disable clk on error paths sget(): handle failures of register_shrinker() sctp: fix the issue that a __u16 variable may overflow in sctp_ulpq_renege x86/asm: Allow again using asm.h when building for the 'bpf' clang target ARM: 8731/1: Fix csum_partial_copy_from_user() stack mismatch parisc: Reduce thread stack to 16 kb ipv6: icmp6: Allow icmp messages to be looped back mtd: nand: brcmnand: Zero bitflip is not an error mtd: nand: gpmi: Fix failure when a erased page has a bitflip at BBM net: usb: qmi_wwan: add Telit ME910 PID 0x1101 support net: aquantia: Fix hardware DMA stream overload on large MRRS net: aquantia: Fix actual speed capabilities reporting nvme: check hw sectors before setting chunk sectors nvme-fc: remove double put reference if admin connect fails phy: cpcap-usb: Fix platform_get_irq_byname's error checking. dmaengine: fsl-edma: disable clks on all error paths scsi: aacraid: Fix I/O drop during reset mm/frame_vector.c: release a semaphore in 'get_vaddr_frames()' exec: avoid gcc-8 warning for get_task_comm hrtimer: Ensure POSIX compliance (relative CLOCK_REALTIME hrtimers) Conflicts: drivers/staging/android/ion/Kconfig drivers/staging/android/ion/ion_cma_heap.c Change-Id: I58485dd9ac8092a184c42a8e125e44523221e3ea Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org> |
||
|
caca324f93 |
ASoC: rsnd: fixup ADG register mask
[ Upstream commit d5aa24825da5711f8cb829f873160ddf1a29b19c ] BRGCKR should use 0x80770000, instead of 0x80FF0000. R-Car Gen2 xxx_TIMSEL should use 0x0F1F, R-Car Gen3 xxx_TIMSEL should use 0x1F1F. Here, Gen3 doesn't support AVD, thus, both case can use 0x0F1F. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Reviewed-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|
56d80186a5 |
ASoC: nau8825: fix issue that pop noise when start capture
[ Upstream commit d070f7c703ef26e3db613f24206823f916272fc6 ] In skylake platform, we hear a loud pop noise(0 dB) at start of audio capture power up sequence. This patch removes the pop noise from the recording by adding a delay before enabling ADC. Signed-off-by: Abhijeet Kumar <abhijeet.kumar@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|
8092227d1c | Merge "Merge remote-tracking branch 'remotes/origin/tmp-af3b8e6' into msm-4.14" | ||
|
f2e225a5c8 | Merge "Merge remote-tracking branch 'remotes/origin/tmp-474d3c4' into msm-4.14" | ||
|
9636a4ea18 |
Merge remote-tracking branch 'remotes/origin/tmp-af3b8e6' into msm-4.14
* remotes/origin/tmp-af3b8e6: Linux 4.14.22 vmalloc: fix __GFP_HIGHMEM usage for vmalloc_32 on 32b systems mei: me: add cannon point device ids for 4th device mei: me: add cannon point device ids crypto: s5p-sss - Fix kernel Oops in AES-ECB mode drm/i915: fix intel_backlight_device_register declaration crypto: talitos - fix Kernel Oops on hashing an empty file hippi: Fix a Fix a possible sleep-in-atomic bug in rr_close powerpc/perf/imc: Fix nest-imc cpuhotplug callback failure PCI: rcar: Fix use-after-free in probe error path xen: XEN_ACPI_PROCESSOR is Dom0-only platform/x86: dell-laptop: Fix keyboard max lighting for Dell Latitude E6410 x86/mm/kmmio: Fix mmiotrace for page unaligned addresses mm/early_ioremap: Fix boot hang with earlyprintk=efi,keep usb: dwc3: of-simple: fix missing clk_disable_unprepare usb: dwc3: gadget: Wait longer for controller to end command processing dmaengine: jz4740: disable/unprepare clk if probe fails drm/vc4: Release fence after signalling ASoC: rsnd: ssi: fix race condition in rsnd_ssi_pointer_update drm/armada: fix leak of crtc structure xfrm: Fix stack-out-of-bounds with misconfigured transport mode policies. IB/mlx4: Fix RSS hash fields restrictions spi: sun4i: disable clocks in the remove function ASoC: rockchip: disable clock on error staging: ccree: Uninitialized return in ssi_ahash_import() clk: fix a panic error caused by accessing NULL pointer netfilter: xt_bpf: add overflow checks xfrm: Fix xfrm_input() to verify state is valid when (encap_type < 0) dmaengine: at_hdmac: fix potential NULL pointer dereference in atc_prep_dma_interleaved dmaengine: ioat: Fix error handling path scsi: bfa: fix type conversion warning scsi: bfa: fix access to bfad_im_port_s scsi: lpfc: Use after free in lpfc_rq_buf_free() gianfar: Disable EEE autoneg by default 509: fix printing uninitialized stack memory when OID is empty net: dsa: mv88e6xxx: Unregister MDIO bus on error path net: dsa: mv88e6xxx: Fix interrupt masking on removal net: ethernet: arc: fix error handling in emac_rockchip_probe virtio_net: fix return value check in receive_mergeable() brcmfmac: Avoid build error with make W=1 btrfs: Fix possible off-by-one in btrfs_search_path_in_tree Btrfs: disable FUA if mounted with nobarrier btrfs: Fix quota reservation leak on preallocated files locking/lockdep: Fix possible NULL deref net: qualcomm: rmnet: Fix leak on transmit failure KVM: VMX: fix page leak in hardware_setup() VSOCK: fix outdated sk_state value in hvs_release() net_sched: red: Avoid illegal values net_sched: red: Avoid devision by zero gianfar: fix a flooded alignment reports because of padding issue. nfp: fix port stats for mac representors ARM: dts: Fix elm interrupt compiler warning s390/dasd: prevent prefix I/O error s390/virtio: add BSD license to virtio-ccw PM / runtime: Fix handling of suppliers with disabled runtime PM powerpc/perf: Fix oops when grouping different pmu events m68k: add missing SOFTIRQENTRY_TEXT linker section ipvlan: Add the skb->mark as flow4's member to lookup route bnxt_en: Need to unconditionally shut down RoCE in bnxt_shutdown scripts/kernel-doc: Don't fail with status != 0 if error encountered with -none iio: fix kernel-doc build errors iio: proximity: sx9500: Assign interrupt from GpioIo() md/raid1/10: add missed blk plug phylink: ensure we take the link down when phylink_stop() is called sfp: fix RX_LOS signal handling sctp: only update outstanding_bytes for transmitted queue when doing prsctp_prune md/raid5: correct degraded calculation in raid5_error IB/core: Init subsys if compiled to vmlinuz-core RDMA/cma: Make sure that PSN is not over max allowed i40iw: Correct ARP index mask i40iw: Do not free sqbuf when event is I40IW_TIMER_TYPE_CLOSE i40iw: Allocate a sdbuf per CQP WQE KVM: arm/arm64: Fix spinlock acquisition in vgic_set_owner meson-gx-socinfo: Fix package id parsing IB/hfi1: Initialize bth1 in 16B rc ack builder pinctrl: sunxi: Fix A64 UART mux value pinctrl: sunxi: Fix A80 interrupt pin bank gpio: davinci: Assign first bank regs for unbanked case gpio: 74x164: Fix crash during .remove() net: mvpp2: allocate zeroed tx descriptors media: ov13858: Select V4L2_FWNODE media: s5k6aa: describe some function parameters trace/xdp: fix compile warning: 'struct bpf_map' declared inside parameter list kvm: arm: don't treat unavailable HYP mode as an error pinctrl: denverton: Fix UART2 RTS pin mode perf test: Fix test 21 for s390x perf bench numa: Fixup discontiguous/sparse numa nodes perf top: Fix window dimensions change handling perf: Fix header.size for namespace events perf test shell: Fix check open filename arg using 'perf trace' on s390x perf annotate: Do not truncate instruction names at 6 chars perf help: Fix a bug during strstart() conversion perf record: Fix -c/-F options for cpu event aliases ARM: dts: am437x-cm-t43: Correct the dmas property of spi0 ARM: dts: am4372: Correct the interrupts_properties of McASP ARM: dts: logicpd-somlv: Fix wl127x pinmux ARM: dts: logicpd-som-lv: Fix gpmc addresses for NAND and enet ARM: dts: Fix omap4 hang with GPS connected to USB by using wakeupgen ARM: AM33xx: PRM: Remove am33xx_pwrdm_read_prev_pwrst function ARM: OMAP2+: Fix SRAM virt to phys translation for save_secure_ram_context serdev: fix receive_buf return value when no callback usb: build drivers/usb/common/ when USB_SUPPORT is set usbip: keep usbip_device sockfd state in sync with tcp_socket staging: iio: ad5933: switch buffer mode to software staging: iio: adc: ad7192: fix external frequency setting staging: fsl-mc: fix build testing on x86 binder: replace "%p" with "%pK" binder: check for binder_thread allocation failure in binder_poll() staging: android: ashmem: Fix a race condition in pin ioctls ANDROID: binder: synchronize_rcu() when using POLLFREE. ANDROID: binder: remove WARN() for redundant txn error dn_getsockoptdecnet: move nf_{get/set}sockopt outside sock lock arm64: dts: add #cooling-cells to CPU nodes ARM: 8743/1: bL_switcher: add MODULE_LICENSE tag video: fbdev/mmp: add MODULE_LICENSE ASoC: ux500: add MODULE_LICENSE tag net_sched: gen_estimator: fix lockdep splat net: avoid skb_warn_bad_offload on IS_ERR rds: tcp: atomically purge entries from rds_tcp_conn_list during netns delete rds: tcp: correctly sequence cleanup on netns deletion. netfilter: xt_RATEEST: acquire xt_rateest_mutex for hash insert netfilter: xt_cgroup: initialize info->priv in cgroup_mt_check_v1() netfilter: on sockopt() acquire sock lock only in the required scope netfilter: ipt_CLUSTERIP: fix out-of-bounds accesses in clusterip_tg_check() netfilter: x_tables: avoid out-of-bounds reads in xt_request_find_{match|target} netfilter: x_tables: fix int overflow in xt_alloc_table_info() kcov: detect double association with a single task KVM: x86: fix escape of guest dr6 to the host blk_rq_map_user_iov: fix error override staging: android: ion: Switch from WARN to pr_warn staging: android: ion: Add __GFP_NOWARN for system contig heap crypto: x86/twofish-3way - Fix %rbp usage media: pvrusb2: properly check endpoint types selinux: skip bounded transition processing if the policy isn't loaded selinux: ensure the context is NUL terminated in security_context_to_sid_core() ptr_ring: try vmalloc() when kmalloc() fails ptr_ring: fail early if queue occupies more than KMALLOC_MAX_SIZE ALSA: bcd2000: Add a sanity check for invalid EPs ALSA: caiaq: Add a sanity check for invalid EPs ALSA: line6: Add a sanity check for invalid EPs drm: Require __GFP_NOFAIL for the legacy drm_modeset_lock_all dnotify: Handle errors from fsnotify_add_mark_locked() in fcntl_dirnotify() blktrace: fix unlocked registration of tracepoints sctp: set frag_point in sctp_setsockopt_maxseg correctly xfrm: check id proto in validate_tmpl() xfrm: Fix stack-out-of-bounds read on socket policy lookup. RDMA/netlink: Fix general protection fault KVM/x86: Check input paging mode when cs.l is set mm,vmscan: Make unregister_shrinker() no-op if register_shrinker() failed. xfrm: skip policies marked as dead while rehashing xfrm: fix rcu usage in xfrm_get_type_offload xfrm: don't call xfrm_policy_cache_flush while holding spinlock esp: Fix GRO when the headers not fully in the linear part of the skb. mac80211_hwsim: validate number of different channels cfg80211: check dev_set_name() return value bpf: mark dst unknown on inconsistent {s, u}bounds adjustments kcm: Only allow TCP sockets to be attached to a KCM mux kcm: Check if sk_user_data already set in kcm_attach vhost: use mutex_lock_nested() in vhost_dev_lock_vqs() usb: core: Add a helper function to check the validity of EP type in URB ANDROID: sdcardfs: Hold i_mutex for i_size_write FROMGIT: crypto: speck - add test vectors for Speck64-XTS FROMGIT: crypto: speck - add test vectors for Speck128-XTS FROMGIT: crypto: arm/speck - add NEON-accelerated implementation of Speck-XTS FROMGIT: crypto: speck - export common helpers FROMGIT: crypto: speck - add support for the Speck block cipher f2fs: updates on v4.16-rc1 Conflicts: drivers/net/ethernet/qualcomm/rmnet/rmnet_handlers.c Change-Id: I420172cd4438ce010645ceb00a71c4e3f03596d8 Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org> |
||
|
645ad410dc |
ASoC: rsnd: ssi: fix race condition in rsnd_ssi_pointer_update
[ Upstream commit 33f801366bdf3f8b67dfe325b84f4051a090d01e ] Currently there is race condition between set of byte_pos and wrap it around when new buffer starts. If .pointer is called in-between it will result in inconsistent pointer position be returned from .pointer callback. This patch increments buffer pointer atomically to avoid this issue. Signed-off-by: Jiada Wang <jiada_wang@mentor.com> Reviewed-by: Takashi Sakamoto <takashi.sakamoto@miraclelinux.com> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|
e8e50037b6 |
ASoC: rockchip: disable clock on error
[ Upstream commit c7b92172a61b91936be985cb9bc499a4ebc6489b ] Disable the clocks in rk_spdif_probe when an error occurs after one of the clocks has been enabled previously. Found by Linux Driver Verification project (linuxtesting.org). Fixes: f874b80e1571 ASoC: rockchip: Add rockchip SPDIF transceiver driver Signed-off-by: Stefan Potyra <Stefan.Potyra@elektrobit.com> Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <alexander.levin@verizon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|
1f4f5777e5 |
ASoC: ux500: add MODULE_LICENSE tag
commit 1783c9d7cb7bc3181b9271665959b87280d98d8e upstream. This adds MODULE_LICENSE/AUTHOR/DESCRIPTION tags to the ux500 platform drivers, to avoid these build warnings: WARNING: modpost: missing MODULE_LICENSE() in sound/soc/ux500/snd-soc-ux500-plat-dma.o WARNING: modpost: missing MODULE_LICENSE() in sound/soc/ux500/snd-soc-ux500-mach-mop500.o The company no longer exists, so the email addresses of the authors don't work any more, but I've added them anyway for consistency. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|
73e6a383d1 |
ALSA: bcd2000: Add a sanity check for invalid EPs
commit 6815a0b444572527256f0d0efd8efe3ddede6018 upstream. As syzkaller spotted, currently bcd2000 driver submits a URB with the fixed EP without checking whether it's actually available, which may result in a kernel warning like: usb 1-1: BOGUS urb xfer, pipe 1 != type 3 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 1846 at drivers/usb/core/urb.c:449 usb_submit_urb+0xf8a/0x11d0 Modules linked in: CPU: 0 PID: 1846 Comm: kworker/0:2 Not tainted 4.14.0-rc2-42613-g1488251d1a98 #238 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 Workqueue: usb_hub_wq hub_event Call Trace: bcd2000_init_device sound/usb/bcd2000/bcd2000.c:289 bcd2000_init_midi sound/usb/bcd2000/bcd2000.c:345 bcd2000_probe+0xe64/0x19e0 sound/usb/bcd2000/bcd2000.c:406 usb_probe_interface+0x35d/0x8e0 drivers/usb/core/driver.c:361 .... This patch adds a sanity check of validity of EPs at the device initialization phase for avoiding the call with an invalid EP. Reported-by: Andrey Konovalov <andreyknvl@google.com> Tested-by: Andrey Konovalov <andreyknvl@google.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|
b43a3e2193 |
ALSA: caiaq: Add a sanity check for invalid EPs
commit 58fc7f73a85d45a47057dad2af53502fdf6cf778 upstream. As syzkaller spotted, currently caiaq driver submits a URB with the fixed EP without checking whether it's actually available, which may result in a kernel warning like: usb 1-1: BOGUS urb xfer, pipe 3 != type 1 ------------[ cut here ]------------ WARNING: CPU: 1 PID: 1150 at drivers/usb/core/urb.c:449 usb_submit_urb+0xf8a/0x11d0 Modules linked in: CPU: 1 PID: 1150 Comm: kworker/1:1 Not tainted 4.14.0-rc2-42660-g24b7bd59eec0 #277 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 Workqueue: usb_hub_wq hub_event Call Trace: init_card sound/usb/caiaq/device.c:467 snd_probe+0x81c/0x1150 sound/usb/caiaq/device.c:525 usb_probe_interface+0x35d/0x8e0 drivers/usb/core/driver.c:361 .... This patch adds a sanity check of validity of EPs at the device initialization phase for avoiding the call with an invalid EP. Reported-by: Andrey Konovalov <andreyknvl@google.com> Tested-by: Andrey Konovalov <andreyknvl@google.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|
90bca3712a |
ALSA: line6: Add a sanity check for invalid EPs
commit 2a4340c57717162c6bf07a0860d05711d4de994b upstream. As syzkaller spotted, currently line6 drivers submit a URB with the fixed EP without checking whether it's actually available, which may result in a kernel warning like: usb 1-1: BOGUS urb xfer, pipe 3 != type 1 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 24 at drivers/usb/core/urb.c:449 usb_submit_urb+0xf8a/0x11d0 Modules linked in: CPU: 0 PID: 24 Comm: kworker/0:1 Not tainted 4.14.0-rc2-42613-g1488251d1a98 #238 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 Workqueue: usb_hub_wq hub_event Call Trace: line6_start_listen+0x55f/0x9e0 sound/usb/line6/driver.c:82 line6_init_cap_control sound/usb/line6/driver.c:690 line6_probe+0x7c9/0x1310 sound/usb/line6/driver.c:764 podhd_probe+0x64/0x70 sound/usb/line6/podhd.c:474 usb_probe_interface+0x35d/0x8e0 drivers/usb/core/driver.c:361 .... This patch adds a sanity check of validity of EPs at the device initialization phase for avoiding the call with an invalid EP. Reported-by: Andrey Konovalov <andreyknvl@google.com> Tested-by: Andrey Konovalov <andreyknvl@google.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|
2c7009015c |
Merge remote-tracking branch 'remotes/origin/tmp-474d3c4' into msm-4.14
* remotes/origin/tmp-474d3c4: Linux 4.14.21 ovl: hash directory inodes for fsnotify ASoC: acpi: fix machine driver selection based on quirk mmc: sdhci-of-esdhc: fix the mmc error after sleep on ls1046ardb mmc: sdhci-of-esdhc: fix eMMC couldn't work after kexec mmc: sdhci-of-esdhc: disable SD clock for clock value 0 media: r820t: fix r820t_write_reg for KASAN ARM: dts: Delete bogus reference to the charlcd arm: dts: mt2701: Add reset-cells arm: dts: mt7623: Update ethsys binding ARM: dts: s5pv210: add interrupt-parent for ohci arm64: dts: msm8916: Add missing #phy-cells ARM: pxa/tosa-bt: add MODULE_LICENSE tag ARM: dts: exynos: fix RTC interrupt for exynos5410 Bluetooth: BT_HCIUART now depends on SERIAL_DEV_BUS scsi: core: check for device state in __scsi_remove_target() x86/mm, mm/hwpoison: Don't unconditionally unmap kernel 1:1 pages usb: Move USB_UHCI_BIG_ENDIAN_* out of USB_SUPPORT mvpp2: fix multicast address filter ALSA: seq: Fix racy pool initializations ALSA: usb: add more device quirks for USB DSD devices ALSA: usb-audio: add implicit fb quirk for Behringer UFX1204 ALSA: hda/realtek: PCI quirk for Fujitsu U7x7 ALSA: hda/realtek - Enable Thinkpad Dock device for ALC298 platform ALSA: hda/realtek - Add headset mode support for Dell laptop ALSA: usb-audio: Fix UAC2 get_ctl request with a RANGE attribute ALSA: hda - Fix headset mic detection problem for two Dell machines mtd: nand: vf610: set correct ooblayout 9p/trans_virtio: discard zero-length reply Btrfs: fix unexpected -EEXIST when creating new inode Btrfs: fix use-after-free on root->orphan_block_rsv Btrfs: fix btrfs_evict_inode to handle abnormal inodes correctly Btrfs: fix extent state leak from tree log Btrfs: fix crash due to not cleaning up tree log block's dirty bits Btrfs: fix deadlock in run_delalloc_nocow dm: correctly handle chained bios in dec_pending() iscsi-target: make sure to wake up sleeping login worker target/iscsi: avoid NULL dereference in CHAP auth error path blk-wbt: account flush requests correctly xprtrdma: Fix BUG after a device removal xprtrdma: Fix calculation of ri_max_send_sges drm/qxl: reapply cursor after resetting primary qxl: alloc & use shadow for dumb buffers arm64: proc: Set PTE_NG for table entries to avoid traversing them twice rtlwifi: rtl8821ae: Fix connection lost problem correctly mpls, nospec: Sanitize array index in mpls_label_ok() tracing: Fix parsing of globs with a wildcard at the beginning seq_file: fix incomplete reset on read from zero offset xenbus: track caller request id xen: Fix {set,clear}_foreign_p2m_mapping on autotranslating guests rbd: whitelist RBD_FEATURE_OPERATIONS feature bit console/dummy: leave .con_font_get set to NULL video: fbdev: atmel_lcdfb: fix display-timings lookup PCI: keystone: Fix interrupt-controller-node lookup PCI: iproc: Fix NULL pointer dereference for BCMA PCI: Disable MSI for HiSilicon Hip06/Hip07 only in Root Port mode MIPS: Fix incorrect mem=X@Y handling MIPS: Fix typo BIG_ENDIAN to CPU_BIG_ENDIAN mm: Fix memory size alignment in devm_memremap_pages_release() mm: hide a #warning for COMPILE_TEST ext4: correct documentation for grpid mount option ext4: save error to disk in __ext4_grp_locked_error() ext4: fix a race in the ext4 shutdown path jbd2: fix sphinx kernel-doc build warnings Revert "apple-gmux: lock iGP IO to protect from vgaarb changes" mlx5: fix mlx5_get_vector_affinity to start from completion vector 0 Revert "mmc: meson-gx: include tx phase in the tuning process" mmc: bcm2835: Don't overwrite max frequency unconditionally mmc: sdhci: Implement an SDHCI-specific bounce buffer mbcache: initialize entry->e_referenced in mb_cache_entry_create() rtc-opal: Fix handling of firmware error codes, prevent busy loops drm/radeon: adjust tested variable drm/radeon: Add dpm quirk for Jet PRO (v2) arm64: Add missing Falkor part number for branch predictor hardening drm/ast: Load lut in crtc_commit drm/amd/powerplay: Fix smu_table_entry.handle type drm/qxl: unref cursor bo when finished with it drm/ttm: Fix 'buf' pointer update in ttm_bo_vm_access_kmap() (v2) drm/ttm: Don't add swapped BOs to swap-LRU list x86/entry/64: Fix CR3 restore in paranoid_exit() x86/cpu: Change type of x86_cache_size variable to unsigned int x86/spectre: Fix an error message x86/cpu: Rename cpu_data.x86_mask to cpu_data.x86_stepping selftests/x86/mpx: Fix incorrect bounds with old _sigfault x86/mm: Rename flush_tlb_single() and flush_tlb_one() to __flush_tlb_one_[user|kernel]() kmemcheck: rip it out for real kmemcheck: rip it out kmemcheck: remove whats left of NOTRACK flags kmemcheck: stop using GFP_NOTRACK and SLAB_NOTRACK kmemcheck: remove annotations x86/speculation: Add <asm/msr-index.h> dependency nospec: Move array_index_nospec() parameter checking into separate macro x86/speculation: Fix up array_index_nospec_mask() asm constraint x86/debug: Use UD2 for WARN() x86/debug, objtool: Annotate WARN()-related UD2 as reachable objtool: Fix segfault in ignore_unreachable_insn() selftests/x86: Disable tests requiring 32-bit support on pure 64-bit systems selftests/x86: Do not rely on "int $0x80" in single_step_syscall.c selftests/x86: Do not rely on "int $0x80" in test_mremap_vdso.c selftests/x86/pkeys: Remove unused functions selftests/x86: Clean up and document sscanf() usage selftests/x86: Fix vDSO selftest segfault for vsyscall=none x86/entry/64: Remove the unused 'icebp' macro x86/entry/64: Fix paranoid_entry() frame pointer warning x86/entry/64: Indent PUSH_AND_CLEAR_REGS and POP_REGS properly x86/entry/64: Get rid of the ALLOC_PT_GPREGS_ON_STACK and SAVE_AND_CLEAR_REGS macros x86/entry/64: Use PUSH_AND_CLEAN_REGS in more cases x86/entry/64: Introduce the PUSH_AND_CLEAN_REGS macro x86/entry/64: Interleave XOR register clearing with PUSH instructions x86/entry/64: Merge the POP_C_REGS and POP_EXTRA_REGS macros into a single POP_REGS macro x86/entry/64: Merge SAVE_C_REGS and SAVE_EXTRA_REGS, remove unused extensions x86/entry/64: Clear registers for exceptions/interrupts, to reduce speculation attack surface PM: cpuidle: Fix cpuidle_poll_state_init() prototype PM / runtime: Update links_count also if !CONFIG_SRCU x86/speculation: Clean up various Spectre related details KVM/nVMX: Set the CPU_BASED_USE_MSR_BITMAPS if we have a valid L02 MSR bitmap X86/nVMX: Properly set spec_ctrl and pred_cmd before merging MSRs KVM/x86: Reduce retpoline performance impact in slot_handle_level_range(), by always inlining iterator helper methods Revert "x86/speculation: Simplify indirect_branch_prediction_barrier()" x86/speculation: Correct Speculation Control microcode blacklist again x86/speculation: Update Speculation Control microcode blacklist x86/mm/pti: Fix PTI comment in entry_SYSCALL_64() powerpc/mm/radix: Split linear mapping on hot-unplug crypto: sun4i_ss_prng - convert lock to _bh in sun4i_ss_prng_generate crypto: sun4i_ss_prng - fix return value of sun4i_ss_prng_generate compiler-gcc.h: __nostackprotector needs gcc-4.4 and up compiler-gcc.h: Introduce __optimize function attribute x86/entry/64/compat: Clear registers for compat syscalls, to reduce speculation attack surface x86/entry/64: Clear extra registers beyond syscall arguments, to reduce speculation attack surface x86: PM: Make APM idle driver initialize polling state x86/xen: init %gs very early to avoid page faults with stack protector x86/kexec: Make kexec (mostly) work in 5-level paging mode x86/gpu: add CFL to early quirks drm/i915/kbl: Change a KBL pci id to GT2 from GT1.5 drm/i915: add GT number to intel_device_info arm: spear13xx: Fix spics gpio controller's warning arm: spear13xx: Fix dmas cells arm: spear600: Add missing interrupt-parent of rtc arm: dts: mt7623: fix card detection issue on bananapi-r2 ARM: dts: nomadik: add interrupt-parent for clcd ARM: dts: STi: Add gpio polarity for "hdmi,hpd-gpio" property ARM: lpc3250: fix uda1380 gpio numbers arm64: dts: msm8916: Correct ipc references for smsm s390: fix handling of -1 in set{,fs}[gu]id16 syscalls dma-buf: fix reservation_object_wait_timeout_rcu once more v2 powerpc: Fix DABR match on hash based systems powerpc/xive: Use hw CPU ids when configuring the CPU queues powerpc/mm: Flush radix process translations when setting MMU type powerpc/numa: Invalidate numa_cpu_lookup_table on cpu remove powerpc/radix: Remove trace_tlbie call from radix__flush_tlb_all ocfs2: try a blocking lock before return AOP_TRUNCATED_PAGE mwifiex: resolve reset vs. remove()/shutdown() deadlocks PM / devfreq: Propagate error from devfreq_add_device() swiotlb: suppress warning when __GFP_NOWARN is set cpufreq: powernv: Dont assume distinct pstate values for nominal and pmin RDMA/rxe: Fix rxe_qp_cleanup() RDMA/rxe: Fix a race condition in rxe_requester() RDMA/rxe: Fix a race condition related to the QP error state kselftest: fix OOM in memory compaction test selftests: seccomp: fix compile error seccomp_bpf IB/core: Avoid a potential OOPs for an unused optional parameter IB/core: Fix ib_wc structure size to remain in 64 bytes boundary IB/core: Fix two kernel warnings triggered by rxe registration IB/mlx4: Fix incorrectly releasing steerable UD QPs when have only ETH ports IB/qib: Fix comparison error with qperf compare/swap test IB/umad: Fix use of unprotected device pointer scsi: smartpqi: allow static build ("built-in") tracing: Prevent PROFILE_ALL_BRANCHES when FORTIFY_SOURCE=y Change-Id: I351a603ea607d9c158727d60c8915981a555044f Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org> |
||
|
1efd15d0bb |
sound: usb: Adopt new QMI framework related changes
This change starts using new QMI framework related changes specifically data structure change and APIs. Change-Id: I54a8e40cfb524978210945f54ad4cf0e293b6615 Signed-off-by: Mayank Rana <mrana@codeaurora.org> |
||
|
0660cf8a9a | Merge "Merge remote-tracking branch 'remotes/origin/tmp-0a91e84' into msm-4.14" | ||
|
f1a81c0eab |
ASoC: acpi: fix machine driver selection based on quirk
commit 5c256045b87b8aa8e5bc9d2e2fdc0802351c1f99 upstream. The ACPI/machine-driver code refactoring introduced in 4.13 introduced a regression for cases where we need a DMI-based quirk to select the machine driver (the BIOS reports an invalid HID). The fix is just to make sure the results of the quirk are actually used. Fixes: 54746dabf770 ('ASoC: Improve machine driver selection based on quirk data') Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=96691 Tested-by: Nicole Færber <nicole.faerber@dpin.de> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org> Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|
7466294dad |
ALSA: seq: Fix racy pool initializations
commit d15d662e89fc667b90cd294b0eb45694e33144da upstream. ALSA sequencer core initializes the event pool on demand by invoking snd_seq_pool_init() when the first write happens and the pool is empty. Meanwhile user can reset the pool size manually via ioctl concurrently, and this may lead to UAF or out-of-bound accesses since the function tries to vmalloc / vfree the buffer. A simple fix is to just wrap the snd_seq_pool_init() call with the recently introduced client->ioctl_mutex; as the calls for snd_seq_pool_init() from other side are always protected with this mutex, we can avoid the race. Reported-by: 范龙飞 <long7573@126.com> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|
ec5a08abef |
ALSA: usb: add more device quirks for USB DSD devices
commit 7c74866baef1827e18f8269aec85030063520bd4 upstream. Add some more devices that need quirks to handle DSD modes correctly. Signed-off-by: Daniel Mack <daniel@zonque.org> Reported-and-tested-by: Thomas Gresens <tgresens@gmail.com> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|
e1b13eb16c |
ALSA: usb-audio: add implicit fb quirk for Behringer UFX1204
commit 5e35dc0338d85ccebacf3f77eca1e5dea73155e8 upstream. Add quirk to ensure a sync endpoint is properly configured. This patch is a fix for same symptoms on Behringer UFX1204 as patch from Albertto Aquirre on Dec 8 2016 for Axe-Fx II. Signed-off-by: Lassi Ylikojola <lassi.ylikojola@gmail.com> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|
de3e819175 |
ALSA: hda/realtek: PCI quirk for Fujitsu U7x7
commit fdcc968a3b290407bcba9d4c90e2fba6d8d928f1 upstream. These laptops have a combined jack to attach headsets, the U727 on the left, the U757 on the right, but a headsets microphone doesn't work. Using hdajacksensetest I found that pin 0x19 changed the present state when plugging the headset, in addition to 0x21, but didn't have the correct configuration (shown as "Not connected"). So this sets the configuration to the same values as the headphone pin 0x21 except for the device type microphone, which makes it work correctly. With the patch the configured pins for U727 are Pin 0x12 (Internal Mic, Mobile-In): present = No Pin 0x14 (Internal Speaker): present = No Pin 0x19 (Black Mic, Left side): present = No Pin 0x1d (Internal Aux): present = No Pin 0x21 (Black Headphone, Left side): present = No Signed-off-by: Jan-Marek Glogowski <glogow@fbihome.de> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|
81ae4f7479 |
ALSA: hda/realtek - Enable Thinkpad Dock device for ALC298 platform
commit 61fcf8ece9b6b09450250c4ca40cc3b81a96a68d upstream. Thinkpad Dock device support for ALC298 platform. It need to use SSID for the quirk table. Because IdeaPad also has ALC298 platform. Use verb for the quirk table will confuse. Signed-off-by: Kailang Yang <kailang@realtek.com> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|
5640397f06 |
ALSA: hda/realtek - Add headset mode support for Dell laptop
commit 40e2c4e5a7efcd50983aacbddd3c617e776018bf upstream. This platform had two Dmic and single Dmic. This update was for single Dmic. This commit was for two Dmic. Fixes: 75ee94b20b46 ("ALSA: hda - fix headset mic problem for Dell machines...") Signed-off-by: Kailang Yang <kailang@realtek.com> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|
8f65cd77c9 |
ALSA: usb-audio: Fix UAC2 get_ctl request with a RANGE attribute
commit 447cae58cecd69392b74a4a42cd0ab9cabd816af upstream. The layout of the UAC2 Control request and response varies depending on the request type. With the current implementation, only the Layout 2 Parameter Block (with the 2-byte sized RANGE attribute) is handled properly. For the Control requests with the 1-byte sized RANGE attribute (Bass Control, Mid Control, Tremble Control), the response is parsed incorrectly. This commit: * fixes the wLength field value in the request * fixes parsing the range values from the response Fixes: 23caaf19b11e ("ALSA: usb-mixer: Add support for Audio Class v2.0") Signed-off-by: Kirill Marinushkin <k.marinushkin@gmail.com> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|
c0cf529a8f |
ALSA: hda - Fix headset mic detection problem for two Dell machines
commit 3f2f7c553d077be6a30cb96b2976a2c940bf5335 upstream. One of them has the codec of alc256 and the other one has the codec of alc289. Cc: <stable@vger.kernel.org> Signed-off-by: Hui Wang <hui.wang@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|
2ba985d87a |
Merge remote-tracking branch 'remotes/origin/tmp-0a91e84' into msm-4.14
* remotes/origin/tmp-0a91e84: Linux 4.14.20 scsi: cxlflash: Reset command ioasc scsi: lpfc: Fix crash after bad bar setup on driver attachment rcu: Export init_rcu_head() and destroy_rcu_head() to GPL modules scsi: core: Ensure that the SCSI error handler gets woken up ftrace: Remove incorrect setting of glob search field devpts: fix error handling in devpts_mntget() mn10300/misalignment: Use SIGSEGV SEGV_MAPERR to report a failed user copy ovl: take mnt_want_write() for removing impure xattr ovl: fix failure to fsync lower dir acpi, nfit: fix register dimm error handling ACPI: sbshc: remove raw pointer from printk() message drm/i915: Avoid PPS HW/SW state mismatch due to rounding arm64: dts: marvell: add Ethernet aliases objtool: Fix switch-table detection btrfs: Handle btrfs_set_extent_delalloc failure in fixup worker lib/ubsan: add type mismatch handler for new GCC/Clang lib/ubsan.c: s/missaligned/misaligned/ clocksource/drivers/stm32: Fix kernel panic with multiple timers blk-mq: quiesce queue before freeing queue pktcdvd: Fix a recently introduced NULL pointer dereference pktcdvd: Fix pkt_setup_dev() error path pinctrl: sx150x: Add a static gpio/pinctrl pin range mapping pinctrl: sx150x: Register pinctrl before adding the gpiochip pinctrl: sx150x: Unregister the pinctrl on release pinctrl: mcp23s08: fix irq setup order pinctrl: intel: Initialize GPIO properly when used through irqchip EDAC, octeon: Fix an uninitialized variable warning xtensa: fix futex_atomic_cmpxchg_inatomic alpha: fix formating of stack content alpha: fix reboot on Avanti platform alpha: Fix mixed up args in EXC macro in futex operations alpha: osf_sys.c: fix put_tv32 regression alpha: fix crash if pthread_create races with signal delivery signal/sh: Ensure si_signo is initialized in do_divide_error signal/openrisc: Fix do_unaligned_access to send the proper signal ipmi: use dynamic memory for DMI driver override Bluetooth: btusb: Restore QCA Rome suspend/resume fix with a "rewritten" version Revert "Bluetooth: btusb: fix QCA Rome suspend/resume" Bluetooth: btsdio: Do not bind to non-removable BCM43341 HID: quirks: Fix keyboard + touchpad on Toshiba Click Mini not working pipe: fix off-by-one error when checking buffer limits pipe: actually allow root to exceed the pipe buffer limits kernel/relay.c: revert "kernel/relay.c: fix potential memory leak" kernel/async.c: revert "async: simplify lowest_in_progress()" fs/proc/kcore.c: use probe_kernel_read() instead of memcpy() media: cxusb, dib0700: ignore XC2028_I2C_FLUSH media: ts2020: avoid integer overflows on 32 bit machines media: dvb-frontends: fix i2c access helpers for KASAN kasan: rework Kconfig settings kasan: don't emit builtin calls when sanitization is off Btrfs: raid56: iterate raid56 internal bio with bio_for_each_segment_all watchdog: imx2_wdt: restore previous timeout after suspend+resume ASoC: skl: Fix kernel warning due to zero NHTL entry ASoC: rockchip: i2s: fix playback after runtime resume KVM: PPC: Book3S PR: Fix broken select due to misspelling KVM: arm/arm64: Handle CPU_PM_ENTER_FAILED KVM: PPC: Book3S HV: Drop locks before reading guest memory KVM: PPC: Book3S HV: Make sure we don't re-enter guest without XIVE loaded KVM: nVMX: Fix bug of injecting L2 exception into L1 KVM: nVMX: Fix races when sending nested PI while dest enters/leaves L2 arm: KVM: Fix SMCCC handling of unimplemented SMC/HVC calls crypto: sha512-mb - initialize pending lengths correctly crypto: caam - fix endless loop when DECO acquire fails media: v4l2-compat-ioctl32.c: make ctrl_is_pointer work for subdevs media: v4l2-compat-ioctl32.c: refactor compat ioctl32 logic media: v4l2-compat-ioctl32.c: don't copy back the result for certain errors media: v4l2-compat-ioctl32.c: drop pr_info for unknown buffer type media: v4l2-compat-ioctl32.c: copy clip list in put_v4l2_window32 media: v4l2-compat-ioctl32.c: fix ctrl_is_pointer media: v4l2-compat-ioctl32.c: copy m.userptr in put_v4l2_plane32 media: v4l2-compat-ioctl32.c: avoid sizeof(type) media: v4l2-compat-ioctl32.c: move 'helper' functions to __get/put_v4l2_format32 media: v4l2-compat-ioctl32.c: fix the indentation media: v4l2-compat-ioctl32.c: add missing VIDIOC_PREPARE_BUF media: v4l2-ioctl.c: don't copy back the result for -ENOTTY media: v4l2-ioctl.c: use check_fmt for enum/g/s/try_fmt crypto: hash - prevent using keyed hashes without setting key crypto: hash - annotate algorithms taking optional key crypto: poly1305 - remove ->setkey() method crypto: mcryptd - pass through absence of ->setkey() crypto: cryptd - pass through absence of ->setkey() crypto: hash - introduce crypto_hash_alg_has_setkey() ahci: Add Intel Cannon Lake PCH-H PCI ID ahci: Add PCI ids for Intel Bay Trail, Cherry Trail and Apollo Lake AHCI ahci: Annotate PCI ids for mobile Intel chipsets as such kernfs: fix regression in kernfs_fop_write caused by wrong type NFS: Fix a race between mmap() and O_DIRECT NFS: reject request for id_legacy key without auxdata NFS: commit direct writes even if they fail partially NFS: Fix nfsstat breakage due to LOOKUPP NFS: Add a cond_resched() to nfs_commit_release_pages() nfs41: do not return ENOMEM on LAYOUTUNAVAILABLE nfs/pnfs: fix nfs_direct_req ref leak when i/o falls back to the mds ubifs: free the encrypted symlink target ubi: block: Fix locking for idr_alloc/idr_remove ubi: fastmap: Erase outdated anchor PEBs during attach ubi: Fix race condition between ubi volume creation and udev mtd: nand: sunxi: Fix ECC strength choice mtd: nand: Fix nand_do_read_oob() return value mtd: nand: brcmnand: Disable prefetch by default mtd: cfi: convert inline functions to macros arm64: Kill PSCI_GET_VERSION as a variant-2 workaround arm64: Add ARM_SMCCC_ARCH_WORKAROUND_1 BP hardening support arm/arm64: smccc: Implement SMCCC v1.1 inline primitive arm/arm64: smccc: Make function identifiers an unsigned quantity firmware/psci: Expose SMCCC version through psci_ops firmware/psci: Expose PSCI conduit arm64: KVM: Add SMCCC_ARCH_WORKAROUND_1 fast handling arm64: KVM: Report SMCCC_ARCH_WORKAROUND_1 BP hardening support arm/arm64: KVM: Turn kvm_psci_version into a static inline arm64: KVM: Make PSCI_VERSION a fast path arm/arm64: KVM: Advertise SMCCC v1.1 arm/arm64: KVM: Implement PSCI 1.0 support arm/arm64: KVM: Add smccc accessors to PSCI code arm/arm64: KVM: Add PSCI_VERSION helper arm/arm64: KVM: Consolidate the PSCI include files arm64: KVM: Increment PC after handling an SMC trap arm64: Branch predictor hardening for Cavium ThunderX2 arm64: Implement branch predictor hardening for Falkor arm64: Implement branch predictor hardening for affected Cortex-A CPUs arm64: cputype: Add missing MIDR values for Cortex-A72 and Cortex-A75 arm64: entry: Apply BP hardening for suspicious interrupts from EL0 arm64: entry: Apply BP hardening for high-priority synchronous exceptions arm64: KVM: Use per-CPU vector when BP hardening is enabled arm64: Move BP hardening to check_and_switch_context arm64: Add skeleton to harden the branch predictor against aliasing attacks arm64: Move post_ttbr_update_workaround to C code drivers/firmware: Expose psci_get_version through psci_ops structure arm64: cpufeature: Pass capability structure to ->enable callback arm64: Run enable method for errata work arounds on late CPUs arm64: cpufeature: __this_cpu_has_cap() shouldn't stop early arm64: futex: Mask __user pointers prior to dereference arm64: uaccess: Mask __user pointers for __arch_{clear, copy_*}_user arm64: uaccess: Don't bother eliding access_ok checks in __{get, put}_user arm64: uaccess: Prevent speculative use of the current addr_limit arm64: entry: Ensure branch through syscall table is bounded under speculation arm64: Use pointer masking to limit uaccess speculation arm64: Make USER_DS an inclusive limit arm64: Implement array_index_mask_nospec() arm64: barrier: Add CSDB macros to control data-value prediction arm64: idmap: Use "awx" flags for .idmap.text .pushsection directives arm64: entry: Reword comment about post_ttbr_update_workaround arm64: Force KPTI to be disabled on Cavium ThunderX arm64: kpti: Add ->enable callback to remap swapper using nG mappings arm64: mm: Permit transitioning from Global to Non-Global without BBM arm64: kpti: Make use of nG dependent on arm64_kernel_unmapped_at_el0() arm64: Turn on KPTI only on CPUs that need it arm64: cputype: Add MIDR values for Cavium ThunderX2 CPUs arm64: kpti: Fix the interaction between ASID switching and software PAN arm64: mm: Introduce TTBR_ASID_MASK for getting at the ASID in the TTBR arm64: capabilities: Handle duplicate entries for a capability arm64: Take into account ID_AA64PFR0_EL1.CSV3 arm64: Kconfig: Reword UNMAP_KERNEL_AT_EL0 kconfig entry arm64: Kconfig: Add CONFIG_UNMAP_KERNEL_AT_EL0 arm64: use RET instruction for exiting the trampoline arm64: kaslr: Put kernel vectors address in separate data page arm64: entry: Add fake CPU feature for unmapping the kernel at EL0 arm64: tls: Avoid unconditional zeroing of tpidrro_el0 for native tasks arm64: cpu_errata: Add Kryo to Falkor 1003 errata arm64: erratum: Work around Falkor erratum #E1003 in trampoline code arm64: entry: Hook up entry trampoline to exception vectors arm64: entry: Explicitly pass exception level to kernel_ventry macro arm64: mm: Map entry trampoline into trampoline and kernel page tables arm64: entry: Add exception trampoline page for exceptions from EL0 arm64: mm: Invalidate both kernel and user ASIDs when performing TLBI arm64: mm: Add arm64_kernel_unmapped_at_el0 helper arm64: mm: Allocate ASIDs in pairs arm64: mm: Fix and re-enable ARM64_SW_TTBR0_PAN arm64: mm: Rename post_ttbr0_update_workaround arm64: mm: Remove pre_ttbr0_update_workaround for Falkor erratum #E1003 arm64: mm: Move ASID from TTBR0 to TTBR1 arm64: mm: Temporarily disable ARM64_SW_TTBR0_PAN arm64: mm: Use non-global mappings for kernel space arm64: move TASK_* definitions to <asm/processor.h> media: hdpvr: Fix an error handling path in hdpvr_probe() media: dvb-usb-v2: lmedm04: move ts2020 attach to dm04_lme2510_tuner media: dvb-usb-v2: lmedm04: Improve logic checking of warm start dccp: CVE-2017-8824: use-after-free in DCCP code drm/i915: Fix deadlock in i830_disable_pipe() drm/i915: Redo plane sanitation during readout drm/i915: Add .get_hw_state() method for planes sched/rt: Up the root domain ref count when passing it around via IPIs sched/rt: Use container_of() to get root domain in rto_push_irq_work_func() KVM MMU: check pending exception before injecting APF arm64: Add software workaround for Falkor erratum 1041 arm64: Define cputype macros for Falkor CPU watchdog: gpio_wdt: set WDOG_HW_RUNNING in gpio_wdt_stop sched/wait: Fix add_wait_queue() behavioral change dmaengine: dmatest: fix container_of member in dmatest_callback cpufreq: mediatek: add mediatek related projects into blacklist CIFS: zero sensitive data when freeing cifs: Fix autonegotiate security settings mismatch cifs: Fix missing put_xid in cifs_file_strict_mmap powerpc/pseries: include linux/types.h in asm/hvcall.h watchdog: indydog: Add dependency on SGI_HAS_INDYDOG ANDROID: Fixup 64/32-bit divide confusion for WALT configs Conflicts: include/trace/events/sched.h kernel/sched/sched.h lib/ubsan.c lib/ubsan.h arch/arm64/configs/sdm855_defconfig arch/arm64/configs/sdm855-perf_defconfig Change-Id: I034588046a45f3d8be0615bed40d2ddd334ebd74 Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org> |
||
|
4b3d435666 |
sound: usb: Add snapshot of usb audio qmi service
This change adds snapshot of usb audio qmi service related files. Usb audio device enumeration remote entity communicates with usb audio qmi server to enable or disable particular audio stream on usb audio device. This offloads ISOC data transfer operations to remote entity and allows apps processor to go to power collapse more frequently for better power saving. This snapshot is taken as of msm-4.9 commit c9738304eb08 ("qseecom: block system signals when waiting for listener available"). This change also fixes reported minor errors related to coding style and kzalloc() usage. Change-Id: I8e002f1e1936a03b1a0c585a61d0340e4a00a192 Signed-off-by: Mayank Rana <mrana@codeaurora.org> |
||
|
b897f1dc78 |
ASoC: skl: Fix kernel warning due to zero NHTL entry
commit 20a1ea2222e7cbf96e9bf8579362e971491e6aea upstream. I got the following kernel warning when loading snd-soc-skl module on Dell Latitude 7270 laptop: memremap attempted on mixed range 0x0000000000000000 size: 0x0 WARNING: CPU: 0 PID: 484 at kernel/memremap.c:98 memremap+0x8a/0x180 Call Trace: skl_nhlt_init+0x82/0xf0 [snd_soc_skl] skl_probe+0x2ee/0x7c0 [snd_soc_skl] .... It seems that the machine doesn't support the SKL DSP gives the empty NHLT entry, and it triggers the warning. For avoiding it, let do the zero check before calling memremap(). Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|
4562bfdeac |
ASoC: rockchip: i2s: fix playback after runtime resume
commit c66234cfedfc3e6e3b62563a5f2c1562be09a35d upstream. When restoring registers during runtime resume, we must not write to I2S_TXDR which is the transmit FIFO as this queues up a sample to be output and pushes all of the output channels down by one. This can be demonstrated with the speaker-test utility: for i in a b c; do speaker-test -c 2 -s 1; done which should play a test through the left speaker three times but if the I2S hardware starts runtime suspended the first sample will be played through the right speaker. Fix this by marking I2S_TXDR as volatile (which also requires marking it as readble, even though it technically isn't). This seems to be the most robust fix, the alternative of giving I2S_TXDR a default value is more fragile since it does not prevent regcache writing to the register in all circumstances. While here, also fix the configuration of I2S_RXDR and I2S_FIFOLR; these are not writable so they do not suffer from the same problem as I2S_TXDR but reading from I2S_RXDR does suffer from a similar problem. Fixes: f0447f6cbb20 ("ASoC: rockchip: i2s: restore register during runtime_suspend/resume cycle", 2016-09-07) Signed-off-by: John Keeping <john@metanate.com> Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|
80723d03bd |
sound: usb: Add support for parsing AudioControl intf for BADD devices
BADD 3.0 devices support three types of topologies; Basic I/P, Basic O/P, and BASIC I/P. Accordingly, various units and terminals have to be parsed which are not exposed by the device and host must be able to figure out various class-specific descriptors based on the profile ID of the device. This patch adds this logic to build various units and terminals of the AudioControl interface of a BADD device. Change-Id: Ib52f884133cdf6e0ec95f49095c14f7d005a5356 Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org> Signed-off-by: Hemant Kumar <hemantk@codeaurora.org> |
||
|
b9fa3f0878 |
sound: usb: Add support for parsing AudioStreaming intf for BADD devices
BADD(Basic Audio Device Definition) is a subset of UAC3 specifications. It defines standard profiles which provide specific attributes of class descriptors. BADD audio device provides profile id and BADD supporting host will infer attributes from profile-id. Currently USB Audio Host driver has support for UAC1 and UAC2 devices. To handle BADD 3.0 devices, AudioControl and AudioStreaming Interfaces have to be properly parsed. The Host has to derive all class-specific information based on the profile ID that the device exposes. Add support for parsing the AudioStreaming interfaces exposed by the device. Change-Id: I726bbb735708fe8e395011c7228a73d5f65c092d Signed-off-by: Ajay Agarwal <ajaya@codeaurora.org> Signed-off-by: Hemant Kumar <hemantk@codeaurora.org> Signed-off-by: Mayank Rana <mrana@codeaurora.org> |
||
|
3416691752 | Merge "sound: usb: replace %p with %pK" | ||
|
ddd3b7fca8 | Merge "sound: usb: auto suspend device only if it supports remote wakeup" | ||
|
3bfb3b63fb | Merge "sound: usb: Add helper APIs to enable audio stream" | ||
|
680fa500d3 |
Merge remote-tracking branch 'remotes/origin/tmp-6150ee7' into msm-4.14
* remotes/origin/tmp-6150ee7: ANDROID: qtaguid: Fix the UAF probelm with tag_ref_tree Linux 4.14.18 fpga: region: release of_parse_phandle nodes after use serial: core: mark port as initialized after successful IRQ change KVM/SVM: Allow direct access to MSR_IA32_SPEC_CTRL KVM/VMX: Allow direct access to MSR_IA32_SPEC_CTRL KVM/VMX: Emulate MSR_IA32_ARCH_CAPABILITIES KVM/x86: Add IBPB support KVM/x86: Update the reverse_cpuid list to include CPUID_7_EDX x86/speculation: Fix typo IBRS_ATT, which should be IBRS_ALL x86/pti: Mark constant arrays as __initconst x86/spectre: Simplify spectre_v2 command line parsing x86/retpoline: Avoid retpolines for built-in __init functions x86/kvm: Update spectre-v1 mitigation KVM: VMX: make MSR bitmaps per-VCPU x86/paravirt: Remove 'noreplace-paravirt' cmdline option x86/speculation: Use Indirect Branch Prediction Barrier in context switch x86/cpuid: Fix up "virtual" IBRS/IBPB/STIBP feature bits on Intel x86/spectre: Fix spelling mistake: "vunerable"-> "vulnerable" x86/spectre: Report get_user mitigation for spectre_v1 nl80211: Sanitize array index in parse_txq_params vfs, fdtable: Prevent bounds-check bypass via speculative execution x86/syscall: Sanitize syscall table de-references under speculation x86/get_user: Use pointer masking to limit speculation x86/uaccess: Use __uaccess_begin_nospec() and uaccess_try_nospec x86/usercopy: Replace open coded stac/clac with __uaccess_{begin, end} x86: Introduce __uaccess_begin_nospec() and uaccess_try_nospec x86: Introduce barrier_nospec x86: Implement array_index_mask_nospec array_index_nospec: Sanitize speculative array de-references Documentation: Document array_index_nospec x86/asm: Move 'status' from thread_struct to thread_info x86/entry/64: Push extra regs right away x86/entry/64: Remove the SYSCALL64 fast path x86/spectre: Check CONFIG_RETPOLINE in command line parser x86/mm: Fix overlap of i386 CPU_ENTRY_AREA with FIX_BTMAP objtool: Warn on stripped section symbol objtool: Add support for alternatives at the end of a section objtool: Improve retpoline alternative handling KVM: VMX: introduce alloc_loaded_vmcs KVM: nVMX: Eliminate vmcs02 pool ASoC: pcm512x: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE pinctrl: pxa: pxa2xx: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE iio: adc/accel: Fix up module licenses auxdisplay: img-ascii-lcd: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE x86/speculation: Simplify indirect_branch_prediction_barrier() x86/retpoline: Simplify vmexit_fill_RSB() x86/cpufeatures: Clean up Spectre v2 related CPUID flags x86/cpu/bugs: Make retpoline module warning conditional x86/bugs: Drop one "mitigation" from dmesg x86/nospec: Fix header guards names x86/alternative: Print unadorned pointers x86/speculation: Add basic IBPB (Indirect Branch Prediction Barrier) support x86/cpufeature: Blacklist SPEC_CTRL/PRED_CMD on early Spectre v2 microcodes x86/pti: Do not enable PTI on CPUs which are not vulnerable to Meltdown x86/msr: Add definitions for new speculation control MSRs x86/cpufeatures: Add AMD feature bits for Speculation Control x86/cpufeatures: Add Intel feature bits for Speculation Control x86/cpufeatures: Add CPUID_7_EDX CPUID leaf module/retpoline: Warn about missing retpoline in module KVM: VMX: Make indirect call speculation safe KVM: x86: Make indirect calls in emulator speculation safe x86/retpoline: Remove the esp/rsp thunk powerpc/64s: Allow control of RFI flush via debugfs powerpc/64s: Wire up cpu_show_meltdown() scripts/faddr2line: fix CROSS_COMPILE unset error Conflicts: drivers/iio/adc/qcom-vadc-common.c Change-Id: I6a344ddbf9a6d08f9b6de52e926ec0f7652fefdd Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org> |
||
|
9b2acba1ea |
sound: usb: replace %p with %pK
Format specifier %p can leak kernel addresses while not valuing the kptr_restrict system settings. When kptr_restrict is set to (1), kernel pointers printed using the %pK format specifier will be replaced with 0's. Debugging Note : &pK prints only Zeros as address. If you need actual address information, write 0 to kptr_restrict. echo 0 > /proc/sys/kernel/kptr_restrict Change-Id: Iaf20ac2175295dee8745c48f8c208a78b84dea91 Signed-off-by: Vamsi Krishna Samavedam <vskrishn@codeaurora.org> Signed-off-by: Mayank Rana <mrana@codeaurora.org> |
||
|
6449ed6a70 |
sound: usb: auto suspend device only if it supports remote wakeup
Some usb headsets which do not support remote wakeup when suspended and resumed by host resulting device disconnect. Hence do not suspend device if it not remote wake up capable. Change-Id: Ia2462116582b6e22c44cff88df2872e4127e5e29 Signed-off-by: Hemant Kumar <hemantk@codeaurora.org> |
||
|
65f7cb5788 |
sound: usb: Treat find format failure as error
This allows to check if requested format is supported by usb audio headset by looking at dmesg log. Change-Id: I3051dd49a1289e4ab46bb59b3537c664a37c3ee5 Signed-off-by: Hemant Kumar <hemantk@codeaurora.org> |
||
|
6801c4daf3 |
sound: usb: Enable autosuspend for usb audio device
This allows runtime suspend to kick in upon all the children of usb device are suspended. It saves power when usb audio device is connected but not data transfer is taking place. CRs-Fixed: 1003807 Change-Id: I227a74c029f10ffda9ceccc10322ad71e7fd0435 Signed-off-by: Hemant Kumar <hemantk@codeaurora.org> |
||
|
a34c8cfc26 |
sound: usb: Add helper APIs to enable audio stream
Adding helper API to find usb substream context information using card number, pcm device number and direction. This usb substream is used to enable/disable by issuing SET_ALT command to device. Also add disconnect call back to perform any clean up required. Change-Id: I252f5171bd94b5ab096eb1a2f053f29a8c049c3b Signed-off-by: Hemant Kumar <hemantk@codeaurora.org> Signed-off-by: Jack Pham <jackp@codeaurora.org> |
||
|
76f06358ec |
ASoC: pcm512x: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE
commit 0cab20cec0b663b7be8e2be5998d5a4113647f86 upstream. This change resolves a new compile-time warning when built as a loadable module: WARNING: modpost: missing MODULE_LICENSE() in sound/soc/codecs/snd-soc-pcm512x-spi.o see include/linux/module.h for more information This adds the license as "GPL v2", which matches the header of the file. MODULE_DESCRIPTION and MODULE_AUTHOR are also added. Signed-off-by: Jesse Chan <jc@linux.com> Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|
3d13954930 |
Merge remote-tracking branch 'remotes/origin/tmp-faeb94c' into msm-4.14
* remotes/origin/tmp-faeb94c: Linux 4.14.17 x86/efi: Clarify that reset attack mitigation needs appropriate userspace Input: synaptics-rmi4 - do not delete interrupt memory too early Input: synaptics-rmi4 - unmask F03 interrupts when port is opened test_firmware: fix missing unlock on error in config_num_requests_store() iio: chemical: ccs811: Fix output of IIO_CONCENTRATION channels iio: adc: stm32: fix scan of multiple channels with DMA spi: imx: do not access registers while clocks disabled serial: imx: Only wakeup via RTSDEN bit if the system has RTS/CTS serial: 8250_uniphier: fix error return code in uniphier_uart_probe() serial: 8250_of: fix return code when probe function fails to get reset mei: me: allow runtime pm for platform with D0i3 android: binder: use VM_ALLOC to get vm area ANDROID: binder: remove waitqueue when thread exits. usb/gadget: Fix "high bandwidth" check in usb_gadget_ep_match_desc() usb: uas: unconditionally bring back host after reset usb: f_fs: Prevent gadget unbind if it is already unbound USB: serial: simple: add Motorola Tetra driver usbip: list: don't list devices attached to vhci_hcd usbip: prevent bind loops on devices attached to vhci_hcd USB: serial: io_edgeport: fix possible sleep-in-atomic CDC-ACM: apply quirk for card reader USB: cdc-acm: Do not log urb submission errors on disconnect USB: serial: pl2303: new device id for Chilitag usb: option: Add support for FS040U modem tty: fix data race between tty_init_dev and flush of buf staging: ccree: fix fips event irq handling build staging: ccree: NULLify backup_info when unused staging: lustre: separate a connection destroy from free struct kib_conn KVM: x86: emulate #UD while in guest mode drm/vc4: Move IRQ enable to PM path staging: rtl8188eu: Fix incorrect response to SIOCGIWESSID usb: gadget: don't dereference g until after it has been null checked x86/xen: Support early interrupts in xen pv guests media: usbtv: add a new usbid ARM: dts: NSP: Fix PPI interrupt types ARM: dts: NSP: Disable AHCI controller for HR NSP boards iwlwifi: fix access to prph when transport is stopped iwlwifi: mvm: fix the TX queue hang timeout for MONITOR vif type scsi: ufs: ufshcd: fix potential NULL pointer dereference in ufshcd_config_vreg scsi: aacraid: Prevent crash in case of free interrupt during scsi EH path perf/core: Fix memory leak triggered by perf --namespace xfs: Properly retry failed dquot items in case of error during buffer writeback xfs: ubsan fixes drm/omap: displays: panel-dpi: add backlight dependency drm/omap: Fix error handling path in 'omap_dmm_probe()' drm/bridge: tc358767: fix 1-lane behavior drm/bridge: tc358767: fix AUXDATAn registers access drm/bridge: tc358767: fix timing calculations drm/bridge: tc358767: fix DP0_MISC register set drm/bridge: tc358767: filter out too high modes drm/bridge: tc358767: do no fail on hi-res displays drm/bridge: Fix lvds-encoder since the panel_bridge rework. kmemleak: add scheduling point to kmemleak_scan() scripts/faddr2line: extend usage on generic arch SUNRPC: Allow connect to return EHOSTUNREACH quota: Check for register_shrinker() failure. net: ethernet: xilinx: Mark XILINX_LL_TEMAC broken on 64-bit drm/amdgpu: don't try to move pinned BOs xfs: fortify xfs_alloc_buftarg error handling nvme-pci: fix NULL pointer dereference in nvme_free_host_mem() Btrfs: incremental send, fix wrong unlink path after renaming file bnxt_en: Fix an error handling path in 'bnxt_get_module_eeprom()' net: phy: marvell10g: fix the PHY id mask net: mvpp2: fix the txq_init error path quota: propagate error from __dquot_initialize hwmon: (pmbus) Use 64bit math for DIRECT format values lockd: fix "list_add double add" caused by legacy signal interface race of lockd inetaddr notifiers vs nlmsvc_rqst change nfsd: check for use of the closed special stateid grace: replace BUG_ON by WARN_ONCE in exit_net hook nfsd: Ensure we check stateid validity in the seqid operation checks nfsd: CLOSE SHOULD return the invalid special stateid for NFSv4.x (x>0) auxdisplay: img-ascii-lcd: Only build on archs that have IOMEM xen-netfront: remove warning when unloading module i2c: i2c-boardinfo: fix memory leaks on devinfo xfs: log recovery should replay deferred ops in order xfs: always free inline data before resetting inode fork during ifree KVM: Let KVM_SET_SIGNAL_MASK work as advertised Btrfs: fix list_add corruption and soft lockups in fsync KVM: VMX: Fix rflags cache during vCPU reset KVM: X86: Fix softlockup when get the current kvmclock reiserfs: remove unneeded i_version bump sctp: set sender next_tsn for the old result with ctsn_ack_point plus 1 sctp: avoid flushing unsent queue when doing asoc reset sctp: only allow the asoc reset when the asoc outq is empty btrfs: fix deadlock when writing out space cache mac80211: fix the update of path metric for RANN frame mac80211: use QoS NDP for AP probing drm/rockchip: dw-mipi-dsi: fix possible un-balanced runtime PM enable openvswitch: fix the incorrect flow action alloc size nvme-rdma: don't complete requests before a send work request has completed uapi: fix linux/kfd_ioctl.h userspace compilation errors drm/amdkfd: Fix SDMA oversubsription handling drm/amdkfd: Fix SDMA ring buffer size calculation drm/amdgpu: Fix SDMA load/unload sequence on HWS disabled mode bcache: check return value of register_shrinker rxrpc: Fix service endpoint expiry rxrpc: Provide a different lockdep key for call->user_mutex for kernel calls rxrpc: The mutex lock returned by rxrpc_accept_call() needs releasing s390: fix alloc_pgste check in init_new_context again null_blk: fix dev->badblocks leak cpufreq: Add Loongson machine dependencies ACPI / bus: Leave modalias empty for devices which are not present s390/zcrypt: Fix wrong comparison leading to strange load balancing s390/topology: fix compile error in file arch/s390/kernel/smp.c nvmet-fc: correct ref counting error when deferred rcv used nvme-pci: avoid hmb desc array idx out-of-bound when hmmaxd set. nvme-pci: disable APST on Samsung SSD 960 EVO + ASUS PRIME B350M-A nvme-loop: check if queue is ready in queue_rq nvme-fc: check if queue is ready in queue_rq nvme-fabrics: introduce init command check for a queue that is not alive KVM: nVMX: Fix vmx_check_nested_events() return value in case an event was reinjected to L2 KVM: x86: ioapic: Preserve read-only values in the redirection table KVM: x86: ioapic: Clear Remote IRR when entry is switched to edge-triggered KVM: x86: ioapic: Fix level-triggered EOI and IOAPIC reconfigure race KVM: x86: fix em_fxstor() sleeping while in atomic KVM: nVMX: Fix mmu context after VMLAUNCH/VMRESUME failure KVM: X86: Fix operand/address-size during instruction decoding KVM: x86: Don't re-execute instruction when not passing CR2 value KVM: x86: emulator: Return to user-mode on L1 CPL=0 emulation failure KVM: nVMX/nSVM: Don't intercept #UD when running L2 cpupower : Fix cpupower working when cpu0 is offline cpupowerutils: bench - Fix cpu online check Btrfs: bail out gracefully rather than BUG_ON btrfs: Fix transaction abort during failure in btrfs_rm_dev_item drm/vc4: Account for interrupts in flight VFS: Handle lazytime in do_mount() scsi: aacraid: Fix hang in kdump scsi: aacraid: Fix udev inquiry race condition ima/policy: fix parsing of fsuuid igb: Free IRQs when device is hotplugged mtd: nand: denali_pci: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE gpio: ath79: add missing MODULE_DESCRIPTION/LICENSE gpio: iop: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE power: reset: zx-reboot: add missing MODULE_DESCRIPTION/AUTHOR/LICENSE HID: wacom: Fix reporting of touch toggle (WACOM_HID_WD_MUTE_DEVICE) events HID: wacom: EKR: ensure devres groups at higher indexes are released crypto: af_alg - whitelist mask and type crypto: sha3-generic - fixes for alignment and big endian operation crypto: inside-secure - avoid unmapping DMA memory that was not mapped crypto: inside-secure - fix hash when length is a multiple of a block crypto: aesni - Fix out-of-bounds access of the AAD buffer in generic-gcm-aesni crypto: aesni - Fix out-of-bounds access of the data buffer in generic-gcm-aesni crypto: aesni - add wrapper for generic gcm(aes) crypto: aesni - Use GCM IV size constant crypto: gcm - add GCM IV size constant crypto: aesni - fix typo in generic_gcmaes_decrypt crypto: aesni - handle zero length dst buffer crypto: ecdh - fix typo in KPP dependency of CRYPTO_ECDH ALSA: hda - Reduce the suspend time consumption for ALC256 gpio: Fix kernel stack leak to userspace gpio: stmpe: i2c transfer are forbiden in atomic context tools/gpio: Fix build error with musl libc KVM: x86: Fix CPUID function for word 6 (80000001_ECX) loop: fix concurrent lo_open/lo_release futex: Fix OWNER_DEAD fixup ANDROID: sdcardfs: Protect set_top ANDROID: fsnotify: Notify lower fs of open Revert "ANDROID: sdcardfs: notify lower file of opens" ANDROID: sdcardfs: Use lower getattr times/size ANDROID: Remove duplicate security fix Change-Id: Icd6d668734e40a73e87cce6c5d467f74cff3e5ae Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org> |
||
|
a5ba0b372d |
ALSA: hda - Reduce the suspend time consumption for ALC256
commit 1c9609e3a8cf5997bd35205cfda1ff2218ee793b upstream. ALC256 has its own quirk to override the shutup call, and it contains the COEF update for pulling down the headset jack control. Currently, the COEF update is called after clearing the headphone pin, and this seems triggering a stall of the codec communication, and results in a long delay over a second at suspend. A quick resolution is to swap the calls: at first with the COEF update, then clear the headphone pin. Fixes: 4a219ef8f370 ("ALSA: hda/realtek - Add ALC256 HP depop function") Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=198503 Reported-by: Paul Menzel <pmenzel@molgen.mpg.de> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|
248716a258 |
Merge remote-tracking branch 'remotes/origin/tmp-f2e8962' into msm-4.14
* remotes/origin/tmp-f2e8962: Linux 4.14.15 MIPS: AR7: ensure the port type's FCR value is used net: mvpp2: do not disable GMAC padding mm, page_vma_mapped: Drop faulty pointer arithmetics in check_pte() x86/mm: Rework wbinvd, hlt operation in stop_this_cpu() x86/retpoline: Optimize inline assembler for vmexit_fill_RSB x86/pti: Document fix wrong index kprobes/x86: Disable optimizing on the function jumps to indirect thunk kprobes/x86: Blacklist indirect thunk functions for kprobes retpoline: Introduce start/end markers of indirect thunk x86/mce: Make machine check speculation protected arm64: KVM: Fix SMCCC handling of unimplemented SMC/HVC calls KVM: arm/arm64: Check pagesize when allocating a hugepage at Stage 2 MIPS: CM: Drop WARN_ON(vp != 0) alpha/PCI: Fix noname IRQ level detection x86: Use __nostackprotect for sme_encrypt_kernel dm crypt: fix error return code in crypt_ctr() dm crypt: wipe kernel key copy after IV initialization dm crypt: fix crash by adding missing check for auth key size dm integrity: don't store cipher request on the stack dm thin metadata: THIN_MAX_CONCURRENT_LOCKS should be 6 dm btree: fix serious bug in btree_split_beneath() drm/vmwgfx: fix memory corruption with legacy/sou connectors workqueue: avoid hard lockups in show_workqueue_state() scsi: libsas: Disable asynchronous aborts for SATA devices libata: apply MAX_SEC_1024 to all LITEON EP1 series devices proc: fix coredump vs read /proc/*/stat race scripts/gdb/linux/tasks.py: fix get_thread_info i2c: core-smbus: prevent stack corruption on read I2C_BLOCK_DATA can: af_can: canfd_rcv(): replace WARN_ONCE by pr_warn_once can: af_can: can_rcv(): replace WARN_ONCE by pr_warn_once can: peak: fix potential bug in packet fragmentation ARM: dts: kirkwood: fix pin-muxing of MPP7 on OpenBlocks A7 ARM: sunxi_defconfig: Enable CMA ARM64: dts: marvell: armada-cp110: Fix clock resources for various node phy: work around 'phys' references to usb-nop-xceiv devices tracing: Fix converting enum's from the map in trace_event_eval_update() Input: twl4030-vibra - fix sibling-node lookup Input: twl6040-vibra - fix child-node lookup Input: 88pm860x-ts - fix child-node lookup Input: synaptics-rmi4 - prevent UAF reported by KASAN Input: ALPS - fix multi-touch decoding on SS4 plus touchpads x86/mm: Encrypt the initrd earlier for BSP microcode update ARM: OMAP3: hwmod_data: add missing module_offs for MMC3 x86/mm: Prepare sme_encrypt_kernel() for PAGE aligned encryption x86/mm: Centralize PMD flags in sme_encrypt_kernel() x86/mm: Use a struct to reduce parameters for SME PGD mapping x86/mm: Clean up register saving in the __enc_copy() assembly code x86/apic/vector: Fix off by one in error path pipe: avoid round_pipe_size() nr_pages overflow on 32-bit x86/tsc: Fix erroneous TSC rate on Skylake Xeon x86/tsc: Future-proof native_calibrate_tsc() x86/idt: Mark IDT tables __initconst x86/mm/pkeys: Fix fill_sig_info_pkey x86/intel_rdt/cqm: Prevent use after free module: Add retpoline tag to VERMAGIC x86/cpufeature: Move processor tracing out of scattered features objtool: Improve error message for bad file argument x86/retpoline: Add LFENCE to the retpoline/RSB filling RSB macros x86/retpoline: Fill RSB on context switch for affected CPUs x86/kasan: Panic if there is not enough memory to boot mmc: sdhci-esdhc-imx: Fix i.MX53 eSDHCv3 clock objtool: Fix seg fault with gold linker delayacct: Account blkio completion on the correct task iser-target: Fix possible use-after-free in connection establishment error af_key: fix buffer overread in parse_exthdrs() af_key: fix buffer overread in verify_address_len() timers: Unconditionally check deferrable base RDMA/mlx5: Fix out-of-bound access while querying AH IB/hfi1: Prevent a NULL dereference ALSA: hda - Apply the existing quirk to iMac 14,1 ALSA: hda - Apply headphone noise quirk for another Dell XPS 13 variant ALSA: pcm: Remove yet superfluous WARN_ON() ALSA: seq: Make ioctls race-free futex: Prevent overflow by strengthen input validation futex: Avoid violating the 10th rule of futex powerpc/powernv: Check device-tree for RFI flush settings powerpc/pseries: Query hypervisor for RFI flush settings powerpc/64s: Support disabling RFI flush with no_rfi_flush and nopti powerpc/64s: Add support for RFI flush of L1-D cache powerpc/64s: Convert slb_miss_common to use RFI_TO_USER/KERNEL powerpc/64: Convert fast_exception_return to use RFI_TO_USER/KERNEL powerpc/64: Convert the syscall exit path to use RFI_TO_USER/KERNEL powerpc/64s: Simple RFI macro conversions powerpc/64: Add macros for annotating the destination of rfid/hrfid powerpc/pseries: Add H_GET_CPU_CHARACTERISTICS flags & wrapper objtool: Fix seg fault caused by missing parameter objtool: Fix Clang enum conversion warning objtool: Fix seg fault with clang-compiled objects drm/nouveau/disp/gf119: add missing drive vfunc ptr tools/objtool/Makefile: don't assume sync-check.sh is executable Conflicts: kernel/workqueue.c Change-Id: If4b22ae36c4604ff7376074d2707b24fd7c1c442 Signed-off-by: Runmin Wang <runminw@codeaurora.org> |
||
|
4fd34c4a67 | Merge "Merge android-4.14.14 (9b68347) into msm-4.14" |