OXIESEC PANEL
- Current Dir:
/
/
usr
/
src
/
linux-headers-4.15.0-197
/
arch
/
x86
/
include
/
asm
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
11/17/2022 06:42:16 AM
rwxr-xr-x
📄
Kbuild
294 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
a.out-core.h
1.89 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
acenv.h
1.56 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
acpi.h
4.76 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
agp.h
1.04 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
alternative-asm.h
2.43 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
alternative.h
8.28 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
amd_nb.h
2.98 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
apb_timer.h
1.43 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
apic.h
14.53 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
apic_flat_64.h
151 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
apicdef.h
11.26 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
apm.h
1.8 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
arch_hweight.h
1.28 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
archrandom.h
3.03 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
asm-offsets.h
35 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
asm-prototypes.h
946 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
asm.h
4.97 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
atomic.h
6.02 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
atomic64_32.h
8.71 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
atomic64_64.h
6.31 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
barrier.h
3.6 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
bios_ebda.h
914 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
bitops.h
13.78 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
boot.h
1.53 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
bootparam_utils.h
2.86 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
bug.h
2.07 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
bugs.h
493 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
cache.h
641 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
cacheflush.h
306 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
cacheinfo.h
209 bytes
11/01/2022 04:52:05 PM
rw-r--r--
📄
calgary.h
2.31 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ce4100.h
121 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
checksum.h
133 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
checksum_32.h
4.86 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
checksum_64.h
5.41 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
clocksource.h
488 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
cmdline.h
302 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
cmpxchg.h
7.68 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
cmpxchg_32.h
3.15 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
cmpxchg_64.h
543 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
compat.h
7.37 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
cpu.h
975 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
cpu_device_id.h
1.38 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
cpu_entry_area.h
2.27 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
cpufeature.h
7.75 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
cpufeatures.h
24.62 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
cpumask.h
408 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
crash.h
320 bytes
11/01/2022 04:52:05 PM
rw-r--r--
📁
crypto
-
11/17/2022 06:42:22 AM
rwxr-xr-x
📄
current.h
443 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
debugreg.h
2.67 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
delay.h
208 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
desc.h
11.42 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
desc_defs.h
3.16 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
device.h
568 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
disabled-features.h
2.31 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
div64.h
1.79 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
dma-mapping.h
2.4 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
dma.h
9.58 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
dmi.h
556 bytes
11/01/2022 04:52:05 PM
rw-r--r--
📄
dwarf2.h
2.43 KB
01/28/2018 09:20:33 PM
rw-r--r--
📁
e820
-
11/17/2022 06:42:22 AM
rwxr-xr-x
📄
edac.h
474 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
efi.h
6.9 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
elf.h
10.82 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
emergency-restart.h
202 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
entry_arch.h
1.88 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
espfix.h
426 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
exec.h
37 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
export.h
120 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
extable.h
1.27 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
fb.h
540 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
fixmap.h
6.04 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
floppy.h
6.59 KB
01/28/2018 09:20:33 PM
rw-r--r--
📁
fpu
-
11/17/2022 06:42:22 AM
rwxr-xr-x
📄
frame.h
815 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
ftrace.h
1.8 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
futex.h
2.2 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
gart.h
2.64 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
genapic.h
22 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
geode.h
842 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
hardirq.h
2.3 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
highmem.h
2.6 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
hpet.h
3.38 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
hugetlb.h
2.15 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
hw_breakpoint.h
1.96 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
hw_irq.h
3.85 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
hypervisor.h
1.84 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
i8259.h
1.93 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
ia32.h
1.46 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ia32_unistd.h
313 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
imr.h
1.81 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
inat.h
6.58 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
inat_types.h
1013 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
init.h
632 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
insn-eval.h
837 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
insn.h
7.46 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
inst.h
5.07 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
intel-family.h
3.29 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
intel-mid.h
4.91 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
intel_ds.h
793 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
intel_mid_vrtc.h
326 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
intel_pmc_ipc.h
2.08 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
intel_pt.h
292 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
intel_punit_ipc.h
4.56 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
intel_rdt_sched.h
2.59 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
intel_scu_ipc.h
2.3 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
intel_telemetry.h
3.96 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
invpcid.h
1.57 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
io.h
12.21 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
io_apic.h
5.63 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
iomap.h
1.22 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
iommu.h
392 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
iommu_table.h
3.82 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
iosf_mbi.h
5.74 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
ipi.h
2.84 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
irq.h
1.12 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
irq_regs.h
679 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
irq_remapping.h
2.96 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
irq_vectors.h
4.12 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
irq_work.h
397 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
irqdomain.h
1.61 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
irqflags.h
4.38 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
ist.h
735 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
jump_label.h
2.44 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
kasan.h
966 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
kaslr.h
424 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
kbdleds.h
454 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
kdebug.h
752 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
kexec-bzimage64.h
189 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
kexec.h
6.69 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
kgdb.h
2.09 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
kmap_types.h
289 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
kprobes.h
3.82 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
kvm_emulate.h
15.23 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
kvm_guest.h
172 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
kvm_host.h
42.72 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
kvm_page_track.h
2.48 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
kvm_para.h
3 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
kvmclock.h
170 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
linkage.h
581 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
livepatch.h
1.12 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
local.h
3.83 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
local64.h
33 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
mach_timer.h
1.55 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mach_traps.h
1013 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
math_emu.h
395 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
mc146818rtc.h
2.76 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mce.h
12.54 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
mem_encrypt.h
2.83 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
microcode.h
4.14 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
microcode_amd.h
1.41 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
microcode_intel.h
2.46 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
misc.h
143 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
mmconfig.h
374 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
mmu.h
1.57 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mmu_context.h
10.27 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
mmx.h
337 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
mmzone.h
129 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
mmzone_32.h
1.16 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mmzone_64.h
430 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
module.h
2.05 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mpspec.h
3.93 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mpspec_def.h
3.93 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mpx.h
2.97 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mshyperv.h
10.69 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
msi.h
392 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
msidef.h
1.77 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
msr-index.h
30.36 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
msr-trace.h
1.35 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
msr.h
10.85 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
mtrr.h
4.62 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
mwait.h
3.74 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
nmi.h
1.39 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
nops.h
4.31 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
nospec-branch.h
10.87 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
numa.h
2.18 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
numa_32.h
256 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📁
numachip
-
11/17/2022 06:42:22 AM
rwxr-xr-x
📄
olpc.h
3.16 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
olpc_ofw.h
1.1 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
orc_lookup.h
1.63 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
orc_types.h
3.47 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
page.h
2.18 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
page_32.h
1.01 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
page_32_types.h
1.7 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
page_64.h
1.42 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
page_64_types.h
2.34 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
page_types.h
2.29 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
paravirt.h
23.31 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
paravirt_types.h
22.15 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
parport.h
314 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
pat.h
768 bytes
11/01/2022 04:52:05 PM
rw-r--r--
📄
pci-direct.h
995 bytes
11/01/2022 04:52:05 PM
rw-r--r--
📄
pci-functions.h
654 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
pci.h
3.51 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
pci_64.h
684 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
pci_x86.h
5.71 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
percpu.h
18.97 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
perf_event.h
8.82 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
perf_event_p4.h
26.1 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
pgalloc.h
5.57 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
pgtable-2level.h
2.75 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
pgtable-2level_types.h
867 bytes
11/01/2022 04:52:05 PM
rw-r--r--
📄
pgtable-3level.h
10.24 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
pgtable-3level_types.h
1.06 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
pgtable-invert.h
1.07 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
pgtable.h
33.91 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
pgtable_32.h
3.1 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
pgtable_32_types.h
2.01 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
pgtable_64.h
7.37 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
pgtable_64_types.h
3.67 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
pgtable_types.h
16.75 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
pkeys.h
3.17 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
platform_sst_audio.h
3.18 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
pm-trace.h
611 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
posix_types.h
144 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
preempt.h
3.04 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
probe_roms.h
273 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
processor-cyrix.h
879 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
processor-flags.h
1.71 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
processor.h
24.54 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
prom.h
1 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
proto.h
1003 bytes
11/01/2022 04:52:05 PM
rw-r--r--
📄
pti.h
369 bytes
11/01/2022 04:52:05 PM
rw-r--r--
📄
ptrace.h
8.52 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
purgatory.h
571 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
pvclock-abi.h
1.49 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
pvclock.h
2.64 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
qrwlock.h
199 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
qspinlock.h
2.54 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
qspinlock_paravirt.h
1.85 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
realmode.h
1.76 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
reboot.h
850 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
reboot_fixups.h
183 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
refcount.h
2.83 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
required-features.h
2.81 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
rio.h
2.57 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
rmwcc.h
1.62 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
rwsem.h
7.02 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
seccomp.h
510 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
sections.h
465 bytes
11/01/2022 04:52:05 PM
rw-r--r--
📄
segment.h
9.47 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
serial.h
1.11 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
set_memory.h
3.86 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
setup.h
3.4 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
setup_arch.h
77 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
shmparam.h
193 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
sigcontext.h
261 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
sigframe.h
2.25 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
sighandling.h
649 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
signal.h
2.37 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
simd.h
287 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
smap.h
1.71 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
smp.h
4.73 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
sparsemem.h
1.01 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
spec-ctrl.h
2.81 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
special_insns.h
5.04 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
spinlock.h
1.19 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
spinlock_types.h
719 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
sta2x11.h
352 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
stackprotector.h
4.13 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
stacktrace.h
2.57 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
string.h
129 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
string_32.h
7.74 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
string_64.h
3.56 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
suspend.h
131 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
suspend_32.h
822 bytes
11/01/2022 04:52:05 PM
rw-r--r--
📄
suspend_64.h
1.79 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
svm.h
7.06 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
swiotlb.h
991 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
switch_to.h
2.98 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
sync_bitops.h
3.42 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
sys_ia32.h
1.8 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
syscall.h
5.14 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
syscalls.h
1.39 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
sysfb.h
2.54 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
tce.h
1.68 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
text-patching.h
2.3 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
thread_info.h
9.33 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
time.h
331 bytes
11/01/2022 04:52:05 PM
rw-r--r--
📄
timer.h
1 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
timex.h
546 bytes
11/01/2022 04:52:05 PM
rw-r--r--
📄
tlb.h
1.05 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
tlbbatch.h
332 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
tlbflush.h
17.09 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
topology.h
4.84 KB
11/01/2022 04:52:05 PM
rw-r--r--
📁
trace
-
11/17/2022 06:42:22 AM
rwxr-xr-x
📄
trace_clock.h
406 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
traps.h
5.74 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
tsc.h
1.93 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
uaccess.h
21.69 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
uaccess_32.h
1.54 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
uaccess_64.h
5.32 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
umip.h
329 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
unaligned.h
345 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
unistd.h
1.45 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
unwind.h
3.13 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
unwind_hints.h
3.01 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
uprobes.h
1.57 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
user.h
2.2 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
user32.h
2.11 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
user_32.h
4.92 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
user_64.h
5.21 KB
01/28/2018 09:20:33 PM
rw-r--r--
📁
uv
-
11/17/2022 06:42:22 AM
rwxr-xr-x
📄
vdso.h
1.09 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
vga.h
740 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
vgtod.h
2.13 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
virtext.h
2.62 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
vm86.h
2.16 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
vmx.h
23.5 KB
11/01/2022 04:52:05 PM
rw-r--r--
📄
vsyscall.h
635 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
vvar.h
1.38 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
word-at-a-time.h
2.54 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
x86_init.h
9.25 KB
11/01/2022 04:52:05 PM
rw-r--r--
📁
xen
-
11/17/2022 06:42:22 AM
rwxr-xr-x
📄
xor.h
10.26 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
xor_32.h
14.4 KB
01/28/2018 09:20:33 PM
rw-r--r--
📄
xor_64.h
716 bytes
01/28/2018 09:20:33 PM
rw-r--r--
📄
xor_avx.h
4.5 KB
01/28/2018 09:20:33 PM
rw-r--r--
Editing: uaccess.h
Close
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _ASM_X86_UACCESS_H #define _ASM_X86_UACCESS_H /* * User space memory access functions */ #include <linux/compiler.h> #include <linux/kasan-checks.h> #include <linux/string.h> #include <asm/asm.h> #include <asm/page.h> #include <asm/smap.h> #include <asm/extable.h> /* * The fs value determines whether argument validity checking should be * performed or not. If get_fs() == USER_DS, checking is performed, with * get_fs() == KERNEL_DS, checking is bypassed. * * For historical reasons, these macros are grossly misnamed. */ #define MAKE_MM_SEG(s) ((mm_segment_t) { (s) }) #define KERNEL_DS MAKE_MM_SEG(-1UL) #define USER_DS MAKE_MM_SEG(TASK_SIZE_MAX) #define get_ds() (KERNEL_DS) #define get_fs() (current->thread.addr_limit) static inline void set_fs(mm_segment_t fs) { current->thread.addr_limit = fs; /* On user-mode return, check fs is correct */ set_thread_flag(TIF_FSCHECK); } #define segment_eq(a, b) ((a).seg == (b).seg) #define user_addr_max() (current->thread.addr_limit.seg) #define __addr_ok(addr) \ ((unsigned long __force)(addr) < user_addr_max()) /* * Test whether a block of memory is a valid user space address. * Returns 0 if the range is valid, nonzero otherwise. */ static inline bool __chk_range_not_ok(unsigned long addr, unsigned long size, unsigned long limit) { /* * If we have used "sizeof()" for the size, * we know it won't overflow the limit (but * it might overflow the 'addr', so it's * important to subtract the size from the * limit, not add it to the address). */ if (__builtin_constant_p(size)) return unlikely(addr > limit - size); /* Arbitrary sizes? Be careful about overflow */ addr += size; if (unlikely(addr < size)) return true; return unlikely(addr > limit); } #define __range_not_ok(addr, size, limit) \ ({ \ __chk_user_ptr(addr); \ __chk_range_not_ok((unsigned long __force)(addr), size, limit); \ }) #ifdef CONFIG_DEBUG_ATOMIC_SLEEP # define WARN_ON_IN_IRQ() WARN_ON_ONCE(!in_task()) #else # define WARN_ON_IN_IRQ() #endif /** * access_ok: - Checks if a user space pointer is valid * @type: Type of access: %VERIFY_READ or %VERIFY_WRITE. Note that * %VERIFY_WRITE is a superset of %VERIFY_READ - if it is safe * to write to a block, it is always safe to read from it. * @addr: User space pointer to start of block to check * @size: Size of block to check * * Context: User context only. This function may sleep if pagefaults are * enabled. * * Checks if a pointer to a block of memory in user space is valid. * * Returns true (nonzero) if the memory block may be valid, false (zero) * if it is definitely invalid. * * Note that, depending on architecture, this function probably just * checks that the pointer is in the user space range - after calling * this function, memory access functions may still return -EFAULT. */ #define access_ok(type, addr, size) \ ({ \ WARN_ON_IN_IRQ(); \ likely(!__range_not_ok(addr, size, user_addr_max())); \ }) /* * These are the main single-value transfer routines. They automatically * use the right size if we just have the right pointer type. * * This gets kind of ugly. We want to return _two_ values in "get_user()" * and yet we don't want to do any pointers, because that is too much * of a performance impact. Thus we have a few rather ugly macros here, * and hide all the ugliness from the user. * * The "__xxx" versions of the user access functions are versions that * do not verify the address space, that must have been done previously * with a separate "access_ok()" call (this is used when we do multiple * accesses to the same area of user memory). */ extern int __get_user_1(void); extern int __get_user_2(void); extern int __get_user_4(void); extern int __get_user_8(void); extern int __get_user_bad(void); #define __uaccess_begin() stac() #define __uaccess_end() clac() #define __uaccess_begin_nospec() \ ({ \ stac(); \ barrier_nospec(); \ }) /* * This is a type: either unsigned long, if the argument fits into * that type, or otherwise unsigned long long. */ #define __inttype(x) \ __typeof__(__builtin_choose_expr(sizeof(x) > sizeof(0UL), 0ULL, 0UL)) /** * get_user: - Get a simple variable from user space. * @x: Variable to store result. * @ptr: Source address, in user space. * * Context: User context only. This function may sleep if pagefaults are * enabled. * * This macro copies a single simple variable from user space to kernel * space. It supports simple types like char and int, but not larger * data types like structures or arrays. * * @ptr must have pointer-to-simple-variable type, and the result of * dereferencing @ptr must be assignable to @x without a cast. * * Returns zero on success, or -EFAULT on error. * On error, the variable @x is set to zero. */ /* * Careful: we have to cast the result to the type of the pointer * for sign reasons. * * The use of _ASM_DX as the register specifier is a bit of a * simplification, as gcc only cares about it as the starting point * and not size: for a 64-bit value it will use %ecx:%edx on 32 bits * (%ecx being the next register in gcc's x86 register sequence), and * %rdx on 64 bits. * * Clang/LLVM cares about the size of the register, but still wants * the base register for something that ends up being a pair. */ #define get_user(x, ptr) \ ({ \ int __ret_gu; \ register __inttype(*(ptr)) __val_gu asm("%"_ASM_DX); \ __chk_user_ptr(ptr); \ might_fault(); \ asm volatile("call __get_user_%P4" \ : "=a" (__ret_gu), "=r" (__val_gu), \ ASM_CALL_CONSTRAINT \ : "0" (ptr), "i" (sizeof(*(ptr)))); \ (x) = (__force __typeof__(*(ptr))) __val_gu; \ __builtin_expect(__ret_gu, 0); \ }) #define __put_user_x(size, x, ptr, __ret_pu) \ asm volatile("call __put_user_" #size : "=a" (__ret_pu) \ : "0" ((typeof(*(ptr)))(x)), "c" (ptr) : "ebx") #ifdef CONFIG_X86_32 #define __put_user_asm_u64(x, addr, err, errret) \ asm volatile("\n" \ "1: movl %%eax,0(%2)\n" \ "2: movl %%edx,4(%2)\n" \ "3:" \ ".section .fixup,\"ax\"\n" \ "4: movl %3,%0\n" \ " jmp 3b\n" \ ".previous\n" \ _ASM_EXTABLE(1b, 4b) \ _ASM_EXTABLE(2b, 4b) \ : "=r" (err) \ : "A" (x), "r" (addr), "i" (errret), "0" (err)) #define __put_user_asm_ex_u64(x, addr) \ asm volatile("\n" \ "1: movl %%eax,0(%1)\n" \ "2: movl %%edx,4(%1)\n" \ "3:" \ _ASM_EXTABLE_EX(1b, 2b) \ _ASM_EXTABLE_EX(2b, 3b) \ : : "A" (x), "r" (addr)) #define __put_user_x8(x, ptr, __ret_pu) \ asm volatile("call __put_user_8" : "=a" (__ret_pu) \ : "A" ((typeof(*(ptr)))(x)), "c" (ptr) : "ebx") #else #define __put_user_asm_u64(x, ptr, retval, errret) \ __put_user_asm(x, ptr, retval, "q", "", "er", errret) #define __put_user_asm_ex_u64(x, addr) \ __put_user_asm_ex(x, addr, "q", "", "er") #define __put_user_x8(x, ptr, __ret_pu) __put_user_x(8, x, ptr, __ret_pu) #endif extern void __put_user_bad(void); /* * Strange magic calling convention: pointer in %ecx, * value in %eax(:%edx), return value in %eax. clobbers %rbx */ extern void __put_user_1(void); extern void __put_user_2(void); extern void __put_user_4(void); extern void __put_user_8(void); /** * put_user: - Write a simple value into user space. * @x: Value to copy to user space. * @ptr: Destination address, in user space. * * Context: User context only. This function may sleep if pagefaults are * enabled. * * This macro copies a single simple value from kernel space to user * space. It supports simple types like char and int, but not larger * data types like structures or arrays. * * @ptr must have pointer-to-simple-variable type, and @x must be assignable * to the result of dereferencing @ptr. * * Returns zero on success, or -EFAULT on error. */ #define put_user(x, ptr) \ ({ \ int __ret_pu; \ __typeof__(*(ptr)) __pu_val; \ __chk_user_ptr(ptr); \ might_fault(); \ __pu_val = x; \ switch (sizeof(*(ptr))) { \ case 1: \ __put_user_x(1, __pu_val, ptr, __ret_pu); \ break; \ case 2: \ __put_user_x(2, __pu_val, ptr, __ret_pu); \ break; \ case 4: \ __put_user_x(4, __pu_val, ptr, __ret_pu); \ break; \ case 8: \ __put_user_x8(__pu_val, ptr, __ret_pu); \ break; \ default: \ __put_user_x(X, __pu_val, ptr, __ret_pu); \ break; \ } \ __builtin_expect(__ret_pu, 0); \ }) #define __put_user_size(x, ptr, size, retval, errret) \ do { \ retval = 0; \ __chk_user_ptr(ptr); \ switch (size) { \ case 1: \ __put_user_asm(x, ptr, retval, "b", "b", "iq", errret); \ break; \ case 2: \ __put_user_asm(x, ptr, retval, "w", "w", "ir", errret); \ break; \ case 4: \ __put_user_asm(x, ptr, retval, "l", "k", "ir", errret); \ break; \ case 8: \ __put_user_asm_u64(x, ptr, retval, errret); \ break; \ default: \ __put_user_bad(); \ } \ } while (0) /* * This doesn't do __uaccess_begin/end - the exception handling * around it must do that. */ #define __put_user_size_ex(x, ptr, size) \ do { \ __chk_user_ptr(ptr); \ switch (size) { \ case 1: \ __put_user_asm_ex(x, ptr, "b", "b", "iq"); \ break; \ case 2: \ __put_user_asm_ex(x, ptr, "w", "w", "ir"); \ break; \ case 4: \ __put_user_asm_ex(x, ptr, "l", "k", "ir"); \ break; \ case 8: \ __put_user_asm_ex_u64((__typeof__(*ptr))(x), ptr); \ break; \ default: \ __put_user_bad(); \ } \ } while (0) #ifdef CONFIG_X86_32 #define __get_user_asm_u64(x, ptr, retval, errret) \ ({ \ __typeof__(ptr) __ptr = (ptr); \ asm volatile("\n" \ "1: movl %2,%%eax\n" \ "2: movl %3,%%edx\n" \ "3:\n" \ ".section .fixup,\"ax\"\n" \ "4: mov %4,%0\n" \ " xorl %%eax,%%eax\n" \ " xorl %%edx,%%edx\n" \ " jmp 3b\n" \ ".previous\n" \ _ASM_EXTABLE(1b, 4b) \ _ASM_EXTABLE(2b, 4b) \ : "=r" (retval), "=&A"(x) \ : "m" (__m(__ptr)), "m" __m(((u32 __user *)(__ptr)) + 1), \ "i" (errret), "0" (retval)); \ }) #define __get_user_asm_ex_u64(x, ptr) (x) = __get_user_bad() #else #define __get_user_asm_u64(x, ptr, retval, errret) \ __get_user_asm(x, ptr, retval, "q", "", "=r", errret) #define __get_user_asm_ex_u64(x, ptr) \ __get_user_asm_ex(x, ptr, "q", "", "=r") #endif #define __get_user_size(x, ptr, size, retval, errret) \ do { \ retval = 0; \ __chk_user_ptr(ptr); \ switch (size) { \ case 1: \ __get_user_asm(x, ptr, retval, "b", "b", "=q", errret); \ break; \ case 2: \ __get_user_asm(x, ptr, retval, "w", "w", "=r", errret); \ break; \ case 4: \ __get_user_asm(x, ptr, retval, "l", "k", "=r", errret); \ break; \ case 8: \ __get_user_asm_u64(x, ptr, retval, errret); \ break; \ default: \ (x) = __get_user_bad(); \ } \ } while (0) #define __get_user_asm(x, addr, err, itype, rtype, ltype, errret) \ asm volatile("\n" \ "1: mov"itype" %2,%"rtype"1\n" \ "2:\n" \ ".section .fixup,\"ax\"\n" \ "3: mov %3,%0\n" \ " xor"itype" %"rtype"1,%"rtype"1\n" \ " jmp 2b\n" \ ".previous\n" \ _ASM_EXTABLE(1b, 3b) \ : "=r" (err), ltype(x) \ : "m" (__m(addr)), "i" (errret), "0" (err)) #define __get_user_asm_nozero(x, addr, err, itype, rtype, ltype, errret) \ asm volatile("\n" \ "1: mov"itype" %2,%"rtype"1\n" \ "2:\n" \ ".section .fixup,\"ax\"\n" \ "3: mov %3,%0\n" \ " jmp 2b\n" \ ".previous\n" \ _ASM_EXTABLE(1b, 3b) \ : "=r" (err), ltype(x) \ : "m" (__m(addr)), "i" (errret), "0" (err)) /* * This doesn't do __uaccess_begin/end - the exception handling * around it must do that. */ #define __get_user_size_ex(x, ptr, size) \ do { \ __chk_user_ptr(ptr); \ switch (size) { \ case 1: \ __get_user_asm_ex(x, ptr, "b", "b", "=q"); \ break; \ case 2: \ __get_user_asm_ex(x, ptr, "w", "w", "=r"); \ break; \ case 4: \ __get_user_asm_ex(x, ptr, "l", "k", "=r"); \ break; \ case 8: \ __get_user_asm_ex_u64(x, ptr); \ break; \ default: \ (x) = __get_user_bad(); \ } \ } while (0) #define __get_user_asm_ex(x, addr, itype, rtype, ltype) \ asm volatile("1: mov"itype" %1,%"rtype"0\n" \ "2:\n" \ ".section .fixup,\"ax\"\n" \ "3:xor"itype" %"rtype"0,%"rtype"0\n" \ " jmp 2b\n" \ ".previous\n" \ _ASM_EXTABLE_EX(1b, 3b) \ : ltype(x) : "m" (__m(addr))) #define __put_user_nocheck(x, ptr, size) \ ({ \ int __pu_err; \ __typeof__(*(ptr)) __pu_val; \ __pu_val = x; \ __uaccess_begin(); \ __put_user_size(__pu_val, (ptr), (size), __pu_err, -EFAULT);\ __uaccess_end(); \ __builtin_expect(__pu_err, 0); \ }) #define __get_user_nocheck(x, ptr, size) \ ({ \ int __gu_err; \ __inttype(*(ptr)) __gu_val; \ __typeof__(ptr) __gu_ptr = (ptr); \ __typeof__(size) __gu_size = (size); \ __uaccess_begin_nospec(); \ __get_user_size(__gu_val, __gu_ptr, __gu_size, __gu_err, -EFAULT); \ __uaccess_end(); \ (x) = (__force __typeof__(*(ptr)))__gu_val; \ __builtin_expect(__gu_err, 0); \ }) /* FIXME: this hack is definitely wrong -AK */ struct __large_struct { unsigned long buf[100]; }; #define __m(x) (*(struct __large_struct __user *)(x)) /* * Tell gcc we read from memory instead of writing: this is because * we do not write to any memory gcc knows about, so there are no * aliasing issues. */ #define __put_user_asm(x, addr, err, itype, rtype, ltype, errret) \ asm volatile("\n" \ "1: mov"itype" %"rtype"1,%2\n" \ "2:\n" \ ".section .fixup,\"ax\"\n" \ "3: mov %3,%0\n" \ " jmp 2b\n" \ ".previous\n" \ _ASM_EXTABLE(1b, 3b) \ : "=r"(err) \ : ltype(x), "m" (__m(addr)), "i" (errret), "0" (err)) #define __put_user_asm_ex(x, addr, itype, rtype, ltype) \ asm volatile("1: mov"itype" %"rtype"0,%1\n" \ "2:\n" \ _ASM_EXTABLE_EX(1b, 2b) \ : : ltype(x), "m" (__m(addr))) /* * uaccess_try and catch */ #define uaccess_try do { \ current->thread.uaccess_err = 0; \ __uaccess_begin(); \ barrier(); #define uaccess_try_nospec do { \ current->thread.uaccess_err = 0; \ __uaccess_begin_nospec(); \ #define uaccess_catch(err) \ __uaccess_end(); \ (err) |= (current->thread.uaccess_err ? -EFAULT : 0); \ } while (0) /** * __get_user: - Get a simple variable from user space, with less checking. * @x: Variable to store result. * @ptr: Source address, in user space. * * Context: User context only. This function may sleep if pagefaults are * enabled. * * This macro copies a single simple variable from user space to kernel * space. It supports simple types like char and int, but not larger * data types like structures or arrays. * * @ptr must have pointer-to-simple-variable type, and the result of * dereferencing @ptr must be assignable to @x without a cast. * * Caller must check the pointer with access_ok() before calling this * function. * * Returns zero on success, or -EFAULT on error. * On error, the variable @x is set to zero. */ #define __get_user(x, ptr) \ __get_user_nocheck((x), (ptr), sizeof(*(ptr))) /** * __put_user: - Write a simple value into user space, with less checking. * @x: Value to copy to user space. * @ptr: Destination address, in user space. * * Context: User context only. This function may sleep if pagefaults are * enabled. * * This macro copies a single simple value from kernel space to user * space. It supports simple types like char and int, but not larger * data types like structures or arrays. * * @ptr must have pointer-to-simple-variable type, and @x must be assignable * to the result of dereferencing @ptr. * * Caller must check the pointer with access_ok() before calling this * function. * * Returns zero on success, or -EFAULT on error. */ #define __put_user(x, ptr) \ __put_user_nocheck((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr))) /* * {get|put}_user_try and catch * * get_user_try { * get_user_ex(...); * } get_user_catch(err) */ #define get_user_try uaccess_try_nospec #define get_user_catch(err) uaccess_catch(err) #define get_user_ex(x, ptr) do { \ unsigned long __gue_val; \ __get_user_size_ex((__gue_val), (ptr), (sizeof(*(ptr)))); \ (x) = (__force __typeof__(*(ptr)))__gue_val; \ } while (0) #define put_user_try uaccess_try #define put_user_catch(err) uaccess_catch(err) #define put_user_ex(x, ptr) \ __put_user_size_ex((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr))) extern unsigned long copy_from_user_nmi(void *to, const void __user *from, unsigned long n); extern __must_check long strncpy_from_user(char *dst, const char __user *src, long count); extern __must_check long strnlen_user(const char __user *str, long n); unsigned long __must_check clear_user(void __user *mem, unsigned long len); unsigned long __must_check __clear_user(void __user *mem, unsigned long len); extern void __cmpxchg_wrong_size(void) __compiletime_error("Bad argument size for cmpxchg"); #define __user_atomic_cmpxchg_inatomic(uval, ptr, old, new, size) \ ({ \ int __ret = 0; \ __typeof__(ptr) __uval = (uval); \ __typeof__(*(ptr)) __old = (old); \ __typeof__(*(ptr)) __new = (new); \ __uaccess_begin_nospec(); \ switch (size) { \ case 1: \ { \ asm volatile("\n" \ "1:\t" LOCK_PREFIX "cmpxchgb %4, %2\n" \ "2:\n" \ "\t.section .fixup, \"ax\"\n" \ "3:\tmov %3, %0\n" \ "\tjmp 2b\n" \ "\t.previous\n" \ _ASM_EXTABLE(1b, 3b) \ : "+r" (__ret), "=a" (__old), "+m" (*(ptr)) \ : "i" (-EFAULT), "q" (__new), "1" (__old) \ : "memory" \ ); \ break; \ } \ case 2: \ { \ asm volatile("\n" \ "1:\t" LOCK_PREFIX "cmpxchgw %4, %2\n" \ "2:\n" \ "\t.section .fixup, \"ax\"\n" \ "3:\tmov %3, %0\n" \ "\tjmp 2b\n" \ "\t.previous\n" \ _ASM_EXTABLE(1b, 3b) \ : "+r" (__ret), "=a" (__old), "+m" (*(ptr)) \ : "i" (-EFAULT), "r" (__new), "1" (__old) \ : "memory" \ ); \ break; \ } \ case 4: \ { \ asm volatile("\n" \ "1:\t" LOCK_PREFIX "cmpxchgl %4, %2\n" \ "2:\n" \ "\t.section .fixup, \"ax\"\n" \ "3:\tmov %3, %0\n" \ "\tjmp 2b\n" \ "\t.previous\n" \ _ASM_EXTABLE(1b, 3b) \ : "+r" (__ret), "=a" (__old), "+m" (*(ptr)) \ : "i" (-EFAULT), "r" (__new), "1" (__old) \ : "memory" \ ); \ break; \ } \ case 8: \ { \ if (!IS_ENABLED(CONFIG_X86_64)) \ __cmpxchg_wrong_size(); \ \ asm volatile("\n" \ "1:\t" LOCK_PREFIX "cmpxchgq %4, %2\n" \ "2:\n" \ "\t.section .fixup, \"ax\"\n" \ "3:\tmov %3, %0\n" \ "\tjmp 2b\n" \ "\t.previous\n" \ _ASM_EXTABLE(1b, 3b) \ : "+r" (__ret), "=a" (__old), "+m" (*(ptr)) \ : "i" (-EFAULT), "r" (__new), "1" (__old) \ : "memory" \ ); \ break; \ } \ default: \ __cmpxchg_wrong_size(); \ } \ __uaccess_end(); \ *__uval = __old; \ __ret; \ }) #define user_atomic_cmpxchg_inatomic(uval, ptr, old, new) \ ({ \ access_ok(VERIFY_WRITE, (ptr), sizeof(*(ptr))) ? \ __user_atomic_cmpxchg_inatomic((uval), (ptr), \ (old), (new), sizeof(*(ptr))) : \ -EFAULT; \ }) /* * movsl can be slow when source and dest are not both 8-byte aligned */ #ifdef CONFIG_X86_INTEL_USERCOPY extern struct movsl_mask { int mask; } ____cacheline_aligned_in_smp movsl_mask; #endif #define ARCH_HAS_NOCACHE_UACCESS 1 #ifdef CONFIG_X86_32 # include <asm/uaccess_32.h> #else # include <asm/uaccess_64.h> #endif /* * We rely on the nested NMI work to allow atomic faults from the NMI path; the * nested NMI paths are careful to preserve CR2. * * Caller must use pagefault_enable/disable, or run in interrupt context, * and also do a uaccess_ok() check */ #define __copy_from_user_nmi __copy_from_user_inatomic /* * The "unsafe" user accesses aren't really "unsafe", but the naming * is a big fat warning: you have to not only do the access_ok() * checking before using them, but you have to surround them with the * user_access_begin/end() pair. */ static __must_check inline bool user_access_begin(int type, const void __user *ptr, size_t len) { if (unlikely(!access_ok(type, ptr, len))) return 0; __uaccess_begin_nospec(); return 1; } #define user_access_begin(a, b, c) user_access_begin(a, b, c) #define user_access_end() __uaccess_end() #define unsafe_put_user(x, ptr, err_label) \ do { \ int __pu_err; \ __typeof__(*(ptr)) __pu_val = (x); \ __put_user_size(__pu_val, (ptr), sizeof(*(ptr)), __pu_err, -EFAULT); \ if (unlikely(__pu_err)) goto err_label; \ } while (0) #define unsafe_get_user(x, ptr, err_label) \ do { \ int __gu_err; \ __inttype(*(ptr)) __gu_val; \ __get_user_size(__gu_val, (ptr), sizeof(*(ptr)), __gu_err, -EFAULT); \ (x) = (__force __typeof__(*(ptr)))__gu_val; \ if (unlikely(__gu_err)) goto err_label; \ } while (0) #endif /* _ASM_X86_UACCESS_H */