Home
last modified time | relevance | path

Searched +full:protect +full:- +full:exec (Results 1 – 25 of 130) sorted by relevance

123456

/OK3568_Linux_fs/kernel/drivers/misc/
H A Dsram-exec.c2 * SRAM protect-exec region helper functions
4 * Copyright (C) 2017 Texas Instruments Incorporated - https://www.ti.com/
33 unsigned long base = (unsigned long)part->base; in sram_check_protect_exec()
34 unsigned long end = base + block->size; in sram_check_protect_exec()
37 dev_err(sram->dev, in sram_check_protect_exec()
38 "SRAM pool marked with 'protect-exec' is not page aligned and will not be created.\n"); in sram_check_protect_exec()
39 return -ENOMEM; in sram_check_protect_exec()
48 list_add_tail(&part->list, &exec_pool_list); in sram_add_protect_exec()
55 * sram_exec_copy - copy data to a protected executable region of sram
66 * of 'protect-exec' pools which are normal sram pools but are always set
[all …]
H A Dsram.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Generic on-chip SRAM allocation driver
19 #include <soc/at91/atmel-secumod.h>
33 mutex_lock(&part->lock); in sram_read()
34 memcpy_fromio(buf, part->base + pos, count); in sram_read()
35 mutex_unlock(&part->lock); in sram_read()
48 mutex_lock(&part->lock); in sram_write()
49 memcpy_toio(part->base + pos, buf, count); in sram_write()
50 mutex_unlock(&part->lock); in sram_write()
60 part->pool = devm_gen_pool_create(sram->dev, ilog2(SRAM_GRANULARITY), in sram_add_pool()
[all …]
/OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/qemu/qemu/
H A Dpvrdma.patch1 hw/pvrdma: Protect against buggy or malicious guest driver
7 We need to protect againts such case.
9 Reported-by: Mauro Matteo Cascella <mcascell@redhat.com>
10 Signed-off-by: Yuval Shaia <yuval.shaia.ml@gmail.com>
12 CVE: CVE-2022-1050
13 Upstream-Status: Submitted [https://lists.nongnu.org/archive/html/qemu-devel/2022-03/msg05197.html]
15 Index: qemu-6.2.0/hw/rdma/vmw/pvrdma_cmd.c
17 --- qemu-6.2.0.orig/hw/rdma/vmw/pvrdma_cmd.c
18 +++ qemu-6.2.0/hw/rdma/vmw/pvrdma_cmd.c
19 @@ -796,6 +796,12 @@ int pvrdma_exec_cmd(PVRDMADev *dev)
[all …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/powerpc/mm/
H A Dpkey_siginfo.c1 // SPDX-License-Identifier: GPL-2.0
44 if (sinfo->si_code != SEGV_PKUERR) { in segv_handler()
50 if (sinfo->si_addr != (void *) fault_addr) { in segv_handler()
68 pgstart = (void *) ((unsigned long) fault_addr & ~(pgsize - 1)); in segv_handler()
72 * reassociate the page with the exec-only pkey since execute in segv_handler()
77 * read-write rights, change the AMR permission bits for the in segv_handler()
97 static void *protect(void *p) in protect() function
105 base = ((struct region *) p)->base; in protect()
106 size = ((struct region *) p)->size; in protect()
119 * Repeatedly try to protect the common region with a permissive in protect()
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/arm/omap/
H A Dmpu.txt1 * TI - MPU (Main Processor Unit) subsystem
8 - compatible : Should be "ti,omap3-mpu" for OMAP3
9 Should be "ti,omap4-mpu" for OMAP4
10 Should be "ti,omap5-mpu" for OMAP5
11 - ti,hwmods: "mpu"
14 - sram: Phandle to the ocmcram node
17 - pm-sram: Phandles to ocmcram nodes to be used for power management.
18 First should be type 'protect-exec' for the driver to use to copy
25 - For an OMAP5 SMP system:
28 compatible = "ti,omap5-mpu";
[all …]
/OK3568_Linux_fs/external/xserver/
H A Dinstall-sh2 # install - install a program, script, or datafile
4 scriptversion=2018-03-11.20; # UTC
26 # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
30 # be used in advertising or otherwise to promote the sale, use or other deal-
31 # ings in this Software without prior written authorization from the X Consor-
37 # Calling this script install-sh is preferred over install.sh, to prevent
51 doit=${DOITPROG-}
52 doit_exec=${doit:-exec}
57 chgrpprog=${CHGRPPROG-chgrp}
58 chmodprog=${CHMODPROG-chmod}
[all …]
/OK3568_Linux_fs/u-boot/doc/
H A DREADME.mpc83xxads2 -----------------------------------------
7 $ CROSS_COMPILE=powerpc-linux-
10 $ powerpc-linux-gcc -v
11 Reading specs from /usr/powerpc/lib/gcc/powerpc-linux/3.4.3/specs
12 Configured with: ../configure --prefix=/usr/powerpc
13 --exec-prefix=/usr/powerpc --target=powerpc-linux --enable-shared
14 --disable-nls --disable-multilib --enable-languages=c,c++,ada,f77,objc
18 $ powerpc-linux-as -v
19 GNU assembler version 2.15 (powerpc-linux) using BFD version 2.15
53 CONFIG_TSEC_ENET Use on-chip 10/100/1000 ethernet
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/memory-controllers/ti/
H A Demif.txt3 EMIF - External Memory Interface - is an SDRAM controller used in
11 - compatible : Should be of the form "ti,emif-<ip-rev>" where <ip-rev>
14 "ti,emif-am3352"
15 "ti,emif-am4372"
16 "ti,emif-dra7xx"
17 "ti,emif-keystone"
19 - phy-type : <u32> indicating the DDR phy type. Following are the
24 - device-handle : phandle to a "lpddr2" node representing the memory part
26 - ti,hwmods : For TI hwmods processing and omap device creation
29 - interrupts : interrupt used by the controller
[all …]
/OK3568_Linux_fs/buildroot/dl/stressapptest/git/
H A Dinstall-sh2 # install - install a program, script, or datafile
4 scriptversion=2006-12-25.00
26 # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
30 # be used in advertising or otherwise to promote the sale, use or other deal-
31 # ings in this Software without prior written authorization from the X Consor-
37 # Calling this script install-sh is preferred over install.sh, to prevent
50 # Don't use :- since 4.3BSD and earlier shells don't like it.
51 doit=${DOITPROG-}
52 if test -z "$doit"; then
53 doit_exec=exec
[all …]
/OK3568_Linux_fs/kernel/Documentation/driver-api/
H A Ddma-buf.rst4 The dma-buf subsystem provides the framework for sharing buffers for
8 This is used, for example, by drm "prime" multi-GPU support, but is of
11 The three main components of this are: (1) dma-buf, representing a
18 ------------------
20 This document serves as a guide to device-driver writers on what is the dma-buf
27 exporter, and A as buffer-user/importer.
31 - implements and manages operations in :c:type:`struct dma_buf_ops
33 - allows other users to share the buffer by using dma_buf sharing APIs,
34 - manages the details of buffer allocation, wrapped in a :c:type:`struct
36 - decides about the actual backing storage where this allocation happens,
[all …]
/OK3568_Linux_fs/kernel/include/linux/
H A Dfsnotify_backend.h1 /* SPDX-License-Identifier: GPL-2.0 */
41 #define FS_OPEN_EXEC 0x00001000 /* File was opened for exec */
49 #define FS_OPEN_EXEC_PERM 0x00040000 /* open/exec event in a permission hook */
67 * Directory entry modification events - reported only to directory
119 * handle_event - main call for a group to handle an fs event
124 * @dir: optional directory associated with event -
131 * handle_inode_event - simple variant of handle_event() for groups that only
136 * @dir: optional directory associated with event -
142 * free_group_priv - called when a group refcnt hits 0 to clean up the private union
143 * freeing_mark - called when a mark is being destroyed for some reason. The group
[all …]
H A Dperf_event.h4 * Copyright (C) 2008-2009, Thomas Gleixner <tglx@linutronix.de>
5 * Copyright (C) 2008-2011, Red Hat, Inc., Ingo Molnar
6 * Copyright (C) 2008-2011, Red Hat, Inc., Peter Zijlstra
12 * For licencing details see kernel-base/COPYING
21 * Kernel-internal data types and definitions:
98 * -1ULL means invalid/unknown.
108 * The hw_idx index is between -1 (unknown) and max depth,
128 int idx; /* index in shared_regs->regs[] */
132 * struct hw_perf_event - performance event hardware details:
154 /* for tp_event->class */
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/sram/
H A Dsram.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Generic on-chip SRAM
10 - Rob Herring <robh@kernel.org>
19 Following the generic-names recommended practice, node names should
30 - mmio-sram
31 - atmel,sama5d2-securam
32 - rockchip,rk3288-pmu-sram
42 "#address-cells":
[all …]
/OK3568_Linux_fs/kernel/fs/
H A Dexec.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/fs/exec.c
9 * #!-checking implemented by tytso.
12 * Demand-loading implemented 01.12.91 - no need to read anything but
14 * "current->executable", and page faults do the actual loading. Clean.
17 * was less than 2 hours work to get demand-loading completely implemented.
20 * current->executable is only used by the procfs. This allows a dispatch
89 if (WARN_ON(!fmt->load_binary)) in __register_binfmt()
92 insert ? list_add(&fmt->lh, &formats) : in __register_binfmt()
93 list_add_tail(&fmt->lh, &formats); in __register_binfmt()
[all …]
/OK3568_Linux_fs/kernel/Documentation/process/
H A Dmagic-number.rst11 It is a **very** good idea to protect kernel data structures with magic
14 routine. This last is especially useful --- particularly when you are
16 for example, does this frequently to pass driver-specific and line
17 discipline-specific structures back and forth.
95 USB_SERIAL_MAGIC 0x6702 usb_serial ``drivers/usb/serial/usb-serial.h``
99 USB_SERIAL_PORT_MAGIC 0x7301 usb_serial_port ``drivers/usb/serial/usb-serial.h``
112 WANPIPE_MAGIC 0x414C4453 sdla_{dump,exec} ``include/linux/wanpipe.h``
156 Note that there are also defined special per-driver magic numbers in sound
159 ID - these are not listed here as well.
161 HFS is another larger user of magic numbers - you can find them in
/OK3568_Linux_fs/kernel/include/linux/sched/
H A Dmm.h1 /* SPDX-License-Identifier: GPL-2.0 */
18 * mmgrab() - Pin a &struct mm_struct.
31 * See also <Documentation/vm/active_mm.rst> for an in-depth explanation
36 atomic_inc(&mm->mm_count); in mmgrab()
46 * user-space, after storing to rq->curr. in mmdrop()
48 if (unlikely(atomic_dec_and_test(&mm->mm_count))) in mmdrop()
53 * mmget() - Pin the address space associated with a &struct mm_struct.
57 * go away. This does not protect against parts of the address space being
65 * See also <Documentation/vm/active_mm.rst> for an in-depth explanation
70 atomic_inc(&mm->mm_users); in mmget()
[all …]
/OK3568_Linux_fs/kernel/Documentation/filesystems/
H A Daffs.rst1 .. SPDX-License-Identifier: GPL-2.0
19 in file names are case-insensitive, as they ought to be.
44 protect
107 Amiga -> Linux:
111 - R maps to r for user, group and others. On directories, R implies x.
113 - W maps to w.
115 - E maps to x.
117 - D is ignored.
119 - H, S and P are always retained and ignored under Linux.
121 - A is cleared when a file is written to.
[all …]
H A Dpath-lookup.txt17 thus in every component during path look-up. Since 2.5.10 onwards, fast-walk
23 make dcache look-up lock-free.
30 are path-walk intensive tend to do path lookups starting from a common dentry
35 (including dcache look-up) completely "store-free" (so, no locks, atomics, or
36 even stores into cachelines of common dentries). This is known as "rcu-walk"
42 A name string specifies a start (root directory, cwd, fd-relative) and a
45 elements are sub-strings, separated by '/'.
49 the path given by the name's starting point (which we know in advance -- eg.
50 current->fs->cwd or current->fs->root) as the first parent of the lookup. Then
67 - find the start point of the walk;
[all …]
H A Dporting.rst5 ---
16 ---
20 New methods: ->alloc_inode() and ->destroy_inode().
22 Remove inode->u.foo_inode_i
27 /* fs-private stuff */
35 Use FOO_I(inode) instead of &inode->u.foo_inode_i;
37 Add foo_alloc_inode() and foo_destroy_inode() - the former should allocate
38 foo_inode_info and return the address of ->vfs_inode, the latter should free
39 FOO_I(inode) (see in-tree filesystems for examples).
41 Make them ->alloc_inode and ->destroy_inode in your super_operations.
[all …]
/OK3568_Linux_fs/external/xserver/Xext/
H A DMakefile.in4 # Copyright (C) 1994-2020 Free Software Foundation, Inc.
20 if test -z '$(MAKELEVEL)'; then \
22 elif test -n '$(MAKE_HOST)'; then \
24 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
31 case $${target_option-} in \
34 "target option '$${target_option-}' specified" >&2; \
57 *=*|--*) continue;; \
58 -*I) strip_trailopt 'I'; skip_next=yes;; \
59 -*I?*) strip_trailopt 'I';; \
60 -*O) strip_trailopt 'O'; skip_next=yes;; \
[all …]
/OK3568_Linux_fs/kernel/kernel/time/
H A Dposix-cpu-timers.c1 // SPDX-License-Identifier: GPL-2.0
8 #include <linux/posix-timers.h>
19 #include "posix-timers.h"
27 pct->bases[CPUCLOCK_PROF].nextevt = cpu_limit * NSEC_PER_SEC; in posix_cputimers_group_init()
28 pct->timers_active = true; in posix_cputimers_group_init()
34 * tsk->signal->posix_cputimers.bases[clock].nextevt expiration cache if
42 spin_lock_irq(&task->sighand->siglock); in update_rlimit_cpu()
44 spin_unlock_irq(&task->sighand->siglock); in update_rlimit_cpu()
95 ret = pid_for_clock(clock, false) ? 0 : -EINVAL; in validate_clock_permissions()
108 return pid_task(timer->it.cpu.pid, clock_pid_type(timer->it_clock)); in cpu_timer_task_rcu()
[all …]
/OK3568_Linux_fs/kernel/arch/arm/boot/dts/
H A Dam4372.dtsi4 * Copyright (C) 2013 Texas Instruments Incorporated - https://www.ti.com/
11 #include <dt-bindings/bus/ti-sysc.h>
12 #include <dt-bindings/gpio/gpio.h>
13 #include <dt-bindings/interrupt-controller/arm-gic.h>
14 #include <dt-bindings/clock/am4.h>
18 interrupt-parent = <&wakeupgen>;
19 #address-cells = <1>;
20 #size-cells = <1>;
44 #address-cells = <1>;
45 #size-cells = <0>;
[all …]
/OK3568_Linux_fs/yocto/poky/meta/recipes-bsp/lrzsz/lrzsz-0.12.20/
H A Dautotools-update.patch3 Upstream-Status: Inappropriate [upstream hasn't been active since 1998]
4 Signed-off-by: Phil Blundell <pb@pbcl.net>
6 diff -uprN clean/lrzsz-0.12.20/configure.in lrzsz-0.12.20/configure.in
7 --- clean/lrzsz-0.12.20/configure.in 1998-12-30 07:50:07.000000000 +0000
8 +++ lrzsz-0.12.20/configure.in 2019-11-25 16:22:37.000000000 +0000
9 @@ -92,7 +92,6 @@ AC_PROG_RANLIB
13 -AM_C_PROTOTYPES
17 @@ -253,18 +252,13 @@ ihave$lookup_facility
21 -AC_SUBST(CFLAGS)
22 -AC_SUBST(LDFLAGS)
[all …]
/OK3568_Linux_fs/kernel/arch/arm64/kernel/
H A Dfpsimd.c1 // SPDX-License-Identifier: GPL-2.0-only
67 * we add the per-cpu variable 'fpsimd_last_state' (below), which contains the
87 * protect any manipulation of a task's fpsimd_state or TIF_FOREIGN_FPSTATE
92 * - the task gets scheduled in; if both the task's fpsimd_cpu field
93 * contains the id of the current CPU, and the CPU's fpsimd_last_state per-cpu
97 * - the task returns to userland; if TIF_FOREIGN_FPSTATE is set, the task's
103 * - the task executes an ordinary syscall; upon return to userland, the
107 * - the task executes a syscall which executes some NEON instructions; this is
109 * register contents to memory, clears the fpsimd_last_state per-cpu variable
112 * - the task gets preempted after kernel_neon_end() is called; as we have not
[all …]
/OK3568_Linux_fs/kernel/include/linux/mtd/
H A Drawnand.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright © 2000-2010 David Woodhouse <dwmw2@infradead.org>
73 #define NAND_CMD_NONE -1
82 #define NAND_DATA_IFACE_CHECK_ONLY -1
96 * ecc.correct() returns -EBADMSG.
122 * Chip requires ready check on read (for auto-incremented sequential read).
140 #define NAND_HAS_SUBPAGE_READ(chip) ((chip->options & NAND_SUBPAGE_READ))
166 * This option could be defined by controller drivers to protect against
172 * In case your controller is implementing ->legacy.cmd_ctrl() and is relying
173 * on the default ->cmdfunc() implementation, you may want to let the core
[all …]

123456