Home
last modified time | relevance | path

Searched +full:i +full:- +full:leak +full:- +full:current (Results 1 – 25 of 363) sorted by relevance

12345678910>>...15

/kernel/linux/linux-6.6/Documentation/devicetree/bindings/power/
Dpower_domain.txt5 current.
12 #power-domain-cells property in the PM domain provider node.
16 See power-domain.yaml.
21 - power-domains : A list of PM domain specifiers, as defined by bindings of
25 - power-domain-names : A list of power domain name strings sorted in the same
26 order as the power-domains property. Consumers drivers will use
27 power-domain-names to match power domains with power-domains
32 leaky-device@12350000 {
33 compatible = "foo,i-leak-current";
35 power-domains = <&power 0>;
[all …]
Dqcom,rpmpd.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Bjorn Andersson <andersson@kernel.org>
19 - qcom,mdm9607-rpmpd
20 - qcom,msm8226-rpmpd
21 - qcom,msm8909-rpmpd
22 - qcom,msm8916-rpmpd
23 - qcom,msm8939-rpmpd
24 - qcom,msm8953-rpmpd
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/power/
Dpower_domain.txt5 current.
12 #power-domain-cells property in the PM domain provider node.
16 See power-domain.yaml.
21 - power-domains : A list of PM domain specifiers, as defined by bindings of
25 - power-domain-names : A list of power domain name strings sorted in the same
26 order as the power-domains property. Consumers drivers will use
27 power-domain-names to match power domains with power-domains
32 leaky-device@12350000 {
33 compatible = "foo,i-leak-current";
35 power-domains = <&power 0>;
[all …]
Dqcom,rpmpd.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Rajendra Nayak <rnayak@codeaurora.org>
19 - qcom,msm8976-rpmpd
20 - qcom,msm8996-rpmpd
21 - qcom,msm8998-rpmpd
22 - qcom,qcs404-rpmpd
23 - qcom,sc7180-rpmhpd
24 - qcom,sdm845-rpmhpd
[all …]
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/tm/
Dtm-poison.c1 // SPDX-License-Identifier: GPL-2.0-only
11 * present child's poison will leak into parent's f31 or vr31 registers,
12 * otherwise, poison will never leak into parent's f31 and vr31 registers.
74 * The Time Base (TB) is a 64-bit counter register that is in tm_poison_test()
81 * to r6. When r7 (current) - r6 (initial) > 61440000000 we bail in tm_poison_test()
90 "1: mfspr 7, 268 ;" // r7 (TB current) in tm_poison_test()
91 " subf 7, 6, 7 ;" // r7 - r6 > 61440000000 ? in tm_poison_test()
102 " bne 2f ;" // broken :-( in tm_poison_test()
114 * On leak 'unknown' will contain 'poison' value from child, in tm_poison_test()
115 * otherwise (no leak) 'unknown' will contain the same value in tm_poison_test()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/tm/
Dtm-poison.c1 // SPDX-License-Identifier: GPL-2.0-only
11 * present child's poison will leak into parent's f31 or vr31 registers,
12 * otherwise, poison will never leak into parent's f31 and vr31 registers.
74 * The Time Base (TB) is a 64-bit counter register that is in tm_poison_test()
81 * to r6. When r7 (current) - r6 (initial) > 61440000000 we bail in tm_poison_test()
90 "1: mfspr 7, 268 ;" // r7 (TB current) in tm_poison_test()
91 " subf 7, 6, 7 ;" // r7 - r6 > 61440000000 ? in tm_poison_test()
102 " bne 2f ;" // broken :-( in tm_poison_test()
114 * On leak 'unknown' will contain 'poison' value from child, in tm_poison_test()
115 * otherwise (no leak) 'unknown' will contain the same value in tm_poison_test()
[all …]
/kernel/linux/linux-5.10/drivers/of/
Dunittest.c1 // SPDX-License-Identifier: GPL-2.0
6 #define pr_fmt(fmt) "### dt-test ### " fmt
10 #include <linux/dma-direct.h> /* to test phys_to_dma/dma_to_phys */
27 #include <linux/i2c-mux.h>
43 pr_err("FAIL %s():%i " fmt, __func__, __LINE__, ##__VA_ARGS__); \
46 pr_debug("pass %s():%i\n", __func__, __LINE__); \
53 * Print the expected message only if the current loglevel will allow
70 np = of_find_node_by_path("/testcase-data"); in of_unittest_find_node_by_name()
72 unittest(np && name && !strcmp("/testcase-data", name), in of_unittest_find_node_by_name()
73 "find /testcase-data failed\n"); in of_unittest_find_node_by_name()
[all …]
/kernel/linux/linux-5.10/fs/ocfs2/
Dbuffer_head_io.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* -*- mode: c; c-basic-offset: 8; -*-
29 * Bits on bh->b_state used by ocfs2.
45 trace_ocfs2_write_block((unsigned long long)bh->b_blocknr, ci); in ocfs2_write_block()
47 BUG_ON(bh->b_blocknr < OCFS2_SUPER_BLOCK_BLKNO); in ocfs2_write_block()
52 * can get modified during recovery even if read-only. */ in ocfs2_write_block()
54 ret = -EROFS; in ocfs2_write_block()
64 /* remove from dirty list before I/O. */ in ocfs2_write_block()
68 bh->b_end_io = end_buffer_write_sync; in ocfs2_write_block()
79 ret = -EIO; in ocfs2_write_block()
[all …]
/kernel/linux/linux-6.6/fs/ocfs2/
Dbuffer_head_io.c1 // SPDX-License-Identifier: GPL-2.0-or-later
27 * Bits on bh->b_state used by ocfs2.
43 trace_ocfs2_write_block((unsigned long long)bh->b_blocknr, ci); in ocfs2_write_block()
45 BUG_ON(bh->b_blocknr < OCFS2_SUPER_BLOCK_BLKNO); in ocfs2_write_block()
50 * can get modified during recovery even if read-only. */ in ocfs2_write_block()
52 ret = -EROFS; in ocfs2_write_block()
62 /* remove from dirty list before I/O. */ in ocfs2_write_block()
66 bh->b_end_io = end_buffer_write_sync; in ocfs2_write_block()
77 ret = -EIO; in ocfs2_write_block()
86 /* Caller must provide a bhs[] with all NULL or non-NULL entries, so it
[all …]
/kernel/linux/linux-6.6/drivers/of/
Dunittest.c1 // SPDX-License-Identifier: GPL-2.0
6 #define pr_fmt(fmt) "### dt-test ### " fmt
10 #include <linux/dma-direct.h> /* to test phys_to_dma/dma_to_phys */
29 #include <linux/i2c-mux.h>
45 pr_err("FAIL %s():%i " fmt, __func__, __LINE__, ##__VA_ARGS__); \
48 pr_info("pass %s():%i\n", __func__, __LINE__); \
54 #define OF_KREF_READ(NODE) kref_read(&(NODE)->kobj.kref)
61 * Print the expected message only if the current loglevel will allow
85 np = of_find_node_by_path("/testcase-data"); in of_unittest_find_node_by_name()
87 unittest(np && name && !strcmp("/testcase-data", name), in of_unittest_find_node_by_name()
[all …]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
Dtimer.c1 // SPDX-License-Identifier: GPL-2.0
76 /* *key == 0 - the callback was called for array timer. in timer_cb1()
77 * *key == 4 - the callback was called from lru timer. in timer_cb1()
94 int lru_key, i; in timer_cb1() local
96 for (i = LRU + 1; in timer_cb1()
97 i <= 100 /* for current LRU eviction algorithm this number in timer_cb1()
98 * should be larger than ~ lru->max_entries * 2 in timer_cb1()
100 i++) { in timer_cb1()
106 lru_key = i; in timer_cb1()
108 /* add more elements into lru map to push out current in timer_cb1()
[all …]
/kernel/linux/linux-5.10/kernel/trace/
Dtrace_event_perf.c1 // SPDX-License-Identifier: GPL-2.0
6 * Copyright (C) 2009-2010 Frederic Weisbecker <fweisbec@gmail.com>
32 if (tp_event->perf_perm) { in perf_trace_event_perm()
33 ret = tp_event->perf_perm(tp_event, p_event); in perf_trace_event_perm()
42 if (p_event->parent) in perf_trace_event_perm()
46 * It's ok to check current process (owner) permissions in here, in perf_trace_event_perm()
52 ret = perf_allow_tracepoint(&p_event->attr); in perf_trace_event_perm()
64 if (!p_event->attr.exclude_callchain_user) in perf_trace_event_perm()
65 return -EINVAL; in perf_trace_event_perm()
71 if (p_event->attr.sample_type & PERF_SAMPLE_STACK_USER) in perf_trace_event_perm()
[all …]
/kernel/linux/linux-6.6/kernel/trace/
Dtrace_event_perf.c1 // SPDX-License-Identifier: GPL-2.0
6 * Copyright (C) 2009-2010 Frederic Weisbecker <fweisbec@gmail.com>
32 if (tp_event->perf_perm) { in perf_trace_event_perm()
33 ret = tp_event->perf_perm(tp_event, p_event); in perf_trace_event_perm()
42 if (p_event->parent) in perf_trace_event_perm()
46 * It's ok to check current process (owner) permissions in here, in perf_trace_event_perm()
52 ret = perf_allow_tracepoint(&p_event->attr); in perf_trace_event_perm()
64 if (!p_event->attr.exclude_callchain_user) in perf_trace_event_perm()
65 return -EINVAL; in perf_trace_event_perm()
71 if (p_event->attr.sample_type & PERF_SAMPLE_STACK_USER) in perf_trace_event_perm()
[all …]
/kernel/linux/linux-5.10/mm/
Dkmemleak.c1 // SPDX-License-Identifier: GPL-2.0-only
9 * Documentation/dev-tools/kmemleak.rst.
12 * ----------------
16 * - kmemleak_lock (raw_spinlock_t): protects the object_list modifications and
19 * blocks. The object_tree_root is a red black tree used to look-up
25 * - kmemleak_object.lock (raw_spinlock_t): protects a kmemleak_object.
32 * - scan_mutex (mutex): ensures that only one thread may scan the memory for
45 * scan_mutex [-> object->lock] -> kmemleak_lock -> other_object->lock (SINGLE_DEPTH_NESTING)
47 * No kmemleak_lock and object->lock nesting is allowed outside scan_mutex
127 #define KMEMLEAK_BLACK -1
[all …]
/kernel/linux/linux-5.10/Documentation/ide/
DChangeLog.ide-cd.1994-20042 * 1.00 Oct 31, 1994 -- Initial version.
3 * 1.01 Nov 2, 1994 -- Fixed problem with starting request in
5 * 1.03 Nov 25, 1994 -- leaving unmask_intr[] as a user-setting (as for disks)
6 * (from mlord) -- minor changes to cdrom_setup()
7 * -- renamed ide_dev_s to ide_drive_t, enable irq on command
8 * 2.00 Nov 27, 1994 -- Generalize packet command interface;
10 * 2.01 Dec 3, 1994 -- Rework packet command interface to handle devices
12 * 2.02 Dec 11, 1994 -- Cache the TOC in the driver.
14 * in the current version of ATAPI.
18 * 2.03 Jan 10, 1995 -- Rewrite block read routines to handle block sizes
[all …]
/kernel/linux/linux-6.6/net/
Dsysctl_net.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* -*- linux-c -*-
33 return &current->nsproxy->net_ns->sysctls; in net_ctl_header_lookup()
38 return &current->nsproxy->net_ns->sysctls == set; in is_seen()
45 struct net *net = container_of(head->set, struct net, sysctls); in net_ctl_permissions()
48 if (ns_capable_noaudit(net->user_ns, CAP_NET_ADMIN)) { in net_ctl_permissions()
49 int mode = (table->mode >> 6) & 7; in net_ctl_permissions()
53 return table->mode; in net_ctl_permissions()
60 struct net *net = container_of(head->set, struct net, sysctls); in net_ctl_set_ownership()
64 ns_root_uid = make_kuid(net->user_ns, 0); in net_ctl_set_ownership()
[all …]
/kernel/linux/linux-6.6/Documentation/security/
Dlandlock.rst1 .. SPDX-License-Identifier: GPL-2.0
2 .. Copyright © 2017-2020 Mickaël Salaün <mic@digikod.net>
3 .. Copyright © 2019-2020 ANSSI
12 Landlock's goal is to create scoped access-control (i.e. sandboxing). To
15 backdoored (i.e. untrusted), Landlock's features must be safe to use from the
21 LSM). Indeed, a Landlock rule shall not interfere with other access-controls
29 Documentation/userspace-api/landlock.rst.
35 of syscall filtering (i.e. syscall arguments), which is the purpose of
36 seccomp-bpf.
37 * To avoid multiple kinds of side-channel attacks (e.g. leak of security
[all …]
/kernel/linux/linux-6.6/mm/
Dkmemleak.c1 // SPDX-License-Identifier: GPL-2.0-only
9 * Documentation/dev-tools/kmemleak.rst.
12 * ----------------
16 * - kmemleak_lock (raw_spinlock_t): protects the object_list as well as
21 * black trees used to look-up metadata based on a pointer to the
28 * - kmemleak_object.lock (raw_spinlock_t): protects a kmemleak_object.
35 * - scan_mutex (mutex): ensures that only one thread may scan the memory for
48 * scan_mutex [-> object->lock] -> kmemleak_lock -> other_object->lock (SINGLE_DEPTH_NESTING)
50 * No kmemleak_lock and object->lock nesting is allowed outside scan_mutex
133 #define KMEMLEAK_BLACK -1
[all …]
/kernel/linux/linux-5.10/kernel/rcu/
Dsrcutree.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Sleepable Read-Copy Update mechanism for mutual exclusion.
11 * For detailed explanation of Read-Copy Update mechanism see -
32 /* Holdoff in nanoseconds for auto-expediting. */
37 /* Overflow-check frequency. N bits roughly says every 2**N grace periods. */
41 /* Early-boot callback-management, so early that no lock is required! */
81 * is set, don't initialize ->srcu_lock_count[] and ->srcu_unlock_count[].
86 int i; in init_srcu_struct_nodes() local
97 ssp->level[0] = &ssp->node[0]; in init_srcu_struct_nodes()
98 for (i = 1; i < rcu_num_lvls; i++) in init_srcu_struct_nodes()
[all …]
/kernel/linux/linux-6.6/tools/perf/tests/
Ddso-data.c1 // SPDX-License-Identifier: GPL-2.0
20 #define TEMPL "/tmp/perf-test-XXXXXX" in test_file()
23 int fd, i; in test_file() local
41 for (i = 0; i < size; i++) in test_file()
42 buf[i] = (unsigned char) ((int) i % 10); in test_file()
75 .offset = DSO__DATA_CACHE_SIZE - DSO__DATA_CACHE_SIZE % 10,
81 .offset = DSO__DATA_CACHE_SIZE - DSO__DATA_CACHE_SIZE % 10,
87 .offset = TEST_FILE_SIZE - 10,
93 .offset = TEST_FILE_SIZE - 10,
99 .offset = TEST_FILE_SIZE - 3,
[all …]
/kernel/linux/linux-5.10/tools/perf/tests/
Ddso-data.c1 // SPDX-License-Identifier: GPL-2.0
20 #define TEMPL "/tmp/perf-test-XXXXXX" in test_file()
23 int fd, i; in test_file() local
41 for (i = 0; i < size; i++) in test_file()
42 buf[i] = (unsigned char) ((int) i % 10); in test_file()
75 .offset = DSO__DATA_CACHE_SIZE - DSO__DATA_CACHE_SIZE % 10,
81 .offset = DSO__DATA_CACHE_SIZE - DSO__DATA_CACHE_SIZE % 10,
87 .offset = TEST_FILE_SIZE - 10,
93 .offset = TEST_FILE_SIZE - 10,
99 .offset = TEST_FILE_SIZE - 3,
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/core/
Drestrack.c1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
3 * Copyright (c) 2017-2018 Mellanox Technologies. All rights reserved.
18 * rdma_restrack_init() - initialize and allocate resource tracking
26 int i; in rdma_restrack_init() local
28 dev->res = kcalloc(RDMA_RESTRACK_MAX, sizeof(*rt), GFP_KERNEL); in rdma_restrack_init()
29 if (!dev->res) in rdma_restrack_init()
30 return -ENOMEM; in rdma_restrack_init()
32 rt = dev->res; in rdma_restrack_init()
34 for (i = 0; i < RDMA_RESTRACK_MAX; i++) in rdma_restrack_init()
35 xa_init_flags(&rt[i].xa, XA_FLAGS_ALLOC); in rdma_restrack_init()
[all …]
/kernel/linux/linux-6.6/drivers/infiniband/core/
Drestrack.c1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB
3 * Copyright (c) 2017-2018 Mellanox Technologies. All rights reserved.
18 * rdma_restrack_init() - initialize and allocate resource tracking
26 int i; in rdma_restrack_init() local
28 dev->res = kcalloc(RDMA_RESTRACK_MAX, sizeof(*rt), GFP_KERNEL); in rdma_restrack_init()
29 if (!dev->res) in rdma_restrack_init()
30 return -ENOMEM; in rdma_restrack_init()
32 rt = dev->res; in rdma_restrack_init()
34 for (i = 0; i < RDMA_RESTRACK_MAX; i++) in rdma_restrack_init()
35 xa_init_flags(&rt[i].xa, XA_FLAGS_ALLOC); in rdma_restrack_init()
[all …]
/kernel/linux/linux-5.10/drivers/irqchip/
Dirq-gic-v4.c1 // SPDX-License-Identifier: GPL-2.0-only
13 #include <linux/irqchip/arm-gic-v4.h>
22 * core GIC code (that would in turn leak into the hypervisor code),
25 * agnostic actually means KVM-specific - what were you thinking?).
30 * - Any guest-visible VLPI is backed by a Linux interrupt (and a
36 * - Enabling/disabling a VLPI is done by issuing mask/unmask calls.
38 * - Guest INT/CLEAR commands are implemented through
41 * - The *bizarre* stuff (mapping/unmapping an interrupt to a VLPI, or
61 * interrupts which are delivered when a VLPI targeting a non-running
70 * - VMs (or rather the VM abstraction that matters to the GIC)
[all …]
/kernel/linux/linux-6.6/drivers/irqchip/
Dirq-gic-v4.c1 // SPDX-License-Identifier: GPL-2.0-only
13 #include <linux/irqchip/arm-gic-v4.h>
22 * core GIC code (that would in turn leak into the hypervisor code),
25 * agnostic actually means KVM-specific - what were you thinking?).
30 * - Any guest-visible VLPI is backed by a Linux interrupt (and a
36 * - Enabling/disabling a VLPI is done by issuing mask/unmask calls.
38 * - Guest INT/CLEAR commands are implemented through
41 * - The *bizarre* stuff (mapping/unmapping an interrupt to a VLPI, or
61 * interrupts which are delivered when a VLPI targeting a non-running
70 * - VMs (or rather the VM abstraction that matters to the GIC)
[all …]

12345678910>>...15