All of lore.kernel.org
 help / color / mirror / Atom feed
From: Willy Tarreau <w@1wt.eu>
To: linux-kernel@vger.kernel.org, stable@vger.kernel.org, linux@roeck-us.net
Cc: Joerg Roedel <jroedel@suse.de>, Willy Tarreau <w@1wt.eu>
Subject: [PATCH 3.10 053/139] iommu/amd: Finish TLB flush in amd_iommu_unmap()
Date: Wed,  1 Nov 2017 22:25:54 +0100	[thread overview]
Message-ID: <1509571600-4858-4-git-send-email-w@1wt.eu> (raw)
In-Reply-To: <1509571600-4858-1-git-send-email-w@1wt.eu>

From: Joerg Roedel <jroedel@suse.de>

commit ce76353f169a6471542d999baf3d29b121dce9c0 upstream.

The function only sends the flush command to the IOMMU(s),
but does not wait for its completion when it returns. Fix
that.

Fixes: 601367d76bd1 ('x86/amd-iommu: Remove iommu_flush_domain function')
Cc: stable@vger.kernel.org 
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Willy Tarreau <w@1wt.eu>
---
 drivers/iommu/amd_iommu.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c
index 0e7cd14..88ba964 100644
--- a/drivers/iommu/amd_iommu.c
+++ b/drivers/iommu/amd_iommu.c
@@ -3402,6 +3402,7 @@ static size_t amd_iommu_unmap(struct iommu_domain *dom, unsigned long iova,
 	mutex_unlock(&domain->api_lock);
 
 	domain_flush_tlb_pde(domain);
+	domain_flush_complete(domain);
 
 	return unmap_size;
 }
-- 
2.8.0.rc2.1.gbe9624a

  parent reply	other threads:[~2017-11-01 21:37 UTC|newest]

Thread overview: 153+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-01 21:17 [PATCH 3.10 000/139] 3.10.108-stable review Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 001/139] ipvs: SNAT packet replies only for NATed connections Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 002/139] net: reduce skb_warn_bad_offload() noise Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 003/139] net: skb_needs_check() accepts CHECKSUM_NONE for tx Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 004/139] Staging: comedi: comedi_fops: Avoid orphaned proc entry Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 005/139] udp: consistently apply ufo or fragmentation Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 006/139] Bluetooth: bnep: bnep_add_connection() should verify that it's dealing with l2cap socket Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 007/139] Bluetooth: cmtp: cmtp_add_connection() " Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 008/139] tcp: introduce tcp_rto_delta_us() helper for xmit timer fix Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 009/139] tcp: enable xmit timer fix by having TLP use time when RTO should fire Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 010/139] tcp: fix xmit timer to only be reset if data ACKed/SACKed Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 011/139] mm/page_alloc: Remove kernel address exposure in free_reserved_area() Willy Tarreau
2017-11-01 21:17   ` Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 012/139] leak in O_DIRECT readv past the EOF Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 013/139] usb: renesas_usbhs: fix the behavior of some usbhs_pkt_handle Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 014/139] usb: renesas_usbhs: fix the sequence in xfer_work() Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 015/139] usb: renesas_usbhs: Fix DMAC sequence for receiving zero-length packet Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 016/139] fs/exec.c: account for argv/envp pointers Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 017/139] rxrpc: Fix several cases where a padded len isn't checked in ticket decode Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 018/139] xfrm: policy: check policy direction value Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 019/139] nl80211: check for the required netlink attributes presence Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 020/139] ALSA: seq: Fix use-after-free at creating a port Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 021/139] MIPS: Send SIGILL for BPOSGE32 in `__compute_return_epc_for_insn' Willy Tarreau
2017-11-06  4:41   ` Huacai Chen
2017-11-06  5:07     ` Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 022/139] serial: ifx6x60: fix use-after-free on module unload Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 023/139] KEYS: fix dereferencing NULL payload with nonzero length Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 024/139] usb: chipidea: debug: check before accessing ci_role Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 025/139] cpufreq: conservative: Allow down_threshold to take values from 1 to 10 Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 026/139] powerpc/kprobes: Pause function_graph tracing during jprobes handling Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 027/139] staging: comedi: fix clean-up of comedi_class in comedi_init() Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 028/139] brcmfmac: fix possible buffer overflow in brcmf_cfg80211_mgmt_tx() Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 029/139] vt: fix unchecked __put_user() in tioclinux ioctls Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 030/139] crypto: talitos - Extend max key length for SHA384/512-HMAC and AEAD Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 031/139] PM / Domains: Fix unsafe iteration over modified list of device links Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 032/139] powerpc/64: Fix atomic64_inc_not_zero() to return an int Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 033/139] powerpc: Fix emulation of mfocrf in emulate_step() Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 034/139] powerpc/asm: Mark cr0 as clobbered in mftb() Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 035/139] usb: renesas_usbhs: fix usbhsc_resume() for !USBHSF_RUNTIME_PWCTRL Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 036/139] MIPS: Actually decode JALX in `__compute_return_epc_for_insn' Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 037/139] MIPS: Fix unaligned PC interpretation in `compute_return_epc' Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 038/139] MIPS: math-emu: Prevent wrong ISA mode instruction emulation Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 039/139] libata: array underflow in ata_find_dev() Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 040/139] workqueue: restore WQ_UNBOUND/max_active==1 to be ordered Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 041/139] ext4: fix SEEK_HOLE/SEEK_DATA for blocksize < pagesize Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 042/139] ext4: fix overflow caused by missing cast in ext4_resize_fs() Willy Tarreau
2017-11-01 21:17 ` [PATCH 3.10 043/139] media: platform: davinci: return -EINVAL for VPFE_CMD_S_CCDC_RAW_PARAMS ioctl Willy Tarreau
2017-11-01 21:25 ` Willy Tarreau
2017-11-01 21:25 ` [PATCH 3.10 044/139] target: Avoid mappedlun symlink creation during lun shutdown Willy Tarreau
2017-11-01 21:25 ` [PATCH 3.10 050/139] scsi: zfcp: trace HBA FSF response by default on dismiss or timedout late response Willy Tarreau
2017-11-01 21:25   ` [PATCH 3.10 051/139] usb: renesas_usbhs: fix the BCLR setting condition for non-DCP pipe Willy Tarreau
2017-11-01 21:25   ` [PATCH 3.10 052/139] usb: renesas_usbhs: fix usbhsf_fifo_clear() for RX direction Willy Tarreau
2017-11-01 21:25   ` Willy Tarreau [this message]
2017-11-01 21:25   ` [PATCH 3.10 054/139] direct-io: Prevent NULL pointer access in submit_page_section Willy Tarreau
2017-11-01 22:43     ` Andreas Gruenbacher
2017-11-02  6:17       ` Willy Tarreau
2017-11-01 21:25   ` [PATCH 3.10 055/139] USB: serial: console: fix use-after-free after failed setup Willy Tarreau
2017-11-01 21:25   ` [PATCH 3.10 056/139] KEYS: don't let add_key() update an uninstantiated key Willy Tarreau
2017-11-01 21:25   ` [PATCH 3.10 058/139] ext4: keep existing extra fields when inode expands Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 059/139] MIPS: Fix mips_atomic_set() retry condition Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 062/139] md/bitmap: disable bitmap_resize for file-backed bitmaps Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 064/139] netfilter: invoke synchronize_rcu after set the _hook_ to NULL Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 065/139] md/raid10: submit bio directly to replacement disk Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 066/139] md: fix super_offset endianness in super_1_rdev_size_change Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 067/139] lib/cmdline.c: fix get_options() overflow while parsing ranges Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 068/139] ext4: fix SEEK_HOLE Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 069/139] net: prevent sign extension in dev_get_stats() Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 070/139] kernel/extable.c: mark core_kernel_text notrace Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 071/139] wext: handle NULL extra data in iwe_stream_add_point better Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 072/139] netfilter: nf_ct_ext: fix possible panic after nf_ct_extend_unregister Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 073/139] ext4: in ext4_seek_{hole,data}, return -ENXIO for negative offsets Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 074/139] ext4: avoid deadlock when expanding inode size Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 075/139] sctp: don't dereference ptr before leaving _sctp_walk_{params, errors}() Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 076/139] sctp: fix the check for _sctp_walk_params and _sctp_walk_errors Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 077/139] sctp: fully initialize the IPv6 address in sctp_v6_to_addr() Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 078/139] sctp: potential read out of bounds in sctp_ulpevent_type_enabled() Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 079/139] tcp: disallow cwnd undo when switching congestion control Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 080/139] netfilter: xt_TCPMSS: add more sanity tests on tcph->doff Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 081/139] tcp: reset sk_rx_dst in tcp_disconnect() Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 082/139] tcp: avoid setting cwnd to invalid ssthresh after cwnd reduction states Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 083/139] tcp: when rearming RTO, if RTO time is in past then fire RTO ASAP Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 084/139] tcp: initialize rcv_mss to TCP_MIN_MSS instead of 0 Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 085/139] net/packet: check length in getsockopt() called with PACKET_HDRLEN Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 086/139] net: Set sk_prot_creator when cloning sockets to the right proto Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 087/139] net/mlx4_core: Fix VF overwrite of module param which disables DMFS on new probed PFs Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 088/139] net: 8021q: Fix one possible panic caused by BUG_ON in free_netdev Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 089/139] x86/io: Add "memory" clobber to insb/insw/insl/outsb/outsw/outsl Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 090/139] kvm: async_pf: fix rcu_irq_enter() with irqs enabled Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 091/139] net: ping: do not abuse udp_poll() Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 092/139] scsi: qla2xxx: don't disable a not previously enabled PCI device Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 093/139] drm/vmwgfx: Handle vmalloc() failure in vmw_local_fifo_reserve() Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 094/139] net: xilinx_emaclite: fix receive buffer overflow Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 095/139] serial: efm32: Fix parity management in 'efm32_uart_console_get_options()' Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 096/139] x86/mm/32: Set the '__vmalloc_start_set' flag in initmem_init() Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 097/139] mfd: omap-usb-tll: Fix inverted bit use for USB TLL mode Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 098/139] [media] pvrusb2: reduce stack usage pvr2_eeprom_analyze() Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 099/139] usb: r8a66597-hcd: select a different endpoint on timeout Willy Tarreau
2017-11-01 21:26 ` [PATCH 3.10 045/139] fuse: initialize the flock flag in fuse_file on allocation Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 046/139] scsi: zfcp: fix queuecommand for scsi_eh commands when DIX enabled Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 047/139] scsi: zfcp: add handling for FCP_RESID_OVER to the fcp ingress path Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 048/139] scsi: zfcp: fix missing trace records for early returns in TMF eh handlers Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 049/139] scsi: zfcp: fix payload with full FCP_RSP IU in SCSI trace records Willy Tarreau
2017-11-01 21:26 ` [PATCH 3.10 100/139] usb: r8a66597-hcd: decrease timeout Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 101/139] drivers/misc/c2port/c2port-duramar2150.c: checking for NULL instead of IS_ERR() Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 102/139] net: phy: fix marvell phy status reading Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 103/139] net: korina: Fix NAPI versus resources freeing Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 104/139] xfrm: NULL dereference on allocation failure Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 105/139] xfrm: Oops on error in pfkey_msg2xfrm_state() Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 106/139] cpufreq: s3c2416: double free on driver init error path Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 107/139] KVM: x86: zero base3 of unusable segments Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 108/139] KEYS: Fix an error code in request_master_key() Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 109/139] ipv6: avoid unregistering inet6_dev for loopback Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 110/139] cfg80211: Validate frequencies nested in NL80211_ATTR_SCAN_FREQUENCIES Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 111/139] cfg80211: Check if PMKID attribute is of expected size Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 112/139] mm: fix overflow check in expand_upwards() Willy Tarreau
2017-11-02  9:19     ` Geert Uytterhoeven
2017-11-02  9:44       ` Willy Tarreau
2017-11-02  9:44         ` Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 113/139] crypto: caam - fix signals handling Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 114/139] [media] ir-core: fix gcc-7 warning on bool arithmetic Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 115/139] udf: Fix deadlock between writeback and udf_setsize() Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 116/139] perf annotate: Fix broken arrow at row 0 connecting jmp instruction to its target Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 117/139] net/mlx4: Remove BUG_ON from ICM allocation routine Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 118/139] ipv4: initialize fib_trie prior to register_netdev_notifier call Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 119/139] workqueue: implicit ordered attribute should be overridable Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 120/139] packet: fix tp_reserve race in packet_set_ring Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 121/139] staging:iio:resolver:ad2s1210 fix negative IIO_ANGL_VEL read Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 122/139] ALSA: core: Fix unexpected error at replacing user TLV Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 123/139] ACPI / APEI: Add missing synchronize_rcu() on NOTIFY_SCI removal Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 124/139] qlge: avoid memcpy buffer overflow Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 125/139] ipv6: fix memory leak with multiple tables during netns destruction Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 126/139] ipv6: fix typo in fib6_net_exit() Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 127/139] ip6_gre: fix endianness errors in ip6gre_err Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 128/139] crypto: AF_ALG - remove SGL terminator indicator when chaining Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 129/139] scsi: qla2xxx: Fix an integer overflow in sysfs code Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 130/139] tracing: Apply trace_clock changes to instance max buffer Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 131/139] tracing: Erase irqsoff trace with empty write Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 132/139] btrfs: prevent to set invalid default subvolid Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 133/139] IB/ipoib: rtnl_unlock can not come after free_netdev Willy Tarreau
2017-11-01 21:26   ` [PATCH 3.10 134/139] team: fix memory leaks Willy Tarreau
2017-11-01 21:27   ` [PATCH 3.10 135/139] IB/qib: fix false-postive maybe-uninitialized warning Willy Tarreau
2017-11-01 21:27   ` [PATCH 3.10 136/139] KVM: nVMX: fix guest CR4 loading when emulating L2 to L1 exit Willy Tarreau
2017-11-01 21:27   ` [PATCH 3.10 137/139] usb: gadget: composite: Fix use-after-free in usb_composite_overwrite_options Willy Tarreau
2017-11-01 21:27   ` [PATCH 3.10 138/139] scsi: scsi_dh_emc: return success in clariion_std_inquiry() Willy Tarreau
2017-11-01 21:27   ` [PATCH 3.10 139/139] can: esd_usb2: Fix can_dlc value for received RTR, frames Willy Tarreau
2017-11-02  1:21 ` [PATCH 3.10 000/139] 3.10.108-stable review Guenter Roeck
2017-11-02  6:12   ` Willy Tarreau
2017-11-05  4:27     ` Levin, Alexander (Sasha Levin)
2017-11-05 14:03       ` Guenter Roeck
2017-11-02  8:08 ` Christoph Biedl
2017-11-02  8:15   ` Willy Tarreau
2017-11-02 21:23     ` Christoph Biedl
2017-11-02 22:40       ` Willy Tarreau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1509571600-4858-4-git-send-email-w@1wt.eu \
    --to=w@1wt.eu \
    --cc=jroedel@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.