Merge branch 'android11-5.4' into 'android11-5.4-lts'

Sync up with android11-5.4 for the following commits:

247d907f7b ANDROID: ABI: update symbols of unisoc whitelist
1a955566df Revert "BACKPORT: FROMGIT: mm: improve mprotect(R|W) efficiency on pages referenced once"

Change-Id: I8426fd20f5fd145dc166b9542530e8b6e09df90f
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Greg Kroah-Hartman 2021-01-19 18:37:53 +01:00
commit 5fcc99581b
2 changed files with 21 additions and 6 deletions

View file

@ -30,6 +30,7 @@
bpf_trace_run4
__breadahead
bus_register
bus_set_iommu
bus_unregister
call_rcu
cancel_delayed_work
@ -110,6 +111,7 @@
device_destroy
device_initialize
device_init_wakeup
device_link_add
device_match_fwnode
device_match_name
device_property_present
@ -180,6 +182,10 @@
drm_dev_register
drm_err
drm_ioctl
drm_mm_init
drm_mm_insert_node_in_range
drm_mm_remove_node
drm_mm_takedown
drm_mode_config_cleanup
drm_mode_config_init
drm_open
@ -281,7 +287,11 @@
iommu_alloc_resv_region
iommu_attach_device
iommu_detach_device
iommu_device_link
iommu_device_register
iommu_device_sysfs_add
iommu_device_sysfs_remove
iommu_device_unlink
iommu_device_unregister
iommu_dma_get_resv_regions
iommu_domain_alloc
@ -292,6 +302,7 @@
iommu_fwspec_free
iommu_get_dma_cookie
iommu_get_domain_for_dev
iommu_group_alloc
iommu_group_get
iommu_group_get_for_dev
iommu_group_get_iommudata
@ -995,6 +1006,7 @@
skb_checksum_help
strim
xfrm_lookup
completion_done
# required by kfifo_buf.ko
devres_add
@ -1144,6 +1156,7 @@
# required by pvrsrvkm.ko
autoremove_wake_function
bpf_trace_run6
bpf_trace_run7
bpf_trace_run8
cache_line_size
@ -1196,6 +1209,7 @@
get_unused_fd_flags
idr_preload
idr_replace
ion_query_heaps_kernel
kill_pid
ksize
kthread_freezable_should_stop
@ -1207,6 +1221,7 @@
of_modalias_node
on_each_cpu
prepare_to_wait
proc_remove
put_unused_fd
_raw_read_lock_bh
_raw_read_unlock_bh
@ -1222,6 +1237,7 @@
strsep
sync_file_create
sync_file_get_fence
__task_pid_nr_ns
trace_print_symbols_seq
trace_set_clr_event
unmap_mapping_range
@ -1993,6 +2009,7 @@
# required by usb_f_mtp.ko
usb_os_desc_prepare_interf_dir
usb_string_id
config_group_init_type_name
# required by usbserial.ko
device_del
@ -2549,3 +2566,7 @@
kobject_init_and_add
sched_setscheduler_nocheck
strpbrk
# required by sprd_wdf.ko
kstrtoull_from_user
smpboot_register_percpu_thread

View file

@ -43,8 +43,6 @@ static unsigned long change_pte_range(struct vm_area_struct *vma, pmd_t *pmd,
spinlock_t *ptl;
unsigned long pages = 0;
int target_node = NUMA_NO_NODE;
bool anon_writable =
vma_is_anonymous(vma) && (vma->vm_flags & VM_WRITE);
/*
* Can be called with only the mmap_sem for reading by
@ -121,11 +119,7 @@ static unsigned long change_pte_range(struct vm_area_struct *vma, pmd_t *pmd,
(pte_soft_dirty(ptent) ||
!(vma->vm_flags & VM_SOFTDIRTY))) {
ptent = pte_mkwrite(ptent);
} else if (anon_writable &&
page_mapcount(pte_page(ptent)) == 1) {
ptent = pte_mkwrite(ptent);
}
ptep_modify_prot_commit(vma, addr, pte, oldpte, ptent);
pages++;
} else if (IS_ENABLED(CONFIG_MIGRATION)) {