Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-4.19/drivers/misc/
Dsram-exec.c2 * SRAM protect-exec region helper functions
4 * Copyright (C) 2017 Texas Instruments Incorporated - http://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 …]
Dsram.c2 * Generic on-chip SRAM allocation driver
18 * MA 02110-1301, USA.
32 #include <soc/at91/atmel-secumod.h>
46 mutex_lock(&part->lock); in sram_read()
47 memcpy_fromio(buf, part->base + pos, count); in sram_read()
48 mutex_unlock(&part->lock); in sram_read()
61 mutex_lock(&part->lock); in sram_write()
62 memcpy_toio(part->base + pos, buf, count); in sram_write()
63 mutex_unlock(&part->lock); in sram_write()
73 part->pool = devm_gen_pool_create(sram->dev, ilog2(SRAM_GRANULARITY), in sram_add_pool()
[all …]
/kernel/linux/linux-5.10/drivers/misc/
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 …]
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 …]
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/arm/omap/
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 …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/arm/omap/
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 …]
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/mm/
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 …]
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/sram/
Dsram.txt1 Generic on-chip SRAM
7 - compatible : mmio-sram or atmel,sama5d2-securam
9 - reg : SRAM iomem address range
12 ---------------------
18 Following the generic-names recommended practice, node names should
24 - #address-cells, #size-cells : should use the same values as the root node
25 - ranges : standard definition, should translate from local addresses
30 - no-memory-wc : the flag indicating, that SRAM memory region has not to
35 - reg : iomem address range, relative to the SRAM range
39 - compatible : standard definition, should contain a vendor specific string
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/memory-controllers/ti/
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 …]
/kernel/linux/linux-4.19/Documentation/devicetree/bindings/memory-controllers/ti/
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 …]
/kernel/linux/linux-5.10/Documentation/driver-api/
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 …]
/kernel/linux/linux-5.10/fs/
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
87 if (WARN_ON(!fmt->load_binary)) in __register_binfmt()
90 insert ? list_add(&fmt->lh, &formats) : in __register_binfmt()
91 list_add_tail(&fmt->lh, &formats); in __register_binfmt()
[all …]
/kernel/linux/linux-4.19/kernel/time/
Dposix-cpu-timers.c1 // SPDX-License-Identifier: GPL-2.0
8 #include <linux/posix-timers.h>
19 #include "posix-timers.h"
25 * tsk->signal->cputime_expires expiration cache if necessary. Needs
33 spin_lock_irq(&task->sighand->siglock); in update_rlimit_cpu()
35 spin_unlock_irq(&task->sighand->siglock); in update_rlimit_cpu()
45 return -EINVAL; in check_clock()
54 error = -EINVAL; in check_clock()
70 if (timer->it.cpu.incr == 0) in bump_cpu_timer()
73 if (now < timer->it.cpu.expires) in bump_cpu_timer()
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/sram/
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 …]
/kernel/linux/linux-5.10/include/linux/
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 …]
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 …]
/kernel/linux/linux-4.19/Documentation/process/
Dmagic-number.rst9 It is a **very** good idea to protect kernel data structures with magic
12 routine. This last is especially useful --- particularly when you are
14 for example, does this frequently to pass driver-specific and line
15 discipline-specific structures back and forth.
94 USB_SERIAL_MAGIC 0x6702 usb_serial ``drivers/usb/serial/usb-serial.h``
98 USB_SERIAL_PORT_MAGIC 0x7301 usb_serial_port ``drivers/usb/serial/usb-serial.h``
111 WANPIPE_MAGIC 0x414C4453 sdla_{dump,exec} ``include/linux/wanpipe.h``
155 Note that there are also defined special per-driver magic numbers in sound
158 ID - these are not listed here as well.
160 HFS is another larger user of magic numbers - you can find them in
/kernel/linux/linux-5.10/Documentation/process/
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
/kernel/linux/linux-4.19/fs/
Dexec.c2 * linux/fs/exec.c
8 * #!-checking implemented by tytso.
11 * Demand-loading implemented 01.12.91 - no need to read anything but
13 * "current->executable", and page faults do the actual loading. Clean.
16 * was less than 2 hours work to get demand-loading completely implemented.
19 * current->executable is only used by the procfs. This allows a dispatch
83 if (WARN_ON(!fmt->load_binary)) in __register_binfmt()
86 insert ? list_add(&fmt->lh, &formats) : in __register_binfmt()
87 list_add_tail(&fmt->lh, &formats); in __register_binfmt()
96 list_del(&fmt->lh); in unregister_binfmt()
[all …]
/kernel/linux/linux-4.19/Documentation/filesystems/
Daffs.txt15 in file names are case-insensitive, as they ought to be.
39 protect If this option is set, the protection bits cannot be altered.
90 Amiga -> Linux:
94 - R maps to r for user, group and others. On directories, R implies x.
96 - W maps to w.
98 - E maps to x.
100 - D is ignored.
102 - H, S and P are always retained and ignored under Linux.
104 - A is cleared when a file is written to.
112 Linux -> Amiga:
[all …]
Dporting3 ---
13 ---
16 New methods: ->alloc_inode() and ->destroy_inode().
18 Remove inode->u.foo_inode_i
21 /* fs-private stuff */
29 Use FOO_I(inode) instead of &inode->u.foo_inode_i;
31 Add foo_alloc_inode() and foo_destroy_inode() - the former should allocate
32 foo_inode_info and return the address of ->vfs_inode, the latter should free
33 FOO_I(inode) (see in-tree filesystems for examples).
35 Make them ->alloc_inode and ->destroy_inode in your super_operations.
[all …]
/kernel/linux/linux-5.10/include/linux/sched/
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 …]
/kernel/linux/linux-5.10/Documentation/filesystems/
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 …]
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 …]
/kernel/linux/linux-4.19/include/linux/
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:
114 int idx; /* index in shared_regs->regs[] */
118 * struct hw_perf_event - performance event hardware details:
140 /* for tp_event->class */
185 #define PERF_HES_UPTODATE 0x02 /* event->count up-to-date */
249 * struct pmu - generic performance monitoring unit
[all …]

1234