/linux/kernel/kcsan/ |
H A D | permissive.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Special rules for ignoring entire classes of data-racy memory accesses. None 4 * of the rules here imply that such data races are generally safe! 6 * All rules in this file can be configured via CONFIG_KCSAN_PERMISSIVE. Keep 20 * Access ignore rules based on address. 28 * Data-racy bitops on current->flags are too common, ignore completely in kcsan_ignore_address() 31 return ptr == ¤t->flags; in kcsan_ignore_address() 35 * Data race ignore rules based on access type and value change patterns. 44 * Rules here are only for plain read accesses, so that we still report in kcsan_ignore_data_race() 45 * data races between plain read-write accesses. in kcsan_ignore_data_race() [all …]
|
/linux/security/apparmor/ |
H A D | net.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * Copyright (C) 1998-2008 Novell/SUSE 8 * Copyright 2009-2017 Canonical Ltd. 83 } else if (addr->sun_path[0]) { in audit_unix_addr() 85 audit_log_untrustedstring(ab, addr->sun_path); in audit_unix_addr() 88 if (audit_string_contains_control(&addr->sun_path[1], len - 1)) in audit_unix_addr() 89 audit_log_n_hex(ab, &addr->sun_path[1], len - 1); in audit_unix_addr() 91 audit_log_format(ab, "%.*s", len - 1, in audit_unix_addr() 92 &addr->sun_path[1]); in audit_unix_addr() 102 if (u && u->addr) { in audit_unix_sk_addr() [all …]
|
H A D | capability.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * Copyright (C) 1998-2008 Novell/SUSE 8 * Copyright 2009-2010 Canonical Ltd. 43 * audit_cb - call back for capability components of audit struct 52 audit_log_untrustedstring(ab, capability_names[sa->u.cap]); in audit_cb() 56 * audit_caps - audit a capability 65 * Returns: 0 or ad->error on success, error code on failure 72 struct aa_ruleset *rules = profile->label.rules[0]; in audit_caps() local 76 ad->error = error; in audit_caps() 81 !cap_raised(rules->caps.audit, cap))) in audit_caps() [all …]
|
/linux/Documentation/filesystems/ |
H A D | directory-locking.rst | 7 kinds of locks - per-inode (->i_rwsem) and per-filesystem 8 (->s_vfs_rename_mutex). 10 When taking the i_rwsem on multiple non-directory objects, we 20 1. read access. Locking rules: 24 2. object creation. Locking rules: 28 3. object removal. Locking rules: 34 4. link creation. Locking rules: 40 5. rename that is _not_ cross-directory. Locking rules: 45 The source needs to be locked if it's a non-directory, target - if it's 46 a non-directory or about to be removed. [all …]
|
/linux/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_matchall.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 2 /* Copyright (c) 2019-2022 Marvell International Ltd. All rights reserved */ 21 err = prestera_flower_prio_get(block, f->common.chain_index, in prestera_mall_prio_check() 23 if (err == -ENOENT) in prestera_mall_prio_check() 28 NL_SET_ERR_MSG(f->common.extack, "Failed to get flower priorities"); in prestera_mall_prio_check() 32 if (f->common.prio <= flower_prio_max && !block->ingress) { in prestera_mall_prio_check() 33 NL_SET_ERR_MSG(f->common.extack, "Failed to add in front of existing flower rules"); in prestera_mall_prio_check() 34 return -EOPNOTSUPP; in prestera_mall_prio_check() 36 if (f->common.prio >= flower_prio_min && block->ingress) { in prestera_mall_prio_check() 37 NL_SET_ERR_MSG(f->common.extack, "Failed to add behind of existing flower rules"); in prestera_mall_prio_check() [all …]
|
H A D | prestera_flower.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 19 prestera_acl_ruleset_put(template->ruleset); in prestera_flower_template_free() 20 list_del(&template->list); in prestera_flower_template_free() 29 list_for_each_entry_safe(template, tmp, &block->template_list, list) in prestera_flower_template_cleanup() 41 if (act->chain_index <= chain_index) in prestera_flower_parse_goto_action() 43 return -EINVAL; in prestera_flower_parse_goto_action() 45 if (rule->re_arg.jump.valid) in prestera_flower_parse_goto_action() 46 return -EEXIST; in prestera_flower_parse_goto_action() 48 ruleset = prestera_acl_ruleset_get(block->sw->acl, block, in prestera_flower_parse_goto_action() 49 act->chain_index); in prestera_flower_parse_goto_action() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_matchall.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 2 /* Copyright (c) 2017-2020 Mellanox Technologies. All rights reserved */ 18 list_for_each_entry(mall_entry, &block->mall.list, list) in mlxsw_sp_mall_entry_find() 19 if (mall_entry->cookie == cookie) in mlxsw_sp_mall_entry_find() 30 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_mall_port_mirror_add() 36 if (!mall_entry->mirror.to_dev) { in mlxsw_sp_mall_port_mirror_add() 38 return -EINVAL; in mlxsw_sp_mall_port_mirror_add() 41 agent_parms.to_dev = mall_entry->mirror.to_dev; in mlxsw_sp_mall_port_mirror_add() 42 err = mlxsw_sp_span_agent_get(mlxsw_sp, &mall_entry->mirror.span_id, in mlxsw_sp_mall_port_mirror_add() 50 mall_entry->ingress); in mlxsw_sp_mall_port_mirror_add() [all …]
|
/linux/drivers/gpu/drm/etnaviv/ |
H A D | state_blt.xml.h | 6 This file was generated by the rules-ng-ng headergen tool in this git repository: 7 http://0x04.net/cgit/index.cgi/rules-ng-ng 8 git clone git://0x04.net/rules-ng-ng 10 The rules-ng-ng source files this header was generated from are: 11 - state.xml ( 29355 bytes, from 2024-01-19 10:18:54) 12 - common.xml ( 35664 bytes, from 2023-12-06 10:55:32) 13 - common_3d.xml ( 15069 bytes, from 2023-11-22 10:05:24) 14 - state_hi.xml ( 35854 bytes, from 2023-12-11 15:50:17) 15 - copyright.xml ( 1597 bytes, from 2016-11-10 13:58:32) 16 - state_2d.xml ( 52271 bytes, from 2023-06-02 12:35:03) [all …]
|
/linux/drivers/net/ethernet/netronome/nfp/flower/ |
H A D | main.h | 1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ 2 /* Copyright (C) 2017-2018 Netronome Systems, Inc. */ 89 * struct nfp_fl_tunnel_offloads - priv data for tunnel offloads 109 * struct nfp_tun_neigh_lag - lag info 119 * struct nfp_tun_neigh - basic neighbour data 122 * @port_id: NFP port to output packet on - associated with source IPv4 131 * struct nfp_tun_neigh_ext - extended neighbour data 143 * struct nfp_tun_neigh_v4 - neighbour/route entry on the NFP for IPv4 146 * @common: Neighbour/route common info 153 struct nfp_tun_neigh common; member [all …]
|
H A D | conntrack.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 30 * get_hashentry() - Wrapper around hashtable lookup. 51 return ERR_PTR(-ENOMEM); in get_hashentry() 59 struct flow_dissector *dissector = rule->match.dissector; in is_pre_ct_flow() 64 if (dissector->used_keys & BIT_ULL(FLOW_DISSECTOR_KEY_CT)) { in is_pre_ct_flow() 66 if (ct.key->ct_state) in is_pre_ct_flow() 70 if (flow->common.chain_index) in is_pre_ct_flow() 73 flow_action_for_each(i, act, &flow->rule->action) { in is_pre_ct_flow() 74 if (act->id == FLOW_ACTION_CT) { in is_pre_ct_flow() 78 if ((!act->ct.action || act->ct.action == TCA_CT_ACT_NAT)) in is_pre_ct_flow() [all …]
|
/linux/drivers/net/phy/ |
H A D | phy-core.c | 1 // SPDX-License-Identifier: GPL-2.0+ 10 #include "phylib-internal.h" 11 #include "phy-caps.h" 14 * phy_speed_to_str - Return a string representing the PHY link speed 61 return "Unsupported (update phy-core.c)"; in phy_speed_to_str() 67 * phy_duplex_to_str - Return string describing the duplex 79 return "Unsupported (update phy-core.c)"; in phy_duplex_to_str() 84 * phy_rate_matching_to_str - Return a string describing the rate matching 98 return "open-loop"; in phy_rate_matching_to_str() 100 return "Unsupported (update phy-core.c)"; in phy_rate_matching_to_str() [all …]
|
/linux/Documentation/dev-tools/ |
H A D | clang-format.rst | 3 clang-format 6 ``clang-format`` is a tool to format C/C++/... code according to 7 a set of rules and heuristics. Like most tools, it is not perfect 10 ``clang-format`` can be used for several purposes: 12 - Quickly reformat a block of code to the kernel style. Specially useful 15 - Spot style mistakes, typos and possible improvements in files 18 - Help you follow the coding style rules, specially useful for those 22 Its configuration file is ``.clang-format`` in the root of the kernel tree. 23 The rules contained there try to approximate the most common kernel 24 coding style. They also try to follow :ref:`Documentation/process/coding-style.rst <codingstyle>` [all …]
|
/linux/drivers/net/phy/mediatek/ |
H A D | mtk-phy-lib.c | 1 // SPDX-License-Identifier: GPL-2.0 25 dev_dbg(&phydev->mdio.dev, "tr_cmd: 0x%x\n", tr_cmd); in __mtk_tr_access() 35 dev_dbg(&phydev->mdio.dev, "tr_high read: 0x%x, tr_low read: 0x%x\n", in __mtk_tr_read() 44 dev_dbg(&phydev->mdio.dev, "tr_high write: 0x%x, tr_low write: 0x%x\n", in __mtk_tr_write() 99 unsigned long rules, in mtk_phy_led_hw_is_supported() argument 103 return -EINVAL; in mtk_phy_led_hw_is_supported() 106 if (rules & ~supported_triggers) in mtk_phy_led_hw_is_supported() 107 return -EOPNOTSUPP; in mtk_phy_led_hw_is_supported() 114 unsigned long *rules, u16 on_set, in mtk_phy_led_hw_ctrl_get() argument 121 struct mtk_socphy_priv *priv = phydev->priv; in mtk_phy_led_hw_ctrl_get() [all …]
|
H A D | mtk.h | 1 /* SPDX-License-Identifier: GPL-2.0 3 * Common definition for Mediatek Ethernet PHYs 88 unsigned long rules, 91 unsigned long rules, u16 on_set, 94 unsigned long *rules, u16 on_set,
|
/linux/drivers/net/netdevsim/ |
H A D | fib.c | 6 * June 1991 as shown in the file COPYING in the top-level directory of this 42 struct nsim_fib_entry rules; member 82 struct nsim_fib_rt common; member 89 struct nsim_fib_rt common; member 143 entry = &fib_data->ipv4.fib; in nsim_fib_get_val() 146 entry = &fib_data->ipv4.rules; in nsim_fib_get_val() 149 entry = &fib_data->ipv6.fib; in nsim_fib_get_val() 152 entry = &fib_data->ipv6.rules; in nsim_fib_get_val() 155 entry = &fib_data->nexthops; in nsim_fib_get_val() 161 return max ? entry->max : atomic64_read(&entry->num); in nsim_fib_get_val() [all …]
|
/linux/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_tc_flower.c | 1 // SPDX-License-Identifier: GPL-2.0+ 13 switch (st->admin->vtype) { in lan966x_tc_is_known_etype() 37 NL_SET_ERR_MSG_MOD(st->fco->common.extack, in lan966x_tc_is_known_etype() 48 struct netlink_ext_ack *extack = st->fco->common.extack; in lan966x_tc_flower_handler_control_usage() 52 flow_rule_match_control(st->frule, &match); in lan966x_tc_flower_handler_control_usage() 53 if (match.mask->flags & FLOW_DIS_IS_FRAGMENT) { in lan966x_tc_flower_handler_control_usage() 54 if (match.key->flags & FLOW_DIS_IS_FRAGMENT) in lan966x_tc_flower_handler_control_usage() 55 err = vcap_rule_add_key_bit(st->vrule, in lan966x_tc_flower_handler_control_usage() 59 err = vcap_rule_add_key_bit(st->vrule, in lan966x_tc_flower_handler_control_usage() 66 if (match.mask->flags & FLOW_DIS_FIRST_FRAG) { in lan966x_tc_flower_handler_control_usage() [all …]
|
/linux/Documentation/sound/designs/ |
H A D | tracepoints.rst | 19 ------------------------------------ 25 ----------------------------------------------------- 53 - SNDRV_PCM_HW_PARAM_ACCESS 54 - SNDRV_PCM_HW_PARAM_FORMAT 55 - SNDRV_PCM_HW_PARAM_SUBFORMAT 61 - SNDRV_PCM_HW_PARAM_SAMPLE_BITS 62 - SNDRV_PCM_HW_PARAM_FRAME_BITS 63 - SNDRV_PCM_HW_PARAM_CHANNELS 64 - SNDRV_PCM_HW_PARAM_RATE 65 - SNDRV_PCM_HW_PARAM_PERIOD_TIME [all …]
|
/linux/security/selinux/ss/ |
H A D | policydb.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 12 * Copyright (C) 2004-2005 Trusted Computer Solutions, Inc. 17 * Copyright (C) 2003-2004 Tresys Technology, LLC 34 * common prefixes for access vectors, classes, 43 /* Attributes of a common prefix for access vectors */ 45 u32 value; /* internal common value */ 46 struct symtab permissions; /* common permissions */ 52 char *comkey; /* common name */ 53 struct common_datum *comdatum; /* common datum */ 54 struct symtab permissions; /* class-specific permission symbol table */ [all …]
|
/linux/Documentation/devicetree/bindings/leds/ |
H A D | leds-cr0014114.txt | 1 Crane Merchandising System - cr0014114 LED driver 2 ------------------------------------------------- 8 - compatible: "crane,cr0014114" 10 Property rules described in Documentation/devicetree/bindings/spi/spi-bus.txt 11 apply. In particular, "reg" and "spi-max-frequency" properties must be given. 13 LED sub-node properties: 14 - function : 15 see Documentation/devicetree/bindings/leds/common.txt 16 - color : 17 see Documentation/devicetree/bindings/leds/common.txt [all …]
|
/linux/drivers/net/dsa/sja1105/ |
H A D | sja1105_flower.c | 1 // SPDX-License-Identifier: GPL-2.0 12 list_for_each_entry(rule, &priv->flow_block.rules, list) in sja1105_rule_find() 13 if (rule->cookie == cookie) in sja1105_rule_find() 24 if (!priv->flow_block.l2_policer_used[i]) in sja1105_find_free_l2_policer() 27 return -1; in sja1105_find_free_l2_policer() 38 struct dsa_switch *ds = priv->ds; in sja1105_setup_bcast_policer() 46 return -ENOMEM; in sja1105_setup_bcast_policer() 48 rule->cookie = cookie; in sja1105_setup_bcast_policer() 49 rule->type = SJA1105_RULE_BCAST_POLICER; in sja1105_setup_bcast_policer() 50 rule->bcast_pol.sharindx = sja1105_find_free_l2_policer(priv); in sja1105_setup_bcast_policer() [all …]
|
/linux/tools/testing/selftests/mm/ |
H A D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 12 uname_M := $(shell uname -m 2>/dev/null || echo not) 14 uname_M := $(shell echo $(CROSS_COMPILE) | grep -o '^[a-z0-9]\+') 16 ARCH ?= $(shell echo $(uname_M) | sed -e 's/aarch64.*/arm64/' -e 's/ppc64.*/powerpc/') 19 # Without this, failed build products remain, with up-to-date timestamps, 24 # Avoid accidental wrong builds, due to built-in rules working just a little 25 # bit too well--but not quite as well as required for our situation here. 29 # However, the built-in rules, if not suppressed, will pick up CFLAGS and the 30 # initial LDLIBS (but not the target-specific LDLIBS, because those are only 34 MAKEFLAGS += --no-builtin-rules [all …]
|
/linux/Documentation/admin-guide/cgroup-v1/ |
H A D | blkio-controller.rst | 22 ----------------------------- 33 mount -t cgroup -o blkio none /sys/fs/cgroup/blkio 45 # dd iflag=direct if=/mnt/common/zerofile of=/dev/null bs=4K count=1024 98 -------------------------------- 106 see Documentation/block/bfq-iosched.rst. 110 weight. For more details, see Documentation/block/bfq-iosched.rst. 152 are further divided by the type of operation - read or write, sync 159 are further divided by the type of operation - read or write, sync 173 the type of operation - read or write, sync or async. First two fields 186 (there might be a time lag here due to re-ordering of requests by the [all …]
|
/linux/Documentation/userspace-api/gpio/ |
H A D | gpio-get-linehandle-ioctl.rst | 1 .. SPDX-License-Identifier: GPL-2.0 11 gpio-v2-get-line-ioctl.rst. 16 GPIO_GET_LINEHANDLE_IOCTL - Request a line or lines from the kernel. 55 .. _gpio-get-linehandle-config-rules: 57 Configuration Rules 58 ------------------- 60 The following configuration rules apply: 65 line is requested "as-is" to allow reading of the line value without altering 71 If none are set then the line is assumed push-pull. 80 .. _gpio-get-linehandle-config-support: [all …]
|
H A D | gpio-get-lineevent-ioctl.rst | 1 .. SPDX-License-Identifier: GPL-2.0 11 gpio-v2-get-line-ioctl.rst. 16 GPIO_GET_LINEEVENT_IOCTL - Request a line with edge detection from the kernel. 42 described in gpio-lineevent-data-read.rst. 54 As with the :ref:`line handle<gpio-get-linehandle-config-support>`, the 59 Configuration Rules 60 ------------------- 62 The following configuration rules apply: 83 On error -1 and the ``errno`` variable is set appropriately. 84 Common error codes are described in error-codes.rst.
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-css | 3 Contact: linux-s390@vger.kernel.org 9 Contact: linux-s390@vger.kernel.org 16 Contact: linux-s390@vger.kernel.org 21 Note: This is an I/O-subchannel specific attribute. 22 Users: s390-tools, HAL 26 Contact: linux-s390@vger.kernel.org 28 channel subsystem when last queried by the common I/O 32 Note: This is an I/O-subchannel specific attribute. 33 Users: s390-tools, HAL 37 Contact: linux-s390@vger.kernel.org [all …]
|