OrangePi_CM5/include/trace/events
Peter Collingbourne 0c24ee770c BACKPORT: FROMGIT: kasan: disable freed user page poisoning with HW tags
Poisoning freed pages protects against kernel use-after-free. The
likelihood of such a bug involving kernel pages is significantly higher
than that for user pages. At the same time, poisoning freed pages can
impose a significant performance cost, which cannot always be justified
for user pages given the lower probability of finding a bug. Therefore,
disable freed user page poisoning when using HW tags. We identify
"user" pages via the flag set GFP_HIGHUSER_MOVABLE, which indicates
a strong likelihood of not being directly accessible to the kernel.

Signed-off-by: Peter Collingbourne <pcc@google.com>
Reviewed-by: Andrey Konovalov <andreyknvl@gmail.com>
Link: https://linux-review.googlesource.com/id/I716846e2de8ef179f44e835770df7e6307be96c9
Link: https://lore.kernel.org/r/20210602235230.3928842-5-pcc@google.com
Signed-off-by: Will Deacon <will@kernel.org>
(cherry picked from commit c275c5c6d50a0518cdb0584e85905d10e7cefc6e
 https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/mte)
[pcc: adjust definition of new GFP flag for compatibility with GFP_CMA]
Change-Id: I716846e2de8ef179f44e835770df7e6307be96c9
Bug: 186816853
2021-06-17 14:39:37 -07:00
..
9p.h
…
OWNERS ANDROID: Add OWNERS files referring to the respective android-mainline OWNERS 2021-04-03 14:11:30 +00:00
afs.h afs: Fix afs_invalidatepage to adjust the dirty region 2020-10-29 13:53:04 +00:00
alarmtimer.h
…
android_fs.h
…
android_fs_template.h
…
asoc.h
…
avc.h selinux: add basic filtering for audit trace events 2020-08-21 17:07:29 -04:00
bcache.h bcache: add set_uuid in struct cache_set 2020-10-02 14:25:30 -06:00
block.h blktrace: Provide event for request merging 2020-06-25 21:06:11 -06:00
bpf_test_run.h
…
bridge.h
…
btrfs.h btrfs: use own btree inode io_tree owner id 2020-10-07 12:13:22 +02:00
cachefiles.h
…
cgroup.h
…
clk.h
…
cma.h FROMGIT: mm: cma: add the CMA instance name to cma trace events 2021-04-23 22:41:43 +00:00
compaction.h mm/page_alloc: integrate classzone_idx and high_zoneidx 2020-06-03 20:09:44 -07:00
context_tracking.h
…
cpuhp.h ANDROID: cpuhp/pause: add trace points for pause and resume 2020-12-23 22:53:26 +00:00
devfreq.h
…
devlink.h devlink: Add a tracepoint for trap reports 2020-09-30 18:01:26 -07:00
dma_fence.h
…
erofs.h erofs: convert uncompressed files from readpages to readahead 2020-06-02 10:59:07 -07:00
error_report.h FROMGIT: tracing: add error_report_end trace point 2021-02-05 09:20:54 -08:00
ext4.h ext4: disable fast commit with data journalling 2020-11-06 23:01:05 -05:00
f2fs.h f2fs: move ioctl interface definitions to separated file 2021-05-19 10:13:00 +02:00
fib.h
…
fib6.h
…
filelock.h locks: Remove extra "0x" in tracepoint format specifier 2020-09-01 18:09:34 -04:00
filemap.h
…
fs_dax.h
…
fscache.h
…
fsi.h
…
fsi_master_aspeed.h
…
fsi_master_ast_cf.h
…
fsi_master_gpio.h
…
gpio.h
…
gpu_mem.h gpu/trace: Minor comment updates for gpu_mem_total tracepoint 2020-05-07 13:32:57 -04:00
host1x.h
…
huge_memory.h khugepaged: introduce 'max_ptes_shared' tunable 2020-06-03 20:09:46 -07:00
hwmon.h
…
i2c.h
…
ib_mad.h
…
ib_umad.h
…
initcall.h
…
intel-sst.h
…
intel_iommu.h
…
intel_ish.h
…
io_uring.h
…
iocost.h iocost: add iocg_forgive_debt tracepoint 2020-09-25 08:35:02 -06:00
iommu.h
…
ipi.h
…
irq.h ANDROID: trace: Add trace points for tasklet entry/exit 2020-11-10 19:07:12 +00:00
irq_matrix.h
…
iscsi.h
…
jbd2.h
…
kmem.h
…
kvm.h KVM: x86: Allow deflecting unknown MSR accesses to user space 2020-09-28 07:58:04 -04:00
kyber.h
…
libata.h
…
lock.h
…
mce.h
…
mdio.h
…
migrate.h FROMGIT: mm: cma: add trace events for CMA alloc perf testing 2021-04-23 22:41:28 +00:00
mlxsw.h
…
mmap.h
…
mmc.h
…
mmflags.h BACKPORT: FROMGIT: kasan: disable freed user page poisoning with HW tags 2021-06-17 14:39:37 -07:00
module.h
…
namei.h
…
napi.h
…
nbd.h
…
neigh.h
…
net.h
…
net_probe_common.h
…
nilfs2.h
…
nmi.h
…
objagg.h
…
oom.h
…
page_isolation.h
…
page_pool.h
…
page_ref.h
…
pagefault.h FROMLIST: mm: adding speculative page fault failure trace events 2021-01-22 18:01:25 +00:00
pagemap.h
…
percpu.h
…
power.h Revert "ANDROID: sched: cpufreq_schedutil: add sugov tracepoints" 2021-03-17 17:40:41 +00:00
power_cpu_migrate.h
…
preemptirq.h
…
printk.h
…
pwc.h
…
pwm.h
…
qdisc.h net_sched: add a tracepoint for qdisc creation 2020-05-27 15:05:49 -07:00
qla.h scsi: qla2xxx: Suppress two recently introduced compiler warnings 2020-05-19 21:43:01 -04:00
qrtr.h
…
random.h random32: add a tracepoint for prandom_u32() 2020-08-13 15:11:14 -07:00
rcu.h FROMGIT: rcu/tree: Add a trace event for RCU CPU stall warnings 2021-03-11 21:06:44 +09:00
rdma.h RDMA/core: Move the rdma_show_ib_cm_event() macro 2020-08-24 16:01:47 -03:00
rdma_core.h
…
regulator.h regulator: core: Add regulator bypass trace points 2020-05-29 17:17:02 +01:00
rpcgss.h SUNRPC: Augment server-side rpcgss tracepoints 2020-07-13 17:28:24 -04:00
rpcrdma.h NFS Client Updates for Linux 5.10 2020-10-20 13:26:30 -07:00
rpm.h
…
rseq.h
…
rtc.h
…
rwmmio.h ANDROID: fix incorrect printk format 2021-01-14 11:00:32 -08:00
rxrpc.h rxrpc: Fix a missing NULL-pointer check in a trace 2020-09-14 16:18:59 +01:00
sched.h Revert "ANDROID: sched: cpufreq_schedutil: move sugov traces to sched" 2021-03-17 17:40:20 +00:00
scmi.h firmware: arm_scmi: Use signed integer to report transfer status 2020-06-30 14:07:08 +01:00
scsi.h
…
sctp.h
…
signal.h
…
siox.h
…
skb.h
…
smbus.h
…
sock.h
…
spi.h
…
spmi.h
…
sunrpc.h SUNRPC: Remove trace_xprt_transmit_queued 2021-05-19 10:13:03 +02:00
sunvnet.h
…
swiotlb.h
…
syscalls.h
…
target.h scsi: target: core: Add CONTROL field for trace events 2020-10-02 18:36:19 -04:00
task.h
…
tcp.h
…
tegra_apb_dma.h
…
thermal.h
…
thermal_power_allocator.h
…
thp.h
…
timer.h
…
tlb.h
…
udp.h
…
ufs.h FROMLIST: scsi: add more contexts in the ufs tracepoints 2020-09-21 10:09:26 -07:00
v4l2.h
…
vb2.h
…
vmscan.h mm/page_alloc: integrate classzone_idx and high_zoneidx 2020-06-03 20:09:44 -07:00
vsock_virtio_transport_common.h
…
wbt.h bdi: use bdi_dev_name() to get device name 2020-05-09 16:07:39 -06:00
workqueue.h
…
writeback.h trace: fix potenial dangerous pointer 2020-11-25 13:03:44 +01:00
xdp.h bpf: cpumap: Implement XDP_REDIRECT for eBPF programs attached to map entries 2020-07-16 17:00:32 +02:00
xen.h x86/paravirt: Remove set_pte_at() pv-op 2020-08-15 13:52:12 +02:00