Allocated objects, BPF linked lists
Subsystems (9)
Kumar Kartikeya Dwivedi
maintainerv6 cover Allocated objects, BPF linked lists
This series introduces user defined BPF objects of a type in program BTF. This allows BPF programs to allocate their own objects, build their own object hierarchies, and use the basic building blocks provided by BPF runtime to build their own data structures flexibly.
Then, we introduce the support for single ownership BPF linked lists, which can be put inside BPF maps, or allocated objects, and hold such allocated objects as elements. It works as an instrusive collection, which is done to allow making allocated objects part of multiple data structures at the same time in the future.
The eventual goal of this and future patches is to allow one to do some limited form of kernel style programming in BPF C, and allow programmers to build their own complex data structures flexibly out of basic building blocks.
The key difference will be that such programs are verified to be safe, preserve runtime integrity of the system, and are proven to be bug free as far as the invariants of BPF specific APIs are concerned.
One immediate use case that will be using the entire infrastructure this series is introducing will be managing percpu NMI safe linked lists inside BPF programs.
The other use case this will serve in the near future will be linking kernel structures like XDP frame and sk_buff directly into user data structures (rbtree, pifomap, etc.) for packet queueing. This will follow single ownership concept included in this series.
The user has complete control of the internal locking, and hence also the batching of operations for each critical section.
The features are:
- Allocated objects.
- bpf_obj_new, bpf_obj_drop to allocate and free them.
- Single ownership BPF linked lists.
- Support for them in BPF maps.
- Support for them in allocated objects.
- Global spin locks.
- Spin locks inside allocated objects.
Some other notable things:
- Completely static verification of locking.
- Kfunc argument handling has been completely reworked.
- Argument rewriting support for kfuncs.
- Search pruning now understands non-size precise registers.
- A new bpf_experimental.h header as a dumping ground for these APIs.
Any functionality exposed in this series is NOT part of UAPI. It is only available through use of kfuncs, and structs that can be added to map value may also change their size or name in the future. Hence, every feature in this series must be considered experimental.
Follow-ups:
-----------
* Support for kptrs (local and kernel) in local storage and percpu maps + kptr tests
* Fixes for helper access checks rebasing on top of this series
Next steps:
-----------
* NMI safe percpu single ownership linked lists (using local_t protection).
* Lockless linked lists.
* Allow RCU protected BPF allocated objects. This then allows RCU protected list lookups, since spinlock protection for readers does not scale.
* Introduce bpf_refcount for local kptrs, shared ownership.
* Introduce shared ownership linked lists.
* Documentation.
Changelog:
----------
v5 -> v6
v5: https://lore.kernel.org/bpf/[email protected]
* Replace (i && !off) check with next_off, include test (Andrii)
* Drop local kptrs naming (Andrii, Alexei)
* Drop reg->precise == EXACT patch (Andrii)
* Add comment about ptr member of struct active_lock (Andrii)
* Use btf__new_empty + btf__add_xxx APIs (Andrii)
* Address other misc nits from Andrii
v4 -> v5
v4: https://lore.kernel.org/bpf/[email protected]
* Add a lot more selftests (failure, success, runtime, BTF)
* Make sure series is bisect friendly
* Move list draining out of spin lock
* This exposed an issue where bpf_mem_free can now be called in map_free path without migrate_disable, also fixed that.
* Rename MEM_ALLOC -> MEM_RINGBUF, MEM_TYPE_LOCAL -> MEM_ALLOC (Alexei)
* Group lock identity into a struct active_lock { ptr, id } (Dave)
* Split set_release_on_unlock logic into separate patch (Alexei)
v3 -> v4
v3: https://lore.kernel.org/bpf/[email protected]
* Fix compiler error for !CONFIG_BPF_SYSCALL (Kernel Test Robot)
* Fix error due to BUILD_BUG_ON on 32-bit platforms (Kernel Test Robot)
v2 -> v3
v2: https://lore.kernel.org/bpf/[email protected]
* Add ack from Dave for patch 5
* Rename btf_type_fields -> btf_record, btf_type_fields_off -> btf_field_offs, rename functions similarly (Alexei)
* Remove 'kind' component from contains declaration tag (Alexei)
* Move bpf_list_head, bpf_list_node definitions to UAPI bpf.h (Alexei)
* Add note in commit log about modifying btf_struct_access API (Dave)
* Downgrade WARN_ON_ONCE to verbose(env, "...") and return -EFAULT (Dave)
* Add type_is_local_kptr wrapper to avoid noisy checks (Dave)
* Remove unused flags parameter from bpf_kptr_new (Alexei)
* Rename bpf_kptr_new -> bpf_obj_new, bpf_kptr_drop -> bpf_obj_drop (Alexei)
* Reword comment in ref_obj_id_set_release_on_unlock (Dave)
* Fix return type of ref_obj_id_set_release_on_unlock (Dave)
* Introduce is_bpf_list_api_kfunc to dedup checks (Dave)
* Disallow BPF_WRITE to untrusted local kptrs
* Add details about soundness of check_reg_allocation_locked logic
* List untrusted local kptrs for PROBE_MEM handling
v1 -> v2
v1: https://lore.kernel.org/bpf/[email protected]
* Rebase on bpf-next to resolve merge conflict in DENYLIST.s390x
* Fix a couple of mental lapses in bpf_list_head_free
RFC v1 -> v1
RFC v1: https://lore.kernel.org/bpf/[email protected]
* Mostly a complete rewrite of BTF parsing, refactor existing code (Kartikeya)
* Rebase kfunc rewrite for bpf-next, add support for more changes
* Cache type metadata in BTF to avoid recomputation inside verifier (Kartikeya)
* Remove __kernel tag, make things similar to map values, reserve bpf_ prefix
* bpf_kptr_new, bpf_kptr_drop
* Rename precision state enum values (Alexei)
* Drop explicit constructor/destructor support (Alexei)
* Rewrite code for constructing/destructing objects and offload to runtime
* Minimize duplication in bpf_map_value_off_desc handling (Alexei)
* Expose global memory allocator (Alexei)
* Address other nits from Alexei
* Split out local kptrs in maps, more kptrs in maps support into a follow up
Links:
------
* Dave's BPF RB-Tree RFC series
v1 (Discussion thread)
https://lore.kernel.org/bpf/[email protected] v2 (With support for static locks) https://lore.kernel.org/bpf/[email protected]
* BPF Linked Lists Discussion
https://lore.kernel.org/bpf/CAP01T74U30+yeBHEgmgzTJ-XYxZ0zj71kqCDJtTH9YQNfTK+Xw@mail.gmail.com
* BPF Memory Allocator from Alexei
https://lore.kernel.org/bpf/[email protected]
* BPF Memory Allocator UAPI Discussion
https://lore.kernel.org/bpf/[email protected]
Kumar Kartikeya Dwivedi (26):
bpf: Remove local kptr references in documentation
bpf: Remove BPF_MAP_OFF_ARR_MAX
bpf: Fix copy_map_value, zero_map_value
bpf: Support bpf_list_head in map values
bpf: Rename RET_PTR_TO_ALLOC_MEM
bpf: Rename MEM_ALLOC to MEM_RINGBUF
bpf: Refactor btf_struct_access
bpf: Introduce allocated objects support
bpf: Recognize lock and list fields in allocated objects
bpf: Verify ownership relationships for user BTF types
bpf: Allow locking bpf_spin_lock in allocated objects
bpf: Allow locking bpf_spin_lock global variables
bpf: Allow locking bpf_spin_lock in inner map values
bpf: Rewrite kfunc argument handling
bpf: Drop kfunc bits from btf_check_func_arg_match
bpf: Support constant scalar arguments for kfuncs
bpf: Introduce bpf_obj_new
bpf: Introduce bpf_obj_drop
bpf: Permit NULL checking pointer with non-zero fixed offset
bpf: Introduce single ownership BPF linked list API
bpf: Add 'release on unlock' logic for bpf_list_push_{front,back} selftests/bpf: Add __contains macro to bpf_experimental.h selftests/bpf: Update spinlock selftest
selftests/bpf: Add failure test cases for spin lock pairing selftests/bpf: Add BPF linked list API tests selftests/bpf: Add BTF sanity tests
Documentation/bpf/bpf_design_QA.rst | 11 +- Documentation/bpf/kfuncs.rst | 22 + include/linux/bpf.h | 113 +- include/linux/bpf_verifier.h | 19 +- include/linux/btf.h | 67 +- include/linux/filter.h | 8 +- include/uapi/linux/bpf.h | 10 + kernel/bpf/btf.c | 810 +++++------ kernel/bpf/core.c | 16 + kernel/bpf/helpers.c | 143 +- kernel/bpf/map_in_map.c | 5 - kernel/bpf/ringbuf.c | 6 +- kernel/bpf/syscall.c | 30 +- kernel/bpf/verifier.c | 1239 +++++++++++++++-- net/bpf/bpf_dummy_struct_ops.c | 14 +- net/core/filter.c | 34 +- net/ipv4/bpf_tcp_ca.c | 13 +- net/netfilter/nf_conntrack_bpf.c | 17 +- tools/include/uapi/linux/bpf.h | 10 + tools/testing/selftests/bpf/DENYLIST.s390x | 1 + .../testing/selftests/bpf/bpf_experimental.h | 68 + .../testing/selftests/bpf/prog_tests/dynptr.c | 2 +- .../bpf/prog_tests/kfunc_dynptr_param.c | 2 +- .../selftests/bpf/prog_tests/linked_list.c | 738 ++++++++++ .../selftests/bpf/prog_tests/spin_lock.c | 136 ++ .../selftests/bpf/prog_tests/spinlock.c | 45 - .../testing/selftests/bpf/progs/linked_list.c | 370 +++++ .../testing/selftests/bpf/progs/linked_list.h | 56 + .../selftests/bpf/progs/linked_list_fail.c | 581 ++++++++ .../selftests/bpf/progs/test_spin_lock.c | 4 +- .../selftests/bpf/progs/test_spin_lock_fail.c | 204 +++ tools/testing/selftests/bpf/verifier/calls.c | 2 +- .../selftests/bpf/verifier/ref_tracking.c | 4 +- .../testing/selftests/bpf/verifier/ringbuf.c | 2 +- .../selftests/bpf/verifier/spill_fill.c | 2 +- 35 files changed, 4160 insertions(+), 644 deletions(-) create mode 100644 tools/testing/selftests/bpf/bpf_experimental.h create mode 100644 tools/testing/selftests/bpf/prog_tests/linked_list.c create mode 100644 tools/testing/selftests/bpf/prog_tests/spin_lock.c delete mode 100644 tools/testing/selftests/bpf/prog_tests/spinlock.c create mode 100644 tools/testing/selftests/bpf/progs/linked_list.c create mode 100644 tools/testing/selftests/bpf/progs/linked_list.h create mode 100644 tools/testing/selftests/bpf/progs/linked_list_fail.c create mode 100644 tools/testing/selftests/bpf/progs/test_spin_lock_fail.c
base-commit: e5659e4e19e49f1eac58bb07ce8bc2d78a89fe65 --
2.38.1
Kumar Kartikeya Dwivedi
maintainerPATCH v6 1/26 bpf: Remove local kptr references in documentation
We don't want to commit to a specific name for these. Simply call them allocated objects coming from bpf_obj_new, which is completely clear in itself.
--- Documentation/bpf/bpf_design_QA.rst | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-)
Documentation/bpf/bpf_design_QA.rst +6 -5
@@ -332,13 +332,14 @@ avoid defining types with 'bpf\_' prefix to not be broken in future releases. In other words, no backwards compatibility is guaranteed if one using a type in BTF with 'bpf\_' prefix. -Q: What is the compatibility story for special BPF types in local kptrs? ------------------------------------------------------------------------- -Q: Same as above, but for local kptrs (i.e. pointers to objects allocated using -bpf_obj_new for user defined structures). Will the kernel preserve backwards +Q: What is the compatibility story for special BPF types in allocated objects? +------------------------------------------------------------------------------ +Q: Same as above, but for allocated objects (i.e. objects allocated using +bpf_obj_new for user defined types). Will the kernel preserve backwards compatibility for these features? A: NO. Unlike map value types, there are no stability guarantees for this case. The -whole local kptr API itself is unstable (since it is exposed through kfuncs). +whole API to work with allocated objects and any support for special fields +inside them is unstable (since it is exposed through kfuncs).
Signature · 1 line
2.38.1
Kumar Kartikeya Dwivedi
maintainerPATCH v6 2/26 bpf: Remove BPF_MAP_OFF_ARR_MAX
In reply to Kumar Kartikeya DwivediIn f71b2f64177a ("bpf: Refactor map->off_arr handling"), map->off_arr was refactored to be btf_field_offs. The number of field offsets is equal to maximum possible fields limited by BTF_FIELDS_MAX. Hence, reuse BTF_FIELDS_MAX as spin_lock and timer no longer are to be handled specially for offset sorting, fix the comment, and remove incorrect WARN_ON as its rec->cnt can never exceed this value. The reason to keep separate constant was the it was always more 2 more than total kptrs. This is no longer the case.
--- include/linux/bpf.h | 9 ++++----- kernel/bpf/btf.c | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-)
include/linux/bpf.h +4 -5
@@ -165,9 +165,8 @@ struct bpf_map_ops { };enum { -/* Support at most 8 pointers in a BTF type */ -BTF_FIELDS_MAX =10 , -BPF_MAP_OFF_ARR_MAX =BTF_FIELDS_MAX , +/* Support at most 10 fields in a BTF type */ +BTF_FIELDS_MAX =10 , };enum btf_field_type {
@@ -203,8 +202,8 @@ struct btf_record {struct btf_field_offs {u32 cnt; -u32 field_off[BPF_MAP_OFF_ARR_MAX ]; -u8 field_sz[BPF_MAP_OFF_ARR_MAX ]; +u32 field_off[BTF_FIELDS_MAX ]; +u8 field_sz[BTF_FIELDS_MAX ]; };struct bpf_map {
kernel/bpf/btf.c +1 -1
@@ -3584,7 +3584,7 @@ struct btf_field_offs *btf_parse_field_offs(struct btf_record *rec)u8 *sz;BUILD_BUG_ON (ARRAY_SIZE (foffs->field_off) !=ARRAY_SIZE (foffs->field_sz)); -if (IS_ERR_OR_NULL (rec) ||WARN_ON_ONCE (rec->cnt >sizeof (foffs->field_off))) +if (IS_ERR_OR_NULL (rec))return NULL ; foffs =kzalloc (sizeof (*foffs),GFP_KERNEL | __GFP_NOWARN);
Signature · 1 line
2.38.1
Kumar Kartikeya Dwivedi
maintainerPATCH v6 3/26 bpf: Fix copy_map_value, zero_map_value
In reply to Kumar Kartikeya DwivediThe current offset needs to also skip over the already copied region in addition to the size of the next field. This case manifests where there are gaps between adjacent special fields.
It was observed that for a map value with size 48, having fields at:
off: 0, 16, 32 size: 4, 16, 16
The current code does:
memcpy(dst + 0, src + 0, 0)memcpy(dst + 4, src + 4, 12)memcpy(dst + 20, src + 20, 12)memcpy(dst + 36, src + 36, 12)
With the fix, it is done correctly as:
memcpy(dst + 0, src + 0, 0)memcpy(dst + 4, src + 4, 12)memcpy(dst + 32, src + 32, 0)memcpy(dst + 48, src + 48, 0)
--- include/linux/bpf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/bpf.h +2 -2
@@ -360,7 +360,7 @@ static inline void bpf_obj_memcpy(struct btf_field_offs *foffs,u32 sz = next_off - curr_off;memcpy (dst + curr_off, src + curr_off, sz); - curr_off += foffs->field_sz[i]; + curr_off += foffs->field_sz[i] + sz; }memcpy (dst + curr_off, src + curr_off, size - curr_off); }
@@ -390,7 +390,7 @@ static inline void bpf_obj_memzero(struct btf_field_offs *foffs, void *dst, u32u32 sz = next_off - curr_off;memset (dst + curr_off,0 , sz); - curr_off += foffs->field_sz[i]; + curr_off += foffs->field_sz[i] + sz; }memset (dst + curr_off,0 , size - curr_off); }
Signature · 1 line
2.38.1
Kumar Kartikeya Dwivedi
maintainerPATCH v6 4/26 bpf: Support bpf_list_head in map values
In reply to Kumar Kartikeya DwivediAdd the support on the map side to parse, recognize, verify, and build metadata table for a new special field of the type struct bpf_list_head. To parameterize the bpf_list_head for a certain value type and the list_node member it will accept in that value type, we use BTF declaration tags.
The definition of bpf_list_head in a map value will be done as follows:
struct foo {
struct bpf_list_node node;
int data;
};struct map_value {
struct bpf_list_head head __contains(foo, node);
};Then, the bpf_list_head only allows adding to the list 'head' using the bpf_list_node 'node' for the type struct foo.
The 'contains' annotation is a BTF declaration tag composed of four parts, "contains:name:node" where the name is then used to look up the type in the map BTF, with its kind hardcoded to BTF_KIND_STRUCT during the lookup. The node defines name of the member in this type that has the type struct bpf_list_node, which is actually used for linking into the linked list. For now, 'kind' part is hardcoded as struct.
This allows building intrusive linked lists in BPF, using container_of to obtain pointer to entry, while being completely type safe from the perspective of the verifier. The verifier knows exactly the type of the nodes, and knows that list helpers return that type at some fixed offset where the bpf_list_node member used for this list exists. The verifier also uses this information to disallow adding types that are not accepted by a certain list.
For now, no elements can be added to such lists. Support for that is coming in future patches, hence draining and freeing items is done with a TODO that will be resolved in a future patch.
Note that the bpf_list_head_free function moves the list out to a local variable under the lock and releases it, doing the actual draining of the list items outside the lock. While this helps with not holding the lock for too long pessimizing other concurrent list operations, it is also necessary for deadlock prevention: unless every function called in the critical section would be notrace, a fentry/fexit program could attach and call bpf_map_update_elem again on the map, leading to the same lock being acquired if the key matches and lead to a deadlock. While this requires some special effort on part of the BPF programmer to trigger and is highly unlikely to occur in practice, it is always better if we can avoid such a condition.
While notrace would prevent this, doing the draining outside the lock has advantages of its own, hence it is used to also fix the deadlock related problem.
--- include/linux/bpf.h | 17 ++++ include/uapi/linux/bpf.h | 10 +++ kernel/bpf/btf.c | 145 ++++++++++++++++++++++++++++++++- kernel/bpf/helpers.c | 32 ++++++++ kernel/bpf/syscall.c | 22 ++++- kernel/bpf/verifier.c | 7 ++ tools/include/uapi/linux/bpf.h | 10 +++ 7 files changed, 239 insertions(+), 4 deletions(-)
include/linux/bpf.h +17 -0
@@ -175,6 +175,7 @@ enum btf_field_type {BPF_KPTR_UNREF = (1 <<2 ),BPF_KPTR_REF = (1 <<3 ),BPF_KPTR =BPF_KPTR_UNREF |BPF_KPTR_REF , + BPF_LIST_HEAD = (1 << 4), }; struct btf_field_kptr {
@@ -184,11 +185,18 @@ struct btf_field_kptr {u32 btf_id; }; +struct btf_field_list_head { +struct btf *btf; +u32 value_btf_id; +u32 node_offset; +}; +struct btf_field {u32 offset;enum btf_field_type type;union {struct btf_field_kptr kptr; +struct btf_field_list_head list_head; }; };
@@ -266,6 +274,8 @@ static inline const char *btf_field_type_name(enum btf_field_type type)case BPF_KPTR_UNREF :case BPF_KPTR_REF :return "kptr" ; +case BPF_LIST_HEAD : +return "bpf_list_head" ;default :WARN_ON_ONCE (1 );return "unknown" ;
@@ -282,6 +292,8 @@ static inline u32 btf_field_type_size(enum btf_field_type type)case BPF_KPTR_UNREF :case BPF_KPTR_REF :return sizeof (u64); +case BPF_LIST_HEAD : +return sizeof (struct bpf_list_head );default :WARN_ON_ONCE (1 );return 0 ;
@@ -298,6 +310,8 @@ static inline u32 btf_field_type_align(enum btf_field_type type)case BPF_KPTR_UNREF :case BPF_KPTR_REF :return __alignof__(u64 ); +case BPF_LIST_HEAD : +return __alignof__(struct bpf_list_head );default :WARN_ON_ONCE (1 );return 0 ;
@@ -403,6 +417,9 @@ static inline void zero_map_value(struct bpf_map *map, void *dst)void copy_map_value_locked (struct bpf_map *map,void *dst,void *src,bool lock_src);void bpf_timer_cancel_and_free (void *timer); +void bpf_list_head_free (const struct btf_field *field,void *list_head, +struct bpf_spin_lock *spin_lock); +int bpf_obj_name_cpy (char *dst,const char *src,unsigned int size);struct bpf_offload_dev ;
include/uapi/linux/bpf.h +10 -0
@@ -6887,6 +6887,16 @@ struct bpf_dynptr { __u64 :64 ; } __attribute__((aligned(8))); +struct bpf_list_head { + __u64 :64; + __u64 :64; +} __attribute__((aligned (8 ))); + +struct bpf_list_node { + __u64 :64; + __u64 :64; +} __attribute__((aligned (8 ))); +struct bpf_sysctl {__u32 write;/* Sysctl is being read (= 0) or written (= 1). * Allows 1,2,4-byte read, but no write.
kernel/bpf/btf.c +142 -3
204 lines not on this page · raw message
kernel/bpf/helpers.c +32 -0
@@ -1706,6 +1706,38 @@ bpf_base_func_proto(enum bpf_func_id func_id) } } +void bpf_list_head_free (const struct btf_field *field,void *list_head, +struct bpf_spin_lock *spin_lock) +{ +struct list_head *head = list_head, *orig_head = list_head; + +BUILD_BUG_ON (sizeof (struct list_head ) >sizeof (struct bpf_list_head )); +BUILD_BUG_ON (__alignof__(struct list_head ) > __alignof__(struct bpf_list_head )); + +/* Do the actual list draining outside the lock to not hold the lock for +* too long, and also prevent deadlocks if tracing programs end up +* executing on entry/exit of functions called inside the critical +* section, and end up doing map ops that call bpf_list_head_free for +* the same map value again. +*/ +__bpf_spin_lock_irqsave (spin_lock); +if (!head->next ||list_empty (head)) + goto unlock; + head = head->next; +unlock: +INIT_LIST_HEAD (orig_head); +__bpf_spin_unlock_irqrestore (spin_lock); + +while (head != orig_head) { +void *obj = head; + + obj -= field->list_head.node_offset; + head = head->next; +/* TODO: Rework later */ +kfree (obj); + } +} + BTF_SET8_START(tracing_btf_ids)#ifdef CONFIG_KEXEC_CORE BTF_ID_FLAGS (func, crash_kexec,KF_DESTRUCTIVE )
kernel/bpf/syscall.c +21 -1
@@ -536,6 +536,9 @@ void btf_record_free(struct btf_record *rec)module_put (rec->fields[i].kptr.module);btf_put (rec->fields[i].kptr.btf);break ; +case BPF_LIST_HEAD : +/* Nothing to release for bpf_list_head */ +break ;default :WARN_ON_ONCE (1 );continue ;
@@ -578,6 +581,9 @@ struct btf_record *btf_record_dup(const struct btf_record *rec) goto free; }break ; +case BPF_LIST_HEAD : +/* Nothing to acquire for bpf_list_head */ +break ;default : ret = -EFAULT ;WARN_ON_ONCE (1 );
@@ -637,6 +643,11 @@ void bpf_obj_free_fields(const struct btf_record *rec, void *obj)case BPF_KPTR_REF : field->kptr.dtor ((void *)xchg ((unsigned long *)field_ptr,0 ));break ; +case BPF_LIST_HEAD : +if (WARN_ON_ONCE (rec->spin_lock_off <0 )) +continue ; +bpf_list_head_free (field, field_ptr, obj + rec->spin_lock_off); +break ;default :WARN_ON_ONCE (1 );continue ;
@@ -965,7 +976,8 @@ static int map_check_btf(struct bpf_map *map, const struct btf *btf,if (!value_type || value_size != map->value_size)return -EINVAL ; - map->record =btf_parse_fields (btf, value_type,BPF_SPIN_LOCK |BPF_TIMER |BPF_KPTR , + map->record =btf_parse_fields (btf, value_type, +BPF_SPIN_LOCK |BPF_TIMER |BPF_KPTR |BPF_LIST_HEAD , map->value_size);if (!IS_ERR_OR_NULL (map->record)) {int i;
@@ -1012,6 +1024,14 @@ static int map_check_btf(struct bpf_map *map, const struct btf *btf, goto free_map_tab; }break ; +case BPF_LIST_HEAD : +if (map->map_type !=BPF_MAP_TYPE_HASH && + map->map_type !=BPF_MAP_TYPE_LRU_HASH && + map->map_type !=BPF_MAP_TYPE_ARRAY ) { + ret = -EOPNOTSUPP ; + goto free_map_tab; + } +break ;default :/* Fail if map_type checks are missing for a field type */ ret = -EOPNOTSUPP ;
kernel/bpf/verifier.c +7 -0
@@ -12805,6 +12805,13 @@ static int check_map_prog_compatibility(struct bpf_verifier_env *env, {enum bpf_prog_type prog_type =resolve_prog_type (prog); +if (btf_record_has_field (map->record,BPF_LIST_HEAD )) { +if (is_tracing_prog_type (prog_type)) { +verbose (env,"tracing progs cannot use bpf_list_head yet\n" ); +return -EINVAL ; + } + } +if (btf_record_has_field (map->record,BPF_SPIN_LOCK )) {if (prog_type ==BPF_PROG_TYPE_SOCKET_FILTER ) {verbose (env,"socket filter progs cannot use bpf_spin_lock yet\n" );
tools/include/uapi/linux/bpf.h +10 -0
@@ -6887,6 +6887,16 @@ struct bpf_dynptr { __u64 :64 ; } __attribute__((aligned(8))); +struct bpf_list_head { + __u64 :64; + __u64 :64; +} __attribute__((aligned (8 ))); + +struct bpf_list_node { + __u64 :64; + __u64 :64; +} __attribute__((aligned (8 ))); +struct bpf_sysctl {__u32 write;/* Sysctl is being read (= 0) or written (= 1). * Allows 1,2,4-byte read, but no write.
Signature · 1 line
2.38.1
Kumar Kartikeya Dwivedi
maintainerPATCH v6 5/26 bpf: Rename RET_PTR_TO_ALLOC_MEM
In reply to Kumar Kartikeya DwivediCurrently, the verifier has two return types, RET_PTR_TO_ALLOC_MEM, and RET_PTR_TO_ALLOC_MEM_OR_NULL, however the former is confusingly named to imply that it carries MEM_ALLOC, while only the latter does. This causes confusion during code review leading to conclusions like that the return value of RET_PTR_TO_DYNPTR_MEM_OR_NULL (which is RET_PTR_TO_ALLOC_MEM | PTR_MAYBE_NULL) may be consumable by bpf_ringbuf_{submit,commit}.
Rename it to make it clear MEM_ALLOC needs to be tacked on top of RET_PTR_TO_MEM.
--- include/linux/bpf.h | 6 +++--- kernel/bpf/verifier.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-)
include/linux/bpf.h +3 -3
@@ -607,7 +607,7 @@ enum bpf_return_type {RET_PTR_TO_SOCKET ,/* returns a pointer to a socket */ RET_PTR_TO_TCP_SOCK ,/* returns a pointer to a tcp_sock */ RET_PTR_TO_SOCK_COMMON ,/* returns a pointer to a sock_common */ -RET_PTR_TO_ALLOC_MEM ,/* returns a pointer to dynamically allocated memory */ +RET_PTR_TO_MEM ,/* returns a pointer to memory */ RET_PTR_TO_MEM_OR_BTF_ID ,/* returns a pointer to a valid memory or a btf_id */ RET_PTR_TO_BTF_ID ,/* returns a pointer to a btf_id */ __BPF_RET_TYPE_MAX,
@@ -617,8 +617,8 @@ enum bpf_return_type {RET_PTR_TO_SOCKET_OR_NULL =PTR_MAYBE_NULL |RET_PTR_TO_SOCKET ,RET_PTR_TO_TCP_SOCK_OR_NULL =PTR_MAYBE_NULL |RET_PTR_TO_TCP_SOCK ,RET_PTR_TO_SOCK_COMMON_OR_NULL =PTR_MAYBE_NULL |RET_PTR_TO_SOCK_COMMON , -RET_PTR_TO_ALLOC_MEM_OR_NULL =PTR_MAYBE_NULL |MEM_ALLOC |RET_PTR_TO_ALLOC_MEM , -RET_PTR_TO_DYNPTR_MEM_OR_NULL =PTR_MAYBE_NULL |RET_PTR_TO_ALLOC_MEM , +RET_PTR_TO_ALLOC_MEM_OR_NULL =PTR_MAYBE_NULL |MEM_ALLOC |RET_PTR_TO_MEM , +RET_PTR_TO_DYNPTR_MEM_OR_NULL =PTR_MAYBE_NULL |RET_PTR_TO_MEM ,RET_PTR_TO_BTF_ID_OR_NULL =PTR_MAYBE_NULL |RET_PTR_TO_BTF_ID ,/* This must be the last entry. Its purpose is to ensure the enum is
kernel/bpf/verifier.c +1 -1
@@ -7621,7 +7621,7 @@ static int check_helper_call(struct bpf_verifier_env *env, struct bpf_insn *insnmark_reg_known_zero (env, regs,BPF_REG_0 ); regs[BPF_REG_0 ].type =PTR_TO_TCP_SOCK | ret_flag;break ; -case RET_PTR_TO_ALLOC_MEM : +case RET_PTR_TO_MEM :mark_reg_known_zero (env, regs,BPF_REG_0 ); regs[BPF_REG_0 ].type =PTR_TO_MEM | ret_flag; regs[BPF_REG_0 ].mem_size = meta.mem_size;
Signature · 1 line
2.38.1
Kumar Kartikeya Dwivedi
maintainerPATCH v6 6/26 bpf: Rename MEM_ALLOC to MEM_RINGBUF
In reply to Kumar Kartikeya DwivediCurrently, verifier uses MEM_ALLOC type tag to specially tag memory returned from bpf_ringbuf_reserve helper. However, this is currently only used for this purpose and there is an implicit assumption that it only refers to ringbuf memory (e.g. the check for ARG_PTR_TO_ALLOC_MEM in check_func_arg_reg_off).
Hence, rename MEM_ALLOC to MEM_RINGBUF to indicate this special relationship and instead open the use of MEM_ALLOC for more generic allocations made for user types.
Also, since ARG_PTR_TO_ALLOC_MEM_OR_NULL is unused, simply drop it.
Finally, update selftests using 'alloc_' verifier string to 'ringbuf_'.
--- include/linux/bpf.h | 11 ++++------- kernel/bpf/ringbuf.c | 6 +++--- kernel/bpf/verifier.c | 14 +++++++------- tools/testing/selftests/bpf/prog_tests/dynptr.c | 2 +- tools/testing/selftests/bpf/verifier/ringbuf.c | 2 +- tools/testing/selftests/bpf/verifier/spill_fill.c | 2 +- 6 files changed, 17 insertions(+), 20 deletions(-)
include/linux/bpf.h +4 -7
@@ -488,10 +488,8 @@ enum bpf_type_flag {*/ MEM_RDONLY =BIT (1 +BPF_BASE_TYPE_BITS ), -/* MEM was "allocated" from a different helper, and cannot be mixed -* with regular non-MEM_ALLOC'ed MEM types. -*/ -MEM_ALLOC =BIT (2 +BPF_BASE_TYPE_BITS ), +/* MEM points to BPF ring buffer reservation. */ +MEM_RINGBUF =BIT (2 +BPF_BASE_TYPE_BITS ),/* MEM is in user address space. */ MEM_USER = BIT(3 + BPF_BASE_TYPE_BITS),
@@ -565,7 +563,7 @@ enum bpf_arg_type {ARG_PTR_TO_LONG ,/* pointer to long */ ARG_PTR_TO_SOCKET ,/* pointer to bpf_sock (fullsock) */ ARG_PTR_TO_BTF_ID ,/* pointer to in-kernel struct */ -ARG_PTR_TO_ALLOC_MEM ,/* pointer to dynamically allocated memory */ +ARG_PTR_TO_RINGBUF_MEM ,/* pointer to dynamically reserved ringbuf memory */ ARG_CONST_ALLOC_SIZE_OR_ZERO ,/* number of allocated bytes requested */ ARG_PTR_TO_BTF_ID_SOCK_COMMON ,/* pointer to in-kernel sock_common or bpf-mirrored bpf_sock */ ARG_PTR_TO_PERCPU_BTF_ID, /* pointer to in-kernel percpu type */
@@ -582,7 +580,6 @@ enum bpf_arg_type {ARG_PTR_TO_MEM_OR_NULL =PTR_MAYBE_NULL |ARG_PTR_TO_MEM ,ARG_PTR_TO_CTX_OR_NULL =PTR_MAYBE_NULL |ARG_PTR_TO_CTX ,ARG_PTR_TO_SOCKET_OR_NULL =PTR_MAYBE_NULL |ARG_PTR_TO_SOCKET , -ARG_PTR_TO_ALLOC_MEM_OR_NULL =PTR_MAYBE_NULL |ARG_PTR_TO_ALLOC_MEM ,ARG_PTR_TO_STACK_OR_NULL =PTR_MAYBE_NULL |ARG_PTR_TO_STACK , ARG_PTR_TO_BTF_ID_OR_NULL = PTR_MAYBE_NULL | ARG_PTR_TO_BTF_ID,/* pointer to memory does not need to be initialized, helper function must fill
@@ -617,7 +614,7 @@ enum bpf_return_type {RET_PTR_TO_SOCKET_OR_NULL =PTR_MAYBE_NULL |RET_PTR_TO_SOCKET ,RET_PTR_TO_TCP_SOCK_OR_NULL =PTR_MAYBE_NULL |RET_PTR_TO_TCP_SOCK ,RET_PTR_TO_SOCK_COMMON_OR_NULL =PTR_MAYBE_NULL |RET_PTR_TO_SOCK_COMMON , -RET_PTR_TO_ALLOC_MEM_OR_NULL =PTR_MAYBE_NULL |MEM_ALLOC |RET_PTR_TO_MEM , +RET_PTR_TO_RINGBUF_MEM_OR_NULL =PTR_MAYBE_NULL |MEM_RINGBUF |RET_PTR_TO_MEM ,RET_PTR_TO_DYNPTR_MEM_OR_NULL =PTR_MAYBE_NULL |RET_PTR_TO_MEM , RET_PTR_TO_BTF_ID_OR_NULL = PTR_MAYBE_NULL | RET_PTR_TO_BTF_ID,
kernel/bpf/ringbuf.c +3 -3
@@ -447,7 +447,7 @@ BPF_CALL_3(bpf_ringbuf_reserve, struct bpf_map *, map, u64, size, u64, flags)const struct bpf_func_proto bpf_ringbuf_reserve_proto = { .func = bpf_ringbuf_reserve, - .ret_type =RET_PTR_TO_ALLOC_MEM_OR_NULL , + .ret_type =RET_PTR_TO_RINGBUF_MEM_OR_NULL , .arg1_type =ARG_CONST_MAP_PTR , .arg2_type =ARG_CONST_ALLOC_SIZE_OR_ZERO , .arg3_type =ARG_ANYTHING ,
@@ -490,7 +490,7 @@ BPF_CALL_2(bpf_ringbuf_submit, void *, sample, u64, flags)const struct bpf_func_proto bpf_ringbuf_submit_proto = { .func = bpf_ringbuf_submit, .ret_type =RET_VOID , - .arg1_type =ARG_PTR_TO_ALLOC_MEM |OBJ_RELEASE , + .arg1_type =ARG_PTR_TO_RINGBUF_MEM |OBJ_RELEASE , .arg2_type =ARG_ANYTHING , };
@@ -503,7 +503,7 @@ BPF_CALL_2(bpf_ringbuf_discard, void *, sample, u64, flags)const struct bpf_func_proto bpf_ringbuf_discard_proto = { .func = bpf_ringbuf_discard, .ret_type =RET_VOID , - .arg1_type =ARG_PTR_TO_ALLOC_MEM |OBJ_RELEASE , + .arg1_type =ARG_PTR_TO_RINGBUF_MEM |OBJ_RELEASE , .arg2_type =ARG_ANYTHING , };
kernel/bpf/verifier.c +7 -7
@@ -577,8 +577,8 @@ static const char *reg_type_str(struct bpf_verifier_env *env,if (type &MEM_RDONLY )strncpy (prefix,"rdonly_" ,32 ); -if (type &MEM_ALLOC ) -strncpy (prefix,"alloc_" ,32 ); +if (type &MEM_RINGBUF ) +strncpy (prefix,"ringbuf_" ,32 );if (type &MEM_USER )strncpy (prefix,"user_" ,32 );if (type &MEM_PERCPU )
@@ -5780,7 +5780,7 @@ static const struct bpf_reg_types mem_types = { PTR_TO_MAP_KEY,PTR_TO_MAP_VALUE ,PTR_TO_MEM , - PTR_TO_MEM | MEM_ALLOC, + PTR_TO_MEM | MEM_RINGBUF, PTR_TO_BUF, }, };
@@ -5798,7 +5798,7 @@ static const struct bpf_reg_types int_ptr_types = {static const struct bpf_reg_types fullsock_types = { .types = {PTR_TO_SOCKET } };static const struct bpf_reg_types scalar_types = { .types = {SCALAR_VALUE } };static const struct bpf_reg_types context_types = { .types = {PTR_TO_CTX } }; -static const struct bpf_reg_types alloc_mem_types = { .types = {PTR_TO_MEM |MEM_ALLOC } }; +static const struct bpf_reg_types ringbuf_mem_types = { .types = {PTR_TO_MEM |MEM_RINGBUF } };static const struct bpf_reg_types const_map_ptr_types = { .types = {CONST_PTR_TO_MAP } };static const struct bpf_reg_types btf_ptr_types = { .types = {PTR_TO_BTF_ID } };static const struct bpf_reg_types spin_lock_types = { .types = {PTR_TO_MAP_VALUE } };
@@ -5831,7 +5831,7 @@ static const struct bpf_reg_types *compatible_reg_types[__BPF_ARG_TYPE_MAX] = { [ARG_PTR_TO_BTF_ID] = &btf_ptr_types, [ARG_PTR_TO_SPIN_LOCK] = &spin_lock_types, [ARG_PTR_TO_MEM] = &mem_types, - [ARG_PTR_TO_ALLOC_MEM] = &alloc_mem_types, + [ARG_PTR_TO_RINGBUF_MEM] = &ringbuf_mem_types, [ARG_PTR_TO_INT] = &int_ptr_types, [ARG_PTR_TO_LONG] = &int_ptr_types, [ARG_PTR_TO_PERCPU_BTF_ID] = &percpu_btf_ptr_types,
@@ -5952,14 +5952,14 @@ int check_func_arg_reg_off(struct bpf_verifier_env *env,case PTR_TO_MAP_VALUE :case PTR_TO_MEM :case PTR_TO_MEM |MEM_RDONLY : -case PTR_TO_MEM |MEM_ALLOC : +case PTR_TO_MEM |MEM_RINGBUF :case PTR_TO_BUF :case PTR_TO_BUF |MEM_RDONLY :case SCALAR_VALUE :/* Some of the argument types nevertheless require a * zero register offset. */ -if (base_type (arg_type) !=ARG_PTR_TO_ALLOC_MEM ) +if (base_type (arg_type) !=ARG_PTR_TO_RINGBUF_MEM )return 0 ;break ;/* All the rest must be rejected, except PTR_TO_BTF_ID which allows
tools/testing/selftests/bpf/prog_tests/dynptr.c +1 -1
@@ -17,7 +17,7 @@ static struct { {"ringbuf_missing_release2", "Unreleased reference id=2"}, {"ringbuf_missing_release_callback", "Unreleased reference id"}, {"use_after_invalid", "Expected an initialized dynptr as arg #3"}, - {"ringbuf_invalid_api", "type=mem expected=alloc_mem"}, + {"ringbuf_invalid_api", "type=mem expected=ringbuf_mem"}, {"add_dynptr_to_map1", "invalid indirect read from stack"}, {"add_dynptr_to_map2", "invalid indirect read from stack"}, {"data_slice_out_of_bounds_ringbuf", "value is outside of the allowed memory range"},
tools/testing/selftests/bpf/verifier/ringbuf.c +1 -1
@@ -28,7 +28,7 @@ }, .fixup_map_ringbuf = { 1 }, .result = REJECT, - .errstr ="dereference of modified alloc_mem ptr R1" , + .errstr ="dereference of modified ringbuf_mem ptr R1" , }, { "ringbuf: invalid reservation offset 2",
tools/testing/selftests/bpf/verifier/spill_fill.c +1 -1
@@ -84,7 +84,7 @@ }, .fixup_map_ringbuf = { 1 }, .result = REJECT, - .errstr ="R0 pointer arithmetic on alloc_mem_or_null prohibited" , + .errstr ="R0 pointer arithmetic on ringbuf_mem_or_null prohibited" , }, { "check corrupted spill/fill",
Signature · 1 line
2.38.1
Kumar Kartikeya Dwivedi
maintainerPATCH v6 7/26 bpf: Refactor btf_struct_access
In reply to Kumar Kartikeya DwivediInstead of having to pass multiple arguments that describe the register, pass the bpf_reg_state into the btf_struct_access callback. Currently, all call sites simply reuse the btf and btf_id of the reg they want to check the access of. The only exception to this pattern is the callsite in check_ptr_to_map_access, hence for that case create a dummy reg to simulate PTR_TO_BTF_ID access.
--- include/linux/bpf.h | 17 ++++++++-------- include/linux/filter.h | 8 ++++---- kernel/bpf/btf.c | 11 +++++++---- kernel/bpf/verifier.c | 12 ++++++----- net/bpf/bpf_dummy_struct_ops.c | 14 ++++++------- net/core/filter.c | 34 +++++++++++++------------------- net/ipv4/bpf_tcp_ca.c | 13 ++++++------ net/netfilter/nf_conntrack_bpf.c | 17 +++++++--------- 8 files changed, 60 insertions(+), 66 deletions(-)
include/linux/bpf.h +8 -9
@@ -771,6 +771,7 @@ struct bpf_prog_ops { union bpf_attr __user *uattr); }; +struct bpf_reg_state ;struct bpf_verifier_ops {/* return eBPF function prototype for verification */ const struct bpf_func_proto *
@@ -792,9 +793,8 @@ struct bpf_verifier_ops {struct bpf_insn *dst, struct bpf_prog *prog, u32 *target_size);int (*btf_struct_access)(struct bpf_verifier_log *log, -const struct btf *btf, -const struct btf_type *t,int off,int size, -enum bpf_access_type atype, +const struct bpf_reg_state *reg, +int off,int size,enum bpf_access_type atype,u32 *next_btf_id,enum bpf_type_flag *flag); };
@@ -2080,9 +2080,9 @@ static inline bool bpf_tracing_btf_ctx_access(int off, int size,return btf_ctx_access (off, size, type, prog, info); } -int btf_struct_access (struct bpf_verifier_log *log,const struct btf *btf, -const struct btf_type *t,int off,int size, -enum bpf_access_type atype, +int btf_struct_access (struct bpf_verifier_log *log, +const struct bpf_reg_state *reg, +int off,int size,enum bpf_access_type atype,u32 *next_btf_id,enum bpf_type_flag *flag); bool btf_struct_ids_match(struct bpf_verifier_log *log, const struct btf *btf, u32 id, int off,
@@ -2333,9 +2333,8 @@ static inline struct bpf_prog *bpf_prog_by_id(u32 id) }static inline int btf_struct_access (struct bpf_verifier_log *log, -const struct btf *btf, -const struct btf_type *t,int off,int size, -enum bpf_access_type atype, +const struct bpf_reg_state *reg, +int off,int size,enum bpf_access_type atype,u32 *next_btf_id,enum bpf_type_flag *flag) {return -EACCES ;
include/linux/filter.h +4 -4
@@ -568,10 +568,10 @@ struct sk_filter {DECLARE_STATIC_KEY_FALSE (bpf_stats_enabled_key);extern struct mutex nf_conn_btf_access_lock; -extern int (*nfct_btf_struct_access)(struct bpf_verifier_log *log,const struct btf *btf, -const struct btf_type *t,int off,int size, -enum bpf_access_type atype,u32 *next_btf_id, -enum bpf_type_flag *flag); +extern int (*nfct_btf_struct_access)(struct bpf_verifier_log *log, +const struct bpf_reg_state *reg, +int off,int size,enum bpf_access_type atype, +u32 *next_btf_id,enum bpf_type_flag *flag); typedef unsigned int (*bpf_dispatcher_fn)(const void *ctx, const struct bpf_insn *insnsi,
kernel/bpf/btf.c +7 -4
@@ -6017,15 +6017,18 @@ static int btf_struct_walk(struct bpf_verifier_log *log, const struct btf *btf,return -EINVAL ; } -int btf_struct_access (struct bpf_verifier_log *log,const struct btf *btf, -const struct btf_type *t,int off,int size, -enum bpf_access_type atype__maybe_unused , +int btf_struct_access (struct bpf_verifier_log *log, +const struct bpf_reg_state *reg, +int off,int size,enum bpf_access_type atype__maybe_unused ,u32 *next_btf_id,enum bpf_type_flag *flag) { +const struct btf *btf = reg->btf;enum bpf_type_flag tmp_flag =0 ; +const struct btf_type *t; +u32 id = reg->btf_id;int err; -u32 id; + t =btf_type_by_id (btf, id); do { err = btf_struct_walk(log, btf, t, off, size, &id, &tmp_flag);
kernel/bpf/verifier.c +7 -5
@@ -4683,16 +4683,14 @@ static int check_ptr_to_btf_access(struct bpf_verifier_env *env, }if (env->ops->btf_struct_access) { - ret = env->ops->btf_struct_access (&env->log, reg->btf, t, - off, size, atype, &btf_id, &flag); + ret = env->ops->btf_struct_access (&env->log, reg, off, size, atype, &btf_id, &flag); }else {if (atype !=BPF_READ ) {verbose (env,"only read is supported\n" );return -EACCES ; } - ret =btf_struct_access (&env->log, reg->btf, t, off, size, - atype, &btf_id, &flag); + ret =btf_struct_access (&env->log, reg, off, size, atype, &btf_id, &flag); }if (ret <0 )
@@ -4718,6 +4716,7 @@ static int check_ptr_to_map_access(struct bpf_verifier_env *env, {struct bpf_reg_state *reg = regs + regno;struct bpf_map *map = reg->map_ptr; +struct bpf_reg_state map_reg;enum bpf_type_flag flag =0 ;const struct btf_type *t;const char *tname;
@@ -4756,7 +4755,10 @@ static int check_ptr_to_map_access(struct bpf_verifier_env *env,return -EACCES ; } - ret =btf_struct_access (&env->log, btf_vmlinux, t, off, size, atype, &btf_id, &flag); +/* Simulate access to a PTR_TO_BTF_ID */ +memset (&map_reg,0 ,sizeof (map_reg)); +mark_btf_ld_reg (env, &map_reg,0 ,PTR_TO_BTF_ID , btf_vmlinux, *map->ops->map_btf_id,0 ); + ret =btf_struct_access (&env->log, &map_reg, off, size, atype, &btf_id, &flag);if (ret <0 )return ret;
net/bpf/bpf_dummy_struct_ops.c +7 -7
@@ -156,29 +156,29 @@ static bool bpf_dummy_ops_is_valid_access(int off, int size, }static int bpf_dummy_ops_btf_struct_access (struct bpf_verifier_log *log, -const struct btf *btf, -const struct btf_type *t,int off, -int size,enum bpf_access_type atype, +const struct bpf_reg_state *reg, +int off,int size,enum bpf_access_type atype,u32 *next_btf_id,enum bpf_type_flag *flag) {const struct btf_type *state; +const struct btf_type *t;s32 type_id;int err; - type_id =btf_find_by_name_kind (btf,"bpf_dummy_ops_state" , + type_id =btf_find_by_name_kind (reg->btf,"bpf_dummy_ops_state" ,BTF_KIND_STRUCT );if (type_id <0 )return -EINVAL ; - state =btf_type_by_id (btf, type_id); + t =btf_type_by_id (reg->btf, reg->btf_id); + state =btf_type_by_id (reg->btf, type_id);if (t != state) {bpf_log (log,"only access to bpf_dummy_ops_state is supported\n" );return -EACCES ; } - err =btf_struct_access (log, btf, t, off, size, atype, next_btf_id, - flag); + err =btf_struct_access (log, reg, off, size, atype, next_btf_id, flag);if (err <0 )return err;
net/core/filter.c +14 -20
@@ -8651,28 +8651,25 @@ static bool tc_cls_act_is_valid_access(int off, int size,DEFINE_MUTEX (nf_conn_btf_access_lock);EXPORT_SYMBOL_GPL (nf_conn_btf_access_lock); -int (*nfct_btf_struct_access)(struct bpf_verifier_log *log,const struct btf *btf, -const struct btf_type *t,int off,int size, -enum bpf_access_type atype,u32 *next_btf_id, -enum bpf_type_flag *flag); +int (*nfct_btf_struct_access)(struct bpf_verifier_log *log, +const struct bpf_reg_state *reg, +int off,int size,enum bpf_access_type atype, +u32 *next_btf_id,enum bpf_type_flag *flag);EXPORT_SYMBOL_GPL (nfct_btf_struct_access);static int tc_cls_act_btf_struct_access (struct bpf_verifier_log *log, -const struct btf *btf, -const struct btf_type *t,int off, -int size,enum bpf_access_type atype, -u32 *next_btf_id, -enum bpf_type_flag *flag) +const struct bpf_reg_state *reg, +int off,int size,enum bpf_access_type atype, +u32 *next_btf_id,enum bpf_type_flag *flag) {int ret = -EACCES ;if (atype ==BPF_READ ) -return btf_struct_access (log, btf, t, off, size, atype, next_btf_id, - flag); +return btf_struct_access (log, reg, off, size, atype, next_btf_id, flag);mutex_lock (&nf_conn_btf_access_lock);if (nfct_btf_struct_access) - ret =nfct_btf_struct_access (log, btf, t, off, size, atype, next_btf_id, flag); + ret =nfct_btf_struct_access (log, reg, off, size, atype, next_btf_id, flag);mutex_unlock (&nf_conn_btf_access_lock);return ret;
@@ -8738,21 +8735,18 @@ void bpf_warn_invalid_xdp_action(struct net_device *dev, struct bpf_prog *prog,EXPORT_SYMBOL_GPL (bpf_warn_invalid_xdp_action);static int xdp_btf_struct_access (struct bpf_verifier_log *log, -const struct btf *btf, -const struct btf_type *t,int off, -int size,enum bpf_access_type atype, -u32 *next_btf_id, -enum bpf_type_flag *flag) +const struct bpf_reg_state *reg, +int off,int size,enum bpf_access_type atype, +u32 *next_btf_id,enum bpf_type_flag *flag) {int ret = -EACCES ;if (atype ==BPF_READ ) -return btf_struct_access (log, btf, t, off, size, atype, next_btf_id, - flag); +return btf_struct_access (log, reg, off, size, atype, next_btf_id, flag);mutex_lock (&nf_conn_btf_access_lock);if (nfct_btf_struct_access) - ret =nfct_btf_struct_access (log, btf, t, off, size, atype, next_btf_id, flag); + ret =nfct_btf_struct_access (log, reg, off, size, atype, next_btf_id, flag);mutex_unlock (&nf_conn_btf_access_lock);return ret;
net/ipv4/bpf_tcp_ca.c +6 -7
@@ -69,18 +69,17 @@ static bool bpf_tcp_ca_is_valid_access(int off, int size, }static int bpf_tcp_ca_btf_struct_access (struct bpf_verifier_log *log, -const struct btf *btf, -const struct btf_type *t,int off, -int size,enum bpf_access_type atype, -u32 *next_btf_id, -enum bpf_type_flag *flag) +const struct bpf_reg_state *reg, +int off,int size,enum bpf_access_type atype, +u32 *next_btf_id,enum bpf_type_flag *flag) { +const struct btf_type *t;size_t end;if (atype ==BPF_READ ) -return btf_struct_access (log, btf, t, off, size, atype, next_btf_id, - flag); +return btf_struct_access (log, reg, off, size, atype, next_btf_id, flag); + t =btf_type_by_id (reg->btf, reg->btf_id);if (t != tcp_sock_type) {bpf_log (log,"only read is supported\n" );return -EACCES ;
net/netfilter/nf_conntrack_bpf.c +7 -10
@@ -191,19 +191,16 @@ BTF_ID(struct, nf_conn___init)/* Check writes into `struct nf_conn` */ static int _nf_conntrack_btf_struct_access (struct bpf_verifier_log *log, -const struct btf *btf, -const struct btf_type *t,int off, -int size,enum bpf_access_type atype, -u32 *next_btf_id, -enum bpf_type_flag *flag) +const struct bpf_reg_state *reg, +int off,int size,enum bpf_access_type atype, +u32 *next_btf_id,enum bpf_type_flag *flag) { -const struct btf_type *ncit; -const struct btf_type *nct; +const struct btf_type *ncit, *nct, *t;size_t end; - ncit =btf_type_by_id (btf, btf_nf_conn_ids[1 ]); - nct =btf_type_by_id (btf, btf_nf_conn_ids[0 ]); - + ncit =btf_type_by_id (reg->btf, btf_nf_conn_ids[1 ]); + nct =btf_type_by_id (reg->btf, btf_nf_conn_ids[0 ]); + t =btf_type_by_id (reg->btf, reg->btf_id);if (t != nct && t != ncit) {bpf_log (log,"only read is supported\n" );return -EACCES ;
Signature · 1 line
2.38.1
Kumar Kartikeya Dwivedi
maintainerPATCH v6 8/26 bpf: Introduce allocated objects support
In reply to Kumar Kartikeya DwivediIntroduce support for representing pointers to objects allocated by the BPF program, i.e. PTR_TO_BTF_ID that point to a type in program BTF. This is indicated by the presence of MEM_ALLOC type flag in reg->type to avoid having to check btf_is_kernel when trying to match argument types in helpers.
Whenever walking such types, any pointers being walked will always yield a SCALAR instead of pointer. In the future we might permit kptr inside such allocated objects (either kernel or local), and it will then form a PTR_TO_BTF_ID of the respective type.
For now, such allocated objects will always be referenced in verifier context, hence ref_obj_id == 0 for them is a bug. It is allowed to write to such objects, as long fields that are special are not touched (support for which will be added in subsequent patches). Note that once such a pointer is marked PTR_UNTRUSTED, it is no longer allowed to write to it.
No PROBE_MEM handling is therefore done for loads into this type unless PTR_UNTRUSTED is part of the register type, since they can never be in an undefined state, and their lifetime will always be valid.
--- include/linux/bpf.h | 11 +++++++++++ kernel/bpf/btf.c | 5 +++++ kernel/bpf/verifier.c | 25 +++++++++++++++++++++++-- 3 files changed, 39 insertions(+), 2 deletions(-)
include/linux/bpf.h +11 -0
@@ -524,6 +524,11 @@ enum bpf_type_flag {/* Size is known at compile time. */ MEM_FIXED_SIZE =BIT (10 +BPF_BASE_TYPE_BITS ), +/* MEM is of a an allocated object of type from program BTF. This is +* used to tag PTR_TO_BTF_ID allocated using bpf_obj_new. +*/ +MEM_ALLOC =BIT (11 +BPF_BASE_TYPE_BITS ), + __BPF_TYPE_FLAG_MAX, __BPF_TYPE_LAST_FLAG = __BPF_TYPE_FLAG_MAX - 1, };
@@ -2791,4 +2796,10 @@ struct bpf_key {bool has_ref; };#endif /* CONFIG_KEYS */ + +static inline bool type_is_alloc (u32 type) +{ +return type &MEM_ALLOC ; +} +#endif /* _LINUX_BPF_H */
kernel/bpf/btf.c +5 -0
@@ -6034,6 +6034,11 @@ int btf_struct_access(struct bpf_verifier_log *log,switch (err) {case WALK_PTR : +/* For local types, the destination register cannot +* become a pointer again. +*/ +if (type_is_alloc (reg->type)) +return SCALAR_VALUE ;/* If we found the pointer or scalar on t+off, * we're done. */
kernel/bpf/verifier.c +23 -2
@@ -4682,14 +4682,27 @@ static int check_ptr_to_btf_access(struct bpf_verifier_env *env,return -EACCES ; } -if (env->ops->btf_struct_access) { +if (env->ops->btf_struct_access && !type_is_alloc (reg->type)) { +if (!btf_is_kernel (reg->btf)) { +verbose (env,"verifier internal error: reg->btf must be kernel btf\n" ); +return -EFAULT ; + } ret = env->ops->btf_struct_access (&env->log, reg, off, size, atype, &btf_id, &flag); }else { -if (atype !=BPF_READ ) { +/* Writes are permitted with default btf_struct_access for local +* kptrs (which always have ref_obj_id > 0), but not for +* untrusted PTR_TO_BTF_ID | MEM_ALLOC. +*/ +if (atype !=BPF_READ && reg->type != (PTR_TO_BTF_ID |MEM_ALLOC )) {verbose (env,"only read is supported\n" );return -EACCES ; } +if (type_is_alloc (reg->type) && !reg->ref_obj_id) { +verbose (env,"verifier internal error: ref_obj_id for allocated object must be non-zero\n" ); +return -EFAULT ; + } + ret =btf_struct_access (&env->log, reg, off, size, atype, &btf_id, &flag); }
@@ -5968,6 +5981,7 @@ int check_func_arg_reg_off(struct bpf_verifier_env *env,* fixed offset. */ case PTR_TO_BTF_ID : +case PTR_TO_BTF_ID |MEM_ALLOC :/* When referenced PTR_TO_BTF_ID is passed to release function, * it's fixed offset must be 0. In the other cases, fixed offset * can be non-zero.
@@ -13650,6 +13664,13 @@ static int convert_ctx_accesses(struct bpf_verifier_env *env)break ;case PTR_TO_BTF_ID :case PTR_TO_BTF_ID |PTR_UNTRUSTED : +/* PTR_TO_BTF_ID | MEM_ALLOC always has a valid lifetime, unlike +* PTR_TO_BTF_ID, and an active ref_obj_id, but the same cannot +* be said once it is marked PTR_UNTRUSTED, hence we must handle +* any faults for loads into such types. BPF_WRITE is disallowed +* for this case. +*/ +case PTR_TO_BTF_ID |MEM_ALLOC |PTR_UNTRUSTED :if (type ==BPF_READ ) { insn->code =BPF_LDX |BPF_PROBE_MEM |BPF_SIZE ((insn)->code);
Signature · 1 line
2.38.1
Kumar Kartikeya Dwivedi
maintainerPATCH v6 9/26 bpf: Recognize lock and list fields in allocated objects
In reply to Kumar Kartikeya DwivediAllow specifying bpf_spin_lock, bpf_list_head, bpf_list_node fields in a allocated object.
Also update btf_struct_access to reject direct access to these special fields.
A bpf_list_head allows implementing map-in-map style use cases, where an allocated object with bpf_list_head is linked into a list in a map value. This would require embedding a bpf_list_node, support for which is also included. The bpf_spin_lock is used to protect the bpf_list_head and other data.
While we strictly don't require to hold a bpf_spin_lock while touching the bpf_list_head in such objects, as when have access to it, we have complete ownership of the object, the locking constraint is still kept and may be conditionally lifted in the future.
Note that the specification of such types can be done just like map values, e.g.:
struct bar {
struct bpf_list_node node;
};struct foo {
struct bpf_spin_lock lock;
struct bpf_list_head head __contains(bar, node);
struct bpf_list_node node;
};struct map_value {
struct bpf_spin_lock lock;
struct bpf_list_head head __contains(foo, node);
};To recognize such types in user BTF, we build a btf_struct_metas array of metadata items corresponding to each BTF ID. This is done once during the btf_parse stage to avoid having to do it each time during the verification process's requirement to inspect the metadata.
Moreover, the computed metadata needs to be passed to some helpers in future patches which requires allocating them and storing them in the BTF that is pinned by the program itself, so that valid access can be assumed to such data during program runtime.
A key thing to note is that once a btf_struct_meta is available for a type, both the btf_record and btf_field_offs should be available. It is critical that btf_field_offs is available in case special fields are present, as we extensively rely on special fields being zeroed out in map values and allocated objects in later patches. The code ensures that by bailing out in case of errors and ensuring both are available together. If the record is not available, the special fields won't be recognized, so not having both is also fine (in terms of being a verification error and not a runtime bug).
--- include/linux/bpf.h | 7 ++ include/linux/btf.h | 35 ++++++++ kernel/bpf/btf.c | 196 +++++++++++++++++++++++++++++++++++++++---- kernel/bpf/syscall.c | 4 + 4 files changed, 224 insertions(+), 18 deletions(-)
include/linux/bpf.h +7 -0
@@ -176,6 +176,7 @@ enum btf_field_type {BPF_KPTR_REF = (1 <<3 ),BPF_KPTR =BPF_KPTR_UNREF |BPF_KPTR_REF ,BPF_LIST_HEAD = (1 <<4 ), + BPF_LIST_NODE = (1 << 5), }; struct btf_field_kptr {
@@ -276,6 +277,8 @@ static inline const char *btf_field_type_name(enum btf_field_type type)return "kptr" ;case BPF_LIST_HEAD :return "bpf_list_head" ; +case BPF_LIST_NODE : +return "bpf_list_node" ;default :WARN_ON_ONCE (1 );return "unknown" ;
@@ -294,6 +297,8 @@ static inline u32 btf_field_type_size(enum btf_field_type type)return sizeof (u64);case BPF_LIST_HEAD :return sizeof (struct bpf_list_head ); +case BPF_LIST_NODE : +return sizeof (struct bpf_list_node );default :WARN_ON_ONCE (1 );return 0 ;
@@ -312,6 +317,8 @@ static inline u32 btf_field_type_align(enum btf_field_type type)return __alignof__(u64 );case BPF_LIST_HEAD :return __alignof__(struct bpf_list_head ); +case BPF_LIST_NODE : +return __alignof__(struct bpf_list_node );default :WARN_ON_ONCE (1 );return 0 ;
include/linux/btf.h +35 -0
@@ -6,6 +6,8 @@#include <linux/types.h> #include <linux/bpfptr.h> +#include <linux/bsearch.h> +#include <linux/btf_ids.h> #include <uapi/linux/btf.h> #include <uapi/linux/bpf.h>
@@ -78,6 +80,17 @@ struct btf_id_dtor_kfunc {u32 kfunc_btf_id; }; +struct btf_struct_meta { +u32 btf_id; +struct btf_record *record; +struct btf_field_offs *field_offs; +}; + +struct btf_struct_metas { +u32 cnt; +struct btf_struct_meta types[]; +}; +typedef void (*btf_dtor_kfunc_t )(void *);extern const struct file_operations btf_fops;
@@ -408,6 +421,23 @@ static inline struct btf_param *btf_params(const struct btf_type *t)return (struct btf_param *)(t +1 ); } +static inline int btf_id_cmp_func (const void *a,const void *b) +{ +const int *pa = a, *pb = b; + +return *pa - *pb; +} + +static inline bool btf_id_set_contains (const struct btf_id_set *set,u32 id) +{ +return bsearch (&id, set->ids, set->cnt,sizeof (u32), btf_id_cmp_func) !=NULL ; +} + +static inline void *btf_id_set8_contains (const struct btf_id_set8 *set,u32 id) +{ +return bsearch (&id, set->pairs, set->cnt,sizeof (set->pairs[0 ]), btf_id_cmp_func); +} +#ifdef CONFIG_BPF_SYSCALL struct bpf_prog ;
@@ -423,6 +453,7 @@ int register_btf_kfunc_id_set(enum bpf_prog_type prog_type,s32 btf_find_dtor_kfunc (struct btf *btf,u32 btf_id);int register_btf_id_dtor_kfuncs (const struct btf_id_dtor_kfunc *dtors,u32 add_cnt,struct module *owner); +struct btf_struct_meta *btf_find_struct_meta (const struct btf *btf,u32 btf_id);#else static inline const struct btf_type *btf_type_by_id (const struct btf *btf,u32 type_id)
@@ -454,6 +485,10 @@ static inline int register_btf_id_dtor_kfuncs(const struct btf_id_dtor_kfunc *dt {return 0 ; } +static inline struct btf_struct_meta *btf_find_struct_meta (const struct btf *btf,u32 btf_id) +{ +return NULL ; +}#endif static inline bool btf_type_is_struct_ptr (struct btf *btf,const struct btf_type *t)
kernel/bpf/btf.c +178 -18
272 lines not on this page · raw message
kernel/bpf/syscall.c +4 -0
@@ -537,6 +537,7 @@ void btf_record_free(struct btf_record *rec)btf_put (rec->fields[i].kptr.btf);break ;case BPF_LIST_HEAD : +case BPF_LIST_NODE :/* Nothing to release for bpf_list_head */ break ;default :
@@ -582,6 +583,7 @@ struct btf_record *btf_record_dup(const struct btf_record *rec) }break ;case BPF_LIST_HEAD : +case BPF_LIST_NODE :/* Nothing to acquire for bpf_list_head */ break ;default :
@@ -648,6 +650,8 @@ void bpf_obj_free_fields(const struct btf_record *rec, void *obj)continue ;bpf_list_head_free (field, field_ptr, obj + rec->spin_lock_off);break ; +case BPF_LIST_NODE : +break ;default :WARN_ON_ONCE (1 );continue ;
Signature · 1 line
2.38.1
Kumar Kartikeya Dwivedi
maintainerPATCH v6 10/26 bpf: Verify ownership relationships for user BTF types
In reply to Kumar Kartikeya DwivediEnsure that there can be no ownership cycles among different types by way of having owning objects that can hold some other type as their element. For instance, a map value can only hold allocated objects, but these are allowed to have another bpf_list_head. To prevent unbounded recursion while freeing resources, elements of bpf_list_head in local kptrs can never have a bpf_list_head which are part of list in a map value. Later patches will verify this by having dedicated BTF selftests.
Also, to make runtime destruction easier, once btf_struct_metas is fully populated, we can stash the metadata of the value type directly in the metadata of the list_head fields, as that allows easier access to the value type's layout to destruct it at runtime from the btf_field entry of the list head itself.
--- include/linux/bpf.h | 1 + include/linux/btf.h | 1 + kernel/bpf/btf.c | 71 ++++++++++++++++++++++++++++++++++++++++++++ kernel/bpf/syscall.c | 4 +++ 4 files changed, 77 insertions(+)
include/linux/bpf.h +1 -0
@@ -190,6 +190,7 @@ struct btf_field_list_head {struct btf *btf;u32 value_btf_id;u32 node_offset; +struct btf_record *value_rec; };struct btf_field {
include/linux/btf.h +1 -0
@@ -178,6 +178,7 @@ int btf_find_spin_lock(const struct btf *btf, const struct btf_type *t);int btf_find_timer (const struct btf *btf,const struct btf_type *t);struct btf_record *btf_parse_fields (const struct btf *btf,const struct btf_type *t,u32 field_mask,u32 value_size); +int btf_check_and_fixup_fields (const struct btf *btf,struct btf_record *rec);struct btf_field_offs *btf_parse_field_offs (struct btf_record *rec);bool btf_type_is_void (const struct btf_type *t);s32 btf_find_by_name_kind (const struct btf *btf,const char *name,u8 kind);
kernel/bpf/btf.c +71 -0
83 lines not on this page · raw message
kernel/bpf/syscall.c +4 -0
@@ -1044,6 +1044,10 @@ static int map_check_btf(struct bpf_map *map, const struct btf *btf, } } + ret =btf_check_and_fixup_fields (btf, map->record); +if (ret <0 ) + goto free_map_tab; +if (map->ops->map_check_btf) { ret = map->ops->map_check_btf (map, btf, key_type, value_type);if (ret <0 )
Signature · 1 line
2.38.1
Kumar Kartikeya Dwivedi
maintainerPATCH v6 11/26 bpf: Allow locking bpf_spin_lock in allocated objects
In reply to Kumar Kartikeya DwivediAllow locking a bpf_spin_lock in an allocated object, in addition to already support map value pointers. The handling is similar to that of map values, by just preserving the reg->id of PTR_TO_BTF_ID | MEM_ALLOC as well, and adjusting process_spin_lock to work with them and remember the id in verifier state.
Refactor the existing process_spin_lock to work with PTR_TO_BTF_ID | MEM_ALLOC in addition to PTR_TO_MAP_VALUE. We need to update the reg_may_point_to_spin_lock which is used in mark_ptr_or_null_reg to preserve reg->id, that will be used in env->cur_state->active_spin_lock to remember the currently held spin lock.
--- kernel/bpf/helpers.c | 2 ++ kernel/bpf/verifier.c | 70 ++++++++++++++++++++++++++++++++----------- 2 files changed, 55 insertions(+), 17 deletions(-)
kernel/bpf/helpers.c +2 -0
@@ -336,6 +336,7 @@ const struct bpf_func_proto bpf_spin_lock_proto = { .gpl_only = false, .ret_type = RET_VOID, .arg1_type = ARG_PTR_TO_SPIN_LOCK, + .arg1_btf_id = BPF_PTR_POISON, };static inline void __bpf_spin_unlock_irqrestore (struct bpf_spin_lock *lock)
@@ -358,6 +359,7 @@ const struct bpf_func_proto bpf_spin_unlock_proto = { .gpl_only = false, .ret_type = RET_VOID, .arg1_type = ARG_PTR_TO_SPIN_LOCK, + .arg1_btf_id = BPF_PTR_POISON, }; void copy_map_value_locked(struct bpf_map *map, void *dst, void *src,
kernel/bpf/verifier.c +53 -17
123 lines not on this page · raw message
Signature · 1 line
2.38.1
Kumar Kartikeya Dwivedi
maintainerPATCH v6 12/26 bpf: Allow locking bpf_spin_lock global variables
In reply to Kumar Kartikeya DwivediGlobal variables reside in maps accessible using direct_value_addr callbacks, so giving each load instruction's rewrite a unique reg->id disallows us from holding locks which are global.
The reason for preserving reg->id as a unique value for registers that may point to spin lock is that two separate lookups are treated as two separate memory regions, and any possible aliasing is ignored for the purposes of spin lock correctness.
This is not great especially for the global variable case, which are served from maps that have max_entries == 1, i.e. they always lead to map values pointing into the same map value.
So refactor the active_spin_lock into a 'active_lock' structure which represents the lock identity, and instead of the reg->id, remember two fields, a pointer and the reg->id. The pointer will store reg->map_ptr or reg->btf. It's only necessary to distinguish for the id == 0 case of global variables, but always setting the pointer to a non-NULL value and using the pointer to check whether the lock is held simplifies code in the verifier.
This is generic enough to allow it for global variables, map lookups, and allocated objects at the same time.
Note that while whether a lock is held can be answered by just comparing active_lock.ptr to NULL, to determine whether the register is pointing to the same held lock requires comparing _both_ ptr and id.
Finally, as a result of this refactoring, pseudo load instructions are not given a unique reg->id, as they are doing lookup for the same map value (max_entries is never greater than 1).
Essentially, we consider that the tuple of (ptr, id) will always be unique for any kind of argument to bpf_spin_{lock,unlock}.
Note that this can be extended in the future to also remember offset used for locking, so that we can introduce multiple bpf_spin_lock fields in the same allocation.
--- include/linux/bpf_verifier.h | 10 ++++++++- kernel/bpf/verifier.c | 41 ++++++++++++++++++++++++------------ 2 files changed, 37 insertions(+), 14 deletions(-)
include/linux/bpf_verifier.h +9 -1
@@ -323,7 +323,15 @@ struct bpf_verifier_state {u32 branches;u32 insn_idx;u32 curframe; -u32 active_spin_lock; +struct { +/* This can either be reg->map_ptr or reg->btf, but it is only +* used to check whether the lock is held or not by comparing to +* NULL. +*/ +void *ptr; +/* This will be reg->id */ +u32 id; + } active_lock;bool speculative;/* first and last insn idx of this verifier state */
kernel/bpf/verifier.c +28 -13
100 lines not on this page · raw message
Signature · 1 line
2.38.1
Kumar Kartikeya Dwivedi
maintainerPATCH v6 13/26 bpf: Allow locking bpf_spin_lock in inner map values
In reply to Kumar Kartikeya DwivediThere is no need to restrict users from locking bpf_spin_lock in map values of inner maps. Each inner map lookup gets a unique reg->id assigned to the returned PTR_TO_MAP_VALUE which will be preserved after the NULL check. Distinct lookups into different inner map get unique IDs, and distinct lookups into same inner map also get unique IDs.
Hence, lift the restriction by removing the check return -ENOTSUPP in map_in_map.c. Later commits will add comprehensive test cases to ensure that invalid cases are rejected.
--- kernel/bpf/map_in_map.c | 5 ----- 1 file changed, 5 deletions(-)
kernel/bpf/map_in_map.c +0 -5
@@ -29,11 +29,6 @@ struct bpf_map *bpf_map_meta_alloc(int inner_map_ufd)return ERR_PTR (-ENOTSUPP ); } -if (btf_record_has_field (inner_map->record,BPF_SPIN_LOCK )) { -fdput (f); -return ERR_PTR (-ENOTSUPP ); - } - inner_map_meta_size =sizeof (*inner_map_meta);/* In some cases verifier needs to access beyond just base map. */ if (inner_map->ops == &array_map_ops)
Signature · 1 line
2.38.1
Kumar Kartikeya Dwivedi
maintainerPATCH v6 14/26 bpf: Rewrite kfunc argument handling
In reply to Kumar Kartikeya DwivediAs we continue to add more features, argument types, kfunc flags, and different extensions to kfuncs, the code to verify the correctness of the kfunc prototype wrt the passed in registers has become ad-hoc and ugly to read. To make life easier, and make a very clear split between different stages of argument processing, move all the code into verifier.c and refactor into easier to read helpers and functions.
This also makes sharing code within the verifier easier with kfunc argument processing. This will be more and more useful in later patches as we are now moving to implement very core BPF helpers as kfuncs, to keep them experimental before baking into UAPI.
--- include/linux/btf.h | 31 +- kernel/bpf/btf.c | 16 +- kernel/bpf/verifier.c | 547 +++++++++++++++++- .../bpf/prog_tests/kfunc_dynptr_param.c | 2 +- tools/testing/selftests/bpf/verifier/calls.c | 2 +- .../selftests/bpf/verifier/ref_tracking.c | 4 +- 6 files changed, 569 insertions(+), 33 deletions(-)
include/linux/btf.h +30 -1
@@ -338,6 +338,16 @@ static inline bool btf_type_is_struct(const struct btf_type *t)return kind ==BTF_KIND_STRUCT || kind ==BTF_KIND_UNION ; } +static inline bool __btf_type_is_struct (const struct btf_type *t) +{ +return BTF_INFO_KIND (t->info) ==BTF_KIND_STRUCT ; +} + +static inline bool btf_type_is_array (const struct btf_type *t) +{ +return BTF_INFO_KIND (t->info) ==BTF_KIND_ARRAY ; +} +static inline u16 btf_type_vlen (const struct btf_type *t) {return BTF_INFO_VLEN (t->info);
@@ -439,9 +449,10 @@ static inline void *btf_id_set8_contains(const struct btf_id_set8 *set, u32 id)return bsearch (&id, set->pairs, set->cnt,sizeof (set->pairs[0 ]), btf_id_cmp_func); } -#ifdef CONFIG_BPF_SYSCALL struct bpf_prog ; +struct bpf_verifier_log ; +#ifdef CONFIG_BPF_SYSCALL const struct btf_type *btf_type_by_id (const struct btf *btf,u32 type_id);const char *btf_name_by_offset (const struct btf *btf,u32 offset);struct btf *btf_parse_vmlinux (void );
@@ -455,6 +466,12 @@ s32 btf_find_dtor_kfunc(struct btf *btf, u32 btf_id);int register_btf_id_dtor_kfuncs (const struct btf_id_dtor_kfunc *dtors,u32 add_cnt,struct module *owner);struct btf_struct_meta *btf_find_struct_meta (const struct btf *btf,u32 btf_id); +const struct btf_member * +btf_get_prog_ctx_type (struct bpf_verifier_log *log,const struct btf *btf, +const struct btf_type *t,enum bpf_prog_type prog_type, +int arg); +bool btf_types_are_same (const struct btf *btf1,u32 id1, +const struct btf *btf2,u32 id2);#else static inline const struct btf_type *btf_type_by_id (const struct btf *btf,u32 type_id)
@@ -490,6 +507,18 @@ static inline struct btf_struct_meta *btf_find_struct_meta(const struct btf *btf {return NULL ; } +static inline const struct btf_member * +btf_get_prog_ctx_type (struct bpf_verifier_log *log,const struct btf *btf, +const struct btf_type *t,enum bpf_prog_type prog_type, +int arg) +{ +return NULL ; +} +static inline bool btf_types_are_same (const struct btf *btf1,u32 id1, +const struct btf *btf2,u32 id2) +{ +return false; +}#endif static inline bool btf_type_is_struct_ptr (struct btf *btf,const struct btf_type *t)
kernel/bpf/btf.c +3 -13
@@ -478,16 +478,6 @@ static bool btf_type_nosize_or_null(const struct btf_type *t)return !t ||btf_type_nosize (t); } -static bool __btf_type_is_struct (const struct btf_type *t) -{ -return BTF_INFO_KIND (t->info) ==BTF_KIND_STRUCT ; -} - -static bool btf_type_is_array (const struct btf_type *t) -{ -return BTF_INFO_KIND (t->info) ==BTF_KIND_ARRAY ; -} -static bool btf_type_is_datasec (const struct btf_type *t) {return BTF_INFO_KIND (t->info) ==BTF_KIND_DATASEC ;
@@ -5535,7 +5525,7 @@ static u8 bpf_ctx_convert_map[] = {#undef BPF_MAP_TYPE#undef BPF_LINK_TYPE -static const struct btf_member * +const struct btf_member *btf_get_prog_ctx_type (struct bpf_verifier_log *log,const struct btf *btf,const struct btf_type *t,enum bpf_prog_type prog_type,int arg)
@@ -6321,8 +6311,8 @@ int btf_struct_access(struct bpf_verifier_log *log,* end up with two different module BTFs, but IDs point to the common type in * vmlinux BTF. */ -static bool btf_types_are_same (const struct btf *btf1,u32 id1, -const struct btf *btf2,u32 id2) +bool btf_types_are_same (const struct btf *btf1,u32 id1, +const struct btf *btf2,u32 id2) {if (id1 != id2)return false;
kernel/bpf/verifier.c +532 -15
602 lines not on this page · raw message
tools/testing/selftests/bpf/prog_tests/kfunc_dynptr_param.c +1 -1
@@ -22,7 +22,7 @@ static struct { "arg#0 pointer type STRUCT bpf_dynptr_kern points to unsupported dynamic pointer type", 0}, {"not_valid_dynptr" , "arg#0 pointer type STRUCT bpf_dynptr_kern must be valid and initialized", 0}, - {"not_ptr_to_stack", "arg#0 pointer type STRUCT bpf_dynptr_kern not to stack", 0}, + {"not_ptr_to_stack", "arg#0 expected pointer to stack", 0}, {"dynptr_data_null", NULL, -EBADMSG}, };
tools/testing/selftests/bpf/verifier/calls.c +1 -1
@@ -109,7 +109,7 @@ }, .prog_type = BPF_PROG_TYPE_SCHED_CLS, .result = REJECT, - .errstr = "arg#0 pointer type STRUCT prog_test_ref_kfunc must point", + .errstr = "arg#0 expected pointer to btf or socket", .fixup_kfunc_btf_id = { { "bpf_kfunc_call_test_acquire", 3 }, { "bpf_kfunc_call_test_release", 5 },
tools/testing/selftests/bpf/verifier/ref_tracking.c +2 -2
@@ -142,7 +142,7 @@ .kfunc = "bpf", .expected_attach_type = BPF_LSM_MAC, .flags = BPF_F_SLEEPABLE, - .errstr = "arg#0 pointer type STRUCT bpf_key must point to scalar, or struct with scalar", + .errstr = "arg#0 expected pointer to btf or socket", .fixup_kfunc_btf_id = { { "bpf_lookup_user_key", 2 }, { "bpf_key_put", 4 },
@@ -163,7 +163,7 @@ .kfunc = "bpf", .expected_attach_type = BPF_LSM_MAC, .flags = BPF_F_SLEEPABLE, - .errstr = "arg#0 pointer type STRUCT bpf_key must point to scalar, or struct with scalar", + .errstr = "arg#0 expected pointer to btf or socket", .fixup_kfunc_btf_id = { { "bpf_lookup_system_key", 1 }, { "bpf_key_put", 3 },
Signature · 1 line
2.38.1
Kumar Kartikeya Dwivedi
maintainerPATCH v6 15/26 bpf: Drop kfunc bits from btf_check_func_arg_match
In reply to Kumar Kartikeya DwivediRemove all kfunc related bits now from btf_check_func_arg_match, as users have been converted away to refactored kfunc argument handling.
This is split into a separate commit to aid review, in order to compare what has been preserved from the removed bits easily instead of mixing removed hunks with previous patch.
--- include/linux/bpf.h | 11 -- include/linux/bpf_verifier.h | 2 - kernel/bpf/btf.c | 364 +---------------------------------- kernel/bpf/verifier.c | 4 +- 4 files changed, 10 insertions(+), 371 deletions(-)
include/linux/bpf.h +0 -11
@@ -2108,22 +2108,11 @@ int btf_distill_func_proto(struct bpf_verifier_log *log,const char *func_name, struct btf_func_model *m); -struct bpf_kfunc_arg_meta { -u64 r0_size; -bool r0_rdonly; -int ref_obj_id; -u32 flags; -}; -struct bpf_reg_state ;int btf_check_subprog_arg_match (struct bpf_verifier_env *env,int subprog,struct bpf_reg_state *regs);int btf_check_subprog_call (struct bpf_verifier_env *env,int subprog,struct bpf_reg_state *regs); -int btf_check_kfunc_arg_match (struct bpf_verifier_env *env, -const struct btf *btf,u32 func_id, -struct bpf_reg_state *regs, -struct bpf_kfunc_arg_meta *meta);int btf_prepare_func_args (struct bpf_verifier_env *env,int subprog,struct bpf_reg_state *reg); int btf_check_type_match(struct bpf_verifier_log *log, const struct bpf_prog *prog,
include/linux/bpf_verifier.h +0 -2
@@ -597,8 +597,6 @@ int check_ptr_off_reg(struct bpf_verifier_env *env,int check_func_arg_reg_off (struct bpf_verifier_env *env,const struct bpf_reg_state *reg,int regno,enum bpf_arg_type arg_type); -int check_kfunc_mem_size_reg (struct bpf_verifier_env *env,struct bpf_reg_state *reg, -u32 regno);int check_mem_reg (struct bpf_verifier_env *env,struct bpf_reg_state *reg,u32 regno,u32 mem_size); bool is_dynptr_reg_valid_init(struct bpf_verifier_env *env,
kernel/bpf/btf.c +8 -356
447 lines not on this page · raw message
kernel/bpf/verifier.c +2 -2
@@ -5539,8 +5539,8 @@ int check_mem_reg(struct bpf_verifier_env *env, struct bpf_reg_state *reg,return err; } -int check_kfunc_mem_size_reg (struct bpf_verifier_env *env,struct bpf_reg_state *reg, -u32 regno) +static int check_kfunc_mem_size_reg (struct bpf_verifier_env *env,struct bpf_reg_state *reg, +u32 regno) {struct bpf_reg_state *mem_reg = &cur_regs (env)[regno -1 ];bool may_be_null =type_may_be_null (mem_reg->type);
Signature · 1 line
2.38.1
Kumar Kartikeya Dwivedi
maintainerPATCH v6 16/26 bpf: Support constant scalar arguments for kfuncs
In reply to Kumar Kartikeya DwivediAllow passing known constant scalars as arguments to kfuncs that do not represent a size parameter. This makes the search pruning optimization of verifier more conservative for such kfunc calls, and each non-distinct argument is considered unequivalent.
We will use this support to then expose a bpf_obj_new function where it takes the local type ID of a type in program BTF, and returns a PTR_TO_BTF_ID | MEM_ALLOC to the local type, and allows programs to allocate their own objects.
--- Documentation/bpf/kfuncs.rst | 22 ++++++++++++++ kernel/bpf/verifier.c | 59 +++++++++++++++++++++++++++--------- 2 files changed, 67 insertions(+), 14 deletions(-)
Documentation/bpf/kfuncs.rst +22 -0
@@ -72,6 +72,28 @@ argument as its size. By default, without __sz annotation, the size of the type of the pointer is used. Without __sz annotation, a kfunc cannot accept a void pointer. +2.2.1 __k Annotation +-------------------- + +This annotation is only understood for scalar arguments, where it indicates that +the verifier must check the scalar argument to be a known constant, which does +not indicate a size parameter. + +An example is given below:: + + void *bpf_obj_new(u32 local_type_id__k, ...) + { + ... + } + +Here, bpf_obj_new uses local_type_id argument to find out the size of that type +ID in program's BTF and return a sized pointer to it. Each type ID will have a +distinct size, hence it is crucial to treat each such call as distinct when +values don't match. + +Hence, whenever a constant scalar argument is accepted by a kfunc which is not a +size parameter, __k suffix should be used. + .. _BPF_kfunc_nodef: 2.3 Using an existing kernel function
kernel/bpf/verifier.c +45 -14
88 lines not on this page · raw message
Signature · 1 line
2.38.1
Kumar Kartikeya Dwivedi
maintainerPATCH v6 17/26 bpf: Introduce bpf_obj_new
In reply to Kumar Kartikeya DwivediIntroduce type safe memory allocator bpf_obj_new for BPF programs. The kernel side kfunc is named bpf_obj_new_impl, as passing hidden arguments to kfuncs still requires having them in prototype, unlike BPF helpers which always take 5 arguments and have them checked using bpf_func_proto in verifier, ignoring unset argument types.
Introduce __ign suffix to ignore a specific kfunc argument during type checks, then use this to introduce support for passing type metadata to the bpf_obj_new_impl kfunc.
The user passes BTF ID of the type it wants to allocates in program BTF, the verifier then rewrites the first argument as the size of this type, after performing some sanity checks (to ensure it exists and it is a struct type).
The second argument is also fixed up and passed by the verifier. This is the btf_struct_meta for the type being allocated. It would be needed mostly for the offset array which is required for zero initializing special fields while leaving the rest of storage in unitialized state.
It would also be needed in the next patch to perform proper destruction of the object's special fields.
Under the hood, bpf_obj_new will call bpf_mem_alloc and bpf_mem_free, using the any context BPF memory allocator introduced recently. To this end, a global instance of the BPF memory allocator is initialized on boot to be used for this purpose. This 'bpf_global_ma' serves all allocations for bpf_obj_new. In the future, bpf_obj_new variants will allow specifying a custom allocator.
Note that now that bpf_obj_new can be used to allocate objects that can be linked to BPF linked list (when future linked list helpers are available), we need to also free the elements using bpf_mem_free. However, since the draining of elements is done outside the bpf_spin_lock, we need to do migrate_disable around the call since bpf_list_head_free can be called from map free path where migration is enabled. Otherwise, when called from BPF programs migration is already disabled.
A convenience macro is included in the bpf_experimental.h header to hide over the ugly details of the implementation, leading to user code looking similar to a language level extension which allocates and constructs fields of a user type.
struct bar {
struct bpf_list_node node;
};struct foo {
struct bpf_spin_lock lock;
struct bpf_list_head head __contains(bar, node);
};void prog(void) {
struct foo *f;
f = bpf_obj_new(typeof(*f));
if (!f)
return;
...
}A key piece of this story is still missing, i.e. the free function, which will come in the next patch.
--- include/linux/bpf.h | 21 ++-- include/linux/bpf_verifier.h | 2 + kernel/bpf/core.c | 16 +++ kernel/bpf/helpers.c | 47 ++++++-- kernel/bpf/verifier.c | 107 ++++++++++++++++-- .../testing/selftests/bpf/bpf_experimental.h | 25 ++++ 6 files changed, 195 insertions(+), 23 deletions(-) create mode 100644 tools/testing/selftests/bpf/bpf_experimental.h
include/linux/bpf.h +13 -8
@@ -54,6 +54,8 @@ struct cgroup;extern struct idr btf_idr;extern spinlock_t btf_idr_lock;extern struct kobject *btf_kobj; +extern struct bpf_mem_alloc bpf_global_ma; +extern bool bpf_global_ma_set;typedef u64 (*bpf_callback_t )(u64 ,u64 ,u64 ,u64 ,u64 ); typedef int (*bpf_iter_init_seq_priv_t)(void *private_data,
@@ -333,16 +335,19 @@ static inline bool btf_record_has_field(const struct btf_record *rec, enum btf_freturn rec->field_mask & type; } -static inline void check_and_init_map_value (struct bpf_map *map,void *dst) +static inline void bpf_obj_init (const struct btf_field_offs *foffs,void *obj) { -if (!IS_ERR_OR_NULL (map->record)) { -struct btf_field *fields = map->record->fields; -u32 cnt = map->record->cnt; -int i; +int i; -for (i =0 ; i < cnt; i++) -memset (dst + fields[i].offset,0 ,btf_field_type_size (fields[i].type)); - } +if (!foffs) +return ; +for (i =0 ; i < foffs->cnt; i++) +memset (obj + foffs->field_off[i],0 , foffs->field_sz[i]); +} + +static inline void check_and_init_map_value (struct bpf_map *map,void *dst) +{ +bpf_obj_init (map->field_offs, dst); }/* memcpy that is used with 8-byte aligned pointers, power-of-8 size and
include/linux/bpf_verifier.h +2 -0
@@ -427,6 +427,8 @@ struct bpf_insn_aux_data {*/ struct bpf_loop_inline_state loop_inline_state; }; +u64 obj_new_size;/* remember the size of type passed to bpf_obj_new to rewrite R1 */ +struct btf_struct_meta *kptr_struct_meta;u64 map_key_state;/* constant (32 bit) key tracking for maps */ int ctx_field_size;/* the ctx field size for load insn, maybe 0 */ u32 seen;/* this insn was processed by the verifier at env->pass_cnt */
kernel/bpf/core.c +16 -0
@@ -34,6 +34,7 @@#include <linux/log2.h> #include <linux/bpf_verifier.h> #include <linux/nodemask.h> +#include <linux/bpf_mem_alloc.h> #include <asm/barrier.h> #include <asm/unaligned.h>
@@ -60,6 +61,9 @@#define CTX regs[BPF_REG_CTX]#define IMM insn->imm +struct bpf_mem_alloc bpf_global_ma; +bool bpf_global_ma_set; +/* No hurry in this branch * * Exported for the bpf jit load helper.
@@ -2746,6 +2750,18 @@ int __weak bpf_arch_text_invalidate(void *dst, size_t len)return -ENOTSUPP ; } +#ifdef CONFIG_BPF_SYSCALL +static int __init bpf_global_ma_init (void ) +{ +int ret; + + ret =bpf_mem_alloc_init (&bpf_global_ma,0 , false); + bpf_global_ma_set = !ret; +return ret; +} +late_initcall (bpf_global_ma_init); +#endif +DEFINE_STATIC_KEY_FALSE (bpf_stats_enabled_key);EXPORT_SYMBOL (bpf_stats_enabled_key);
kernel/bpf/helpers.c +40 -7
71 lines not on this page · raw message
kernel/bpf/verifier.c +99 -8
165 lines not on this page · raw message
tools/testing/selftests/bpf/bpf_experimental.h new file +25 -0
@@ -0,0 +1,25 @@ +#ifndef __BPF_EXPERIMENTAL__ +#define __BPF_EXPERIMENTAL__ + +#include <vmlinux.h> +#include <bpf/bpf_tracing.h> +#include <bpf/bpf_helpers.h> +#include <bpf/bpf_core_read.h> + +/* Description +* Allocates an object of the type represented by 'local_type_id' in +* program BTF. User may use the bpf_core_type_id_local macro to pass the +* type ID of a struct in program BTF. +* +* The 'local_type_id' parameter must be a known constant. +* The 'meta' parameter is a hidden argument that is ignored. +* Returns +* A pointer to an object of the type corresponding to the passed in +* 'local_type_id', or NULL on failure. +*/ +extern void *bpf_obj_new_impl (__u64 local_type_id,void *meta) __ksym; + +/* Convenience macro to wrap over bpf_obj_new_impl */ +#define bpf_obj_new (type) ((type *)bpf_obj_new_impl(bpf_core_type_id_local(type), NULL)) + +#endif
Signature · 1 line
2.38.1
Kumar Kartikeya Dwivedi
maintainerPATCH v6 18/26 bpf: Introduce bpf_obj_drop
In reply to Kumar Kartikeya DwivediIntroduce bpf_obj_drop, which is the kfunc used to free allocated objects (allocated using bpf_obj_new). Pairing with bpf_obj_new, it implicitly destructs the fields part of object automatically without user intervention.
Just like the previous patch, btf_struct_meta that is needed to free up the special fields is passed as a hidden argument to the kfunc.
For the user, a convenience macro hides over the kernel side kfunc which is named bpf_obj_drop_impl.
Continuing the previous example:
void prog(void) {
struct foo *f;
f = bpf_obj_new(typeof(*f));
if (!f)
return;
bpf_obj_drop(f);
}--- kernel/bpf/helpers.c | 11 ++++ kernel/bpf/verifier.c | 66 +++++++++++++++---- .../testing/selftests/bpf/bpf_experimental.h | 13 ++++ 3 files changed, 79 insertions(+), 11 deletions(-)
kernel/bpf/helpers.c +11 -0
@@ -1770,6 +1770,16 @@ void *bpf_obj_new_impl(u64 local_type_id__k, void *meta__ign)return p; } +void bpf_obj_drop_impl (void *p__alloc,void *meta__ign) +{ +struct btf_struct_meta *meta = meta__ign; +void *p = p__alloc; + +if (meta) +bpf_obj_free_fields (meta->record, p); +bpf_mem_free (&bpf_global_ma, p); +} +__diag_pop ();BTF_SET8_START (generic_btf_ids)
@@ -1777,6 +1787,7 @@ BTF_SET8_START(generic_btf_ids) BTF_ID_FLAGS(func, crash_kexec, KF_DESTRUCTIVE)#endif BTF_ID_FLAGS(func, bpf_obj_new_impl, KF_ACQUIRE | KF_RET_NULL) +BTF_ID_FLAGS(func, bpf_obj_drop_impl, KF_RELEASE)BTF_SET8_END (generic_btf_ids) static const struct btf_kfunc_id_set generic_kfunc_set = {
kernel/bpf/verifier.c +55 -11
126 lines not on this page · raw message
tools/testing/selftests/bpf/bpf_experimental.h +13 -0
@@ -22,4 +22,17 @@ extern void *bpf_obj_new_impl(__u64 local_type_id, void *meta) __ksym;/* Convenience macro to wrap over bpf_obj_new_impl */ #define bpf_obj_new (type) ((type *)bpf_obj_new_impl(bpf_core_type_id_local(type), NULL)) +/* Description +* Free an allocated object. All fields of the object that require +* destruction will be destructed before the storage is freed. +* +* The 'meta' parameter is a hidden argument that is ignored. +* Returns +* Void. +*/ +extern void bpf_obj_drop_impl(void *kptr, void *meta) __ksym; + +/* Convenience macro to wrap over bpf_obj_drop_impl */ +#define bpf_obj_drop (kptr) bpf_obj_drop_impl(kptr, NULL) +#endif
Signature · 1 line
2.38.1
Kumar Kartikeya Dwivedi
maintainerPATCH v6 19/26 bpf: Permit NULL checking pointer with non-zero fixed offset
In reply to Kumar Kartikeya DwivediPointer increment on seeing PTR_MAYBE_NULL is already protected against, hence make an exception for PTR_TO_BTF_ID | MEM_ALLOC while still keeping the warning for other unintended cases that might creep in.
bpf_list_pop_{front,_back} helpers planned to be introduced in next commit will return a MEM_ALLOC register with incremented offset pointing to bpf_list_node field. The user is supposed to then obtain the pointer to the entry using container_of after NULL checking it. The current restrictions trigger a warning when doing the NULL checking. Revisiting the reason, it is meant as an assertion which seems to actually work and catch the bad case.
Hence, under no other circumstances can reg->off be non-zero for a register that has the PTR_MAYBE_NULL type flag set.
--- kernel/bpf/verifier.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-)
kernel/bpf/verifier.c +9 -4
@@ -10791,15 +10791,20 @@ static void mark_ptr_or_null_reg(struct bpf_func_state *state, {if (type_may_be_null (reg->type) && reg->id == id && !WARN_ON_ONCE (!reg->id)) { -if (WARN_ON_ONCE (reg->smin_value || reg->smax_value || - !tnum_equals_const (reg->var_off,0 ) || - reg->off)) { +if (reg->smin_value || reg->smax_value || !tnum_equals_const (reg->var_off,0 ) || reg->off) {/* Old offset (both fixed and variable parts) should * have been known-zero, because we don't allow pointer * arithmetic on pointers that might be NULL. If we * see this happening, don't convert the register. +* +* But in some cases, some helpers that return local +* kptrs advance offset for the returned pointer. +* In those cases, it is fine to expect to see reg->off. */ -return ; +if (WARN_ON_ONCE (reg->type != (PTR_TO_BTF_ID |MEM_ALLOC |PTR_MAYBE_NULL ))) +return ; +if (WARN_ON_ONCE (reg->smin_value || reg->smax_value || !tnum_equals_const (reg->var_off,0 ))) +return ; }if (is_null) { reg->type =SCALAR_VALUE ;
Signature · 1 line
2.38.1
Kumar Kartikeya Dwivedi
maintainerPATCH v6 20/26 bpf: Introduce single ownership BPF linked list API
In reply to Kumar Kartikeya DwivediAdd a linked list API for use in BPF programs, where it expects protection from the bpf_spin_lock in the same allocation as the bpf_list_head. For now, only one bpf_spin_lock can be present hence that is assumed to be the one protecting the bpf_list_head.
The following functions are added to kick things off:
// Add node to beginning of list
void bpf_list_push_front(struct bpf_list_head *head, struct bpf_list_node *node);
// Add node to end of list
void bpf_list_push_back(struct bpf_list_head *head, struct bpf_list_node *node);
// Remove node at beginning of list and return it
struct bpf_list_node *bpf_list_pop_front(struct bpf_list_head *head);
// Remove node at end of list and return it
struct bpf_list_node *bpf_list_pop_back(struct bpf_list_head *head);
The lock protecting the bpf_list_head needs to be taken for all operations. The verifier ensures that the lock that needs to be taken is always held, and only the correct lock is taken for these operations. These checks are made statically by relying on the reg->id preserved for registers pointing into regions having both bpf_spin_lock and the objects protected by it. The comment over check_reg_allocation_locked in this change describes the logic in detail.
Note that bpf_list_push_front and bpf_list_push_back are meant to consume the object containing the node in the 1st argument, however that specific mechanism is intended to not release the ref_obj_id directly until the bpf_spin_unlock is called. In this commit, nothing is done, but the next commit will be introducing logic to handle this case, so it has been left as is for now.
bpf_list_pop_front and bpf_list_pop_back delete the first or last item of the list respectively, and return pointer to the element at the list_node offset. The user can then use container_of style macro to get the actual entry type. The verifier however statically knows the actual type, so the safety properties are still preserved.
With these additions, programs can now manage their own linked lists and store their objects in them.
--- kernel/bpf/helpers.c | 55 +++- kernel/bpf/verifier.c | 292 +++++++++++++++++- .../testing/selftests/bpf/bpf_experimental.h | 28 ++ 3 files changed, 361 insertions(+), 14 deletions(-)
kernel/bpf/helpers.c +54 -1
@@ -1780,6 +1780,50 @@ void bpf_obj_drop_impl(void *p__alloc, void *meta__ign)bpf_mem_free (&bpf_global_ma, p); } +static void __bpf_list_add (struct bpf_list_node *node,struct bpf_list_head *head,bool tail) +{ +struct list_head *n = (void *)node, *h = (void *)head; + +if (unlikely (!h->next)) +INIT_LIST_HEAD (h); +if (unlikely (!n->next)) +INIT_LIST_HEAD (n); + tail ?list_add_tail (n, h) :list_add (n, h); +} + +void bpf_list_push_front (struct bpf_list_head *head,struct bpf_list_node *node) +{ +return __bpf_list_add (node, head, false); +} + +void bpf_list_push_back (struct bpf_list_head *head,struct bpf_list_node *node) +{ +return __bpf_list_add (node, head, true); +} + +static struct bpf_list_node *__bpf_list_del (struct bpf_list_head *head,bool tail) +{ +struct list_head *n, *h = (void *)head; + +if (unlikely (!h->next)) +INIT_LIST_HEAD (h); +if (list_empty (h)) +return NULL ; + n = tail ? h->prev : h->next; +list_del_init (n); +return (struct bpf_list_node *)n; +} + +struct bpf_list_node *bpf_list_pop_front (struct bpf_list_head *head) +{ +return __bpf_list_del (head, false); +} + +struct bpf_list_node *bpf_list_pop_back (struct bpf_list_head *head) +{ +return __bpf_list_del (head, true); +} +__diag_pop ();BTF_SET8_START (generic_btf_ids)
@@ -1788,6 +1832,10 @@ BTF_ID_FLAGS(func, crash_kexec, KF_DESTRUCTIVE)#endif BTF_ID_FLAGS(func, bpf_obj_new_impl, KF_ACQUIRE | KF_RET_NULL) BTF_ID_FLAGS(func, bpf_obj_drop_impl, KF_RELEASE) +BTF_ID_FLAGS(func, bpf_list_push_front) +BTF_ID_FLAGS(func, bpf_list_push_back) +BTF_ID_FLAGS(func, bpf_list_pop_front, KF_ACQUIRE | KF_RET_NULL) +BTF_ID_FLAGS(func, bpf_list_pop_back, KF_ACQUIRE | KF_RET_NULL)BTF_SET8_END (generic_btf_ids) static const struct btf_kfunc_id_set generic_kfunc_set = {
@@ -1797,7 +1845,12 @@ static const struct btf_kfunc_id_set generic_kfunc_set = {static int __init kfunc_init (void ) { -return register_btf_kfunc_id_set (BPF_PROG_TYPE_TRACING , &generic_kfunc_set); +int ret; + + ret =register_btf_kfunc_id_set (BPF_PROG_TYPE_TRACING , &generic_kfunc_set); +if (ret) +return ret; +return register_btf_kfunc_id_set (BPF_PROG_TYPE_SCHED_CLS , &generic_kfunc_set); }late_initcall (kfunc_init);
kernel/bpf/verifier.c +279 -13
379 lines not on this page · raw message
tools/testing/selftests/bpf/bpf_experimental.h +28 -0
@@ -35,4 +35,32 @@ extern void bpf_obj_drop_impl(void *kptr, void *meta) __ksym;/* Convenience macro to wrap over bpf_obj_drop_impl */ #define bpf_obj_drop (kptr) bpf_obj_drop_impl(kptr, NULL) +/* Description +* Add a new entry to the beginning of the BPF linked list. +* Returns +* Void. +*/ +extern void bpf_list_push_front(struct bpf_list_head *head, struct bpf_list_node *node) __ksym; + +/* Description +* Add a new entry to the end of the BPF linked list. +* Returns +* Void. +*/ +extern void bpf_list_push_back(struct bpf_list_head *head, struct bpf_list_node *node) __ksym; + +/* Description +* Remove the entry at the beginning of the BPF linked list. +* Returns +* Pointer to bpf_list_node of deleted entry, or NULL if list is empty. +*/ +extern struct bpf_list_node *bpf_list_pop_front (struct bpf_list_head *head) __ksym; + +/* Description +* Remove the entry at the end of the BPF linked list. +* Returns +* Pointer to bpf_list_node of deleted entry, or NULL if list is empty. +*/ +extern struct bpf_list_node *bpf_list_pop_back (struct bpf_list_head *head) __ksym; +#endif
Signature · 1 line
2.38.1
Kumar Kartikeya Dwivedi
maintainerPATCH v6 21/26 bpf: Add 'release on unlock' logic for bpf_list_push_{front,back}
In reply to Kumar Kartikeya DwivediThis commit implements the delayed release logic for bpf_list_push_front and bpf_list_push_back.
Once a node has been added to the list, it's pointer changes to PTR_UNTRUSTED. However, it is only released once the lock protecting the list is unlocked. For such PTR_TO_BTF_ID | MEM_ALLOC with PTR_UNTRUSTED set but an active ref_obj_id, it is still permitted to read them as long as the lock is held. Writing to them is not allowed.
This allows having read access to push items we no longer own until we release the lock guarding the list, allowing a little more flexibility when working with these APIs.
Note that enabling write support has fairly tricky interactions with what happens inside the critical section. Just as an example, currently, bpf_obj_drop is not permitted, but if it were, being able to write to the PTR_UNTRUSTED pointer while the object gets released back to the memory allocator would violate safety properties we wish to guarantee (i.e. not crashing the kernel). The memory could be reused for a different type in the BPF program or even in the kernel as it gets eventually kfree'd.
Not enabling bpf_obj_drop inside the critical section would appear to prevent all of the above, but that is more of an artifical limitation right now. Since the write support is tangled with how we handle potential aliasing of nodes inside the critical section that may or may not be part of the list anymore, it has been deferred to a future patch.
--- include/linux/bpf_verifier.h | 5 ++++ kernel/bpf/verifier.c | 48 +++++++++++++++++++++++++++++++++++- 2 files changed, 52 insertions(+), 1 deletion(-)
include/linux/bpf_verifier.h +5 -0
@@ -223,6 +223,11 @@ struct bpf_reference_state {* exiting a callback function. */ int callback_ref; +/* Mark the reference state to release the registers sharing the same id +* on bpf_spin_unlock (for nodes that we will lose ownership to but are +* safe to access inside the critical section). +*/ +bool release_on_unlock; };/* state of the program:
kernel/bpf/verifier.c +47 -1
73 lines not on this page · raw message
Signature · 1 line
2.38.1
Kumar Kartikeya Dwivedi
maintainerPATCH v6 22/26 selftests/bpf: Add __contains macro to bpf_experimental.h
In reply to Kumar Kartikeya DwivediAdd user facing __contains macro which provides a convenient wrapper over the verbose kernel specific BTF declaration tag required to annotate BPF list head structs in user types.
--- tools/testing/selftests/bpf/bpf_experimental.h | 2 ++ 1 file changed, 2 insertions(+)
tools/testing/selftests/bpf/bpf_experimental.h +2 -0
@@ -6,6 +6,8 @@#include <bpf/bpf_helpers.h> #include <bpf/bpf_core_read.h> +#define __contains (name, node) __attribute__((btf_decl_tag("contains:" #name ":" #node))) +/* Description * Allocates an object of the type represented by 'local_type_id' in * program BTF. User may use the bpf_core_type_id_local macro to pass the
Signature · 1 line
2.38.1
Kumar Kartikeya Dwivedi
maintainerPATCH v6 23/26 selftests/bpf: Update spinlock selftest
In reply to Kumar Kartikeya DwivediMake updates in preparation for adding more test cases to this selftest:
- Convert from CHECK_ to ASSERT macros.
- Use BPF skeleton
- Fix typo sping -> spin
- Rename spinlock.c -> spin_lock.c
--- .../selftests/bpf/prog_tests/spin_lock.c | 49 +++++++++++++++++++ .../selftests/bpf/prog_tests/spinlock.c | 45 ----------------- .../selftests/bpf/progs/test_spin_lock.c | 4 +- 3 files changed, 51 insertions(+), 47 deletions(-) create mode 100644 tools/testing/selftests/bpf/prog_tests/spin_lock.c delete mode 100644 tools/testing/selftests/bpf/prog_tests/spinlock.c
tools/testing/selftests/bpf/prog_tests/spin_lock.c new file +49 -0
@@ -0,0 +1,49 @@ +// SPDX-License-Identifier: GPL-2.0 +#include <test_progs.h> +#include <network_helpers.h> + +#include "test_spin_lock.skel.h" + +static void *spin_lock_thread (void *arg) +{ +int err, prog_fd = *(u32 *) arg; +LIBBPF_OPTS (bpf_test_run_opts, topts, + .data_in = &pkt_v4, + .data_size_in = sizeof(pkt_v4), + .repeat = 10000, + ); + + err =bpf_prog_test_run_opts (prog_fd, &topts); +ASSERT_OK (err,"test_run" ); +ASSERT_OK (topts.retval,"test_run retval" ); +pthread_exit (arg); +} + +void test_spinlock (void ) +{ +struct test_spin_lock *skel; +pthread_t thread_id[4 ]; +int prog_fd, i; +void *ret; + + skel =test_spin_lock__open_and_load (); +if (!ASSERT_OK_PTR (skel,"test_spin_lock__open_and_load" )) +return ; + prog_fd =bpf_program__fd (skel->progs.bpf_spin_lock_test); +for (i =0 ; i <4 ; i++) { +int err; + + err =pthread_create (&thread_id[i],NULL , &spin_lock_thread, &prog_fd); +if (!ASSERT_OK (err,"pthread_create" )) + goto end; + } + +for (i =0 ; i <4 ; i++) { +if (!ASSERT_OK (pthread_join (thread_id[i], &ret),"pthread_join" )) + goto end; +if (!ASSERT_EQ (ret, &prog_fd,"ret == prog_fd" )) + goto end; + } +end: +test_spin_lock__destroy (skel); +}
tools/testing/selftests/bpf/prog_tests/spinlock.c deleted +0 -45
45 lines not on this page · raw message
tools/testing/selftests/bpf/progs/test_spin_lock.c +2 -2
@@ -45,8 +45,8 @@ struct {#define CREDIT_PER_NS (delta, rate) (((delta) * rate) >> 20) -SEC("tc") -int bpf_sping_lock_test (struct __sk_buff *skb) +SEC("cgroup_skb/ingress") +int bpf_spin_lock_test (struct __sk_buff *skb) {volatile int credit =0 , max_credit =100 , pkt_len =64 ;struct hmap_elem zero = {}, *val;
Signature · 1 line
2.38.1
Kumar Kartikeya Dwivedi
maintainerPATCH v6 24/26 selftests/bpf: Add failure test cases for spin lock pairing
In reply to Kumar Kartikeya DwivediFirst, ensure that whenever a bpf_spin_lock is present in an allocation, the reg->id is preserved. This won't be true for global variables however, since they have a single map value per map, hence the verifier harcodes it to 0 (so that multiple pseudo ldimm64 insns can yield the same lock object per map at a given offset).
Next, add test cases for all possible combinations (kptr, global, map value, inner map value). Since we lifted restriction on locking in inner maps, also add test cases for them. Currently, each lookup into an inner map gets a fresh reg->id, so even if the reg->map_ptr is same, they will be treated as separate allocations and the incorrect unlock pairing will be rejected.
--- .../selftests/bpf/prog_tests/spin_lock.c | 89 +++++++- .../selftests/bpf/progs/test_spin_lock_fail.c | 204 ++++++++++++++++++ 2 files changed, 292 insertions(+), 1 deletion(-) create mode 100644 tools/testing/selftests/bpf/progs/test_spin_lock_fail.c
tools/testing/selftests/bpf/prog_tests/spin_lock.c +88 -1
@@ -3,6 +3,79 @@#include <network_helpers.h> #include "test_spin_lock.skel.h" +#include "test_spin_lock_fail.skel.h" + +static char log_buf[1024 *1024 ]; + +static struct { +const char *prog_name; +const char *err_msg; +} spin_lock_fail_tests[] = { + {"lock_id_kptr_preserve" , +"5: (bf) r1 = r0 ; R0_w=ptr_foo(id=2,ref_obj_id=2,off=0,imm=0) " +"R1_w=ptr_foo(id=2,ref_obj_id=2,off=0,imm=0) refs=2\n6: (85) call bpf_this_cpu_ptr#154\n" +"R1 type=ptr_ expected=percpu_ptr_" }, + {"lock_id_global_zero" , +"; R1_w=map_value(off=0,ks=4,vs=4,imm=0)\n2: (85) call bpf_this_cpu_ptr#154\n" +"R1 type=map_value expected=percpu_ptr_" }, + {"lock_id_mapval_preserve" , +"8: (bf) r1 = r0 ; R0_w=map_value(id=1,off=0,ks=4,vs=8,imm=0) " +"R1_w=map_value(id=1,off=0,ks=4,vs=8,imm=0)\n9: (85) call bpf_this_cpu_ptr#154\n" +"R1 type=map_value expected=percpu_ptr_" }, + {"lock_id_innermapval_preserve" , +"13: (bf) r1 = r0 ; R0=map_value(id=2,off=0,ks=4,vs=8,imm=0) " +"R1_w=map_value(id=2,off=0,ks=4,vs=8,imm=0)\n14: (85) call bpf_this_cpu_ptr#154\n" +"R1 type=map_value expected=percpu_ptr_" }, + {"lock_id_mismatch_kptr_kptr" ,"bpf_spin_unlock of different lock" }, + {"lock_id_mismatch_kptr_global" ,"bpf_spin_unlock of different lock" }, + {"lock_id_mismatch_kptr_mapval" ,"bpf_spin_unlock of different lock" }, + {"lock_id_mismatch_kptr_innermapval" ,"bpf_spin_unlock of different lock" }, + {"lock_id_mismatch_global_global" ,"bpf_spin_unlock of different lock" }, + {"lock_id_mismatch_global_kptr" ,"bpf_spin_unlock of different lock" }, + {"lock_id_mismatch_global_mapval" ,"bpf_spin_unlock of different lock" }, + {"lock_id_mismatch_global_innermapval" ,"bpf_spin_unlock of different lock" }, + {"lock_id_mismatch_mapval_mapval" ,"bpf_spin_unlock of different lock" }, + {"lock_id_mismatch_mapval_kptr" ,"bpf_spin_unlock of different lock" }, + {"lock_id_mismatch_mapval_global" ,"bpf_spin_unlock of different lock" }, + {"lock_id_mismatch_mapval_innermapval" ,"bpf_spin_unlock of different lock" }, + {"lock_id_mismatch_innermapval_innermapval1" ,"bpf_spin_unlock of different lock" }, + {"lock_id_mismatch_innermapval_innermapval2" ,"bpf_spin_unlock of different lock" }, + {"lock_id_mismatch_innermapval_kptr" ,"bpf_spin_unlock of different lock" }, + {"lock_id_mismatch_innermapval_global" ,"bpf_spin_unlock of different lock" }, + {"lock_id_mismatch_innermapval_mapval" ,"bpf_spin_unlock of different lock" }, +}; + +static void test_spin_lock_fail_prog (const char *prog_name,const char *err_msg) +{ + LIBBPF_OPTS(bpf_object_open_opts, opts, .kernel_log_buf = log_buf, + .kernel_log_size = sizeof(log_buf), + .kernel_log_level = 1); +struct test_spin_lock_fail *skel; +struct bpf_program *prog; +int ret; + + skel =test_spin_lock_fail__open_opts (&opts); +if (!ASSERT_OK_PTR (skel,"test_spin_lock_fail__open_opts" )) +return ; + + prog =bpf_object__find_program_by_name (skel->obj, prog_name); +if (!ASSERT_OK_PTR (prog,"bpf_object__find_program_by_name" )) + goto end; + +bpf_program__set_autoload (prog, true); + + ret =test_spin_lock_fail__load (skel); +if (!ASSERT_ERR (ret,"test_spin_lock_fail__load must fail" )) + goto end; + +if (!ASSERT_OK_PTR (strstr (log_buf, err_msg),"expected error message" )) { +fprintf (stderr,"Expected: %s\n" , err_msg); +fprintf (stderr,"Verifier: %s\n" , log_buf); + } + +end: +test_spin_lock_fail__destroy (skel); +}static void *spin_lock_thread (void *arg) {
@@ -19,7 +92,7 @@ static void *spin_lock_thread(void *arg)pthread_exit (arg); } -void test_spinlock (void ) +void test_spin_lock_success (void ) {struct test_spin_lock *skel;pthread_t thread_id[4 ];
@@ -47,3 +120,17 @@ void test_spinlock(void) end:test_spin_lock__destroy (skel); } + +void test_spin_lock (void ) +{ +int i; + +test_spin_lock_success (); + +for (i =0 ; i <ARRAY_SIZE (spin_lock_fail_tests); i++) { +if (!test__start_subtest (spin_lock_fail_tests[i].prog_name)) +continue ; +test_spin_lock_fail_prog (spin_lock_fail_tests[i].prog_name, + spin_lock_fail_tests[i].err_msg); + } +}
tools/testing/selftests/bpf/progs/test_spin_lock_fail.c new file +204 -0
204 lines not on this page · raw message
Signature · 1 line
2.38.1
Kumar Kartikeya Dwivedi
maintainerPATCH v6 25/26 selftests/bpf: Add BPF linked list API tests
In reply to Kumar Kartikeya DwivediInclude various tests covering the success and failure cases. Also, run the success cases at runtime to verify correctness of linked list manipulation routines, in addition to ensuring successful verification.
--- tools/testing/selftests/bpf/DENYLIST.s390x | 1 + .../selftests/bpf/prog_tests/linked_list.c | 253 ++++++++ .../testing/selftests/bpf/progs/linked_list.c | 370 +++++++++++ .../testing/selftests/bpf/progs/linked_list.h | 56 ++ .../selftests/bpf/progs/linked_list_fail.c | 581 ++++++++++++++++++ 5 files changed, 1261 insertions(+) create mode 100644 tools/testing/selftests/bpf/prog_tests/linked_list.c create mode 100644 tools/testing/selftests/bpf/progs/linked_list.c create mode 100644 tools/testing/selftests/bpf/progs/linked_list.h create mode 100644 tools/testing/selftests/bpf/progs/linked_list_fail.c
tools/testing/selftests/bpf/DENYLIST.s390x +1 -0
@@ -33,6 +33,7 @@ ksyms_module # test_ksyms_module__open_and_load unex ksyms_module_libbpf # JIT does not support calling kernel function (kfunc) ksyms_module_lskel # test_ksyms_module_lskel__open_and_load unexpected error: -9 (?) libbpf_get_fd_by_id_opts # failed to attach: ERROR: strerror_r(-524)=22 (trampoline) +linked_list # JIT does not support calling kernel function (kfunc) lookup_key # JIT does not support calling kernel function (kfunc) lru_bug # prog 'printk': failed to auto-attach: -524 map_kptr # failed to open_and_load program: -524 (trampoline)
tools/testing/selftests/bpf/prog_tests/linked_list.c new file +253 -0
253 lines not on this page · raw message
tools/testing/selftests/bpf/progs/linked_list.c new file +370 -0
370 lines not on this page · raw message
tools/testing/selftests/bpf/progs/linked_list.h new file +56 -0
56 lines not on this page · raw message
tools/testing/selftests/bpf/progs/linked_list_fail.c new file +581 -0
581 lines not on this page · raw message
Signature · 1 line
2.38.1
Kumar Kartikeya Dwivedi
maintainerPATCH v6 26/26 selftests/bpf: Add BTF sanity tests
In reply to Kumar Kartikeya DwivediPreparing the metadata for bpf_list_head involves a complicated parsing step and type resolution for the contained value. Ensure that corner cases are tested against and invalid specifications in source are duly rejected. Also include tests for incorrect ownership relationships in the BTF.
--- .../selftests/bpf/prog_tests/linked_list.c | 485 ++++++++++++++++++ 1 file changed, 485 insertions(+)
tools/testing/selftests/bpf/prog_tests/linked_list.c +485 -0
@@ -1,4 +1,7 @@// SPDX-License-Identifier: GPL-2.0 +#include <bpf/btf.h> +#include <test_btf.h> +#include <linux/btf.h> #include <test_progs.h> #include <network_helpers.h>
@@ -233,6 +236,487 @@ static void test_linked_list_success(int mode, bool leave_in_map)linked_list__destroy (skel); } +#define SPIN_LOCK 2 +#define LIST_HEAD 3 +#define LIST_NODE 4 + +static struct btf *init_btf (void ) +{ +int id, lid, hid, nid; +struct btf *btf; + + btf =btf__new_empty (); +if (!ASSERT_OK_PTR (btf,"btf__new_empty" )) +return NULL ; + id =btf__add_int (btf,"int" ,4 ,BTF_INT_SIGNED ); +if (!ASSERT_EQ (id,1 ,"btf__add_int" )) + goto end; + lid =btf__add_struct (btf,"bpf_spin_lock" ,4 ); +if (!ASSERT_EQ (lid,SPIN_LOCK ,"btf__add_struct bpf_spin_lock" )) + goto end; + hid =btf__add_struct (btf,"bpf_list_head" ,16 ); +if (!ASSERT_EQ (hid,LIST_HEAD ,"btf__add_struct bpf_list_head" )) + goto end; + nid =btf__add_struct (btf,"bpf_list_node" ,16 ); +if (!ASSERT_EQ (nid,LIST_NODE ,"btf__add_struct bpf_list_node" )) + goto end; +return btf; +end: +btf__free (btf); +return NULL ; +} + +static void test_btf (void ) +{ +struct btf *btf =NULL ; +int id, err; + +while (test__start_subtest ("btf: too many locks" )) { + btf =init_btf (); +if (!ASSERT_OK_PTR (btf,"init_btf" )) +break ; + id =btf__add_struct (btf,"foo" ,24 ); +if (!ASSERT_EQ (id,5 ,"btf__add_struct foo" )) +break ; + err =btf__add_field (btf,"a" ,SPIN_LOCK ,0 ,0 ); +if (!ASSERT_OK (err,"btf__add_struct foo::a" )) +break ; + err =btf__add_field (btf,"b" ,SPIN_LOCK ,32 ,0 ); +if (!ASSERT_OK (err,"btf__add_struct foo::a" )) +break ; + err =btf__add_field (btf,"c" ,LIST_HEAD ,64 ,0 ); +if (!ASSERT_OK (err,"btf__add_struct foo::a" )) +break ; + + err =btf__load_into_kernel (btf); +ASSERT_EQ (err, -E2BIG ,"check btf" ); +btf__free (btf); +break ; + } + +while (test__start_subtest ("btf: missing lock" )) { + btf =init_btf (); +if (!ASSERT_OK_PTR (btf,"init_btf" )) +break ; + id =btf__add_struct (btf,"foo" ,16 ); +if (!ASSERT_EQ (id,5 ,"btf__add_struct foo" )) +break ; + err =btf__add_field (btf,"a" ,LIST_HEAD ,0 ,0 ); +if (!ASSERT_OK (err,"btf__add_struct foo::a" )) +break ; + id =btf__add_decl_tag (btf,"contains:baz:a" ,5 ,0 ); +if (!ASSERT_EQ (id,6 ,"btf__add_decl_tag contains:baz:a" )) +break ; + id =btf__add_struct (btf,"baz" ,16 ); +if (!ASSERT_EQ (id,7 ,"btf__add_struct baz" )) +break ; + err =btf__add_field (btf,"a" ,LIST_NODE ,0 ,0 ); +if (!ASSERT_OK (err,"btf__add_field baz::a" )) +break ; + + err =btf__load_into_kernel (btf); +ASSERT_EQ (err, -EINVAL ,"check btf" ); +btf__free (btf); +break ; + } + +while (test__start_subtest ("btf: bad offset" )) { + btf =init_btf (); +if (!ASSERT_OK_PTR (btf,"init_btf" )) +break ; + id =btf__add_struct (btf,"foo" ,36 ); +if (!ASSERT_EQ (id,5 ,"btf__add_struct foo" )) +break ; + err =btf__add_field (btf,"a" ,LIST_HEAD ,0 ,0 ); +if (!ASSERT_OK (err,"btf__add_field foo::a" )) +break ; + err =btf__add_field (btf,"b" ,LIST_NODE ,0 ,0 ); +if (!ASSERT_OK (err,"btf__add_field foo::b" )) +break ; + err =btf__add_field (btf,"c" ,SPIN_LOCK ,0 ,0 ); +if (!ASSERT_OK (err,"btf__add_field foo::c" )) +break ; + id =btf__add_decl_tag (btf,"contains:foo:b" ,5 ,0 ); +if (!ASSERT_EQ (id,6 ,"btf__add_decl_tag contains:foo:b" )) +break ; + + err =btf__load_into_kernel (btf); +ASSERT_EQ (err, -EEXIST ,"check btf" ); +btf__free (btf); +break ; + } + +while (test__start_subtest ("btf: missing contains:" )) { + btf =init_btf (); +if (!ASSERT_OK_PTR (btf,"init_btf" )) +break ; + id =btf__add_struct (btf,"foo" ,24 ); +if (!ASSERT_EQ (id,5 ,"btf__add_struct foo" )) +break ; + err =btf__add_field (btf,"a" ,SPIN_LOCK ,0 ,0 ); +if (!ASSERT_OK (err,"btf__add_field foo::a" )) +break ; + err =btf__add_field (btf,"b" ,LIST_HEAD ,64 ,0 ); +if (!ASSERT_OK (err,"btf__add_field foo::b" )) +break ; + + err =btf__load_into_kernel (btf); +ASSERT_EQ (err, -EINVAL ,"check btf" ); +btf__free (btf); +break ; + } + +while (test__start_subtest ("btf: missing struct" )) { + btf =init_btf (); +if (!ASSERT_OK_PTR (btf,"init_btf" )) +break ; + id =btf__add_struct (btf,"foo" ,24 ); +if (!ASSERT_EQ (id,5 ,"btf__add_struct foo" )) +break ; + err =btf__add_field (btf,"a" ,SPIN_LOCK ,0 ,0 ); +if (!ASSERT_OK (err,"btf__add_field foo::a" )) +break ; + err =btf__add_field (btf,"b" ,LIST_HEAD ,64 ,0 ); +if (!ASSERT_OK (err,"btf__add_field foo::b" )) +break ; + id =btf__add_decl_tag (btf,"contains:bar:bar" ,5 ,1 ); +if (!ASSERT_EQ (id,6 ,"btf__add_decl_tag contains:bar:bar" )) +break ; + + err =btf__load_into_kernel (btf); +ASSERT_EQ (err, -ENOENT ,"check btf" ); +btf__free (btf); +break ; + } + +while (test__start_subtest ("btf: missing node" )) { + btf =init_btf (); +if (!ASSERT_OK_PTR (btf,"init_btf" )) +break ; + id =btf__add_struct (btf,"foo" ,24 ); +if (!ASSERT_EQ (id,5 ,"btf__add_struct foo" )) +break ; + err =btf__add_field (btf,"a" ,SPIN_LOCK ,0 ,0 ); +if (!ASSERT_OK (err,"btf__add_field foo::a" )) +break ; + err =btf__add_field (btf,"b" ,LIST_HEAD ,64 ,0 ); +if (!ASSERT_OK (err,"btf__add_field foo::b" )) +break ; + id =btf__add_decl_tag (btf,"contains:foo:c" ,5 ,1 ); +if (!ASSERT_EQ (id,6 ,"btf__add_decl_tag contains:foo:c" )) +break ; + + err =btf__load_into_kernel (btf); +btf__free (btf); +ASSERT_EQ (err, -ENOENT ,"check btf" ); +break ; + } + +while (test__start_subtest ("btf: node incorrect type" )) { + btf =init_btf (); +if (!ASSERT_OK_PTR (btf,"init_btf" )) +break ; + id =btf__add_struct (btf,"foo" ,20 ); +if (!ASSERT_EQ (id,5 ,"btf__add_struct foo" )) +break ; + err =btf__add_field (btf,"a" ,LIST_HEAD ,0 ,0 ); +if (!ASSERT_OK (err,"btf__add_field foo::a" )) +break ; + err =btf__add_field (btf,"b" ,SPIN_LOCK ,128 ,0 ); +if (!ASSERT_OK (err,"btf__add_field foo::b" )) +break ; + id =btf__add_decl_tag (btf,"contains:bar:a" ,5 ,0 ); +if (!ASSERT_EQ (id,6 ,"btf__add_decl_tag contains:bar:a" )) +break ; + id =btf__add_struct (btf,"bar" ,4 ); +if (!ASSERT_EQ (id,7 ,"btf__add_struct bar" )) +break ; + err =btf__add_field (btf,"a" ,SPIN_LOCK ,0 ,0 ); +if (!ASSERT_OK (err,"btf__add_field bar::a" )) +break ; + + err =btf__load_into_kernel (btf); +ASSERT_EQ (err, -EINVAL ,"check btf" ); +btf__free (btf); +break ; + } + +while (test__start_subtest ("btf: multiple bpf_list_node with name b" )) { + btf =init_btf (); +if (!ASSERT_OK_PTR (btf,"init_btf" )) +break ; + id =btf__add_struct (btf,"foo" ,52 ); +if (!ASSERT_EQ (id,5 ,"btf__add_struct foo" )) +break ; + err =btf__add_field (btf,"a" ,LIST_HEAD ,0 ,0 ); +if (!ASSERT_OK (err,"btf__add_field foo::a" )) +break ; + err =btf__add_field (btf,"b" ,LIST_NODE ,128 ,0 ); +if (!ASSERT_OK (err,"btf__add_field foo::b" )) +break ; + err =btf__add_field (btf,"b" ,LIST_NODE ,256 ,0 ); +if (!ASSERT_OK (err,"btf__add_field foo::c" )) +break ; + err =btf__add_field (btf,"d" ,SPIN_LOCK ,384 ,0 ); +if (!ASSERT_OK (err,"btf__add_field foo::d" )) +break ; + id =btf__add_decl_tag (btf,"contains:foo:b" ,5 ,0 ); +if (!ASSERT_EQ (id,6 ,"btf__add_decl_tag contains:foo:b" )) +break ; + + err =btf__load_into_kernel (btf); +ASSERT_EQ (err, -EINVAL ,"check btf" ); +btf__free (btf); +break ; + } + +while (test__start_subtest ("btf: owning | owned AA cycle" )) { + btf =init_btf (); +if (!ASSERT_OK_PTR (btf,"init_btf" )) +break ; + id =btf__add_struct (btf,"foo" ,36 ); +if (!ASSERT_EQ (id,5 ,"btf__add_struct foo" )) +break ; + err =btf__add_field (btf,"a" ,LIST_HEAD ,0 ,0 ); +if (!ASSERT_OK (err,"btf__add_field foo::a" )) +break ; + err =btf__add_field (btf,"b" ,LIST_NODE ,128 ,0 ); +if (!ASSERT_OK (err,"btf__add_field foo::b" )) +break ; + err =btf__add_field (btf,"c" ,SPIN_LOCK ,256 ,0 ); +if (!ASSERT_OK (err,"btf__add_field foo::c" )) +break ; + id =btf__add_decl_tag (btf,"contains:foo:b" ,5 ,0 ); +if (!ASSERT_EQ (id,6 ,"btf__add_decl_tag contains:foo:b" )) +break ; + + err =btf__load_into_kernel (btf); +ASSERT_EQ (err, -ELOOP ,"check btf" ); +btf__free (btf); +break ; + } + +while (test__start_subtest ("btf: owning | owned ABA cycle" )) { + btf =init_btf (); +if (!ASSERT_OK_PTR (btf,"init_btf" )) +break ; + id =btf__add_struct (btf,"foo" ,36 ); +if (!ASSERT_EQ (id,5 ,"btf__add_struct foo" )) +break ; + err =btf__add_field (btf,"a" ,LIST_HEAD ,0 ,0 ); +if (!ASSERT_OK (err,"btf__add_field foo::a" )) +break ; + err =btf__add_field (btf,"b" ,LIST_NODE ,128 ,0 ); +if (!ASSERT_OK (err,"btf__add_field foo::b" )) +break ; + err =btf__add_field (btf,"c" ,SPIN_LOCK ,256 ,0 ); +if (!ASSERT_OK (err,"btf__add_field foo::c" )) +break ; + id =btf__add_decl_tag (btf,"contains:bar:b" ,5 ,0 ); +if (!ASSERT_EQ (id,6 ,"btf__add_decl_tag contains:bar:b" )) +break ; + id =btf__add_struct (btf,"bar" ,36 ); +if (!ASSERT_EQ (id,7 ,"btf__add_struct bar" )) +break ; + err =btf__add_field (btf,"a" ,LIST_HEAD ,0 ,0 ); +if (!ASSERT_OK (err,"btf__add_field bar::a" )) +break ; + err =btf__add_field (btf,"b" ,LIST_NODE ,128 ,0 ); +if (!ASSERT_OK (err,"btf__add_field bar::b" )) +break ; + err =btf__add_field (btf,"c" ,SPIN_LOCK ,256 ,0 ); +if (!ASSERT_OK (err,"btf__add_field bar::c" )) +break ; + id =btf__add_decl_tag (btf,"contains:foo:b" ,7 ,0 ); +if (!ASSERT_EQ (id,8 ,"btf__add_decl_tag contains:foo:b" )) +break ; + + err =btf__load_into_kernel (btf); +ASSERT_EQ (err, -ELOOP ,"check btf" ); +btf__free (btf); +break ; + } + +while (test__start_subtest ("btf: owning -> owned" )) { + btf =init_btf (); +if (!ASSERT_OK_PTR (btf,"init_btf" )) +break ; + id =btf__add_struct (btf,"foo" ,20 ); +if (!ASSERT_EQ (id,5 ,"btf__add_struct foo" )) +break ; + err =btf__add_field (btf,"a" ,LIST_HEAD ,0 ,0 ); +if (!ASSERT_OK (err,"btf__add_field foo::a" )) +break ; + err =btf__add_field (btf,"b" ,SPIN_LOCK ,128 ,0 ); +if (!ASSERT_OK (err,"btf__add_field foo::b" )) +break ; + id =btf__add_decl_tag (btf,"contains:bar:a" ,5 ,0 ); +if (!ASSERT_EQ (id,6 ,"btf__add_decl_tag contains:bar:a" )) +break ; + id =btf__add_struct (btf,"bar" ,16 ); +if (!ASSERT_EQ (id,7 ,"btf__add_struct bar" )) +break ; + err =btf__add_field (btf,"a" ,LIST_NODE ,0 ,0 ); +if (!ASSERT_OK (err,"btf__add_field bar::a" )) +break ; + + err =btf__load_into_kernel (btf); +ASSERT_EQ (err,0 ,"check btf" ); +btf__free (btf); +break ; + } + +while (test__start_subtest ("btf: owning -> owning | owned -> owned" )) { + btf =init_btf (); +if (!ASSERT_OK_PTR (btf,"init_btf" )) +break ; + id =btf__add_struct (btf,"foo" ,20 ); +if (!ASSERT_EQ (id,5 ,"btf__add_struct foo" )) +break ; + err =btf__add_field (btf,"a" ,LIST_HEAD ,0 ,0 ); +if (!ASSERT_OK (err,"btf__add_field foo::a" )) +break ; + err =btf__add_field (btf,"b" ,SPIN_LOCK ,128 ,0 ); +if (!ASSERT_OK (err,"btf__add_field foo::b" )) +break ; + id =btf__add_decl_tag (btf,"contains:bar:b" ,5 ,0 ); +if (!ASSERT_EQ (id,6 ,"btf__add_decl_tag contains:bar:b" )) +break ; + id =btf__add_struct (btf,"bar" ,36 ); +if (!ASSERT_EQ (id,7 ,"btf__add_struct bar" )) +break ; + err =btf__add_field (btf,"a" ,LIST_HEAD ,0 ,0 ); +if (!ASSERT_OK (err,"btf__add_field bar::a" )) +break ; + err =btf__add_field (btf,"b" ,LIST_NODE ,128 ,0 ); +if (!ASSERT_OK (err,"btf__add_field bar::b" )) +break ; + err =btf__add_field (btf,"c" ,SPIN_LOCK ,256 ,0 ); +if (!ASSERT_OK (err,"btf__add_field bar::c" )) +break ; + id =btf__add_decl_tag (btf,"contains:baz:a" ,7 ,0 ); +if (!ASSERT_EQ (id,8 ,"btf__add_decl_tag contains:baz:a" )) +break ; + id =btf__add_struct (btf,"baz" ,16 ); +if (!ASSERT_EQ (id,9 ,"btf__add_struct baz" )) +break ; + err =btf__add_field (btf,"a" ,LIST_NODE ,0 ,0 ); +if (!ASSERT_OK (err,"btf__add_field baz:a" )) +break ; + + err =btf__load_into_kernel (btf); +ASSERT_EQ (err,0 ,"check btf" ); +btf__free (btf); +break ; + } + +while (test__start_subtest ("btf: owning | owned -> owning | owned -> owned" )) { + btf =init_btf (); +if (!ASSERT_OK_PTR (btf,"init_btf" )) +break ; + id =btf__add_struct (btf,"foo" ,36 ); +if (!ASSERT_EQ (id,5 ,"btf__add_struct foo" )) +break ; + err =btf__add_field (btf,"a" ,LIST_HEAD ,0 ,0 ); +if (!ASSERT_OK (err,"btf__add_field foo::a" )) +break ; + err =btf__add_field (btf,"b" ,LIST_NODE ,128 ,0 ); +if (!ASSERT_OK (err,"btf__add_field foo::b" )) +break ; + err =btf__add_field (btf,"c" ,SPIN_LOCK ,256 ,0 ); +if (!ASSERT_OK (err,"btf__add_field foo::c" )) +break ; + id =btf__add_decl_tag (btf,"contains:bar:b" ,5 ,0 ); +if (!ASSERT_EQ (id,6 ,"btf__add_decl_tag contains:bar:b" )) +break ; + id =btf__add_struct (btf,"bar" ,36 ); +if (!ASSERT_EQ (id,7 ,"btf__add_struct bar" )) +break ; + err =btf__add_field (btf,"a" ,LIST_HEAD ,0 ,0 ); +if (!ASSERT_OK (err,"btf__add_field bar:a" )) +break ; + err =btf__add_field (btf,"b" ,LIST_NODE ,128 ,0 ); +if (!ASSERT_OK (err,"btf__add_field bar:b" )) +break ; + err =btf__add_field (btf,"c" ,SPIN_LOCK ,256 ,0 ); +if (!ASSERT_OK (err,"btf__add_field bar:c" )) +break ; + id =btf__add_decl_tag (btf,"contains:baz:a" ,7 ,0 ); +if (!ASSERT_EQ (id,8 ,"btf__add_decl_tag contains:baz:a" )) +break ; + id =btf__add_struct (btf,"baz" ,16 ); +if (!ASSERT_EQ (id,9 ,"btf__add_struct baz" )) +break ; + err =btf__add_field (btf,"a" ,LIST_NODE ,0 ,0 ); +if (!ASSERT_OK (err,"btf__add_field baz:a" )) +break ; + + err =btf__load_into_kernel (btf); +ASSERT_EQ (err, -ELOOP ,"check btf" ); +btf__free (btf); +break ; + } + +while (test__start_subtest ("btf: owning -> owning | owned -> owning | owned -> owned" )) { + btf =init_btf (); +if (!ASSERT_OK_PTR (btf,"init_btf" )) +break ; + id =btf__add_struct (btf,"foo" ,20 ); +if (!ASSERT_EQ (id,5 ,"btf__add_struct foo" )) +break ; + err =btf__add_field (btf,"a" ,LIST_HEAD ,0 ,0 ); +if (!ASSERT_OK (err,"btf__add_field foo::a" )) +break ; + err =btf__add_field (btf,"b" ,SPIN_LOCK ,128 ,0 ); +if (!ASSERT_OK (err,"btf__add_field foo::b" )) +break ; + id =btf__add_decl_tag (btf,"contains:bar:b" ,5 ,0 ); +if (!ASSERT_EQ (id,6 ,"btf__add_decl_tag contains:bar:b" )) +break ; + id =btf__add_struct (btf,"bar" ,36 ); +if (!ASSERT_EQ (id,7 ,"btf__add_struct bar" )) +break ; + err =btf__add_field (btf,"a" ,LIST_HEAD ,0 ,0 ); +if (!ASSERT_OK (err,"btf__add_field bar::a" )) +break ; + err =btf__add_field (btf,"b" ,LIST_NODE ,128 ,0 ); +if (!ASSERT_OK (err,"btf__add_field bar::b" )) +break ; + err =btf__add_field (btf,"c" ,SPIN_LOCK ,256 ,0 ); +if (!ASSERT_OK (err,"btf__add_field bar::c" )) +break ; + id =btf__add_decl_tag (btf,"contains:baz:b" ,7 ,0 ); +if (!ASSERT_EQ (id,8 ,"btf__add_decl_tag" )) +break ; + id =btf__add_struct (btf,"baz" ,36 ); +if (!ASSERT_EQ (id,9 ,"btf__add_struct baz" )) +break ; + err =btf__add_field (btf,"a" ,LIST_HEAD ,0 ,0 ); +if (!ASSERT_OK (err,"btf__add_field bar::a" )) +break ; + err =btf__add_field (btf,"b" ,LIST_NODE ,128 ,0 ); +if (!ASSERT_OK (err,"btf__add_field bar::b" )) +break ; + err =btf__add_field (btf,"c" ,SPIN_LOCK ,256 ,0 ); +if (!ASSERT_OK (err,"btf__add_field bar::c" )) +break ; + id =btf__add_decl_tag (btf,"contains:bam:a" ,9 ,0 ); +if (!ASSERT_EQ (id,10 ,"btf__add_decl_tag contains:bam:a" )) +break ; + id =btf__add_struct (btf,"bam" ,16 ); +if (!ASSERT_EQ (id,11 ,"btf__add_struct bam" )) +break ; + err =btf__add_field (btf,"a" ,LIST_NODE ,0 ,0 ); +if (!ASSERT_OK (err,"btf__add_field bam::a" )) +break ; + + err =btf__load_into_kernel (btf); +ASSERT_EQ (err, -ELOOP ,"check btf" ); +btf__free (btf); +break ; + } +} +void test_linked_list (void ) {int i;
@@ -243,6 +727,7 @@ void test_linked_list(void)test_linked_list_fail_prog (linked_list_fail_tests[i].prog_name, linked_list_fail_tests[i].err_msg); } +test_btf ();test_linked_list_success (PUSH_POP , false);test_linked_list_success (PUSH_POP , true);test_linked_list_success (PUSH_POP_MULT , false);
Signature · 1 line
2.38.1
Dan Carpenter
build botRe: [PATCH bpf-next v6 11/26] bpf: Allow locking bpf_spin_lock in allocated objects
In reply to Kumar Kartikeya DwivediBCC: [email protected] CC: [email protected] In-Reply-To: <[email protected]> References: <[email protected]> TO: Kumar Kartikeya Dwivedi…
BCC: [email protected]
CC: [email protected]
In-Reply-To: <[email protected]>
References: <[email protected]>
TO: Kumar Kartikeya Dwivedi <[email protected]>
TO: [email protected]
CC: Alexei Starovoitov <[email protected]>
CC: Andrii Nakryiko <[email protected]>
CC: Daniel Borkmann <[email protected]>
CC: Martin KaFai Lau <[email protected]>
CC: Dave Marchevsky <[email protected]>
CC: Delyan Kratunov <[email protected]>
Hi Kumar,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on e5659e4e19e49f1eac58bb07ce8bc2d78a89fe65]
url: https://github.com/intel-lab-lkp/linux/commits/Kumar-Kartikeya-Dwivedi/Allocated-objects-BPF-linked-lists/20221112-033643 base: e5659e4e19e49f1eac58bb07ce8bc2d78a89fe65 patch link: https://lore.kernel.org/r/20221111193224.876706-12-memxor%40gmail.com patch subject: [PATCH bpf-next v6 11/26] bpf: Allow locking bpf_spin_lock in allocated objects
:::::: branch date: 2 days ago
:::::: commit date: 2 days ago
config: x86_64-randconfig-m001
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot <[email protected]>
| Reported-by: Dan Carpenter <[email protected]>
smatch warnings:kernel/bpf/verifier.c:5623 process_spin_lock() error: uninitialized symbol 'rec'.
vim +/rec +5623 kernel/bpf/verifier.c
d583691c47dc04 Kumar Kartikeya Dwivedi 2022-01-14 5568
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5569 /* Implementation details:
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5570 * bpf_map_lookup returns PTR_TO_MAP_VALUE_OR_NULL
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5571 * Two bpf_map_lookups (even with the same key) will have different reg->id.
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5572 * For traditional PTR_TO_MAP_VALUE the verifier clears reg->id after
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5573 * value_or_null->value transition, since the verifier only cares about
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5574 * the range of access to valid map value pointer and doesn't care about actual
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5575 * address of the map element.
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5576 * For maps with 'struct bpf_spin_lock' inside map value the verifier keeps
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5577 * reg->id > 0 after value_or_null->value transition. By doing so
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5578 * two bpf_map_lookups will be considered two different pointers that
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5579 * point to different bpf_spin_locks.
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5580 * The verifier allows taking only one bpf_spin_lock at a time to avoid
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5581 * dead-locks.
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5582 * Since only one bpf_spin_lock is allowed the checks are simpler than
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5583 * reg_is_refcounted() logic. The verifier needs to remember only
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5584 * one spin_lock instead of array of acquired_refs.
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5585 * cur_state->active_spin_lock remembers which map value element got locked
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5586 * and clears it after bpf_spin_unlock.
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5587 */
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5588 static int process_spin_lock(struct bpf_verifier_env *env, int regno,
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5589 bool is_lock)
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5590 {
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5591 struct bpf_reg_state *regs = cur_regs(env), *reg = ®s[regno];
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5592 struct bpf_verifier_state *cur = env->cur_state;
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5593 bool is_const = tnum_is_const(reg->var_off);
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5594 u64 val = reg->var_off.value;
425ce908da14d5 Kumar Kartikeya Dwivedi 2022-11-12 5595 struct bpf_map *map = NULL;
425ce908da14d5 Kumar Kartikeya Dwivedi 2022-11-12 5596 struct btf_record *rec;
425ce908da14d5 Kumar Kartikeya Dwivedi 2022-11-12 5597 struct btf *btf = NULL;
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5598
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5599 if (!is_const) {
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5600 verbose(env,
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5601 "R%d doesn't have constant offset. bpf_spin_lock has to be at the constant offset\n",
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5602 regno);
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5603 return -EINVAL;
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5604 }
425ce908da14d5 Kumar Kartikeya Dwivedi 2022-11-12 5605 if (reg->type == PTR_TO_MAP_VALUE) {
425ce908da14d5 Kumar Kartikeya Dwivedi 2022-11-12 5606 map = reg->map_ptr;
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5607 if (!map->btf) {
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5608 verbose(env,
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5609 "map '%s' has to have BTF in order to use bpf_spin_lock\n",
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5610 map->name);
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5611 return -EINVAL;
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5612 }
425ce908da14d5 Kumar Kartikeya Dwivedi 2022-11-12 5613 rec = map->record;
425ce908da14d5 Kumar Kartikeya Dwivedi 2022-11-12 5614 } else {
425ce908da14d5 Kumar Kartikeya Dwivedi 2022-11-12 5615 struct btf_struct_meta *meta;
425ce908da14d5 Kumar Kartikeya Dwivedi 2022-11-12 5616
425ce908da14d5 Kumar Kartikeya Dwivedi 2022-11-12 5617 btf = reg->btf;
425ce908da14d5 Kumar Kartikeya Dwivedi 2022-11-12 5618 meta = btf_find_struct_meta(reg->btf, reg->btf_id);
425ce908da14d5 Kumar Kartikeya Dwivedi 2022-11-12 5619 if (meta)
425ce908da14d5 Kumar Kartikeya Dwivedi 2022-11-12 5620 rec = meta->record;
425ce908da14d5 Kumar Kartikeya Dwivedi 2022-11-12 5621 }
425ce908da14d5 Kumar Kartikeya Dwivedi 2022-11-12 5622
425ce908da14d5 Kumar Kartikeya Dwivedi 2022-11-12 @5623 if (!btf_record_has_field(rec, BPF_SPIN_LOCK)) {
425ce908da14d5 Kumar Kartikeya Dwivedi 2022-11-12 5624 verbose(env, "%s '%s' has no valid bpf_spin_lock\n", map ? "map" : "local",
425ce908da14d5 Kumar Kartikeya Dwivedi 2022-11-12 5625 map ? map->name : "kptr");
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5626 return -EINVAL;
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5627 }
425ce908da14d5 Kumar Kartikeya Dwivedi 2022-11-12 5628 if (rec->spin_lock_off != val + reg->off) {
db559117828d24 Kumar Kartikeya Dwivedi 2022-11-04 5629 verbose(env, "off %lld doesn't point to 'struct bpf_spin_lock' that is at %d\n",
425ce908da14d5 Kumar Kartikeya Dwivedi 2022-11-12 5630 val + reg->off, rec->spin_lock_off);
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5631 return -EINVAL;
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5632 }
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5633 if (is_lock) {
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5634 if (cur->active_spin_lock) {
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5635 verbose(env,
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5636 "Locking two bpf_spin_locks are not allowed\n");
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5637 return -EINVAL;
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5638 }
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5639 cur->active_spin_lock = reg->id;
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5640 } else {
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5641 if (!cur->active_spin_lock) {
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5642 verbose(env, "bpf_spin_unlock without taking a lock\n");
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5643 return -EINVAL;
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5644 }
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5645 if (cur->active_spin_lock != reg->id) {
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5646 verbose(env, "bpf_spin_unlock of different lock\n");
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5647 return -EINVAL;
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5648 }
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5649 cur->active_spin_lock = 0;
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5650 }
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5651 return 0;
d83525ca62cf8e Alexei Starovoitov 2019-01-31 5652 }d83525ca62cf8e Alexei Starovoitov 2019-01-31 5653
Signature · 2 lines
0-DAY CI Kernel Test Service https://01.org/lkp
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 6.1.0-rc3 Kernel Configuration
#CONFIG_CC_VERSION_TEXT="gcc-11 (Debian 11.3.0-8) 11.3.0" CONFIG_CC_IS_GCC=yCONFIG_GCC_VERSION=110300 CONFIG_CLANG_VERSION=0CONFIG_AS_IS_GNU=yCONFIG_AS_VERSION=23900CONFIG_LD_IS_BFD=yCONFIG_LD_VERSION=23900CONFIG_LLD_VERSION=0CONFIG_CC_CAN_LINK=y CONFIG_CC_CAN_LINK_STATIC=y CONFIG_CC_HAS_ASM_GOTO_OUTPUT=y CONFIG_CC_HAS_ASM_INLINE=y CONFIG_CC_HAS_NO_PROFILE_FN_ATTR=y CONFIG_PAHOLE_VERSION=123CONFIG_CONSTRUCTORS=yCONFIG_IRQ_WORK=yCONFIG_BUILDTIME_TABLE_SORT=y CONFIG_THREAD_INFO_IN_TASK=y
#
# General setup
#CONFIG_BROKEN_ON_SMP=y CONFIG_INIT_ENV_ARG_LIMIT=32
# CONFIG_COMPILE_TEST is not set
# CONFIG_WERROR is not set CONFIG_LOCALVERSION="" CONFIG_LOCALVERSION_AUTO=y CONFIG_BUILD_SALT="" CONFIG_HAVE_KERNEL_GZIP=y CONFIG_HAVE_KERNEL_BZIP2=y CONFIG_HAVE_KERNEL_LZMA=y CONFIG_HAVE_KERNEL_XZ=y CONFIG_HAVE_KERNEL_LZO=y CONFIG_HAVE_KERNEL_LZ4=y CONFIG_HAVE_KERNEL_ZSTD=y
# CONFIG_KERNEL_GZIP is not set
# CONFIG_KERNEL_BZIP2 is not set
# CONFIG_KERNEL_LZMA is not set
# CONFIG_KERNEL_XZ is not set
# CONFIG_KERNEL_LZO is not set
# CONFIG_KERNEL_LZ4 is not set CONFIG_KERNEL_ZSTD=y CONFIG_DEFAULT_INIT="" CONFIG_DEFAULT_HOSTNAME="(none)"
# CONFIG_SYSVIPC is not set
# CONFIG_POSIX_MQUEUE is not set
# CONFIG_WATCH_QUEUE is not set
# CONFIG_CROSS_MEMORY_ATTACH is not set CONFIG_USELIB=y
# CONFIG_AUDIT is not set CONFIG_HAVE_ARCH_AUDITSYSCALL=y
#
# IRQ subsystem
#CONFIG_GENERIC_IRQ_PROBE=y CONFIG_GENERIC_IRQ_SHOW=y CONFIG_GENERIC_IRQ_INJECTION=y CONFIG_HARDIRQS_SW_RESEND=y CONFIG_IRQ_DOMAIN=yCONFIG_IRQ_SIM=y CONFIG_IRQ_DOMAIN_HIERARCHY=y CONFIG_IRQ_MSI_IOMMU=y CONFIG_GENERIC_IRQ_MATRIX_ALLOCATOR=y CONFIG_GENERIC_IRQ_RESERVATION_MODE=y CONFIG_IRQ_FORCED_THREADING=y CONFIG_SPARSE_IRQ=y CONFIG_GENERIC_IRQ_DEBUGFS=y
# end of IRQ subsystem
CONFIG_CLOCKSOURCE_WATCHDOG=y CONFIG_ARCH_CLOCKSOURCE_INIT=y CONFIG_CLOCKSOURCE_VALIDATE_LAST_CYCLE=y CONFIG_GENERIC_TIME_VSYSCALL=y CONFIG_GENERIC_CLOCKEVENTS=y CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y CONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=y CONFIG_GENERIC_CMOS_UPDATE=y CONFIG_HAVE_POSIX_CPU_TIMERS_TASK_WORK=y
#
# Timers subsystem
#CONFIG_HZ_PERIODIC=y
# CONFIG_NO_HZ_IDLE is not set
# CONFIG_NO_HZ is not set
# CONFIG_HIGH_RES_TIMERS is not set CONFIG_CLOCKSOURCE_WATCHDOG_MAX_SKEW_US=100
# end of Timers subsystem
CONFIG_BPF=yCONFIG_HAVE_EBPF_JIT=y CONFIG_ARCH_WANT_DEFAULT_BPF_JIT=y
#
# BPF subsystem
#CONFIG_BPF_SYSCALL=y
# CONFIG_BPF_JIT is not setCONFIG_BPF_UNPRIV_DEFAULT_OFF=y
# CONFIG_BPF_PRELOAD is not set
# end of BPF subsystem
CONFIG_PREEMPT_VOLUNTARY_BUILD=y
# CONFIG_PREEMPT_NONE is not set CONFIG_PREEMPT_VOLUNTARY=y
# CONFIG_PREEMPT is not set CONFIG_PREEMPT_COUNT=y
# CONFIG_PREEMPT_DYNAMIC is not set
#
# CPU/Task time and stats accounting
#CONFIG_TICK_CPU_ACCOUNTING=y
# CONFIG_VIRT_CPU_ACCOUNTING_GEN is not set CONFIG_IRQ_TIME_ACCOUNTING=y
# CONFIG_BSD_PROCESS_ACCT is not set
# CONFIG_TASKSTATS is not set
# CONFIG_PSI is not set
# end of CPU/Task time and stats accounting
#
# RCU Subsystem
#CONFIG_TINY_RCU=yCONFIG_RCU_EXPERT=yCONFIG_SRCU=yCONFIG_TINY_SRCU=yCONFIG_TASKS_RCU_GENERIC=yCONFIG_FORCE_TASKS_RCU=yCONFIG_TASKS_RCU=yCONFIG_FORCE_TASKS_RUDE_RCU=yCONFIG_TASKS_RUDE_RCU=yCONFIG_FORCE_TASKS_TRACE_RCU=yCONFIG_TASKS_TRACE_RCU=yCONFIG_RCU_NEED_SEGCBLIST=yCONFIG_TASKS_TRACE_RCU_READ_MB=y
# end of RCU Subsystem
CONFIG_IKCONFIG=y CONFIG_IKCONFIG_PROC=y CONFIG_IKHEADERS=y CONFIG_LOG_BUF_SHIFT=20 CONFIG_PRINTK_SAFE_LOG_BUF_SHIFT=13
# CONFIG_PRINTK_INDEX is not set CONFIG_HAVE_UNSTABLE_SCHED_CLOCK=y
#
# Scheduler features
#
# end of Scheduler features
CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=y CONFIG_ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH=y CONFIG_CC_HAS_INT128=y CONFIG_CC_IMPLICIT_FALLTHROUGH="-Wimplicit-fallthrough=5" CONFIG_GCC12_NO_ARRAY_BOUNDS=y CONFIG_ARCH_SUPPORTS_INT128=yCONFIG_CGROUPS=yCONFIG_PAGE_COUNTER=y
# CONFIG_CGROUP_FAVOR_DYNMODS is not set CONFIG_MEMCG=y
# CONFIG_CGROUP_SCHED is not set
# CONFIG_CGROUP_PIDS is not set CONFIG_CGROUP_RDMA=yCONFIG_CGROUP_FREEZER=y
# CONFIG_CGROUP_HUGETLB is not set
# CONFIG_CGROUP_DEVICE is not set CONFIG_CGROUP_CPUACCT=y
# CONFIG_CGROUP_PERF is not set
# CONFIG_CGROUP_BPF is not set
# CONFIG_CGROUP_MISC is not set
# CONFIG_CGROUP_DEBUG is not set
# CONFIG_NAMESPACES is not set CONFIG_CHECKPOINT_RESTORE=y
# CONFIG_SCHED_AUTOGROUP is not set
# CONFIG_SYSFS_DEPRECATED is not set
# CONFIG_RELAY is not set CONFIG_BLK_DEV_INITRD=y CONFIG_INITRAMFS_SOURCE=""CONFIG_RD_GZIP=yCONFIG_RD_BZIP2=y
# CONFIG_RD_LZMA is not setCONFIG_RD_XZ=y
# CONFIG_RD_LZO is not set
# CONFIG_RD_LZ4 is not setCONFIG_RD_ZSTD=y
# CONFIG_BOOT_CONFIG is not set CONFIG_INITRAMFS_PRESERVE_MTIME=y CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set CONFIG_LD_ORPHAN_WARN=yCONFIG_SYSCTL=yCONFIG_HAVE_UID16=y CONFIG_SYSCTL_EXCEPTION_TRACE=y CONFIG_HAVE_PCSPKR_PLATFORM=yCONFIG_EXPERT=yCONFIG_UID16=yCONFIG_MULTIUSER=y
# CONFIG_SGETMASK_SYSCALL is not set
# CONFIG_SYSFS_SYSCALL is not set CONFIG_FHANDLE=y
# CONFIG_POSIX_TIMERS is not setCONFIG_PRINTK=yCONFIG_BUG=yCONFIG_ELF_CORE=y
# CONFIG_PCSPKR_PLATFORM is not set CONFIG_BASE_FULL=yCONFIG_FUTEX=yCONFIG_FUTEX_PI=yCONFIG_EPOLL=yCONFIG_SIGNALFD=yCONFIG_TIMERFD=yCONFIG_EVENTFD=yCONFIG_SHMEM=y
# CONFIG_AIO is not setCONFIG_IO_URING=yCONFIG_ADVISE_SYSCALLS=y
# CONFIG_MEMBARRIER is not setCONFIG_KALLSYMS=yCONFIG_KALLSYMS_ALL=y CONFIG_KALLSYMS_BASE_RELATIVE=y CONFIG_ARCH_HAS_MEMBARRIER_SYNC_CORE=y CONFIG_KCMP=y
# CONFIG_RSEQ is not setCONFIG_EMBEDDED=yCONFIG_HAVE_PERF_EVENTS=y CONFIG_PERF_USE_VMALLOC=y
# CONFIG_PC104 is not set
#
# Kernel Performance Events And Counters #CONFIG_PERF_EVENTS=y CONFIG_DEBUG_PERF_USE_VMALLOC=y
# end of Kernel Performance Events And Counters
CONFIG_SYSTEM_DATA_VERIFICATION=y
# CONFIG_PROFILING is not set CONFIG_TRACEPOINTS=y
# end of General setup
CONFIG_64BIT=yCONFIG_X86_64=yCONFIG_X86=y CONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf64-x86-64" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_MMU=y CONFIG_ARCH_MMAP_RND_BITS_MIN=28 CONFIG_ARCH_MMAP_RND_BITS_MAX=32 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8 CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16 CONFIG_GENERIC_BUG=y CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_NR_GPIO=1024 CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_AUDIT_ARCH=y CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=y CONFIG_PGTABLE_LEVELS=4 CONFIG_CC_HAS_SANE_STACKPROTECTOR=y
#
# Processor type and features
#
# CONFIG_SMP is not set CONFIG_X86_FEATURE_NAMES=y
# CONFIG_X86_X2APIC is not set CONFIG_X86_MPPARSE=y
# CONFIG_GOLDFISH is not set
# CONFIG_X86_CPU_RESCTRL is not set CONFIG_X86_EXTENDED_PLATFORM=y
# CONFIG_X86_GOLDFISH is not set
# CONFIG_X86_INTEL_MID is not set
# CONFIG_X86_INTEL_LPSS is not set
# CONFIG_X86_AMD_PLATFORM_DEVICE is not set # CONFIG_IOSF_MBI is not set
# CONFIG_SCHED_OMIT_FRAME_POINTER is not set CONFIG_HYPERVISOR_GUEST=y CONFIG_PARAVIRT=y
# CONFIG_PARAVIRT_DEBUG is not set CONFIG_X86_HV_CALLBACK_VECTOR=y
# CONFIG_XEN is not set CONFIG_KVM_GUEST=y CONFIG_ARCH_CPUIDLE_HALTPOLL=y
# CONFIG_PVH is not set
# CONFIG_PARAVIRT_TIME_ACCOUNTING is not set CONFIG_PARAVIRT_CLOCK=y
# CONFIG_JAILHOUSE_GUEST is not set
# CONFIG_ACRN_GUEST is not set
# CONFIG_MK8 is not set
# CONFIG_MPSC is not set
# CONFIG_MCORE2 is not set
# CONFIG_MATOM is not set CONFIG_GENERIC_CPU=y CONFIG_X86_INTERNODE_CACHE_SHIFT=6 CONFIG_X86_L1_CACHE_SHIFT=6 CONFIG_X86_TSC=y CONFIG_X86_CMPXCHG64=y CONFIG_X86_CMOV=y CONFIG_X86_MINIMUM_CPU_FAMILY=64 CONFIG_X86_DEBUGCTLMSR=y CONFIG_IA32_FEAT_CTL=y CONFIG_X86_VMX_FEATURE_NAMES=y CONFIG_PROCESSOR_SELECT=y CONFIG_CPU_SUP_INTEL=y
# CONFIG_CPU_SUP_AMD is not set
# CONFIG_CPU_SUP_HYGON is not set
# CONFIG_CPU_SUP_CENTAUR is not set
# CONFIG_CPU_SUP_ZHAOXIN is not set CONFIG_HPET_TIMER=y CONFIG_HPET_EMULATE_RTC=yCONFIG_DMI=y CONFIG_NR_CPUS_RANGE_BEGIN=1 CONFIG_NR_CPUS_RANGE_END=1 CONFIG_NR_CPUS_DEFAULT=1 CONFIG_NR_CPUS=1CONFIG_UP_LATE_INIT=y CONFIG_X86_LOCAL_APIC=y CONFIG_X86_IO_APIC=y CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS=y # CONFIG_X86_MCE is not set
#
# Performance monitoring
#CONFIG_PERF_EVENTS_INTEL_UNCORE=y CONFIG_PERF_EVENTS_INTEL_RAPL=y CONFIG_PERF_EVENTS_INTEL_CSTATE=y
# end of Performance monitoring
CONFIG_X86_VSYSCALL_EMULATION=y
# CONFIG_X86_IOPL_IOPERM is not set
# CONFIG_MICROCODE is not setCONFIG_X86_MSR=yCONFIG_X86_CPUID=y
# CONFIG_X86_5LEVEL is not set CONFIG_X86_DIRECT_GBPAGES=y
# CONFIG_X86_CPA_STATISTICS is not set CONFIG_ARCH_SPARSEMEM_ENABLE=y CONFIG_ARCH_SPARSEMEM_DEFAULT=y CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000 CONFIG_X86_CHECK_BIOS_CORRUPTION=y
# CONFIG_X86_BOOTPARAM_MEMORY_CORRUPTION_CHECK is not set CONFIG_MTRR=yCONFIG_MTRR_SANITIZER=y CONFIG_MTRR_SANITIZER_ENABLE_DEFAULT=0 CONFIG_MTRR_SANITIZER_SPARE_REG_NR_DEFAULT=1
# CONFIG_X86_PAT is not set
# CONFIG_X86_UMIP is not setCONFIG_CC_HAS_IBT=y
# CONFIG_X86_KERNEL_IBT is not set
# CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS is not set CONFIG_X86_INTEL_TSX_MODE_OFF=y
# CONFIG_X86_INTEL_TSX_MODE_ON is not set
# CONFIG_X86_INTEL_TSX_MODE_AUTO is not set CONFIG_EFI=yCONFIG_EFI_STUB=y
# CONFIG_EFI_MIXED is not set
# CONFIG_HZ_100 is not setCONFIG_HZ_250=y
# CONFIG_HZ_300 is not set
# CONFIG_HZ_1000 is not setCONFIG_HZ=250CONFIG_KEXEC=yCONFIG_KEXEC_FILE=y CONFIG_ARCH_HAS_KEXEC_PURGATORY=y CONFIG_KEXEC_SIG=yCONFIG_KEXEC_SIG_FORCE=y
# CONFIG_CRASH_DUMP is not set CONFIG_PHYSICAL_START=0x1000000 CONFIG_RELOCATABLE=y
# CONFIG_RANDOMIZE_BASE is not set CONFIG_PHYSICAL_ALIGN=0x200000 CONFIG_COMPAT_VDSO=y CONFIG_LEGACY_VSYSCALL_XONLY=y
# CONFIG_LEGACY_VSYSCALL_NONE is not set
# CONFIG_CMDLINE_BOOL is not set
# CONFIG_MODIFY_LDT_SYSCALL is not set CONFIG_STRICT_SIGALTSTACK_SIZE=y CONFIG_HAVE_LIVEPATCH=y
# end of Processor type and features
CONFIG_CC_HAS_SLS=y CONFIG_CC_HAS_RETURN_THUNK=y CONFIG_SPECULATION_MITIGATIONS=y
# CONFIG_PAGE_TABLE_ISOLATION is not set CONFIG_RETPOLINE=yCONFIG_RETHUNK=y CONFIG_CPU_IBRS_ENTRY=y
# CONFIG_SLS is not set CONFIG_ARCH_HAS_ADD_PAGES=y CONFIG_ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE=y
#
# Power management and ACPI options
#CONFIG_SUSPEND=y CONFIG_SUSPEND_FREEZER=y
# CONFIG_SUSPEND_SKIP_SYNC is not set CONFIG_PM_SLEEP=y
# CONFIG_PM_AUTOSLEEP is not set
# CONFIG_PM_USERSPACE_AUTOSLEEP is not set # CONFIG_PM_WAKELOCKS is not set CONFIG_PM=y
# CONFIG_PM_DEBUG is not set CONFIG_PM_CLK=y CONFIG_WQ_POWER_EFFICIENT_DEFAULT=y CONFIG_ARCH_SUPPORTS_ACPI=y CONFIG_ACPI=y CONFIG_ACPI_LEGACY_TABLES_LOOKUP=y CONFIG_ARCH_MIGHT_HAVE_ACPI_PDC=y CONFIG_ACPI_SYSTEM_POWER_STATES_SUPPORT=y # CONFIG_ACPI_DEBUGGER is not set CONFIG_ACPI_SPCR_TABLE=y CONFIG_ACPI_FPDT=yCONFIG_ACPI_LPIT=yCONFIG_ACPI_SLEEP=y CONFIG_ACPI_REV_OVERRIDE_POSSIBLE=y CONFIG_ACPI_EC_DEBUGFS=y CONFIG_ACPI_AC=yCONFIG_ACPI_BATTERY=y CONFIG_ACPI_BUTTON=yCONFIG_ACPI_TAD=y
# CONFIG_ACPI_DOCK is not set
# CONFIG_ACPI_PROCESSOR is not set CONFIG_ACPI_CUSTOM_DSDT_FILE="" CONFIG_ARCH_HAS_ACPI_TABLE_UPGRADE=y CONFIG_ACPI_TABLE_UPGRADE=y
# CONFIG_ACPI_DEBUG is not set
# CONFIG_ACPI_PCI_SLOT is not set
# CONFIG_ACPI_CONTAINER is not set CONFIG_ACPI_HOTPLUG_IOAPIC=y CONFIG_ACPI_SBS=yCONFIG_ACPI_HED=y
# CONFIG_ACPI_CUSTOM_METHOD is not set CONFIG_ACPI_BGRT=y
# CONFIG_ACPI_REDUCED_HARDWARE_ONLY is not set CONFIG_HAVE_ACPI_APEI=y CONFIG_HAVE_ACPI_APEI_NMI=y CONFIG_ACPI_APEI=y CONFIG_ACPI_APEI_GHES=y CONFIG_ACPI_APEI_EINJ=y CONFIG_ACPI_APEI_ERST_DEBUG=y
# CONFIG_ACPI_DPTF is not set CONFIG_ACPI_CONFIGFS=y
# CONFIG_ACPI_PFRUT is not set
# CONFIG_PMIC_OPREGION is not set
# CONFIG_TPS68470_PMIC_OPREGION is not set CONFIG_ACPI_VIOT=yCONFIG_ACPI_PRMT=y CONFIG_X86_PM_TIMER=y
#
# CPU Frequency scaling
#
# CONFIG_CPU_FREQ is not set
# end of CPU Frequency scaling
#
# CPU Idle
#
# CONFIG_CPU_IDLE is not set
# end of CPU Idle # end of Power management and ACPI options
#
# Bus options (PCI etc.)
#CONFIG_PCI_DIRECT=y CONFIG_PCI_MMCONFIG=y CONFIG_MMCONF_FAM10H=y
# CONFIG_PCI_CNB20LE_QUIRK is not set # CONFIG_ISA_BUS is not set
# CONFIG_ISA_DMA_API is not set
# end of Bus options (PCI etc.)
#
# Binary Emulations
#CONFIG_IA32_EMULATION=y
# CONFIG_X86_X32_ABI is not set CONFIG_COMPAT_32=yCONFIG_COMPAT=y CONFIG_COMPAT_FOR_U64_ALIGNMENT=y
# end of Binary Emulations
CONFIG_HAVE_KVM=yCONFIG_VIRTUALIZATION=yCONFIG_AS_AVX512=yCONFIG_AS_SHA1_NI=yCONFIG_AS_SHA256_NI=yCONFIG_AS_TPAUSE=y
#
# General architecture-dependent options #CONFIG_CRASH_CORE=y CONFIG_KEXEC_CORE=y CONFIG_GENERIC_ENTRY=y CONFIG_KPROBES=y
# CONFIG_JUMP_LABEL is not set
# CONFIG_STATIC_CALL_SELFTEST is not set CONFIG_OPTPROBES=yCONFIG_UPROBES=y CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y CONFIG_ARCH_USE_BUILTIN_BSWAP=y CONFIG_KRETPROBES=y CONFIG_KRETPROBE_ON_RETHOOK=y CONFIG_HAVE_IOREMAP_PROT=y CONFIG_HAVE_KPROBES=y CONFIG_HAVE_KRETPROBES=y CONFIG_HAVE_OPTPROBES=y CONFIG_HAVE_KPROBES_ON_FTRACE=y CONFIG_ARCH_CORRECT_STACKTRACE_ON_KRETPROBE=y CONFIG_HAVE_FUNCTION_ERROR_INJECTION=y CONFIG_HAVE_NMI=y CONFIG_TRACE_IRQFLAGS_SUPPORT=y CONFIG_TRACE_IRQFLAGS_NMI_SUPPORT=y CONFIG_HAVE_ARCH_TRACEHOOK=y CONFIG_HAVE_DMA_CONTIGUOUS=y CONFIG_GENERIC_SMP_IDLE_THREAD=y CONFIG_ARCH_HAS_FORTIFY_SOURCE=y CONFIG_ARCH_HAS_SET_MEMORY=y CONFIG_ARCH_HAS_SET_DIRECT_MAP=y CONFIG_HAVE_ARCH_THREAD_STRUCT_WHITELIST=y CONFIG_ARCH_WANTS_DYNAMIC_TASK_STRUCT=y CONFIG_ARCH_WANTS_NO_INSTR=y CONFIG_HAVE_ASM_MODVERSIONS=y CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y CONFIG_HAVE_RSEQ=yCONFIG_HAVE_RUST=y CONFIG_HAVE_FUNCTION_ARG_ACCESS_API=y CONFIG_HAVE_HW_BREAKPOINT=y CONFIG_HAVE_MIXED_BREAKPOINTS_REGS=y CONFIG_HAVE_USER_RETURN_NOTIFIER=y CONFIG_HAVE_PERF_EVENTS_NMI=y CONFIG_HAVE_HARDLOCKUP_DETECTOR_PERF=y CONFIG_HAVE_PERF_REGS=y CONFIG_HAVE_PERF_USER_STACK_DUMP=y CONFIG_HAVE_ARCH_JUMP_LABEL=y CONFIG_HAVE_ARCH_JUMP_LABEL_RELATIVE=y CONFIG_MMU_GATHER_TABLE_FREE=y CONFIG_MMU_GATHER_RCU_TABLE_FREE=y CONFIG_MMU_GATHER_MERGE_VMAS=y CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=y CONFIG_HAVE_CMPXCHG_LOCAL=y CONFIG_HAVE_CMPXCHG_DOUBLE=y CONFIG_ARCH_WANT_COMPAT_IPC_PARSE_VERSION=y CONFIG_ARCH_WANT_OLD_COMPAT_IPC=y CONFIG_HAVE_ARCH_SECCOMP=y CONFIG_HAVE_ARCH_SECCOMP_FILTER=y CONFIG_SECCOMP=y CONFIG_SECCOMP_FILTER=y
# CONFIG_SECCOMP_CACHE_DEBUG is not set CONFIG_HAVE_ARCH_STACKLEAK=y CONFIG_HAVE_STACKPROTECTOR=y CONFIG_STACKPROTECTOR=y
# CONFIG_STACKPROTECTOR_STRONG is not set CONFIG_ARCH_SUPPORTS_LTO_CLANG=y CONFIG_ARCH_SUPPORTS_LTO_CLANG_THIN=y CONFIG_LTO_NONE=y CONFIG_ARCH_SUPPORTS_CFI_CLANG=y CONFIG_HAVE_ARCH_WITHIN_STACK_FRAMES=y CONFIG_HAVE_CONTEXT_TRACKING_USER=y CONFIG_HAVE_CONTEXT_TRACKING_USER_OFFSTACK=y CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y CONFIG_HAVE_IRQ_TIME_ACCOUNTING=y CONFIG_HAVE_MOVE_PUD=y CONFIG_HAVE_MOVE_PMD=y CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE=y CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD=y CONFIG_HAVE_ARCH_HUGE_VMAP=y CONFIG_HAVE_ARCH_HUGE_VMALLOC=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_HAVE_ARCH_SOFT_DIRTY=y CONFIG_HAVE_MOD_ARCH_SPECIFIC=y CONFIG_MODULES_USE_ELF_RELA=y CONFIG_HAVE_IRQ_EXIT_ON_IRQ_STACK=y CONFIG_HAVE_SOFTIRQ_ON_OWN_STACK=y CONFIG_SOFTIRQ_ON_OWN_STACK=y CONFIG_ARCH_HAS_ELF_RANDOMIZE=y CONFIG_HAVE_ARCH_MMAP_RND_BITS=y CONFIG_HAVE_EXIT_THREAD=y CONFIG_ARCH_MMAP_RND_BITS=28 CONFIG_HAVE_ARCH_MMAP_RND_COMPAT_BITS=y CONFIG_ARCH_MMAP_RND_COMPAT_BITS=8 CONFIG_HAVE_ARCH_COMPAT_MMAP_BASES=y CONFIG_PAGE_SIZE_LESS_THAN_64KB=y CONFIG_PAGE_SIZE_LESS_THAN_256KB=y CONFIG_HAVE_OBJTOOL=y CONFIG_HAVE_JUMP_LABEL_HACK=y CONFIG_HAVE_NOINSTR_HACK=y CONFIG_HAVE_NOINSTR_VALIDATION=y CONFIG_HAVE_UACCESS_VALIDATION=y CONFIG_HAVE_STACK_VALIDATION=y CONFIG_HAVE_RELIABLE_STACKTRACE=y CONFIG_ISA_BUS_API=y CONFIG_OLD_SIGSUSPEND3=y CONFIG_COMPAT_OLD_SIGACTION=y CONFIG_COMPAT_32BIT_TIME=y CONFIG_HAVE_ARCH_VMAP_STACK=y
# CONFIG_VMAP_STACK is not set CONFIG_HAVE_ARCH_RANDOMIZE_KSTACK_OFFSET=y CONFIG_RANDOMIZE_KSTACK_OFFSET=y CONFIG_RANDOMIZE_KSTACK_OFFSET_DEFAULT=y CONFIG_ARCH_HAS_STRICT_KERNEL_RWX=y CONFIG_STRICT_KERNEL_RWX=y CONFIG_ARCH_HAS_STRICT_MODULE_RWX=y CONFIG_STRICT_MODULE_RWX=y CONFIG_HAVE_ARCH_PREL32_RELOCATIONS=y CONFIG_ARCH_USE_MEMREMAP_PROT=y CONFIG_LOCK_EVENT_COUNTS=y CONFIG_ARCH_HAS_MEM_ENCRYPT=y CONFIG_HAVE_STATIC_CALL=y CONFIG_HAVE_STATIC_CALL_INLINE=y CONFIG_HAVE_PREEMPT_DYNAMIC=y CONFIG_HAVE_PREEMPT_DYNAMIC_CALL=y CONFIG_ARCH_WANT_LD_ORPHAN_WARN=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_ARCH_SUPPORTS_PAGE_TABLE_CHECK=y CONFIG_ARCH_HAS_ELFCORE_COMPAT=y CONFIG_ARCH_HAS_PARANOID_L1D_FLUSH=y CONFIG_DYNAMIC_SIGFRAME=y CONFIG_ARCH_HAS_NONLEAF_PMD_YOUNG=y
#
# GCOV-based kernel profiling
#CONFIG_GCOV_KERNEL=y CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
# CONFIG_GCOV_PROFILE_ALL is not set
# end of GCOV-based kernel profiling
CONFIG_HAVE_GCC_PLUGINS=y CONFIG_GCC_PLUGINS=y
# CONFIG_GCC_PLUGIN_LATENT_ENTROPY is not set
# end of General architecture-dependent options
CONFIG_RT_MUTEXES=yCONFIG_BASE_SMALL=0CONFIG_MODULES=y
# CONFIG_MODULE_FORCE_LOAD is not set CONFIG_MODULE_UNLOAD=y
# CONFIG_MODULE_FORCE_UNLOAD is not set
# CONFIG_MODULE_UNLOAD_TAINT_TRACKING is not set # CONFIG_MODVERSIONS is not set
# CONFIG_MODULE_SRCVERSION_ALL is not set
# CONFIG_MODULE_SIG is not set CONFIG_MODULE_COMPRESS_NONE=y
# CONFIG_MODULE_COMPRESS_GZIP is not set
# CONFIG_MODULE_COMPRESS_XZ is not set
# CONFIG_MODULE_COMPRESS_ZSTD is not set
# CONFIG_MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS is not set CONFIG_MODPROBE_PATH="/sbin/modprobe"
# CONFIG_TRIM_UNUSED_KSYMS is not set CONFIG_MODULES_TREE_LOOKUP=y
# CONFIG_BLOCK is not setCONFIG_ASN1=yCONFIG_UNINLINE_SPIN_UNLOCK=y CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y CONFIG_ARCH_USE_QUEUED_SPINLOCKS=y CONFIG_ARCH_USE_QUEUED_RWLOCKS=y CONFIG_ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE=y CONFIG_ARCH_HAS_SYNC_CORE_BEFORE_USERMODE=y CONFIG_ARCH_HAS_SYSCALL_WRAPPER=y CONFIG_FREEZER=y
#
# Executable file formats
#CONFIG_BINFMT_ELF=y CONFIG_COMPAT_BINFMT_ELF=y CONFIG_ELFCORE=y
# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set CONFIG_BINFMT_SCRIPT=y CONFIG_BINFMT_MISC=yCONFIG_COREDUMP=y
# end of Executable file formats
#
# Memory Management options
#
#
# SLAB allocator options
#
# CONFIG_SLAB is not set
# CONFIG_SLUB is not setCONFIG_SLOB=y
# end of SLAB allocator options
CONFIG_SHUFFLE_PAGE_ALLOCATOR=y CONFIG_COMPAT_BRK=yCONFIG_SPARSEMEM=y CONFIG_SPARSEMEM_EXTREME=y CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y CONFIG_SPARSEMEM_VMEMMAP=y CONFIG_HAVE_FAST_GUP=y CONFIG_MEMORY_ISOLATION=y CONFIG_EXCLUSIVE_SYSTEM_RAM=y CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
# CONFIG_MEMORY_HOTPLUG is not set CONFIG_SPLIT_PTLOCK_CPUS=4 CONFIG_ARCH_ENABLE_SPLIT_PMD_PTLOCK=y CONFIG_COMPACTION=y CONFIG_COMPACT_UNEVICTABLE_DEFAULT=1 CONFIG_PAGE_REPORTING=y CONFIG_MIGRATION=y CONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION=y CONFIG_CONTIG_ALLOC=y CONFIG_PHYS_ADDR_T_64BIT=y CONFIG_KSM=y CONFIG_DEFAULT_MMAP_MIN_ADDR=4096 CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ARCH_WANTS_THP_SWAP=y
# CONFIG_TRANSPARENT_HUGEPAGE is not set CONFIG_NEED_PER_CPU_KM=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_CMA=y
# CONFIG_CMA_DEBUG is not set CONFIG_CMA_DEBUGFS=y
# CONFIG_CMA_SYSFS is not set CONFIG_CMA_AREAS=7
# CONFIG_MEM_SOFT_DIRTY is not set CONFIG_GENERIC_EARLY_IOREMAP=y
# CONFIG_IDLE_PAGE_TRACKING is not set CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_ARCH_HAS_CURRENT_STACK_POINTER=y CONFIG_ARCH_HAS_PTE_DEVMAP=y CONFIG_ARCH_HAS_ZONE_DMA_SET=y
# CONFIG_ZONE_DMA is not set CONFIG_ZONE_DMA32=y
# CONFIG_VM_EVENT_COUNTERS is not set # CONFIG_PERCPU_STATS is not set
# CONFIG_GUP_TEST is not set CONFIG_ARCH_HAS_PTE_SPECIAL=y
# CONFIG_ANON_VMA_NAME is not set
# CONFIG_USERFAULTFD is not set
# CONFIG_LRU_GEN is not set
#
# Data Access Monitoring
#
# CONFIG_DAMON is not set
# end of Data Access Monitoring # end of Memory Management options
CONFIG_NET=y
#
# Networking options
#CONFIG_PACKET=y
# CONFIG_PACKET_DIAG is not set CONFIG_UNIX=yCONFIG_UNIX_SCM=yCONFIG_AF_UNIX_OOB=y
# CONFIG_UNIX_DIAG is not set
# CONFIG_TLS is not set
# CONFIG_XFRM_USER is not set
# CONFIG_NET_KEY is not set
# CONFIG_XDP_SOCKETS is not set CONFIG_INET=y
# CONFIG_IP_MULTICAST is not set
# CONFIG_IP_ADVANCED_ROUTER is not set CONFIG_IP_PNP=yCONFIG_IP_PNP_DHCP=y
# CONFIG_IP_PNP_BOOTP is not set
# CONFIG_IP_PNP_RARP is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE_DEMUX is not set CONFIG_NET_IP_TUNNEL=y
# CONFIG_SYN_COOKIES is not set
# CONFIG_NET_IPVTI is not set
# CONFIG_NET_FOU is not set
# CONFIG_NET_FOU_IP_TUNNELS is not set # CONFIG_INET_AH is not set
# CONFIG_INET_ESP is not set
# CONFIG_INET_IPCOMP is not set CONFIG_INET_TUNNEL=y CONFIG_INET_DIAG=y CONFIG_INET_TCP_DIAG=y
# CONFIG_INET_UDP_DIAG is not set
# CONFIG_INET_RAW_DIAG is not set
# CONFIG_INET_DIAG_DESTROY is not set # CONFIG_TCP_CONG_ADVANCED is not set CONFIG_TCP_CONG_CUBIC=y CONFIG_DEFAULT_TCP_CONG="cubic"
# CONFIG_TCP_MD5SIG is not set CONFIG_IPV6=y
# CONFIG_IPV6_ROUTER_PREF is not set
# CONFIG_IPV6_OPTIMISTIC_DAD is not set # CONFIG_INET6_AH is not set
# CONFIG_INET6_ESP is not set
# CONFIG_INET6_IPCOMP is not set
# CONFIG_IPV6_MIP6 is not set
# CONFIG_IPV6_VTI is not set CONFIG_IPV6_SIT=y
# CONFIG_IPV6_SIT_6RD is not set CONFIG_IPV6_NDISC_NODETYPE=y
# CONFIG_IPV6_TUNNEL is not set
# CONFIG_IPV6_MULTIPLE_TABLES is not set # CONFIG_IPV6_MROUTE is not set
# CONFIG_IPV6_SEG6_LWTUNNEL is not set # CONFIG_IPV6_SEG6_HMAC is not set
# CONFIG_IPV6_RPL_LWTUNNEL is not set # CONFIG_IPV6_IOAM6_LWTUNNEL is not set # CONFIG_NETLABEL is not set
# CONFIG_MPTCP is not set
# CONFIG_NETWORK_SECMARK is not set
# CONFIG_NETWORK_PHY_TIMESTAMPING is not set # CONFIG_NETFILTER is not set
# CONFIG_BPFILTER is not set
# CONFIG_IP_DCCP is not set
# CONFIG_IP_SCTP is not set
# CONFIG_RDS is not set
# CONFIG_TIPC is not set
# CONFIG_ATM is not set
# CONFIG_L2TP is not set
# CONFIG_BRIDGE is not set
# CONFIG_NET_DSA is not set
# CONFIG_VLAN_8021Q is not set
# CONFIG_LLC2 is not set
# CONFIG_ATALK is not set
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_PHONET is not set
# CONFIG_6LOWPAN is not set
# CONFIG_IEEE802154 is not set
# CONFIG_NET_SCHED is not set
# CONFIG_DCB is not set CONFIG_DNS_RESOLVER=m
# CONFIG_BATMAN_ADV is not set
# CONFIG_OPENVSWITCH is not set
# CONFIG_VSOCKETS is not set
# CONFIG_NETLINK_DIAG is not set
# CONFIG_MPLS is not set
# CONFIG_NET_NSH is not set
# CONFIG_HSR is not set
# CONFIG_NET_SWITCHDEV is not set
# CONFIG_NET_L3_MASTER_DEV is not set # CONFIG_QRTR is not set
# CONFIG_NET_NCSI is not set
# CONFIG_CGROUP_NET_PRIO is not set
# CONFIG_CGROUP_NET_CLASSID is not set CONFIG_NET_RX_BUSY_POLL=yCONFIG_BQL=y
#
# Network testing
#
# CONFIG_NET_PKTGEN is not set
# CONFIG_NET_DROP_MONITOR is not set
# end of Network testing # end of Networking options
# CONFIG_HAMRADIO is not set
# CONFIG_CAN is not set
# CONFIG_BT is not set
# CONFIG_AF_RXRPC is not set
# CONFIG_AF_KCM is not set
# CONFIG_MCTP is not setCONFIG_WIRELESS=y
# CONFIG_CFG80211 is not set
#
# CFG80211 needs to be enabled for MAC80211 #CONFIG_MAC80211_STA_HASH_MAX_SIZE=0
# CONFIG_RFKILL is not set CONFIG_NET_9P=yCONFIG_NET_9P_FD=y CONFIG_NET_9P_VIRTIO=y
# CONFIG_NET_9P_DEBUG is not set
# CONFIG_CAIF is not set
# CONFIG_CEPH_LIB is not set
# CONFIG_NFC is not set
# CONFIG_PSAMPLE is not set
# CONFIG_NET_IFE is not set
# CONFIG_LWTUNNEL is not set CONFIG_DST_CACHE=yCONFIG_GRO_CELLS=y CONFIG_NET_SOCK_MSG=y CONFIG_PAGE_POOL=y
# CONFIG_PAGE_POOL_STATS is not set CONFIG_FAILOVER=m CONFIG_ETHTOOL_NETLINK=y
#
# Device Drivers
#CONFIG_HAVE_EISA=y
# CONFIG_EISA is not set CONFIG_HAVE_PCI=yCONFIG_PCI=yCONFIG_PCI_DOMAINS=y
# CONFIG_PCIEPORTBUS is not set CONFIG_PCIEASPM=y CONFIG_PCIEASPM_DEFAULT=y
# CONFIG_PCIEASPM_POWERSAVE is not set # CONFIG_PCIEASPM_POWER_SUPERSAVE is not set # CONFIG_PCIEASPM_PERFORMANCE is not set # CONFIG_PCIE_PTM is not set
# CONFIG_PCI_MSI is not set CONFIG_PCI_QUIRKS=y
# CONFIG_PCI_DEBUG is not set
# CONFIG_PCI_STUB is not set CONFIG_PCI_LOCKLESS_CONFIG=y
# CONFIG_PCI_IOV is not set
# CONFIG_PCI_PRI is not set
# CONFIG_PCI_PASID is not set CONFIG_PCI_LABEL=y
# CONFIG_PCIE_BUS_TUNE_OFF is not set CONFIG_PCIE_BUS_DEFAULT=y
# CONFIG_PCIE_BUS_SAFE is not set
# CONFIG_PCIE_BUS_PERFORMANCE is not set # CONFIG_PCIE_BUS_PEER2PEER is not set CONFIG_VGA_ARB=y CONFIG_VGA_ARB_MAX_GPUS=16
# CONFIG_HOTPLUG_PCI is not set
#
# PCI controller drivers
#
#
# DesignWare PCI Core Support
#
# end of DesignWare PCI Core Support
#
# Mobiveil PCIe Core Support
#
# end of Mobiveil PCIe Core Support
#
# Cadence PCIe controllers support
#
# end of Cadence PCIe controllers support # end of PCI controller drivers
#
# PCI Endpoint
#
# CONFIG_PCI_ENDPOINT is not set
# end of PCI Endpoint
#
# PCI switch controller drivers
#
# CONFIG_PCI_SW_SWITCHTEC is not set
# end of PCI switch controller drivers
# CONFIG_CXL_BUS is not setCONFIG_PCCARD=y
# CONFIG_PCMCIA is not setCONFIG_CARDBUS=y
#
# PC-card bridges
#
# CONFIG_YENTA is not set
# CONFIG_RAPIDIO is not set
#
# Generic Driver Options
#
# CONFIG_UEVENT_HELPER is not set CONFIG_DEVTMPFS=y
# CONFIG_DEVTMPFS_MOUNT is not set
# CONFIG_DEVTMPFS_SAFE is not set
# CONFIG_STANDALONE is not set CONFIG_PREVENT_FIRMWARE_BUILD=y
#
# Firmware loader
#CONFIG_FW_LOADER=y CONFIG_FW_LOADER_PAGED_BUF=y CONFIG_FW_LOADER_SYSFS=y CONFIG_EXTRA_FIRMWARE="" CONFIG_FW_LOADER_USER_HELPER=y
# CONFIG_FW_LOADER_USER_HELPER_FALLBACK is not set CONFIG_FW_LOADER_COMPRESS=y CONFIG_FW_LOADER_COMPRESS_XZ=y
# CONFIG_FW_LOADER_COMPRESS_ZSTD is not set CONFIG_FW_CACHE=y
# CONFIG_FW_UPLOAD is not set
# end of Firmware loader
CONFIG_WANT_DEV_COREDUMP=y
# CONFIG_ALLOW_DEV_COREDUMP is not set # CONFIG_DEBUG_DRIVER is not set CONFIG_DEBUG_DEVRES=y
# CONFIG_DEBUG_TEST_DRIVER_REMOVE is not set # CONFIG_TEST_ASYNC_DRIVER_PROBE is not set CONFIG_GENERIC_CPU_AUTOPROBE=y CONFIG_GENERIC_CPU_VULNERABILITIES=y CONFIG_REGMAP=yCONFIG_REGMAP_I2C=y CONFIG_REGMAP_SPMI=y CONFIG_REGMAP_W1=y CONFIG_REGMAP_MMIO=y CONFIG_REGMAP_IRQ=y CONFIG_REGMAP_I3C=y CONFIG_DMA_SHARED_BUFFER=y
# CONFIG_DMA_FENCE_TRACE is not set
# end of Generic Driver Options
#
# Bus devices
#
# CONFIG_MHI_BUS is not set
# CONFIG_MHI_BUS_EP is not set
# end of Bus devices
# CONFIG_CONNECTOR is not set
#
# Firmware Drivers
#
#
# ARM System Control and Management Interface Protocol #
# end of ARM System Control and Management Interface Protocol
# CONFIG_EDD is not set
# CONFIG_FIRMWARE_MEMMAP is not set
# CONFIG_DMIID is not set CONFIG_DMI_SYSFS=y CONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK=y # CONFIG_FW_CFG_SYSFS is not set
# CONFIG_SYSFB_SIMPLEFB is not set CONFIG_GOOGLE_FIRMWARE=y CONFIG_GOOGLE_SMI=y CONFIG_GOOGLE_COREBOOT_TABLE=y
# CONFIG_GOOGLE_MEMCONSOLE_X86_LEGACY is not set # CONFIG_GOOGLE_MEMCONSOLE_COREBOOT is not set CONFIG_GOOGLE_VPD=y
#
# EFI (Extensible Firmware Interface) Support #CONFIG_EFI_ESRT=y CONFIG_EFI_VARS_PSTORE=y CONFIG_EFI_VARS_PSTORE_DEFAULT_DISABLE=y CONFIG_EFI_RUNTIME_MAP=y CONFIG_EFI_FAKE_MEMMAP=y CONFIG_EFI_MAX_FAKE_MEM=8 CONFIG_EFI_DXE_MEM_ATTRIBUTES=y CONFIG_EFI_RUNTIME_WRAPPERS=y CONFIG_EFI_GENERIC_STUB_INITRD_CMDLINE_LOADER=y CONFIG_EFI_BOOTLOADER_CONTROL=y
# CONFIG_EFI_CAPSULE_LOADER is not set
# CONFIG_EFI_TEST is not set CONFIG_EFI_DEV_PATH_PARSER=y CONFIG_APPLE_PROPERTIES=y CONFIG_RESET_ATTACK_MITIGATION=y CONFIG_EFI_RCI2_TABLE=y CONFIG_EFI_DISABLE_PCI_DMA=y CONFIG_EFI_EARLYCON=y
# CONFIG_EFI_CUSTOM_SSDT_OVERLAYS is not set # CONFIG_EFI_DISABLE_RUNTIME is not set # CONFIG_EFI_COCO_SECRET is not set
# end of EFI (Extensible Firmware Interface) Support
CONFIG_UEFI_CPER=yCONFIG_UEFI_CPER_X86=y
#
# Tegra firmware driver
#
# end of Tegra firmware driver # end of Firmware Drivers
CONFIG_GNSS=yCONFIG_GNSS_SERIAL=y CONFIG_GNSS_MTK_SERIAL=y
# CONFIG_GNSS_SIRF_SERIAL is not set CONFIG_GNSS_UBX_SERIAL=yCONFIG_MTD=y
# CONFIG_MTD_TESTS is not set
#
# Partition parsers
#
# CONFIG_MTD_AR7_PARTS is not set CONFIG_MTD_CMDLINE_PARTS=y CONFIG_MTD_REDBOOT_PARTS=y CONFIG_MTD_REDBOOT_DIRECTORY_BLOCK=-1 CONFIG_MTD_REDBOOT_PARTS_UNALLOCATED=y # CONFIG_MTD_REDBOOT_PARTS_READONLY is not set
# end of Partition parsers
#
# User Modules And Translation Layers #CONFIG_MTD_OOPS=y
# CONFIG_MTD_PARTITIONED_MASTER is not set
#
# RAM/ROM/Flash chip drivers
#CONFIG_MTD_CFI=y CONFIG_MTD_JEDECPROBE=y CONFIG_MTD_GEN_PROBE=y CONFIG_MTD_CFI_ADV_OPTIONS=y
# CONFIG_MTD_CFI_NOSWAP is not set CONFIG_MTD_CFI_BE_BYTE_SWAP=y
# CONFIG_MTD_CFI_LE_BYTE_SWAP is not set CONFIG_MTD_CFI_GEOMETRY=y
# CONFIG_MTD_MAP_BANK_WIDTH_1 is not set CONFIG_MTD_MAP_BANK_WIDTH_2=y
# CONFIG_MTD_MAP_BANK_WIDTH_4 is not set CONFIG_MTD_MAP_BANK_WIDTH_8=y
# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set CONFIG_MTD_MAP_BANK_WIDTH_32=y CONFIG_MTD_CFI_I1=y
# CONFIG_MTD_CFI_I2 is not set CONFIG_MTD_CFI_I4=y
# CONFIG_MTD_CFI_I8 is not set CONFIG_MTD_OTP=y
# CONFIG_MTD_CFI_INTELEXT is not set CONFIG_MTD_CFI_AMDSTD=y CONFIG_MTD_CFI_STAA=y CONFIG_MTD_CFI_UTIL=yCONFIG_MTD_RAM=y
# CONFIG_MTD_ROM is not set CONFIG_MTD_ABSENT=y
# end of RAM/ROM/Flash chip drivers
#
# Mapping drivers for chip access
#CONFIG_MTD_COMPLEX_MAPPINGS=y
# CONFIG_MTD_PHYSMAP is not set
# CONFIG_MTD_AMD76XROM is not set CONFIG_MTD_ICHXROM=y
# CONFIG_MTD_ESB2ROM is not set
# CONFIG_MTD_CK804XROM is not set
# CONFIG_MTD_SCB2_FLASH is not set
# CONFIG_MTD_NETtel is not set CONFIG_MTD_L440GX=y
# CONFIG_MTD_PCI is not set
# CONFIG_MTD_INTEL_VR_NOR is not set CONFIG_MTD_PLATRAM=y
# end of Mapping drivers for chip access
#
# Self-contained MTD device drivers
#
# CONFIG_MTD_PMC551 is not set CONFIG_MTD_SLRAM=yCONFIG_MTD_PHRAM=yCONFIG_MTD_MTDRAM=y CONFIG_MTDRAM_TOTAL_SIZE=4096 CONFIG_MTDRAM_ERASE_SIZE=128
#
# Disk-On-Chip Device Drivers
#
# CONFIG_MTD_DOCG3 is not set
# end of Self-contained MTD device drivers
#
# NAND
#CONFIG_MTD_NAND_CORE=y
# CONFIG_MTD_ONENAND is not setCONFIG_MTD_RAW_NAND=y
#
# Raw/parallel NAND flash controllers #
# CONFIG_MTD_NAND_DENALI_PCI is not set # CONFIG_MTD_NAND_CAFE is not set CONFIG_MTD_NAND_MXIC=y CONFIG_MTD_NAND_GPIO=y CONFIG_MTD_NAND_PLATFORM=y CONFIG_MTD_NAND_ARASAN=y
#
# Misc
#CONFIG_MTD_NAND_NANDSIM=y
# CONFIG_MTD_NAND_RICOH is not set CONFIG_MTD_NAND_DISKONCHIP=y CONFIG_MTD_NAND_DISKONCHIP_PROBE_ADVANCED=y CONFIG_MTD_NAND_DISKONCHIP_PROBE_ADDRESS=0 # CONFIG_MTD_NAND_DISKONCHIP_PROBE_HIGH is not set CONFIG_MTD_NAND_DISKONCHIP_BBTWRITE=y
#
# ECC engine support
#CONFIG_MTD_NAND_ECC=y
# CONFIG_MTD_NAND_ECC_SW_HAMMING is not set # CONFIG_MTD_NAND_ECC_SW_BCH is not set # CONFIG_MTD_NAND_ECC_MXIC is not set
# end of ECC engine support # end of NAND
#
# LPDDR & LPDDR2 PCM memory drivers
#CONFIG_MTD_LPDDR=y CONFIG_MTD_QINFO_PROBE=y
# end of LPDDR & LPDDR2 PCM memory drivers
CONFIG_MTD_UBI=y CONFIG_MTD_UBI_WL_THRESHOLD=4096 CONFIG_MTD_UBI_BEB_LIMIT=20 CONFIG_MTD_UBI_FASTMAP=y CONFIG_MTD_UBI_GLUEBI=y CONFIG_MTD_HYPERBUS=y
# CONFIG_OF is not set CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y CONFIG_PARPORT=y
# CONFIG_PARPORT_PC is not set CONFIG_PARPORT_AX88796=y CONFIG_PARPORT_1284=y CONFIG_PARPORT_NOT_PC=yCONFIG_PNP=y CONFIG_PNP_DEBUG_MESSAGES=y
#
# Protocols
#CONFIG_PNPACPI=y
#
# NVME Support
#
# end of NVME Support
#
# Misc devices
#
# CONFIG_AD525X_DPOT is not set CONFIG_DUMMY_IRQ=y
# CONFIG_IBM_ASM is not set
# CONFIG_PHANTOM is not set
# CONFIG_TIFM_CORE is not set CONFIG_ICS932S401=y CONFIG_ENCLOSURE_SERVICES=y
# CONFIG_HP_ILO is not set
# CONFIG_APDS9802ALS is not set CONFIG_ISL29003=yCONFIG_ISL29020=y CONFIG_SENSORS_TSL2550=y CONFIG_SENSORS_BH1770=y CONFIG_SENSORS_APDS990X=y CONFIG_HMC6352=yCONFIG_DS1682=y
# CONFIG_SRAM is not set
# CONFIG_DW_XDATA_PCIE is not set
# CONFIG_PCI_ENDPOINT_TEST is not set # CONFIG_XILINX_SDFEC is not set CONFIG_C2PORT=y
# CONFIG_C2PORT_DURAMAR_2150 is not set
#
# EEPROM support
#CONFIG_EEPROM_AT24=y
# CONFIG_EEPROM_LEGACY is not set CONFIG_EEPROM_MAX6875=y
# CONFIG_EEPROM_93CX6 is not set CONFIG_EEPROM_IDT_89HPESX=y CONFIG_EEPROM_EE1004=y
# end of EEPROM support
# CONFIG_CB710_CORE is not set
#
# Texas Instruments shared transport line discipline #
# CONFIG_TI_ST is not set
# end of Texas Instruments shared transport line discipline
# CONFIG_SENSORS_LIS3_I2C is not set CONFIG_ALTERA_STAPL=y
# CONFIG_INTEL_MEI is not set
# CONFIG_INTEL_MEI_ME is not set
# CONFIG_INTEL_MEI_TXE is not set
# CONFIG_VMWARE_VMCI is not set
# CONFIG_GENWQE is not set CONFIG_ECHO=y
# CONFIG_MISC_ALCOR_PCI is not set
# CONFIG_MISC_RTSX_PCI is not set
# CONFIG_HABANA_AI is not set
# CONFIG_UACCE is not set CONFIG_PVPANIC=yCONFIG_PVPANIC_MMIO=y
# CONFIG_PVPANIC_PCI is not set
# CONFIG_GP_PCI1XXXX is not set
# end of Misc devices
#
# SCSI device support
#
# end of SCSI device support
# CONFIG_FUSION is not set
#
# IEEE 1394 (FireWire) support
#
# CONFIG_FIREWIRE is not set
# CONFIG_FIREWIRE_NOSY is not set
# end of IEEE 1394 (FireWire) support
# CONFIG_MACINTOSH_DRIVERS is not set CONFIG_NETDEVICES=yCONFIG_NET_CORE=y
# CONFIG_BONDING is not set
# CONFIG_DUMMY is not set
# CONFIG_WIREGUARD is not set
# CONFIG_EQUALIZER is not set
# CONFIG_NET_TEAM is not set
# CONFIG_MACVLAN is not set
# CONFIG_IPVLAN is not set
# CONFIG_VXLAN is not set
# CONFIG_GENEVE is not set
# CONFIG_BAREUDP is not set
# CONFIG_GTP is not set
# CONFIG_MACSEC is not set
# CONFIG_NETCONSOLE is not set
# CONFIG_TUN is not set
# CONFIG_TUN_VNET_CROSS_LE is not set # CONFIG_VETH is not set CONFIG_VIRTIO_NET=m
# CONFIG_NLMON is not set
# CONFIG_ARCNET is not set CONFIG_ETHERNET=y CONFIG_NET_VENDOR_3COM=y
# CONFIG_VORTEX is not set
# CONFIG_TYPHOON is not set CONFIG_NET_VENDOR_ADAPTEC=y
# CONFIG_ADAPTEC_STARFIRE is not set CONFIG_NET_VENDOR_AGERE=y
# CONFIG_ET131X is not set CONFIG_NET_VENDOR_ALACRITECH=y
# CONFIG_SLICOSS is not set CONFIG_NET_VENDOR_ALTEON=y
# CONFIG_ACENIC is not set
# CONFIG_ALTERA_TSE is not set CONFIG_NET_VENDOR_AMAZON=y
# CONFIG_NET_VENDOR_AMD is not set CONFIG_NET_VENDOR_AQUANTIA=y
# CONFIG_AQTION is not set CONFIG_NET_VENDOR_ARC=y CONFIG_NET_VENDOR_ASIX=y CONFIG_NET_VENDOR_ATHEROS=y
# CONFIG_ATL2 is not set
# CONFIG_ATL1 is not set
# CONFIG_ATL1E is not set
# CONFIG_ATL1C is not set
# CONFIG_ALX is not set
# CONFIG_CX_ECAT is not set CONFIG_NET_VENDOR_BROADCOM=y
# CONFIG_B44 is not set
# CONFIG_BCMGENET is not set
# CONFIG_BNX2 is not set
# CONFIG_CNIC is not set
# CONFIG_TIGON3 is not set
# CONFIG_BNX2X is not set
# CONFIG_SYSTEMPORT is not set
# CONFIG_BNXT is not set CONFIG_NET_VENDOR_CADENCE=y
# CONFIG_MACB is not set CONFIG_NET_VENDOR_CAVIUM=y
# CONFIG_THUNDER_NIC_PF is not set
# CONFIG_THUNDER_NIC_VF is not set
# CONFIG_THUNDER_NIC_BGX is not set
# CONFIG_THUNDER_NIC_RGX is not set
# CONFIG_LIQUIDIO is not set CONFIG_NET_VENDOR_CHELSIO=y
# CONFIG_CHELSIO_T1 is not set
# CONFIG_CHELSIO_T3 is not set
# CONFIG_CHELSIO_T4 is not set
# CONFIG_CHELSIO_T4VF is not set CONFIG_NET_VENDOR_CISCO=y
# CONFIG_ENIC is not set CONFIG_NET_VENDOR_CORTINA=y CONFIG_NET_VENDOR_DAVICOM=y
# CONFIG_DNET is not set CONFIG_NET_VENDOR_DEC=y
# CONFIG_NET_TULIP is not set CONFIG_NET_VENDOR_DLINK=y
# CONFIG_DL2K is not set
# CONFIG_SUNDANCE is not set CONFIG_NET_VENDOR_EMULEX=y
# CONFIG_BE2NET is not set CONFIG_NET_VENDOR_ENGLEDER=y
# CONFIG_TSNEP is not set CONFIG_NET_VENDOR_EZCHIP=y CONFIG_NET_VENDOR_FUNGIBLE=y CONFIG_NET_VENDOR_GOOGLE=y CONFIG_NET_VENDOR_HUAWEI=y CONFIG_NET_VENDOR_I825XX=y CONFIG_NET_VENDOR_INTEL=y
# CONFIG_E100 is not set CONFIG_E1000=y
# CONFIG_E1000E is not set
# CONFIG_IGB is not set
# CONFIG_IGBVF is not set
# CONFIG_IXGB is not set
# CONFIG_IXGBE is not set
# CONFIG_I40E is not set
# CONFIG_IGC is not set CONFIG_NET_VENDOR_WANGXUN=y
# CONFIG_NGBE is not set
# CONFIG_TXGBE is not set
# CONFIG_JME is not set CONFIG_NET_VENDOR_LITEX=y CONFIG_NET_VENDOR_MARVELL=y
# CONFIG_MVMDIO is not set
# CONFIG_SKGE is not set
# CONFIG_SKY2 is not set
# CONFIG_OCTEON_EP is not set CONFIG_NET_VENDOR_MELLANOX=y
# CONFIG_MLX4_EN is not set
# CONFIG_MLX5_CORE is not set
# CONFIG_MLXSW_CORE is not set
# CONFIG_MLXFW is not set CONFIG_NET_VENDOR_MICREL=y
# CONFIG_KS8842 is not set
# CONFIG_KS8851_MLL is not set
# CONFIG_KSZ884X_PCI is not set CONFIG_NET_VENDOR_MICROCHIP=y
# CONFIG_LAN743X is not set
# CONFIG_VCAP is not set CONFIG_NET_VENDOR_MICROSEMI=y CONFIG_NET_VENDOR_MICROSOFT=y CONFIG_NET_VENDOR_MYRI=y
# CONFIG_MYRI10GE is not set CONFIG_NET_VENDOR_NI=y
# CONFIG_NI_XGE_MANAGEMENT_ENET is not set CONFIG_NET_VENDOR_NATSEMI=y
# CONFIG_NATSEMI is not set
# CONFIG_NS83820 is not set CONFIG_NET_VENDOR_NETERION=y
# CONFIG_S2IO is not set CONFIG_NET_VENDOR_NETRONOME=y CONFIG_NET_VENDOR_8390=y
# CONFIG_NE2K_PCI is not set CONFIG_NET_VENDOR_NVIDIA=y
# CONFIG_FORCEDETH is not set CONFIG_NET_VENDOR_OKI=y
# CONFIG_ETHOC is not set CONFIG_NET_VENDOR_PACKET_ENGINES=y
# CONFIG_HAMACHI is not set
# CONFIG_YELLOWFIN is not set CONFIG_NET_VENDOR_PENSANDO=y
# CONFIG_IONIC is not set CONFIG_NET_VENDOR_QLOGIC=y
# CONFIG_QLA3XXX is not set
# CONFIG_QLCNIC is not set
# CONFIG_NETXEN_NIC is not set
# CONFIG_QED is not set CONFIG_NET_VENDOR_BROCADE=y
# CONFIG_BNA is not set CONFIG_NET_VENDOR_QUALCOMM=y
# CONFIG_QCOM_EMAC is not set
# CONFIG_RMNET is not set CONFIG_NET_VENDOR_RDC=y
# CONFIG_R6040 is not set CONFIG_NET_VENDOR_REALTEK=y
# CONFIG_ATP is not set
# CONFIG_8139CP is not set
# CONFIG_8139TOO is not set
# CONFIG_R8169 is not set CONFIG_NET_VENDOR_RENESAS=y CONFIG_NET_VENDOR_ROCKER=y CONFIG_NET_VENDOR_SAMSUNG=y
# CONFIG_SXGBE_ETH is not set CONFIG_NET_VENDOR_SEEQ=y CONFIG_NET_VENDOR_SILAN=y
# CONFIG_SC92031 is not set CONFIG_NET_VENDOR_SIS=y
# CONFIG_SIS900 is not set
# CONFIG_SIS190 is not set CONFIG_NET_VENDOR_SOLARFLARE=y
# CONFIG_SFC is not set
# CONFIG_SFC_FALCON is not set CONFIG_NET_VENDOR_SMSC=y
# CONFIG_EPIC100 is not set
# CONFIG_SMSC911X is not set
# CONFIG_SMSC9420 is not set CONFIG_NET_VENDOR_SOCIONEXT=y CONFIG_NET_VENDOR_STMICRO=y
# CONFIG_STMMAC_ETH is not set CONFIG_NET_VENDOR_SUN=y
# CONFIG_HAPPYMEAL is not set
# CONFIG_SUNGEM is not set
# CONFIG_CASSINI is not set
# CONFIG_NIU is not set CONFIG_NET_VENDOR_SYNOPSYS=y
# CONFIG_DWC_XLGMAC is not set CONFIG_NET_VENDOR_TEHUTI=y
# CONFIG_TEHUTI is not set CONFIG_NET_VENDOR_TI=y
# CONFIG_TI_CPSW_PHY_SEL is not set
# CONFIG_TLAN is not set CONFIG_NET_VENDOR_VERTEXCOM=y CONFIG_NET_VENDOR_VIA=y
# CONFIG_VIA_RHINE is not set
# CONFIG_VIA_VELOCITY is not set CONFIG_NET_VENDOR_WIZNET=y
# CONFIG_WIZNET_W5100 is not set
# CONFIG_WIZNET_W5300 is not set CONFIG_NET_VENDOR_XILINX=y
# CONFIG_XILINX_EMACLITE is not set
# CONFIG_XILINX_AXI_EMAC is not set
# CONFIG_XILINX_LL_TEMAC is not set
# CONFIG_FDDI is not set
# CONFIG_HIPPI is not set
# CONFIG_NET_SB1000 is not set
# CONFIG_PHYLIB is not set
# CONFIG_PSE_CONTROLLER is not set
# CONFIG_MDIO_DEVICE is not set
#
# PCS device drivers
#
# end of PCS device drivers
# CONFIG_PLIP is not set
# CONFIG_PPP is not set
# CONFIG_SLIP is not set
#
# Host-side USB support is needed for USB Network Adapter support #CONFIG_WLAN=yCONFIG_WLAN_VENDOR_ADMTEK=yCONFIG_WLAN_VENDOR_ATH=y
# CONFIG_ATH_DEBUG is not set
# CONFIG_ATH5K_PCI is not set CONFIG_WLAN_VENDOR_ATMEL=y CONFIG_WLAN_VENDOR_BROADCOM=y CONFIG_WLAN_VENDOR_CISCO=yCONFIG_WLAN_VENDOR_INTEL=y CONFIG_WLAN_VENDOR_INTERSIL=y
# CONFIG_HOSTAP is not setCONFIG_WLAN_VENDOR_MARVELL=y CONFIG_WLAN_VENDOR_MEDIATEK=y CONFIG_WLAN_VENDOR_MICROCHIP=y CONFIG_WLAN_VENDOR_PURELIFI=y CONFIG_WLAN_VENDOR_RALINK=y CONFIG_WLAN_VENDOR_REALTEK=yCONFIG_WLAN_VENDOR_RSI=yCONFIG_WLAN_VENDOR_SILABS=yCONFIG_WLAN_VENDOR_ST=yCONFIG_WLAN_VENDOR_TI=yCONFIG_WLAN_VENDOR_ZYDAS=y CONFIG_WLAN_VENDOR_QUANTENNA=y
# CONFIG_WAN is not set
#
# Wireless WAN
#
# CONFIG_WWAN is not set
# end of Wireless WAN
# CONFIG_VMXNET3 is not set
# CONFIG_FUJITSU_ES is not set
# CONFIG_NETDEVSIM is not setCONFIG_NET_FAILOVER=m
# CONFIG_ISDN is not set
#
# Input device support
#CONFIG_INPUT=yCONFIG_INPUT_LEDS=y
# CONFIG_INPUT_FF_MEMLESS is not set
# CONFIG_INPUT_SPARSEKMAP is not set
# CONFIG_INPUT_MATRIXKMAP is not set CONFIG_INPUT_VIVALDIFMAP=y
#
# Userland interfaces
#
# CONFIG_INPUT_MOUSEDEV is not set
# CONFIG_INPUT_JOYDEV is not set
# CONFIG_INPUT_EVDEV is not set
# CONFIG_INPUT_EVBUG is not set
#
# Input Device Drivers
#CONFIG_INPUT_KEYBOARD=y
# CONFIG_KEYBOARD_ADC is not set
# CONFIG_KEYBOARD_ADP5588 is not set
# CONFIG_KEYBOARD_ADP5589 is not set CONFIG_KEYBOARD_ATKBD=y
# CONFIG_KEYBOARD_QT1050 is not set
# CONFIG_KEYBOARD_QT1070 is not set
# CONFIG_KEYBOARD_QT2160 is not set
# CONFIG_KEYBOARD_DLINK_DIR685 is not set # CONFIG_KEYBOARD_LKKBD is not set
# CONFIG_KEYBOARD_GPIO is not set
# CONFIG_KEYBOARD_GPIO_POLLED is not set # CONFIG_KEYBOARD_TCA6416 is not set
# CONFIG_KEYBOARD_TCA8418 is not set
# CONFIG_KEYBOARD_MATRIX is not set
# CONFIG_KEYBOARD_LM8323 is not set
# CONFIG_KEYBOARD_LM8333 is not set
# CONFIG_KEYBOARD_MAX7359 is not set
# CONFIG_KEYBOARD_MCS is not set
# CONFIG_KEYBOARD_MPR121 is not set
# CONFIG_KEYBOARD_NEWTON is not set
# CONFIG_KEYBOARD_OPENCORES is not set # CONFIG_KEYBOARD_PINEPHONE is not set # CONFIG_KEYBOARD_SAMSUNG is not set
# CONFIG_KEYBOARD_STOWAWAY is not set # CONFIG_KEYBOARD_SUNKBD is not set
# CONFIG_KEYBOARD_TM2_TOUCHKEY is not set # CONFIG_KEYBOARD_XTKBD is not set
# CONFIG_KEYBOARD_CROS_EC is not set
# CONFIG_KEYBOARD_MTK_PMIC is not set # CONFIG_KEYBOARD_CYPRESS_SF is not set CONFIG_INPUT_MOUSE=y CONFIG_MOUSE_PS2=y CONFIG_MOUSE_PS2_ALPS=y CONFIG_MOUSE_PS2_BYD=y CONFIG_MOUSE_PS2_LOGIPS2PP=y CONFIG_MOUSE_PS2_SYNAPTICS=y CONFIG_MOUSE_PS2_SYNAPTICS_SMBUS=y CONFIG_MOUSE_PS2_CYPRESS=y CONFIG_MOUSE_PS2_LIFEBOOK=y CONFIG_MOUSE_PS2_TRACKPOINT=y
# CONFIG_MOUSE_PS2_ELANTECH is not set # CONFIG_MOUSE_PS2_SENTELIC is not set # CONFIG_MOUSE_PS2_TOUCHKIT is not set CONFIG_MOUSE_PS2_FOCALTECH=y
# CONFIG_MOUSE_PS2_VMMOUSE is not set CONFIG_MOUSE_PS2_SMBUS=y
# CONFIG_MOUSE_SERIAL is not set
# CONFIG_MOUSE_APPLETOUCH is not set
# CONFIG_MOUSE_BCM5974 is not set
# CONFIG_MOUSE_CYAPA is not set
# CONFIG_MOUSE_ELAN_I2C is not set
# CONFIG_MOUSE_VSXXXAA is not set
# CONFIG_MOUSE_GPIO is not set
# CONFIG_MOUSE_SYNAPTICS_I2C is not set # CONFIG_MOUSE_SYNAPTICS_USB is not set # CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TABLET is not set
# CONFIG_INPUT_TOUCHSCREEN is not set # CONFIG_INPUT_MISC is not set
# CONFIG_RMI4_CORE is not set
#
# Hardware I/O ports
#CONFIG_SERIO=y CONFIG_ARCH_MIGHT_HAVE_PC_SERIO=y CONFIG_SERIO_I8042=y CONFIG_SERIO_SERPORT=y
# CONFIG_SERIO_CT82C710 is not set
# CONFIG_SERIO_PARKBD is not set
# CONFIG_SERIO_PCIPS2 is not set CONFIG_SERIO_LIBPS2=y
# CONFIG_SERIO_RAW is not set
# CONFIG_SERIO_ALTERA_PS2 is not set
# CONFIG_SERIO_PS2MULT is not set
# CONFIG_SERIO_ARC_PS2 is not set
# CONFIG_SERIO_GPIO_PS2 is not set
# CONFIG_USERIO is not set CONFIG_GAMEPORT=y CONFIG_GAMEPORT_NS558=y CONFIG_GAMEPORT_L4=y
# CONFIG_GAMEPORT_EMU10K1 is not set
# CONFIG_GAMEPORT_FM801 is not set
# end of Hardware I/O ports # end of Input device support
#
# Character devices
#CONFIG_TTY=y
# CONFIG_VT is not setCONFIG_UNIX98_PTYS=yCONFIG_LEGACY_PTYS=yCONFIG_LEGACY_PTY_COUNT=256CONFIG_LDISC_AUTOLOAD=y
#
# Serial drivers
#CONFIG_SERIAL_EARLYCON=y CONFIG_SERIAL_8250=y CONFIG_SERIAL_8250_DEPRECATED_OPTIONS=y CONFIG_SERIAL_8250_PNP=y
# CONFIG_SERIAL_8250_16550A_VARIANTS is not set # CONFIG_SERIAL_8250_FINTEK is not set CONFIG_SERIAL_8250_CONSOLE=y CONFIG_SERIAL_8250_DMA=y CONFIG_SERIAL_8250_PCI=y CONFIG_SERIAL_8250_EXAR=y
# CONFIG_SERIAL_8250_MEN_MCB is not set CONFIG_SERIAL_8250_NR_UARTS=4 CONFIG_SERIAL_8250_RUNTIME_UARTS=4
# CONFIG_SERIAL_8250_EXTENDED is not set CONFIG_SERIAL_8250_DWLIB=y
# CONFIG_SERIAL_8250_DW is not set
# CONFIG_SERIAL_8250_RT288X is not set CONFIG_SERIAL_8250_LPSS=y CONFIG_SERIAL_8250_MID=y CONFIG_SERIAL_8250_PERICOM=y
#
# Non-8250 serial port support
#
# CONFIG_SERIAL_UARTLITE is not set CONFIG_SERIAL_CORE=y CONFIG_SERIAL_CORE_CONSOLE=y
# CONFIG_SERIAL_JSM is not set
# CONFIG_SERIAL_LANTIQ is not set
# CONFIG_SERIAL_SCCNXP is not set
# CONFIG_SERIAL_SC16IS7XX is not set
# CONFIG_SERIAL_ALTERA_JTAGUART is not set # CONFIG_SERIAL_ALTERA_UART is not set # CONFIG_SERIAL_ARC is not set
# CONFIG_SERIAL_RP2 is not set
# CONFIG_SERIAL_FSL_LPUART is not set # CONFIG_SERIAL_FSL_LINFLEXUART is not set # CONFIG_SERIAL_MEN_Z135 is not set
# CONFIG_SERIAL_SPRD is not set
# end of Serial drivers
CONFIG_SERIAL_MCTRL_GPIO=y
# CONFIG_SERIAL_NONSTANDARD is not set # CONFIG_N_GSM is not set
# CONFIG_NOZOMI is not set
# CONFIG_NULL_TTY is not set CONFIG_SERIAL_DEV_BUS=y CONFIG_SERIAL_DEV_CTRL_TTYPORT=y
# CONFIG_TTY_PRINTK is not set CONFIG_PRINTER=yCONFIG_LP_CONSOLE=yCONFIG_PPDEV=y
# CONFIG_VIRTIO_CONSOLE is not set
# CONFIG_IPMI_HANDLER is not set
# CONFIG_IPMB_DEVICE_INTERFACE is not set # CONFIG_HW_RANDOM is not set
# CONFIG_APPLICOM is not set
# CONFIG_MWAVE is not set
# CONFIG_DEVMEM is not set
# CONFIG_NVRAM is not set CONFIG_DEVPORT=y
# CONFIG_HPET is not set CONFIG_HANGCHECK_TIMER=y CONFIG_TCG_TPM=yCONFIG_TCG_TIS_CORE=yCONFIG_TCG_TIS=y
# CONFIG_TCG_TIS_I2C is not set CONFIG_TCG_TIS_I2C_CR50=y CONFIG_TCG_TIS_I2C_ATMEL=y CONFIG_TCG_TIS_I2C_INFINEON=y CONFIG_TCG_TIS_I2C_NUVOTON=y CONFIG_TCG_NSC=yCONFIG_TCG_ATMEL=y CONFIG_TCG_INFINEON=yCONFIG_TCG_CRB=y CONFIG_TCG_VTPM_PROXY=y CONFIG_TCG_TIS_ST33ZP24=y CONFIG_TCG_TIS_ST33ZP24_I2C=y CONFIG_TELCLOCK=y
# CONFIG_XILLYBUS is not set CONFIG_RANDOM_TRUST_CPU=y CONFIG_RANDOM_TRUST_BOOTLOADER=y
# end of Character devices
#
# I2C support
#CONFIG_I2C=y
# CONFIG_ACPI_I2C_OPREGION is not set CONFIG_I2C_BOARDINFO=y CONFIG_I2C_COMPAT=y CONFIG_I2C_CHARDEV=yCONFIG_I2C_MUX=y
#
# Multiplexer I2C Chip support
#CONFIG_I2C_MUX_GPIO=yCONFIG_I2C_MUX_LTC4306=yCONFIG_I2C_MUX_PCA9541=y
CONFIG_I2C_MUX_PCA954x=yCONFIG_I2C_MUX_REG=yCONFIG_I2C_MUX_MLXCPLD=y
# end of Multiplexer I2C Chip support
CONFIG_I2C_HELPER_AUTO=yCONFIG_I2C_SMBUS=yCONFIG_I2C_ALGOBIT=y
#
# I2C Hardware Bus support
#
#
# PC SMBus host controller drivers
#
# CONFIG_I2C_ALI1535 is not set
# CONFIG_I2C_ALI1563 is not set
# CONFIG_I2C_ALI15X3 is not set
# CONFIG_I2C_AMD756 is not set
# CONFIG_I2C_AMD8111 is not set
# CONFIG_I2C_AMD_MP2 is not set
# CONFIG_I2C_I801 is not set
# CONFIG_I2C_ISCH is not set
# CONFIG_I2C_ISMT is not set
# CONFIG_I2C_PIIX4 is not set
# CONFIG_I2C_NFORCE2 is not set
# CONFIG_I2C_NVIDIA_GPU is not set
# CONFIG_I2C_SIS5595 is not set
# CONFIG_I2C_SIS630 is not set
# CONFIG_I2C_SIS96X is not set
# CONFIG_I2C_VIA is not set
# CONFIG_I2C_VIAPRO is not set
#
# ACPI drivers
#CONFIG_I2C_SCMI=y
#
# I2C system bus drivers (mostly embedded / system-on-chip) #CONFIG_I2C_CBUS_GPIO=y
# CONFIG_I2C_DESIGNWARE_PLATFORM is not set
# CONFIG_I2C_DESIGNWARE_PCI is not set
# CONFIG_I2C_EMEV2 is not setCONFIG_I2C_GPIO=y
# CONFIG_I2C_GPIO_FAULT_INJECTOR is not set CONFIG_I2C_OCORES=y
# CONFIG_I2C_PCA_PLATFORM is not set CONFIG_I2C_SIMTEC=y
# CONFIG_I2C_XILINX is not set
#
# External I2C/SMBus adapter drivers
#
# CONFIG_I2C_PARPORT is not set
# CONFIG_I2C_PCI1XXXX is not set
# CONFIG_I2C_TAOS_EVM is not set
#
# Other I2C/SMBus bus drivers
#
# CONFIG_I2C_MLXCPLD is not set
# CONFIG_I2C_CROS_EC_TUNNEL is not set CONFIG_I2C_VIRTIO=y
# end of I2C Hardware Bus support
# CONFIG_I2C_STUB is not set CONFIG_I2C_SLAVE=y CONFIG_I2C_SLAVE_EEPROM=y CONFIG_I2C_SLAVE_TESTUNIT=y
# CONFIG_I2C_DEBUG_CORE is not set
# CONFIG_I2C_DEBUG_ALGO is not set
# CONFIG_I2C_DEBUG_BUS is not set
# end of I2C support
CONFIG_I3C=y
# CONFIG_CDNS_I3C_MASTER is not set CONFIG_DW_I3C_MASTER=y CONFIG_SVC_I3C_MASTER=y
# CONFIG_MIPI_I3C_HCI is not set
# CONFIG_SPI is not setCONFIG_SPMI=y
# CONFIG_SPMI_HISI3670 is not set CONFIG_HSI=yCONFIG_HSI_BOARDINFO=y
#
# HSI controllers
#
#
# HSI clients
#CONFIG_HSI_CHAR=yCONFIG_PPS=y
# CONFIG_PPS_DEBUG is not setCONFIG_NTP_PPS=y
#
# PPS clients support
#
# CONFIG_PPS_CLIENT_KTIMER is not set # CONFIG_PPS_CLIENT_LDISC is not set CONFIG_PPS_CLIENT_PARPORT=y CONFIG_PPS_CLIENT_GPIO=y
#
# PPS generators support
#
#
# PTP clock support
#CONFIG_PTP_1588_CLOCK_OPTIONAL=y
#
# Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks. #
# end of PTP clock support
CONFIG_PINCTRL=yCONFIG_PINMUX=yCONFIG_PINCONF=y CONFIG_GENERIC_PINCONF=y CONFIG_DEBUG_PINCTRL=y
# CONFIG_PINCTRL_AMD is not set
# CONFIG_PINCTRL_CY8C95X0 is not set CONFIG_PINCTRL_DA9062=y
# CONFIG_PINCTRL_MCP23S08 is not set
# CONFIG_PINCTRL_SX150X is not set CONFIG_PINCTRL_MADERA=y CONFIG_PINCTRL_CS47L35=y CONFIG_PINCTRL_CS47L85=y CONFIG_PINCTRL_CS47L90=y
#
# Intel pinctrl drivers
#
# CONFIG_PINCTRL_BAYTRAIL is not set
# CONFIG_PINCTRL_CHERRYVIEW is not set # CONFIG_PINCTRL_LYNXPOINT is not set CONFIG_PINCTRL_INTEL=y CONFIG_PINCTRL_ALDERLAKE=y
# CONFIG_PINCTRL_BROXTON is not set CONFIG_PINCTRL_CANNONLAKE=y CONFIG_PINCTRL_CEDARFORK=y CONFIG_PINCTRL_DENVERTON=y
# CONFIG_PINCTRL_ELKHARTLAKE is not set CONFIG_PINCTRL_EMMITSBURG=y
# CONFIG_PINCTRL_GEMINILAKE is not set # CONFIG_PINCTRL_ICELAKE is not set CONFIG_PINCTRL_JASPERLAKE=y
# CONFIG_PINCTRL_LAKEFIELD is not set CONFIG_PINCTRL_LEWISBURG=y
# CONFIG_PINCTRL_METEORLAKE is not set CONFIG_PINCTRL_SUNRISEPOINT=y CONFIG_PINCTRL_TIGERLAKE=y
# end of Intel pinctrl drivers
#
# Renesas pinctrl drivers
#
# end of Renesas pinctrl drivers
CONFIG_GPIOLIB=y CONFIG_GPIOLIB_FASTPATH_LIMIT=512 CONFIG_GPIO_ACPI=y CONFIG_GPIOLIB_IRQCHIP=y CONFIG_DEBUG_GPIO=y
# CONFIG_GPIO_SYSFS is not set CONFIG_GPIO_CDEV=y
# CONFIG_GPIO_CDEV_V1 is not set CONFIG_GPIO_GENERIC=y
#
# Memory mapped GPIO drivers
#
# CONFIG_GPIO_AMDPT is not setCONFIG_GPIO_DWAPB=y
# CONFIG_GPIO_EXAR is not setCONFIG_GPIO_GENERIC_PLATFORM=y
# CONFIG_GPIO_MB86S7X is not set
# CONFIG_GPIO_MENZ127 is not set
# CONFIG_GPIO_VX855 is not set
# CONFIG_GPIO_AMD_FCH is not set
# end of Memory mapped GPIO drivers
#
# Port-mapped I/O GPIO drivers
#CONFIG_GPIO_F7188X=yCONFIG_GPIO_IT87=yCONFIG_GPIO_SCH311X=y
# CONFIG_GPIO_WINBOND is not setCONFIG_GPIO_WS16C48=y
# end of Port-mapped I/O GPIO drivers
#
# I2C GPIO expanders
#
# CONFIG_GPIO_MAX7300 is not set CONFIG_GPIO_MAX732X=y
# CONFIG_GPIO_MAX732X_IRQ is not set CONFIG_GPIO_PCA953X=y
# CONFIG_GPIO_PCA953X_IRQ is not set CONFIG_GPIO_PCA9570=y
# CONFIG_GPIO_PCF857X is not set CONFIG_GPIO_TPIC2810=y
# end of I2C GPIO expanders
#
# MFD GPIO expanders
#CONFIG_GPIO_ARIZONA=y
# CONFIG_GPIO_BD9571MWV is not set CONFIG_GPIO_DA9055=y CONFIG_GPIO_LP3943=y
# CONFIG_GPIO_LP873X is not set CONFIG_GPIO_MADERA=y
# CONFIG_GPIO_PALMAS is not set
# CONFIG_GPIO_TPS65086 is not set CONFIG_GPIO_TPS6586X=y CONFIG_GPIO_TPS65910=y CONFIG_GPIO_TPS68470=y CONFIG_GPIO_TQMX86=y CONFIG_GPIO_WM831X=y
# CONFIG_GPIO_WM8350 is not set CONFIG_GPIO_WM8994=y
# end of MFD GPIO expanders
#
# PCI GPIO expanders
#
# CONFIG_GPIO_AMD8111 is not set
# CONFIG_GPIO_BT8XX is not set
# CONFIG_GPIO_ML_IOH is not set
# CONFIG_GPIO_PCI_IDIO_16 is not set
# CONFIG_GPIO_PCIE_IDIO_24 is not set # CONFIG_GPIO_RDC321X is not set
# end of PCI GPIO expanders
#
# Virtual GPIO drivers
#
# CONFIG_GPIO_AGGREGATOR is not set CONFIG_GPIO_MOCKUP=y CONFIG_GPIO_VIRTIO=y
# CONFIG_GPIO_SIM is not set
# end of Virtual GPIO drivers
CONFIG_W1=y
#
# 1-wire Bus Masters
#
# CONFIG_W1_MASTER_MATROX is not set CONFIG_W1_MASTER_DS2482=y CONFIG_W1_MASTER_DS1WM=y CONFIG_W1_MASTER_GPIO=y CONFIG_W1_MASTER_SGI=y
# end of 1-wire Bus Masters
#
# 1-wire Slaves
#CONFIG_W1_SLAVE_THERM=y
# CONFIG_W1_SLAVE_SMEM is not set CONFIG_W1_SLAVE_DS2405=y CONFIG_W1_SLAVE_DS2408=y
# CONFIG_W1_SLAVE_DS2408_READBACK is not set # CONFIG_W1_SLAVE_DS2413 is not set CONFIG_W1_SLAVE_DS2406=y
# CONFIG_W1_SLAVE_DS2423 is not set
# CONFIG_W1_SLAVE_DS2805 is not set CONFIG_W1_SLAVE_DS2430=y CONFIG_W1_SLAVE_DS2431=y CONFIG_W1_SLAVE_DS2433=y
# CONFIG_W1_SLAVE_DS2433_CRC is not set CONFIG_W1_SLAVE_DS2438=y
# CONFIG_W1_SLAVE_DS250X is not set
# CONFIG_W1_SLAVE_DS2780 is not set CONFIG_W1_SLAVE_DS2781=y CONFIG_W1_SLAVE_DS28E04=y CONFIG_W1_SLAVE_DS28E17=y
# end of 1-wire Slaves
CONFIG_POWER_RESET=y CONFIG_POWER_RESET_ATC260X=y CONFIG_POWER_RESET_MT6323=y CONFIG_POWER_RESET_RESTART=y
# CONFIG_POWER_RESET_TPS65086 is not set CONFIG_POWER_SUPPLY=y
# CONFIG_POWER_SUPPLY_DEBUG is not set CONFIG_POWER_SUPPLY_HWMON=y CONFIG_PDA_POWER=y CONFIG_GENERIC_ADC_BATTERY=y
# CONFIG_IP5XXX_POWER is not set
# CONFIG_WM831X_BACKUP is not set
# CONFIG_WM831X_POWER is not set CONFIG_WM8350_POWER=y
# CONFIG_TEST_POWER is not set
# CONFIG_BATTERY_88PM860X is not set CONFIG_CHARGER_ADP5061=y CONFIG_BATTERY_CW2015=y CONFIG_BATTERY_DS2760=y
# CONFIG_BATTERY_DS2780 is not set CONFIG_BATTERY_DS2781=y CONFIG_BATTERY_DS2782=y
# CONFIG_BATTERY_SAMSUNG_SDI is not set # CONFIG_BATTERY_SBS is not set
# CONFIG_CHARGER_SBS is not set CONFIG_MANAGER_SBS=y CONFIG_BATTERY_BQ27XXX=y
# CONFIG_BATTERY_BQ27XXX_I2C is not set CONFIG_BATTERY_BQ27XXX_HDQ=y CONFIG_BATTERY_DA9030=y CONFIG_BATTERY_DA9150=y CONFIG_CHARGER_AXP20X=y CONFIG_BATTERY_AXP20X=y CONFIG_AXP20X_POWER=y
# CONFIG_BATTERY_MAX17040 is not set CONFIG_BATTERY_MAX17042=y CONFIG_BATTERY_MAX1721X=y CONFIG_CHARGER_ISP1704=y
# CONFIG_CHARGER_MAX8903 is not set CONFIG_CHARGER_LP8727=y CONFIG_CHARGER_LP8788=y CONFIG_CHARGER_GPIO=y
# CONFIG_CHARGER_MANAGER is not set CONFIG_CHARGER_LT3651=y CONFIG_CHARGER_LTC4162L=y CONFIG_CHARGER_MAX14577=y
# CONFIG_CHARGER_MAX77976 is not set
# CONFIG_CHARGER_MT6360 is not set CONFIG_CHARGER_BQ2415X=y CONFIG_CHARGER_BQ24190=y
# CONFIG_CHARGER_BQ24257 is not set
# CONFIG_CHARGER_BQ24735 is not set CONFIG_CHARGER_BQ2515X=y
# CONFIG_CHARGER_BQ25890 is not set
# CONFIG_CHARGER_BQ25980 is not set
# CONFIG_CHARGER_BQ256XX is not set CONFIG_CHARGER_SMB347=y CONFIG_CHARGER_TPS65090=y
# CONFIG_BATTERY_GAUGE_LTC2941 is not set CONFIG_BATTERY_GOLDFISH=y
# CONFIG_BATTERY_RT5033 is not set CONFIG_CHARGER_RT9455=y
# CONFIG_CHARGER_BD99954 is not set
# CONFIG_BATTERY_UG3105 is not set CONFIG_HWMON=yCONFIG_HWMON_VID=y CONFIG_HWMON_DEBUG_CHIP=y
#
# Native drivers
#
# CONFIG_SENSORS_ABITUGURU is not set # CONFIG_SENSORS_ABITUGURU3 is not set CONFIG_SENSORS_AD7414=y
# CONFIG_SENSORS_AD7418 is not set
# CONFIG_SENSORS_ADM1021 is not set
# CONFIG_SENSORS_ADM1025 is not set CONFIG_SENSORS_ADM1026=y CONFIG_SENSORS_ADM1029=y CONFIG_SENSORS_ADM1031=y CONFIG_SENSORS_ADM1177=y
# CONFIG_SENSORS_ADM9240 is not set
# CONFIG_SENSORS_ADT7410 is not set
# CONFIG_SENSORS_ADT7411 is not set CONFIG_SENSORS_ADT7462=y CONFIG_SENSORS_ADT7470=y CONFIG_SENSORS_ADT7475=y
# CONFIG_SENSORS_AHT10 is not set CONFIG_SENSORS_AS370=y
# CONFIG_SENSORS_ASC7621 is not set CONFIG_SENSORS_AXI_FAN_CONTROL=y
# CONFIG_SENSORS_K8TEMP is not set
# CONFIG_SENSORS_APPLESMC is not set CONFIG_SENSORS_ASB100=y
# CONFIG_SENSORS_ATXP1 is not set
# CONFIG_SENSORS_CORSAIR_CPRO is not set # CONFIG_SENSORS_CORSAIR_PSU is not set # CONFIG_SENSORS_DS620 is not set
# CONFIG_SENSORS_DS1621 is not set CONFIG_SENSORS_DELL_SMM=y
# CONFIG_I8K is not set
# CONFIG_SENSORS_DA9055 is not set
# CONFIG_SENSORS_I5K_AMB is not set
# CONFIG_SENSORS_F71805F is not set CONFIG_SENSORS_F71882FG=y
# CONFIG_SENSORS_F75375S is not set
# CONFIG_SENSORS_MC13783_ADC is not set # CONFIG_SENSORS_FSCHMD is not set
# CONFIG_SENSORS_GL518SM is not set CONFIG_SENSORS_GL520SM=y CONFIG_SENSORS_G760A=y CONFIG_SENSORS_G762=y CONFIG_SENSORS_HIH6130=y CONFIG_SENSORS_IIO_HWMON=y
# CONFIG_SENSORS_I5500 is not set CONFIG_SENSORS_CORETEMP=y CONFIG_SENSORS_IT87=y
# CONFIG_SENSORS_JC42 is not set
# CONFIG_SENSORS_POWR1220 is not set
# CONFIG_SENSORS_LINEAGE is not set
# CONFIG_SENSORS_LTC2945 is not set CONFIG_SENSORS_LTC2947=y CONFIG_SENSORS_LTC2947_I2C=y CONFIG_SENSORS_LTC2990=y
# CONFIG_SENSORS_LTC2992 is not set
# CONFIG_SENSORS_LTC4151 is not set CONFIG_SENSORS_LTC4215=y CONFIG_SENSORS_LTC4222=y
# CONFIG_SENSORS_LTC4245 is not set CONFIG_SENSORS_LTC4260=y
# CONFIG_SENSORS_LTC4261 is not set
# CONFIG_SENSORS_MAX127 is not set CONFIG_SENSORS_MAX16065=y
# CONFIG_SENSORS_MAX1619 is not set CONFIG_SENSORS_MAX1668=y CONFIG_SENSORS_MAX197=y CONFIG_SENSORS_MAX31730=y
# CONFIG_SENSORS_MAX31760 is not set CONFIG_SENSORS_MAX6620=y CONFIG_SENSORS_MAX6621=y CONFIG_SENSORS_MAX6639=y CONFIG_SENSORS_MAX6642=y CONFIG_SENSORS_MAX6650=y
# CONFIG_SENSORS_MAX6697 is not set
# CONFIG_SENSORS_MAX31790 is not set CONFIG_SENSORS_MCP3021=y CONFIG_SENSORS_MLXREG_FAN=y
# CONFIG_SENSORS_TC654 is not set CONFIG_SENSORS_TPS23861=y CONFIG_SENSORS_MR75203=y CONFIG_SENSORS_LM63=y CONFIG_SENSORS_LM73=y CONFIG_SENSORS_LM75=y CONFIG_SENSORS_LM77=y
# CONFIG_SENSORS_LM78 is not set CONFIG_SENSORS_LM80=y CONFIG_SENSORS_LM83=y CONFIG_SENSORS_LM85=y CONFIG_SENSORS_LM87=y
# CONFIG_SENSORS_LM90 is not set CONFIG_SENSORS_LM92=y
# CONFIG_SENSORS_LM93 is not set
# CONFIG_SENSORS_LM95234 is not set
# CONFIG_SENSORS_LM95241 is not set
# CONFIG_SENSORS_LM95245 is not set
# CONFIG_SENSORS_PC87360 is not set CONFIG_SENSORS_PC87427=y
# CONFIG_SENSORS_NTC_THERMISTOR is not set CONFIG_SENSORS_NCT6683=y CONFIG_SENSORS_NCT6775_CORE=y CONFIG_SENSORS_NCT6775=y
# CONFIG_SENSORS_NCT6775_I2C is not set CONFIG_SENSORS_NCT7802=y
# CONFIG_SENSORS_NPCM7XX is not set
# CONFIG_SENSORS_PCF8591 is not set CONFIG_PMBUS=yCONFIG_SENSORS_PMBUS=y CONFIG_SENSORS_ADM1266=y CONFIG_SENSORS_ADM1275=y CONFIG_SENSORS_BEL_PFE=y CONFIG_SENSORS_BPA_RS600=y CONFIG_SENSORS_DELTA_AHE50DC_FAN=y
# CONFIG_SENSORS_FSP_3Y is not set
# CONFIG_SENSORS_IBM_CFFPS is not set CONFIG_SENSORS_DPS920AB=y CONFIG_SENSORS_INSPUR_IPSPS=y CONFIG_SENSORS_IR35221=y CONFIG_SENSORS_IR36021=y CONFIG_SENSORS_IR38064=y CONFIG_SENSORS_IR38064_REGULATOR=y
# CONFIG_SENSORS_IRPS5401 is not set
# CONFIG_SENSORS_ISL68137 is not set CONFIG_SENSORS_LM25066=y
# CONFIG_SENSORS_LM25066_REGULATOR is not set # CONFIG_SENSORS_LT7182S is not set CONFIG_SENSORS_LTC2978=y CONFIG_SENSORS_LTC2978_REGULATOR=y
# CONFIG_SENSORS_LTC3815 is not set CONFIG_SENSORS_MAX15301=y CONFIG_SENSORS_MAX16064=y CONFIG_SENSORS_MAX16601=y CONFIG_SENSORS_MAX20730=y CONFIG_SENSORS_MAX20751=y
# CONFIG_SENSORS_MAX31785 is not set
# CONFIG_SENSORS_MAX34440 is not set
# CONFIG_SENSORS_MAX8688 is not set CONFIG_SENSORS_MP2888=y CONFIG_SENSORS_MP2975=y CONFIG_SENSORS_MP5023=y CONFIG_SENSORS_PIM4328=y
# CONFIG_SENSORS_PLI1209BC is not set CONFIG_SENSORS_PM6764TR=y
# CONFIG_SENSORS_PXE1610 is not set
# CONFIG_SENSORS_Q54SJ108A2 is not set CONFIG_SENSORS_STPDDC60=y CONFIG_SENSORS_TPS40422=y CONFIG_SENSORS_TPS53679=y
# CONFIG_SENSORS_TPS546D24 is not set # CONFIG_SENSORS_UCD9000 is not set
# CONFIG_SENSORS_UCD9200 is not set
# CONFIG_SENSORS_XDPE152 is not set CONFIG_SENSORS_XDPE122=y
# CONFIG_SENSORS_XDPE122_REGULATOR is not set # CONFIG_SENSORS_ZL6100 is not set
# CONFIG_SENSORS_SBTSI is not set CONFIG_SENSORS_SBRMI=y CONFIG_SENSORS_SHT15=y
# CONFIG_SENSORS_SHT21 is not set CONFIG_SENSORS_SHT3x=y CONFIG_SENSORS_SHT4x=y CONFIG_SENSORS_SHTC1=y
# CONFIG_SENSORS_SIS5595 is not set CONFIG_SENSORS_DME1737=y CONFIG_SENSORS_EMC1403=y CONFIG_SENSORS_EMC2103=y
# CONFIG_SENSORS_EMC2305 is not set CONFIG_SENSORS_EMC6W201=y
# CONFIG_SENSORS_SMSC47M1 is not set CONFIG_SENSORS_SMSC47M192=y
# CONFIG_SENSORS_SMSC47B397 is not set # CONFIG_SENSORS_STTS751 is not set CONFIG_SENSORS_SMM665=y CONFIG_SENSORS_ADC128D818=y CONFIG_SENSORS_ADS7828=y CONFIG_SENSORS_AMC6821=y CONFIG_SENSORS_INA209=y CONFIG_SENSORS_INA2XX=y CONFIG_SENSORS_INA238=y
# CONFIG_SENSORS_INA3221 is not set CONFIG_SENSORS_TC74=y CONFIG_SENSORS_THMC50=y
# CONFIG_SENSORS_TMP102 is not set CONFIG_SENSORS_TMP103=y CONFIG_SENSORS_TMP108=y CONFIG_SENSORS_TMP401=y
# CONFIG_SENSORS_TMP421 is not set
# CONFIG_SENSORS_TMP464 is not set CONFIG_SENSORS_TMP513=y
# CONFIG_SENSORS_VIA_CPUTEMP is not set # CONFIG_SENSORS_VIA686A is not set
# CONFIG_SENSORS_VT1211 is not set
# CONFIG_SENSORS_VT8231 is not set CONFIG_SENSORS_W83773G=y
# CONFIG_SENSORS_W83781D is not set
# CONFIG_SENSORS_W83791D is not set CONFIG_SENSORS_W83792D=y
# CONFIG_SENSORS_W83793 is not set CONFIG_SENSORS_W83795=y CONFIG_SENSORS_W83795_FANCTRL=y
# CONFIG_SENSORS_W83L785TS is not set CONFIG_SENSORS_W83L786NG=y
# CONFIG_SENSORS_W83627HF is not set
# CONFIG_SENSORS_W83627EHF is not set # CONFIG_SENSORS_WM831X is not set CONFIG_SENSORS_WM8350=y
#
# ACPI drivers
#CONFIG_SENSORS_ACPI_POWER=y CONFIG_SENSORS_ATK0110=y
# CONFIG_SENSORS_ASUS_EC is not set
# CONFIG_THERMAL is not set
# CONFIG_WATCHDOG is not set CONFIG_SSB_POSSIBLE=yCONFIG_SSB=yCONFIG_SSB_SPROM=y CONFIG_SSB_PCIHOST_POSSIBLE=y CONFIG_SSB_PCIHOST=y CONFIG_SSB_SDIOHOST_POSSIBLE=y
# CONFIG_SSB_SDIOHOST is not set CONFIG_SSB_DRIVER_PCICORE_POSSIBLE=y
# CONFIG_SSB_DRIVER_PCICORE is not set CONFIG_SSB_DRIVER_GPIO=y CONFIG_BCMA_POSSIBLE=yCONFIG_BCMA=y CONFIG_BCMA_HOST_PCI_POSSIBLE=y CONFIG_BCMA_HOST_PCI=y CONFIG_BCMA_HOST_SOC=y CONFIG_BCMA_DRIVER_PCI=y
# CONFIG_BCMA_SFLASH is not set
# CONFIG_BCMA_DRIVER_GMAC_CMN is not set CONFIG_BCMA_DRIVER_GPIO=y
# CONFIG_BCMA_DEBUG is not set
#
# Multifunction device drivers
#CONFIG_MFD_CORE=yCONFIG_MFD_AS3711=y
# CONFIG_PMIC_ADP5520 is not set
# CONFIG_MFD_AAT2870_CORE is not set
# CONFIG_MFD_BCM590XX is not set CONFIG_MFD_BD9571MWV=y CONFIG_MFD_AXP20X=y CONFIG_MFD_AXP20X_I2C=y
# CONFIG_MFD_CROS_EC_DEV is not set CONFIG_MFD_MADERA=y
# CONFIG_MFD_MADERA_I2C is not set
# CONFIG_MFD_CS47L15 is not set CONFIG_MFD_CS47L35=y CONFIG_MFD_CS47L85=y CONFIG_MFD_CS47L90=y
# CONFIG_MFD_CS47L92 is not set CONFIG_PMIC_DA903X=y
# CONFIG_MFD_DA9052_I2C is not set CONFIG_MFD_DA9055=y CONFIG_MFD_DA9062=y CONFIG_MFD_DA9063=y CONFIG_MFD_DA9150=y CONFIG_MFD_MC13XXX=y CONFIG_MFD_MC13XXX_I2C=y
# CONFIG_MFD_MP2629 is not set CONFIG_HTC_PASIC3=y CONFIG_HTC_I2CPLD=y
# CONFIG_MFD_INTEL_QUARK_I2C_GPIO is not set # CONFIG_LPC_ICH is not set
# CONFIG_LPC_SCH is not set
# CONFIG_INTEL_SOC_PMIC_MRFLD is not set CONFIG_MFD_INTEL_LPSS=y CONFIG_MFD_INTEL_LPSS_ACPI=y
# CONFIG_MFD_INTEL_LPSS_PCI is not set # CONFIG_MFD_INTEL_PMC_BXT is not set # CONFIG_MFD_IQS62X is not set
# CONFIG_MFD_JANZ_CMODIO is not set
# CONFIG_MFD_KEMPLD is not set
# CONFIG_MFD_88PM800 is not set CONFIG_MFD_88PM805=y CONFIG_MFD_88PM860X=y CONFIG_MFD_MAX14577=y
# CONFIG_MFD_MAX77693 is not set
# CONFIG_MFD_MAX77843 is not set CONFIG_MFD_MAX8907=y
# CONFIG_MFD_MAX8925 is not set CONFIG_MFD_MAX8997=y
# CONFIG_MFD_MAX8998 is not set CONFIG_MFD_MT6360=y
# CONFIG_MFD_MT6370 is not set CONFIG_MFD_MT6397=y
# CONFIG_MFD_MENF21BMC is not set CONFIG_MFD_RETU=y
# CONFIG_MFD_PCF50633 is not set
# CONFIG_MFD_SY7636A is not set
# CONFIG_MFD_RDC321X is not set CONFIG_MFD_RT4831=y CONFIG_MFD_RT5033=y
# CONFIG_MFD_RT5120 is not set
# CONFIG_MFD_RC5T583 is not set CONFIG_MFD_SI476X_CORE=y CONFIG_MFD_SM501=y
# CONFIG_MFD_SM501_GPIO is not set
# CONFIG_MFD_SKY81452 is not set CONFIG_MFD_SYSCON=y CONFIG_MFD_TI_AM335X_TSCADC=y CONFIG_MFD_LP3943=y CONFIG_MFD_LP8788=y CONFIG_MFD_TI_LMU=y CONFIG_MFD_PALMAS=yCONFIG_TPS6105X=y
# CONFIG_TPS65010 is not set
# CONFIG_TPS6507X is not set CONFIG_MFD_TPS65086=y CONFIG_MFD_TPS65090=y CONFIG_MFD_TI_LP873X=y CONFIG_MFD_TPS6586X=y CONFIG_MFD_TPS65910=y
# CONFIG_MFD_TPS65912_I2C is not set
# CONFIG_TWL4030_CORE is not set
# CONFIG_TWL6040_CORE is not set CONFIG_MFD_WL1273_CORE=y CONFIG_MFD_LM3533=y CONFIG_MFD_TQMX86=y
# CONFIG_MFD_VX855 is not set CONFIG_MFD_ARIZONA=y CONFIG_MFD_ARIZONA_I2C=y
# CONFIG_MFD_CS47L24 is not set
# CONFIG_MFD_WM5102 is not set
# CONFIG_MFD_WM5110 is not set
# CONFIG_MFD_WM8997 is not set CONFIG_MFD_WM8998=y CONFIG_MFD_WM8400=y CONFIG_MFD_WM831X=y CONFIG_MFD_WM831X_I2C=y CONFIG_MFD_WM8350=y CONFIG_MFD_WM8350_I2C=y CONFIG_MFD_WM8994=y
# CONFIG_MFD_WCD934X is not set CONFIG_MFD_ATC260X=y CONFIG_MFD_ATC260X_I2C=y CONFIG_RAVE_SP_CORE=y
# end of Multifunction device drivers
CONFIG_REGULATOR=y CONFIG_REGULATOR_DEBUG=y CONFIG_REGULATOR_FIXED_VOLTAGE=y CONFIG_REGULATOR_VIRTUAL_CONSUMER=y
# CONFIG_REGULATOR_USERSPACE_CONSUMER is not set CONFIG_REGULATOR_88PG86X=y CONFIG_REGULATOR_88PM8607=y CONFIG_REGULATOR_ACT8865=y
# CONFIG_REGULATOR_AD5398 is not set CONFIG_REGULATOR_AS3711=y CONFIG_REGULATOR_ATC260X=y CONFIG_REGULATOR_AXP20X=y
# CONFIG_REGULATOR_BD9571MWV is not set CONFIG_REGULATOR_DA903X=y CONFIG_REGULATOR_DA9055=y CONFIG_REGULATOR_DA9062=y
# CONFIG_REGULATOR_DA9210 is not set
# CONFIG_REGULATOR_DA9211 is not set CONFIG_REGULATOR_FAN53555=y CONFIG_REGULATOR_GPIO=y CONFIG_REGULATOR_ISL9305=y
# CONFIG_REGULATOR_ISL6271A is not set CONFIG_REGULATOR_LM363X=y CONFIG_REGULATOR_LP3971=y
# CONFIG_REGULATOR_LP3972 is not set CONFIG_REGULATOR_LP872X=y CONFIG_REGULATOR_LP8755=y CONFIG_REGULATOR_LP8788=y
# CONFIG_REGULATOR_LTC3589 is not set CONFIG_REGULATOR_LTC3676=y CONFIG_REGULATOR_MAX14577=y CONFIG_REGULATOR_MAX1586=y
# CONFIG_REGULATOR_MAX8649 is not set CONFIG_REGULATOR_MAX8660=y
# CONFIG_REGULATOR_MAX8893 is not set CONFIG_REGULATOR_MAX8907=y CONFIG_REGULATOR_MAX8952=y
# CONFIG_REGULATOR_MAX8997 is not set
# CONFIG_REGULATOR_MAX20086 is not set
# CONFIG_REGULATOR_MAX77826 is not set
# CONFIG_REGULATOR_MC13783 is not set
# CONFIG_REGULATOR_MC13892 is not set CONFIG_REGULATOR_MP8859=y CONFIG_REGULATOR_MT6311=y
# CONFIG_REGULATOR_MT6315 is not set CONFIG_REGULATOR_MT6323=y
# CONFIG_REGULATOR_MT6331 is not set
# CONFIG_REGULATOR_MT6332 is not set CONFIG_REGULATOR_MT6358=y CONFIG_REGULATOR_MT6359=y
# CONFIG_REGULATOR_MT6360 is not set
# CONFIG_REGULATOR_MT6397 is not set CONFIG_REGULATOR_PALMAS=y CONFIG_REGULATOR_PCA9450=y CONFIG_REGULATOR_PV88060=y CONFIG_REGULATOR_PV88080=y
# CONFIG_REGULATOR_PV88090 is not set CONFIG_REGULATOR_QCOM_SPMI=y CONFIG_REGULATOR_QCOM_USB_VBUS=y CONFIG_REGULATOR_RT4801=y CONFIG_REGULATOR_RT4831=y CONFIG_REGULATOR_RT5033=y
# CONFIG_REGULATOR_RT5190A is not set
# CONFIG_REGULATOR_RT5759 is not set CONFIG_REGULATOR_RT6160=y CONFIG_REGULATOR_RT6245=y CONFIG_REGULATOR_RTQ2134=y
# CONFIG_REGULATOR_RTMV20 is not set CONFIG_REGULATOR_RTQ6752=y CONFIG_REGULATOR_SLG51000=y
# CONFIG_REGULATOR_TPS51632 is not set CONFIG_REGULATOR_TPS6105X=y CONFIG_REGULATOR_TPS62360=y CONFIG_REGULATOR_TPS65023=y
# CONFIG_REGULATOR_TPS6507X is not set CONFIG_REGULATOR_TPS65086=y CONFIG_REGULATOR_TPS65090=y CONFIG_REGULATOR_TPS65132=y CONFIG_REGULATOR_TPS6586X=y CONFIG_REGULATOR_TPS65910=y
# CONFIG_REGULATOR_TPS68470 is not set CONFIG_REGULATOR_WM831X=y
# CONFIG_REGULATOR_WM8350 is not set
# CONFIG_REGULATOR_WM8400 is not set CONFIG_REGULATOR_WM8994=y CONFIG_REGULATOR_QCOM_LABIBB=y
# CONFIG_RC_CORE is not set CONFIG_CEC_CORE=yCONFIG_CEC_NOTIFIER=y
#
# CEC support
#CONFIG_MEDIA_CEC_SUPPORT=y
# CONFIG_CEC_CH7322 is not set CONFIG_CEC_CROS_EC=y
# CONFIG_CEC_SECO is not set
# CONFIG_USB_PULSE8_CEC is not set
# CONFIG_USB_RAINSHADOW_CEC is not set
# end of CEC support
# CONFIG_MEDIA_SUPPORT is not set
#
# Graphics support
#CONFIG_APERTURE_HELPERS=y
# CONFIG_AGP is not set
# CONFIG_VGA_SWITCHEROO is not set CONFIG_DRM=yCONFIG_DRM_DEBUG_MM=y CONFIG_DRM_KMS_HELPER=y CONFIG_DRM_DEBUG_DP_MST_TOPOLOGY_REFS=y # CONFIG_DRM_DEBUG_MODESET_LOCK is not set CONFIG_DRM_LOAD_EDID_FIRMWARE=y CONFIG_DRM_DISPLAY_HELPER=y CONFIG_DRM_DISPLAY_DP_HELPER=y
# CONFIG_DRM_DP_AUX_CHARDEV is not set CONFIG_DRM_DP_CEC=y CONFIG_DRM_GEM_SHMEM_HELPER=y CONFIG_DRM_SCHED=y
#
# I2C encoder or helper chips
#CONFIG_DRM_I2C_CH7006=y CONFIG_DRM_I2C_SIL164=y
# CONFIG_DRM_I2C_NXP_TDA998X is not set CONFIG_DRM_I2C_NXP_TDA9950=y
# end of I2C encoder or helper chips
#
# ARM devices
#
# end of ARM devices
# CONFIG_DRM_RADEON is not set
# CONFIG_DRM_AMDGPU is not set
# CONFIG_DRM_NOUVEAU is not set
# CONFIG_DRM_I915 is not setCONFIG_DRM_VGEM=yCONFIG_DRM_VKMS=y
# CONFIG_DRM_VMWGFX is not set
# CONFIG_DRM_GMA500 is not set
# CONFIG_DRM_AST is not set
# CONFIG_DRM_MGAG200 is not set
# CONFIG_DRM_QXL is not setCONFIG_DRM_PANEL=y
#
# Display Panels
#
# end of Display Panels
CONFIG_DRM_BRIDGE=yCONFIG_DRM_PANEL_BRIDGE=y
#
# Display Interface Bridges
#CONFIG_DRM_ANALOGIX_ANX78XX=yCONFIG_DRM_ANALOGIX_DP=y
# end of Display Interface Bridges
CONFIG_DRM_ETNAVIV=y
# CONFIG_DRM_ETNAVIV_THERMAL is not set # CONFIG_DRM_BOCHS is not set
# CONFIG_DRM_CIRRUS_QEMU is not set CONFIG_DRM_SIMPLEDRM=y
# CONFIG_DRM_VBOXVIDEO is not set
# CONFIG_DRM_SSD130X is not set CONFIG_DRM_LEGACY=y
# CONFIG_DRM_TDFX is not set
# CONFIG_DRM_R128 is not set
# CONFIG_DRM_MGA is not set
# CONFIG_DRM_VIA is not set
# CONFIG_DRM_SAVAGE is not set CONFIG_DRM_PANEL_ORIENTATION_QUIRKS=y CONFIG_DRM_NOMODESET=y
#
# Frame buffer Devices
#CONFIG_FB_CMDLINE=y
# CONFIG_FB is not set
# end of Frame buffer Devices
#
# Backlight & LCD device support
#CONFIG_LCD_CLASS_DEVICE=y CONFIG_LCD_PLATFORM=y CONFIG_BACKLIGHT_CLASS_DEVICE=y CONFIG_BACKLIGHT_KTD253=y
# CONFIG_BACKLIGHT_LM3533 is not set CONFIG_BACKLIGHT_DA903X=y
# CONFIG_BACKLIGHT_APPLE is not set CONFIG_BACKLIGHT_QCOM_WLED=y CONFIG_BACKLIGHT_RT4831=y
# CONFIG_BACKLIGHT_SAHARA is not set
# CONFIG_BACKLIGHT_WM831X is not set CONFIG_BACKLIGHT_ADP8860=y
# CONFIG_BACKLIGHT_ADP8870 is not set CONFIG_BACKLIGHT_88PM860X=y CONFIG_BACKLIGHT_LM3639=y CONFIG_BACKLIGHT_AS3711=y CONFIG_BACKLIGHT_GPIO=y
# CONFIG_BACKLIGHT_LV5207LP is not set CONFIG_BACKLIGHT_BD6107=y
# CONFIG_BACKLIGHT_ARCXCNN is not set CONFIG_BACKLIGHT_RAVE_SP=y
# end of Backlight & LCD device support
CONFIG_HDMI=y
# end of Graphics support
# CONFIG_SOUND is not set
#
# HID support
#CONFIG_HID=y
# CONFIG_HID_BATTERY_STRENGTH is not set # CONFIG_HIDRAW is not set
# CONFIG_UHID is not set CONFIG_HID_GENERIC=y
#
# Special HID drivers
#
# CONFIG_HID_A4TECH is not set
# CONFIG_HID_ACRUX is not set
# CONFIG_HID_APPLE is not set
# CONFIG_HID_AUREAL is not set
# CONFIG_HID_BELKIN is not set
# CONFIG_HID_CHERRY is not set
# CONFIG_HID_COUGAR is not set
# CONFIG_HID_MACALLY is not set
# CONFIG_HID_CMEDIA is not set
# CONFIG_HID_CYPRESS is not set
# CONFIG_HID_DRAGONRISE is not set
# CONFIG_HID_EMS_FF is not set
# CONFIG_HID_ELECOM is not set
# CONFIG_HID_EZKEY is not set
# CONFIG_HID_GEMBIRD is not set
# CONFIG_HID_GFRM is not set
# CONFIG_HID_GLORIOUS is not set
# CONFIG_HID_VIVALDI is not set
# CONFIG_HID_KEYTOUCH is not set
# CONFIG_HID_KYE is not set
# CONFIG_HID_WALTOP is not set
# CONFIG_HID_VIEWSONIC is not set
# CONFIG_HID_VRC2 is not set
# CONFIG_HID_XIAOMI is not set
# CONFIG_HID_GYRATION is not set
# CONFIG_HID_ICADE is not set
# CONFIG_HID_ITE is not set
# CONFIG_HID_JABRA is not set
# CONFIG_HID_TWINHAN is not set
# CONFIG_HID_KENSINGTON is not set
# CONFIG_HID_LCPOWER is not set
# CONFIG_HID_LED is not set
# CONFIG_HID_LENOVO is not set
# CONFIG_HID_MAGICMOUSE is not set
# CONFIG_HID_MALTRON is not set
# CONFIG_HID_MAYFLASH is not set
# CONFIG_HID_REDRAGON is not set
# CONFIG_HID_MICROSOFT is not set
# CONFIG_HID_MONTEREY is not set
# CONFIG_HID_MULTITOUCH is not set
# CONFIG_HID_NINTENDO is not set
# CONFIG_HID_NTI is not set
# CONFIG_HID_ORTEK is not set
# CONFIG_HID_PANTHERLORD is not set
# CONFIG_HID_PETALYNX is not set
# CONFIG_HID_PICOLCD is not set
# CONFIG_HID_PLANTRONICS is not set
# CONFIG_HID_PLAYSTATION is not set
# CONFIG_HID_PXRC is not set
# CONFIG_HID_RAZER is not set
# CONFIG_HID_PRIMAX is not set
# CONFIG_HID_SAITEK is not set
# CONFIG_HID_SEMITEK is not set
# CONFIG_HID_SPEEDLINK is not set
# CONFIG_HID_STEAM is not set
# CONFIG_HID_STEELSERIES is not set
# CONFIG_HID_SUNPLUS is not set
# CONFIG_HID_RMI is not set
# CONFIG_HID_GREENASIA is not set
# CONFIG_HID_SMARTJOYPLUS is not set
# CONFIG_HID_TIVO is not set
# CONFIG_HID_TOPSEED is not set
# CONFIG_HID_TOPRE is not set
# CONFIG_HID_THINGM is not set
# CONFIG_HID_UDRAW_PS3 is not set
# CONFIG_HID_WIIMOTE is not set
# CONFIG_HID_XINMO is not set
# CONFIG_HID_ZEROPLUS is not set
# CONFIG_HID_ZYDACRON is not set
# CONFIG_HID_SENSOR_HUB is not set
# CONFIG_HID_ALPS is not set
# end of Special HID drivers
#
# I2C HID support
#
# CONFIG_I2C_HID_ACPI is not set
# end of I2C HID support
#
# Intel ISH HID support
#
# CONFIG_INTEL_ISH_HID is not set
# end of Intel ISH HID support
#
# AMD SFH HID Support
#
# CONFIG_AMD_SFH_HID is not set
# end of AMD SFH HID Support
#
# Surface System Aggregator Module HID support #
# CONFIG_SURFACE_KBD is not set
# end of Surface System Aggregator Module HID support # end of HID support
CONFIG_USB_OHCI_LITTLE_ENDIAN=y CONFIG_USB_SUPPORT=y CONFIG_USB_COMMON=y
# CONFIG_USB_LED_TRIG is not set CONFIG_USB_ULPI_BUS=y CONFIG_USB_CONN_GPIO=y CONFIG_USB_ARCH_HAS_HCD=y
# CONFIG_USB is not set CONFIG_USB_PCI=y CONFIG_USB_CDNS_SUPPORT=y
# CONFIG_USB_CDNS3 is not set
# CONFIG_USB_CDNSP_PCI is not set CONFIG_USB_MUSB_HDRC=y CONFIG_USB_MUSB_GADGET=y
#
# Platform Glue Layer
#
#
# MUSB DMA mode
#
# CONFIG_MUSB_PIO_ONLY is not set CONFIG_USB_DWC3=y CONFIG_USB_DWC3_ULPI=y CONFIG_USB_DWC3_GADGET=y
#
# Platform Glue Driver Support
#CONFIG_USB_DWC3_PCI=yCONFIG_USB_DWC3_HAPS=yCONFIG_USB_DWC2=y
#
# Gadget/Dual-role mode requires USB Gadget support to be enabled #CONFIG_USB_DWC2_PERIPHERAL=y
# CONFIG_USB_DWC2_PCI is not set CONFIG_USB_DWC2_DEBUG=y
# CONFIG_USB_DWC2_VERBOSE is not set
# CONFIG_USB_DWC2_TRACK_MISSED_SOFS is not set
# CONFIG_USB_DWC2_DEBUG_PERIODIC is not set CONFIG_USB_CHIPIDEA=yCONFIG_USB_CHIPIDEA_UDC=yCONFIG_USB_CHIPIDEA_PCI=yCONFIG_USB_CHIPIDEA_MSM=yCONFIG_USB_CHIPIDEA_GENERIC=yCONFIG_USB_ISP1760=yCONFIG_USB_ISP1761_UDC=y CONFIG_USB_ISP1760_GADGET_ROLE=y
#
# USB port drivers
#
#
# USB Physical Layer drivers
#CONFIG_USB_PHY=y CONFIG_NOP_USB_XCEIV=y CONFIG_USB_GPIO_VBUS=y CONFIG_TAHVO_USB=y
# CONFIG_TAHVO_USB_HOST_BY_DEFAULT is not set CONFIG_USB_ISP1301=y
# end of USB Physical Layer drivers
CONFIG_USB_GADGET=y
# CONFIG_USB_GADGET_DEBUG is not set
# CONFIG_USB_GADGET_DEBUG_FILES is not set CONFIG_USB_GADGET_DEBUG_FS=y CONFIG_USB_GADGET_VBUS_DRAW=2 CONFIG_USB_GADGET_STORAGE_NUM_BUFFERS=2
#
# USB Peripheral Controller
#
# CONFIG_USB_FOTG210_UDC is not set CONFIG_USB_GR_UDC=y
# CONFIG_USB_R8A66597 is not set CONFIG_USB_PXA27X=y CONFIG_USB_MV_UDC=y CONFIG_USB_MV_U3D=y CONFIG_USB_M66592=y CONFIG_USB_BDC_UDC=y
# CONFIG_USB_AMD5536UDC is not set CONFIG_USB_NET2272=y
# CONFIG_USB_NET2272_DMA is not set
# CONFIG_USB_NET2280 is not set
# CONFIG_USB_GOKU is not set
# CONFIG_USB_EG20T is not set
# end of USB Peripheral Controller
CONFIG_USB_LIBCOMPOSITE=yCONFIG_USB_F_FS=yCONFIG_USB_F_HID=yCONFIG_USB_F_PRINTER=y
# CONFIG_USB_CONFIGFS is not set
#
# USB Gadget precomposed configurations #
# CONFIG_USB_ZERO is not set
# CONFIG_USB_ETH is not set
# CONFIG_USB_G_NCM is not set
# CONFIG_USB_GADGETFS is not set CONFIG_USB_FUNCTIONFS=y
# CONFIG_USB_FUNCTIONFS_ETH is not set # CONFIG_USB_FUNCTIONFS_RNDIS is not set CONFIG_USB_FUNCTIONFS_GENERIC=y
# CONFIG_USB_G_SERIAL is not set CONFIG_USB_G_PRINTER=y
# CONFIG_USB_CDC_COMPOSITE is not set CONFIG_USB_G_HID=y
# CONFIG_USB_G_DBGP is not set CONFIG_USB_RAW_GADGET=y
# end of USB Gadget precomposed configurations
# CONFIG_TYPEC is not setCONFIG_USB_ROLE_SWITCH=yCONFIG_USB_ROLES_INTEL_XHCI=yCONFIG_MMC=y
# CONFIG_SDIO_UART is not set
# CONFIG_MMC_TEST is not set
#
# MMC/SD/SDIO Host Controller Drivers #
# CONFIG_MMC_DEBUG is not set CONFIG_MMC_SDHCI=y
# CONFIG_MMC_SDHCI_PCI is not set
# CONFIG_MMC_SDHCI_ACPI is not set CONFIG_MMC_SDHCI_PLTFM=y CONFIG_MMC_SDHCI_F_SDH30=y
# CONFIG_MMC_TIFM_SD is not set
# CONFIG_MMC_CB710 is not set
# CONFIG_MMC_VIA_SDMMC is not set CONFIG_MMC_USDHI6ROL0=y CONFIG_MMC_CQHCI=y
# CONFIG_MMC_HSQ is not set
# CONFIG_MMC_TOSHIBA_PCI is not set
# CONFIG_MMC_MTK is not set
# CONFIG_MMC_SDHCI_XENON is not set
# CONFIG_MEMSTICK is not set CONFIG_NEW_LEDS=yCONFIG_LEDS_CLASS=y CONFIG_LEDS_CLASS_FLASH=y CONFIG_LEDS_CLASS_MULTICOLOR=y CONFIG_LEDS_BRIGHTNESS_HW_CHANGED=y
#
# LED drivers
#CONFIG_LEDS_88PM860X=y
# CONFIG_LEDS_APU is not set CONFIG_LEDS_LM3530=y CONFIG_LEDS_LM3532=y CONFIG_LEDS_LM3533=y
# CONFIG_LEDS_LM3642 is not set CONFIG_LEDS_MT6323=y
# CONFIG_LEDS_PCA9532 is not set CONFIG_LEDS_GPIO=y CONFIG_LEDS_LP3944=y
# CONFIG_LEDS_LP3952 is not set CONFIG_LEDS_LP50XX=y
# CONFIG_LEDS_LP8788 is not set CONFIG_LEDS_PCA955X=y CONFIG_LEDS_PCA955X_GPIO=y
# CONFIG_LEDS_PCA963X is not set CONFIG_LEDS_WM831X_STATUS=y CONFIG_LEDS_WM8350=y
# CONFIG_LEDS_DA903X is not set CONFIG_LEDS_REGULATOR=y CONFIG_LEDS_BD2802=y
# CONFIG_LEDS_INTEL_SS4200 is not set CONFIG_LEDS_LT3593=y
# CONFIG_LEDS_MC13783 is not set
# CONFIG_LEDS_TCA6507 is not set CONFIG_LEDS_TLC591XX=y CONFIG_LEDS_MAX8997=y CONFIG_LEDS_LM355x=y
# CONFIG_LEDS_IS31FL319X is not set
#
# LED driver for blink(1) USB RGB LED is under Special HID drivers (HID_THINGM) #CONFIG_LEDS_BLINKM=y
# CONFIG_LEDS_MLXCPLD is not setCONFIG_LEDS_MLXREG=yCONFIG_LEDS_USER=yCONFIG_LEDS_NIC78BX=yCONFIG_LEDS_TI_LMU_COMMON=y
# CONFIG_LEDS_LM36274 is not set
# CONFIG_LEDS_TPS6105X is not set
#
# Flash and Torch LED drivers
#CONFIG_LEDS_AS3645A=yCONFIG_LEDS_LM3601X=yCONFIG_LEDS_RT8515=yCONFIG_LEDS_SGM3140=y
#
# RGB LED drivers
#
#
# LED Triggers
#CONFIG_LEDS_TRIGGERS=y CONFIG_LEDS_TRIGGER_TIMER=y CONFIG_LEDS_TRIGGER_ONESHOT=y
# CONFIG_LEDS_TRIGGER_MTD is not set CONFIG_LEDS_TRIGGER_HEARTBEAT=y CONFIG_LEDS_TRIGGER_BACKLIGHT=y
# CONFIG_LEDS_TRIGGER_CPU is not set CONFIG_LEDS_TRIGGER_ACTIVITY=y CONFIG_LEDS_TRIGGER_GPIO=y CONFIG_LEDS_TRIGGER_DEFAULT_ON=y
#
# iptables trigger is under Netfilter config (LED target) # CONFIG_LEDS_TRIGGER_TRANSIENT=y CONFIG_LEDS_TRIGGER_CAMERA=y # CONFIG_LEDS_TRIGGER_PANIC is not set # CONFIG_LEDS_TRIGGER_NETDEV is not set # CONFIG_LEDS_TRIGGER_PATTERN is not set CONFIG_LEDS_TRIGGER_AUDIO=y # CONFIG_LEDS_TRIGGER_TTY is not set
#
# Simple LED drivers
#
# CONFIG_ACCESSIBILITY is not set
# CONFIG_INFINIBAND is not set CONFIG_EDAC_ATOMIC_SCRUB=y CONFIG_EDAC_SUPPORT=yCONFIG_EDAC=y
# CONFIG_EDAC_LEGACY_SYSFS is not set CONFIG_EDAC_DEBUG=yCONFIG_EDAC_GHES=y
# CONFIG_EDAC_E752X is not set
# CONFIG_EDAC_I82975X is not set
# CONFIG_EDAC_I3000 is not set
# CONFIG_EDAC_I3200 is not set
# CONFIG_EDAC_IE31200 is not set
# CONFIG_EDAC_X38 is not set
# CONFIG_EDAC_I5400 is not set
# CONFIG_EDAC_I5000 is not set
# CONFIG_EDAC_I5100 is not set
# CONFIG_EDAC_I7300 is not set CONFIG_RTC_LIB=y CONFIG_RTC_MC146818_LIB=y CONFIG_RTC_CLASS=y CONFIG_RTC_HCTOSYS=y CONFIG_RTC_HCTOSYS_DEVICE="rtc0" CONFIG_RTC_SYSTOHC=y CONFIG_RTC_SYSTOHC_DEVICE="rtc0" CONFIG_RTC_DEBUG=y
# CONFIG_RTC_NVMEM is not set
#
# RTC interfaces
#CONFIG_RTC_INTF_SYSFS=yCONFIG_RTC_INTF_PROC=y
# CONFIG_RTC_INTF_DEV is not set
# CONFIG_RTC_DRV_TEST is not set
#
# I2C RTC drivers
#CONFIG_RTC_DRV_88PM860X=y CONFIG_RTC_DRV_ABB5ZES3=y CONFIG_RTC_DRV_ABEOZ9=y CONFIG_RTC_DRV_ABX80X=y CONFIG_RTC_DRV_DS1307=y
# CONFIG_RTC_DRV_DS1307_CENTURY is not set CONFIG_RTC_DRV_DS1374=y CONFIG_RTC_DRV_DS1672=y
# CONFIG_RTC_DRV_LP8788 is not set
# CONFIG_RTC_DRV_MAX6900 is not set CONFIG_RTC_DRV_MAX8907=y CONFIG_RTC_DRV_MAX8997=y CONFIG_RTC_DRV_RS5C372=y CONFIG_RTC_DRV_ISL1208=y
# CONFIG_RTC_DRV_ISL12022 is not set CONFIG_RTC_DRV_X1205=y CONFIG_RTC_DRV_PCF8523=y
# CONFIG_RTC_DRV_PCF85063 is not set CONFIG_RTC_DRV_PCF85363=y CONFIG_RTC_DRV_PCF8563=y CONFIG_RTC_DRV_PCF8583=y CONFIG_RTC_DRV_M41T80=y CONFIG_RTC_DRV_M41T80_WDT=y CONFIG_RTC_DRV_BQ32K=y
# CONFIG_RTC_DRV_PALMAS is not set CONFIG_RTC_DRV_TPS6586X=y
# CONFIG_RTC_DRV_TPS65910 is not set CONFIG_RTC_DRV_S35390A=y
# CONFIG_RTC_DRV_FM3130 is not set
# CONFIG_RTC_DRV_RX8010 is not set
# CONFIG_RTC_DRV_RX8581 is not set
# CONFIG_RTC_DRV_RX8025 is not set CONFIG_RTC_DRV_EM3027=y CONFIG_RTC_DRV_RV3028=y
# CONFIG_RTC_DRV_RV3032 is not set
# CONFIG_RTC_DRV_RV8803 is not set
# CONFIG_RTC_DRV_SD3078 is not set
#
# SPI RTC drivers
#CONFIG_RTC_I2C_AND_SPI=y
#
# SPI and I2C RTC drivers
#CONFIG_RTC_DRV_DS3232=y CONFIG_RTC_DRV_DS3232_HWMON=y
# CONFIG_RTC_DRV_PCF2127 is not set CONFIG_RTC_DRV_RV3029C2=y CONFIG_RTC_DRV_RV3029_HWMON=y
# CONFIG_RTC_DRV_RX6110 is not set
#
# Platform RTC drivers
#CONFIG_RTC_DRV_CMOS=y CONFIG_RTC_DRV_DS1286=y CONFIG_RTC_DRV_DS1511=y CONFIG_RTC_DRV_DS1553=y CONFIG_RTC_DRV_DS1685_FAMILY=y
# CONFIG_RTC_DRV_DS1685 is not set
# CONFIG_RTC_DRV_DS1689 is not set
# CONFIG_RTC_DRV_DS17285 is not set
# CONFIG_RTC_DRV_DS17485 is not set CONFIG_RTC_DRV_DS17885=y CONFIG_RTC_DRV_DS1742=y CONFIG_RTC_DRV_DS2404=y
# CONFIG_RTC_DRV_DA9055 is not set CONFIG_RTC_DRV_DA9063=y CONFIG_RTC_DRV_STK17TA8=y
# CONFIG_RTC_DRV_M48T86 is not set CONFIG_RTC_DRV_M48T35=y CONFIG_RTC_DRV_M48T59=y
# CONFIG_RTC_DRV_MSM6242 is not set CONFIG_RTC_DRV_BQ4802=y
# CONFIG_RTC_DRV_RP5C01 is not set
# CONFIG_RTC_DRV_V3020 is not set
# CONFIG_RTC_DRV_WM831X is not set CONFIG_RTC_DRV_WM8350=y
# CONFIG_RTC_DRV_CROS_EC is not set
#
# on-CPU RTC drivers
#CONFIG_RTC_DRV_FTRTC010=y CONFIG_RTC_DRV_MC13XXX=y
# CONFIG_RTC_DRV_MT6397 is not set
#
# HID Sensor RTC drivers
#CONFIG_RTC_DRV_GOLDFISH=y CONFIG_DMADEVICES=y
# CONFIG_DMADEVICES_DEBUG is not set
#
# DMA Devices
#CONFIG_DMA_ENGINE=y CONFIG_DMA_VIRTUAL_CHANNELS=y CONFIG_DMA_ACPI=y
# CONFIG_ALTERA_MSGDMA is not set CONFIG_INTEL_IDMA64=y
# CONFIG_INTEL_IDXD_COMPAT is not set # CONFIG_INTEL_IOATDMA is not set
# CONFIG_PLX_DMA is not set
# CONFIG_AMD_PTDMA is not set
# CONFIG_QCOM_HIDMA_MGMT is not set
# CONFIG_QCOM_HIDMA is not set CONFIG_DW_DMAC_CORE=yCONFIG_DW_DMAC=y
# CONFIG_DW_DMAC_PCI is not set CONFIG_HSU_DMA=y
# CONFIG_SF_PDMA is not set
# CONFIG_INTEL_LDMA is not set
#
# DMA Clients
#CONFIG_ASYNC_TX_DMA=yCONFIG_DMATEST=yCONFIG_DMA_ENGINE_RAID=y
#
# DMABUF options
#CONFIG_SYNC_FILE=y
# CONFIG_SW_SYNC is not set CONFIG_UDMABUF=y
# CONFIG_DMABUF_MOVE_NOTIFY is not set CONFIG_DMABUF_DEBUG=y
# CONFIG_DMABUF_SELFTESTS is not set CONFIG_DMABUF_HEAPS=y CONFIG_DMABUF_SYSFS_STATS=y CONFIG_DMABUF_HEAPS_SYSTEM=y CONFIG_DMABUF_HEAPS_CMA=y
# end of DMABUF options
CONFIG_AUXDISPLAY=yCONFIG_CHARLCD=yCONFIG_LINEDISP=y CONFIG_HD44780_COMMON=y CONFIG_HD44780=y CONFIG_IMG_ASCII_LCD=yCONFIG_LCD2S=yCONFIG_PARPORT_PANEL=y CONFIG_PANEL_PARPORT=0 CONFIG_PANEL_PROFILE=5 CONFIG_PANEL_CHANGE_MESSAGE=y CONFIG_PANEL_BOOT_MESSAGE="" CONFIG_CHARLCD_BL_OFF=y
# CONFIG_CHARLCD_BL_ON is not set
# CONFIG_CHARLCD_BL_FLASH is not set CONFIG_PANEL=y
# CONFIG_UIO is not set
# CONFIG_VFIO is not set CONFIG_VIRT_DRIVERS=yCONFIG_VMGENID=y
# CONFIG_VBOXGUEST is not set
# CONFIG_EFI_SECRET is not set CONFIG_VIRTIO_ANCHOR=yCONFIG_VIRTIO=y
# CONFIG_VIRTIO_MENU is not set
# CONFIG_VDPA is not set CONFIG_VHOST_MENU=y
# CONFIG_VHOST_NET is not set
# CONFIG_VHOST_CROSS_ENDIAN_LEGACY is not set
#
# Microsoft Hyper-V guest support
#
# CONFIG_HYPERV is not set
# end of Microsoft Hyper-V guest support
# CONFIG_GREYBUS is not set CONFIG_COMEDI=yCONFIG_COMEDI_DEBUG=y CONFIG_COMEDI_DEFAULT_BUF_SIZE_KB=2048 CONFIG_COMEDI_DEFAULT_BUF_MAXSIZE_KB=20480 # CONFIG_COMEDI_MISC_DRIVERS is not set # CONFIG_COMEDI_ISA_DRIVERS is not set # CONFIG_COMEDI_PCI_DRIVERS is not set CONFIG_COMEDI_8255=y CONFIG_COMEDI_8255_SA=y
# CONFIG_COMEDI_KCOMEDILIB is not set # CONFIG_COMEDI_TESTS is not set CONFIG_STAGING=y
# CONFIG_RTLLIB is not set
#
# IIO staging drivers
#
#
# Accelerometers
#
# end of Accelerometers
#
# Analog to digital converters
#
# end of Analog to digital converters
#
# Analog digital bi-direction converters #
# CONFIG_ADT7316 is not set
# end of Analog digital bi-direction converters
#
# Direct Digital Synthesis
#
# end of Direct Digital Synthesis
#
# Network Analyzer, Impedance Converters #
# CONFIG_AD5933 is not set
# end of Network Analyzer, Impedance Converters
#
# Active energy metering IC
#CONFIG_ADE7854=yCONFIG_ADE7854_I2C=y
# end of Active energy metering IC
#
# Resolver to digital converters
#
# end of Resolver to digital converters # end of IIO staging drivers
# CONFIG_STAGING_MEDIA is not set
# CONFIG_MOST_COMPONENTS is not set
# CONFIG_KS7010 is not set CONFIG_FIELDBUS_DEV=y
# CONFIG_QLGE is not set
# CONFIG_VME_BUS is not set CONFIG_CHROME_PLATFORMS=y
# CONFIG_CHROMEOS_ACPI is not set
# CONFIG_CHROMEOS_LAPTOP is not set CONFIG_CHROMEOS_PSTORE=y
# CONFIG_CHROMEOS_TBMC is not set CONFIG_CROS_EC=y
# CONFIG_CROS_EC_I2C is not set
# CONFIG_CROS_EC_LPC is not set CONFIG_CROS_EC_PROTO=y CONFIG_CROS_KBD_LED_BACKLIGHT=y
# CONFIG_CHROMEOS_PRIVACY_SCREEN is not set CONFIG_MELLANOX_PLATFORM=y CONFIG_MLXREG_HOTPLUG=yCONFIG_MLXREG_IO=yCONFIG_MLXREG_LC=y
# CONFIG_NVSW_SN2201 is not set CONFIG_SURFACE_PLATFORMS=y CONFIG_SURFACE_3_POWER_OPREGION=y CONFIG_SURFACE_ACPI_NOTIFY=y CONFIG_SURFACE_AGGREGATOR_CDEV=y
# CONFIG_SURFACE_DTX is not set
# CONFIG_SURFACE_GPE is not set CONFIG_SURFACE_HOTPLUG=y
# CONFIG_SURFACE_PRO3_BUTTON is not set CONFIG_SURFACE_AGGREGATOR=y
# CONFIG_SURFACE_AGGREGATOR_BUS is not set
# CONFIG_SURFACE_AGGREGATOR_ERROR_INJECTION is not set CONFIG_X86_PLATFORM_DEVICES=y
# CONFIG_ACPI_WMI is not set
# CONFIG_ACER_WIRELESS is not set
# CONFIG_AMD_PMF is not set
# CONFIG_AMD_PMC is not set
# CONFIG_ADV_SWBUTTON is not set
# CONFIG_APPLE_GMUX is not set
# CONFIG_ASUS_LAPTOP is not set
# CONFIG_ASUS_WIRELESS is not set
# CONFIG_ASUS_TF103C_DOCK is not set CONFIG_X86_PLATFORM_DRIVERS_DELL=y CONFIG_DCDBAS=yCONFIG_DELL_LAPTOP=mCONFIG_DELL_RBU=yCONFIG_DELL_SMBIOS=y
# CONFIG_DELL_SMBIOS_SMM is not set CONFIG_DELL_SMO8800=y
# CONFIG_FUJITSU_LAPTOP is not set
# CONFIG_FUJITSU_TABLET is not set
# CONFIG_HP_ACCEL is not set
# CONFIG_WIRELESS_HOTKEY is not set
# CONFIG_IBM_RTL is not set
# CONFIG_SENSORS_HDAPS is not set
# CONFIG_THINKPAD_ACPI is not set CONFIG_INTEL_ATOMISP2_PDX86=y CONFIG_INTEL_ATOMISP2_LED=y CONFIG_INTEL_SAR_INT1092=y CONFIG_INTEL_SKL_INT3472=y
# CONFIG_INTEL_PMC_CORE is not set
#
# Intel Speed Select Technology interface support #
# CONFIG_INTEL_SPEED_SELECT_INTERFACE is not set
# end of Intel Speed Select Technology interface support
#
# Intel Uncore Frequency Control
#CONFIG_INTEL_UNCORE_FREQ_CONTROL=y
# end of Intel Uncore Frequency Control
# CONFIG_INTEL_HID_EVENT is not set
# CONFIG_INTEL_VBTN is not set CONFIG_INTEL_INT0002_VGPIO=y
# CONFIG_INTEL_PUNIT_IPC is not set
# CONFIG_INTEL_RST is not set CONFIG_INTEL_SMARTCONNECT=y
# CONFIG_INTEL_VSEC is not set
# CONFIG_PCENGINES_APU2 is not set CONFIG_BARCO_P50_GPIO=y
# CONFIG_SAMSUNG_LAPTOP is not set CONFIG_SAMSUNG_Q10=y CONFIG_TOSHIBA_BT_RFKILL=y CONFIG_TOSHIBA_HAPS=y
# CONFIG_ACPI_CMPC is not set
# CONFIG_PANASONIC_LAPTOP is not set
# CONFIG_SYSTEM76_ACPI is not set
# CONFIG_TOPSTAR_LAPTOP is not set
# CONFIG_MLX_PLATFORM is not set
# CONFIG_INTEL_IPS is not set CONFIG_INTEL_SCU_IPC=y CONFIG_INTEL_SCU=y
# CONFIG_INTEL_SCU_PCI is not set CONFIG_INTEL_SCU_PLATFORM=y
# CONFIG_INTEL_SCU_IPC_UTIL is not set # CONFIG_SIEMENS_SIMATIC_IPC is not set # CONFIG_WINMATE_FM07_KEYS is not set # CONFIG_P2SB is not set CONFIG_HAVE_CLK=y CONFIG_HAVE_CLK_PREPARE=y CONFIG_COMMON_CLK=y CONFIG_COMMON_CLK_WM831X=y CONFIG_COMMON_CLK_MAX9485=y CONFIG_COMMON_CLK_SI5341=y CONFIG_COMMON_CLK_SI5351=y CONFIG_COMMON_CLK_SI544=y CONFIG_COMMON_CLK_CDCE706=y
# CONFIG_COMMON_CLK_TPS68470 is not set CONFIG_COMMON_CLK_CS2000_CP=y CONFIG_COMMON_CLK_PALMAS=y
# CONFIG_XILINX_VCU is not set
# CONFIG_HWSPINLOCK is not set
#
# Clock Source drivers
#CONFIG_CLKEVT_I8253=yCONFIG_CLKBLD_I8253=y
# end of Clock Source drivers
# CONFIG_MAILBOX is not setCONFIG_IOMMU_IOVA=yCONFIG_IOMMU_API=yCONFIG_IOMMU_SUPPORT=y
#
# Generic IOMMU Pagetable Support
#
# end of Generic IOMMU Pagetable Support
# CONFIG_IOMMU_DEBUGFS is not set CONFIG_IOMMU_DEFAULT_DMA_STRICT=y
# CONFIG_IOMMU_DEFAULT_DMA_LAZY is not set # CONFIG_IOMMU_DEFAULT_PASSTHROUGH is not set CONFIG_IOMMU_DMA=y
# CONFIG_AMD_IOMMU is not set CONFIG_VIRTIO_IOMMU=y
#
# Remoteproc drivers
#CONFIG_REMOTEPROC=y
# CONFIG_REMOTEPROC_CDEV is not set
# end of Remoteproc drivers
#
# Rpmsg drivers
#
# CONFIG_RPMSG_VIRTIO is not set
# end of Rpmsg drivers
# CONFIG_SOUNDWIRE is not set
#
# SOC (System On Chip) specific Drivers #
#
# Amlogic SoC drivers
#
# end of Amlogic SoC drivers
#
# Broadcom SoC drivers
#
# end of Broadcom SoC drivers
#
# NXP/Freescale QorIQ SoC drivers
#
# end of NXP/Freescale QorIQ SoC drivers
#
# fujitsu SoC drivers # # end of fujitsu SoC drivers
#
# i.MX SoC drivers
#
# end of i.MX SoC drivers
#
# Enable LiteX SoC Builder specific drivers #
# end of Enable LiteX SoC Builder specific drivers
#
# Qualcomm SoC drivers
#
# end of Qualcomm SoC drivers
# CONFIG_SOC_TI is not set
#
# Xilinx SoC drivers
#
# end of Xilinx SoC drivers # end of SOC (System On Chip) specific Drivers
CONFIG_PM_DEVFREQ=y
#
# DEVFREQ Governors
#
# CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND is not set CONFIG_DEVFREQ_GOV_PERFORMANCE=y
# CONFIG_DEVFREQ_GOV_POWERSAVE is not set # CONFIG_DEVFREQ_GOV_USERSPACE is not set # CONFIG_DEVFREQ_GOV_PASSIVE is not set
#
# DEVFREQ Drivers
#
# CONFIG_PM_DEVFREQ_EVENT is not set CONFIG_EXTCON=y
#
# Extcon Device Drivers
#CONFIG_EXTCON_ADC_JACK=y
# CONFIG_EXTCON_FSA9480 is not set CONFIG_EXTCON_GPIO=y CONFIG_EXTCON_INTEL_INT3496=y CONFIG_EXTCON_MAX14577=y CONFIG_EXTCON_MAX3355=y CONFIG_EXTCON_MAX8997=y CONFIG_EXTCON_PALMAS=y CONFIG_EXTCON_PTN5150=y
# CONFIG_EXTCON_RT8973A is not set
# CONFIG_EXTCON_SM5502 is not set CONFIG_EXTCON_USB_GPIO=y CONFIG_EXTCON_USBC_CROS_EC=y CONFIG_MEMORY=yCONFIG_FPGA_DFL_EMIF=yCONFIG_IIO=yCONFIG_IIO_BUFFER=y CONFIG_IIO_BUFFER_CB=y CONFIG_IIO_BUFFER_DMA=y CONFIG_IIO_BUFFER_DMAENGINE=y CONFIG_IIO_BUFFER_HW_CONSUMER=y CONFIG_IIO_KFIFO_BUF=y CONFIG_IIO_TRIGGERED_BUFFER=y CONFIG_IIO_CONFIGFS=y CONFIG_IIO_TRIGGER=y CONFIG_IIO_CONSUMERS_PER_TRIGGER=2 CONFIG_IIO_SW_DEVICE=y CONFIG_IIO_SW_TRIGGER=y
# CONFIG_IIO_TRIGGERED_EVENT is not set
#
# Accelerometers
#
# CONFIG_ADXL313_I2C is not set CONFIG_ADXL345=yCONFIG_ADXL345_I2C=y
# CONFIG_ADXL355_I2C is not set
# CONFIG_ADXL367_I2C is not set CONFIG_ADXL372=yCONFIG_ADXL372_I2C=yCONFIG_BMA180=y
# CONFIG_BMA400 is not set CONFIG_BMC150_ACCEL=y CONFIG_BMC150_ACCEL_I2C=y CONFIG_DA280=y
# CONFIG_DA311 is not set
# CONFIG_DMARD06 is not set CONFIG_DMARD09=yCONFIG_DMARD10=yCONFIG_FXLS8962AF=y CONFIG_FXLS8962AF_I2C=y CONFIG_IIO_ST_ACCEL_3AXIS=y
# CONFIG_IIO_ST_ACCEL_I2C_3AXIS is not set # CONFIG_KXSD9 is not set
# CONFIG_KXCJK1013 is not set CONFIG_MC3230=yCONFIG_MMA7455=yCONFIG_MMA7455_I2C=y
# CONFIG_MMA7660 is not set CONFIG_MMA8452=yCONFIG_MMA9551_CORE=yCONFIG_MMA9551=yCONFIG_MMA9553=y
# CONFIG_MSA311 is not set CONFIG_MXC4005=yCONFIG_MXC6255=yCONFIG_STK8312=yCONFIG_STK8BA50=y
# end of Accelerometers
#
# Analog to digital converters
#CONFIG_AD7091R5=yCONFIG_AD7291=y
# CONFIG_AD7606_IFACE_PARALLEL is not set CONFIG_AD799X=yCONFIG_AXP20X_ADC=y
# CONFIG_AXP288_ADC is not set
# CONFIG_CC10001_ADC is not set
# CONFIG_DA9150_GPADC is not set
# CONFIG_ENVELOPE_DETECTOR is not set # CONFIG_HX711 is not set CONFIG_LP8788_ADC=yCONFIG_LTC2471=y
# CONFIG_LTC2485 is not set CONFIG_LTC2497=yCONFIG_MAX1363=yCONFIG_MAX9611=yCONFIG_MCP3422=y CONFIG_MEDIATEK_MT6360_ADC=y
# CONFIG_MEN_Z188_ADC is not set CONFIG_NAU7802=y
# CONFIG_PALMAS_GPADC is not set CONFIG_QCOM_VADC_COMMON=y CONFIG_QCOM_SPMI_IADC=y CONFIG_QCOM_SPMI_VADC=y CONFIG_QCOM_SPMI_ADC5=y
# CONFIG_RICHTEK_RTQ6056 is not set
# CONFIG_SD_ADC_MODULATOR is not set
# CONFIG_TI_ADC081C is not set
# CONFIG_TI_ADS1015 is not set CONFIG_TI_AM335X_ADC=y
# CONFIG_VF610_ADC is not set CONFIG_XILINX_XADC=y
# end of Analog to digital converters
#
# Analog to digital and digital to analog converters #
# end of Analog to digital and digital to analog converters
#
# Analog Front Ends
#
# CONFIG_IIO_RESCALE is not set
# end of Analog Front Ends
#
# Amplifiers
#
# CONFIG_HMC425 is not set
# end of Amplifiers
#
# Capacitance to digital converters
#
# CONFIG_AD7150 is not set CONFIG_AD7746=y
# end of Capacitance to digital converters
#
# Chemical Sensors
#CONFIG_ATLAS_PH_SENSOR=y CONFIG_ATLAS_EZO_SENSOR=y
# CONFIG_BME680 is not set CONFIG_CCS811=yCONFIG_IAQCORE=y
# CONFIG_PMS7003 is not set CONFIG_SCD30_CORE=y
# CONFIG_SCD30_I2C is not set CONFIG_SCD30_SERIAL=yCONFIG_SCD4X=y
# CONFIG_SENSIRION_SGP30 is not set CONFIG_SENSIRION_SGP40=y CONFIG_SPS30=y
# CONFIG_SPS30_I2C is not set CONFIG_SPS30_SERIAL=y CONFIG_SENSEAIR_SUNRISE_CO2=y
# CONFIG_VZ89X is not set
# end of Chemical Sensors
#
# Hid Sensor IIO Common
#
# end of Hid Sensor IIO Common
CONFIG_IIO_MS_SENSORS_I2C=y
#
# IIO SCMI Sensors
#
# end of IIO SCMI Sensors
#
# SSP Sensor Common
#
# end of SSP Sensor Common
CONFIG_IIO_ST_SENSORS_I2C=yCONFIG_IIO_ST_SENSORS_CORE=y
#
# Digital to analog converters
#CONFIG_AD5064=y
# CONFIG_AD5380 is not setCONFIG_AD5446=yCONFIG_AD5592R_BASE=yCONFIG_AD5593R=y
# CONFIG_AD5696_I2C is not set
# CONFIG_DPOT_DAC is not setCONFIG_DS4424=y
# CONFIG_M62332 is not set
# CONFIG_MAX517 is not setCONFIG_MAX5821=yCONFIG_MCP4725=yCONFIG_TI_DAC5571=y
# CONFIG_VF610_DAC is not set
# end of Digital to analog converters
#
# IIO dummy driver
#
# CONFIG_IIO_SIMPLE_DUMMY is not set
# end of IIO dummy driver
#
# Filters
#
# end of Filters
#
# Frequency Synthesizers DDS/PLL
#
#
# Clock Generator/Distribution
#
# end of Clock Generator/Distribution
#
# Phase-Locked Loop (PLL) frequency synthesizers #
# end of Phase-Locked Loop (PLL) frequency synthesizers # end of Frequency Synthesizers DDS/PLL
#
# Digital gyroscope sensors
#CONFIG_BMG160=yCONFIG_BMG160_I2C=yCONFIG_FXAS21002C=yCONFIG_FXAS21002C_I2C=y
# CONFIG_MPU3050_I2C is not setCONFIG_IIO_ST_GYRO_3AXIS=yCONFIG_IIO_ST_GYRO_I2C_3AXIS=yCONFIG_ITG3200=y
# end of Digital gyroscope sensors
#
# Health Sensors
#
#
# Heart Rate Monitors
#
# CONFIG_AFE4404 is not setCONFIG_MAX30100=yCONFIG_MAX30102=y
# end of Heart Rate Monitors # end of Health Sensors
#
# Humidity sensors
#CONFIG_AM2315=y
# CONFIG_DHT11 is not setCONFIG_HDC100X=y
# CONFIG_HDC2010 is not setCONFIG_HTS221=yCONFIG_HTS221_I2C=yCONFIG_HTU21=y
# CONFIG_SI7005 is not setCONFIG_SI7020=y
# end of Humidity sensors
#
# Inertial measurement units
#CONFIG_BMI160=yCONFIG_BMI160_I2C=y
# CONFIG_BOSCH_BNO055_SERIAL is not set # CONFIG_BOSCH_BNO055_I2C is not set CONFIG_FXOS8700=y CONFIG_FXOS8700_I2C=yCONFIG_KMX61=yCONFIG_INV_ICM42600=y CONFIG_INV_ICM42600_I2C=y
# CONFIG_INV_MPU6050_I2C is not set CONFIG_IIO_ST_LSM6DSX=y CONFIG_IIO_ST_LSM6DSX_I2C=y CONFIG_IIO_ST_LSM6DSX_I3C=y
# CONFIG_IIO_ST_LSM9DS0 is not set
# end of Inertial measurement units
#
# Light sensors
#CONFIG_ACPI_ALS=yCONFIG_ADJD_S311=yCONFIG_ADUX1020=yCONFIG_AL3010=yCONFIG_AL3320A=y
# CONFIG_APDS9300 is not set CONFIG_APDS9960=y
# CONFIG_AS73211 is not set CONFIG_BH1750=yCONFIG_BH1780=yCONFIG_CM32181=y
# CONFIG_CM3232 is not set CONFIG_CM3323=y
# CONFIG_CM3605 is not set
# CONFIG_CM36651 is not set CONFIG_GP2AP002=y CONFIG_GP2AP020A00F=y CONFIG_SENSORS_ISL29018=y
# CONFIG_SENSORS_ISL29028 is not set CONFIG_ISL29125=yCONFIG_JSA1212=yCONFIG_RPR0521=y CONFIG_SENSORS_LM3533=y CONFIG_LTR501=y
# CONFIG_LTRF216A is not set
# CONFIG_LV0104CS is not set CONFIG_MAX44000=y
# CONFIG_MAX44009 is not set CONFIG_NOA1305=yCONFIG_OPT3001=yCONFIG_PA12203001=y
# CONFIG_SI1133 is not set
# CONFIG_SI1145 is not set
# CONFIG_STK3310 is not set
# CONFIG_ST_UVIS25 is not set
# CONFIG_TCS3414 is not set CONFIG_TCS3472=y CONFIG_SENSORS_TSL2563=y
# CONFIG_TSL2583 is not set
# CONFIG_TSL2591 is not set
# CONFIG_TSL2772 is not set CONFIG_TSL4531=yCONFIG_US5182D=yCONFIG_VCNL4000=y
# CONFIG_VCNL4035 is not set
# CONFIG_VEML6030 is not set
# CONFIG_VEML6070 is not set
# CONFIG_VL6180 is not set
# CONFIG_ZOPT2201 is not set
# end of Light sensors
#
# Magnetometer sensors
#
# CONFIG_AK8974 is not set CONFIG_AK8975=y
# CONFIG_AK09911 is not set CONFIG_BMC150_MAGN=y CONFIG_BMC150_MAGN_I2C=y CONFIG_MAG3110=y
# CONFIG_MMC35240 is not set CONFIG_IIO_ST_MAGN_3AXIS=y
# CONFIG_IIO_ST_MAGN_I2C_3AXIS is not set # CONFIG_SENSORS_HMC5843_I2C is not set CONFIG_SENSORS_RM3100=y CONFIG_SENSORS_RM3100_I2C=y CONFIG_YAMAHA_YAS530=y
# end of Magnetometer sensors
#
# Multiplexers
#
# CONFIG_IIO_MUX is not set
# end of Multiplexers
#
# Inclinometer sensors
#
# end of Inclinometer sensors
#
# Triggers - standalone
#CONFIG_IIO_HRTIMER_TRIGGER=yCONFIG_IIO_INTERRUPT_TRIGGER=yCONFIG_IIO_TIGHTLOOP_TRIGGER=yCONFIG_IIO_SYSFS_TRIGGER=y
# end of Triggers - standalone
#
# Linear and angular position sensors #
# end of Linear and angular position sensors
#
# Digital potentiometers
#CONFIG_AD5110=yCONFIG_AD5272=y
# CONFIG_DS1803 is not setCONFIG_MAX5432=y
# CONFIG_MCP4018 is not setCONFIG_MCP4531=yCONFIG_TPL0102=y
# end of Digital potentiometers
#
# Digital potentiostats
#CONFIG_LMP91000=y
# end of Digital potentiostats
#
# Pressure sensors
#
# CONFIG_ABP060MG is not set CONFIG_BMP280=yCONFIG_BMP280_I2C=yCONFIG_DLHL60D=y
# CONFIG_DPS310 is not set
# CONFIG_HP03 is not set CONFIG_ICP10100=yCONFIG_MPL115=yCONFIG_MPL115_I2C=yCONFIG_MPL3115=yCONFIG_MS5611=yCONFIG_MS5611_I2C=yCONFIG_MS5637=yCONFIG_IIO_ST_PRESS=y
# CONFIG_IIO_ST_PRESS_I2C is not set
# CONFIG_T5403 is not set CONFIG_HP206C=y
# CONFIG_ZPA2326 is not set
# end of Pressure sensors
#
# Lightning sensors
#
# end of Lightning sensors
#
# Proximity and distance sensors
#CONFIG_CROS_EC_MKBP_PROXIMITY=yCONFIG_ISL29501=yCONFIG_LIDAR_LITE_V2=y
# CONFIG_MB1232 is not setCONFIG_PING=yCONFIG_RFD77402=y
# CONFIG_SRF04 is not setCONFIG_SX_COMMON=y
# CONFIG_SX9310 is not setCONFIG_SX9324=y
# CONFIG_SX9360 is not setCONFIG_SX9500=y
# CONFIG_SRF08 is not setCONFIG_VCNL3020=yCONFIG_VL53L0X_I2C=y
# end of Proximity and distance sensors
#
# Resolver to digital converters
#
# end of Resolver to digital converters
#
# Temperature sensors
#
# CONFIG_MLX90614 is not setCONFIG_MLX90632=yCONFIG_TMP006=y
# CONFIG_TMP007 is not setCONFIG_TMP117=yCONFIG_TSYS01=yCONFIG_TSYS02D=y
# end of Temperature sensors
# CONFIG_NTB is not set
# CONFIG_PWM is not set
#
# IRQ chip support
#CONFIG_MADERA_IRQ=y
# end of IRQ chip support
CONFIG_IPACK_BUS=y
# CONFIG_BOARD_TPCI200 is not set
# CONFIG_SERIAL_IPOCTAL is not set CONFIG_RESET_CONTROLLER=y
# CONFIG_RESET_SIMPLE is not set CONFIG_RESET_TI_SYSCON=y
# CONFIG_RESET_TI_TPS380X is not set
#
# PHY Subsystem
#CONFIG_GENERIC_PHY=y CONFIG_USB_LGM_PHY=y
# CONFIG_PHY_CAN_TRANSCEIVER is not set
#
# PHY drivers for Broadcom platforms
#CONFIG_BCM_KONA_USB2_PHY=y
# end of PHY drivers for Broadcom platforms
CONFIG_PHY_PXA_28NM_HSIC=y CONFIG_PHY_PXA_28NM_USB2=y CONFIG_PHY_CPCAP_USB=y
# CONFIG_PHY_QCOM_USB_HS is not set
# CONFIG_PHY_QCOM_USB_HSIC is not set CONFIG_PHY_SAMSUNG_USB2=y CONFIG_PHY_TUSB1210=y CONFIG_PHY_INTEL_LGM_EMMC=y
# end of PHY Subsystem
CONFIG_POWERCAP=yCONFIG_MCB=y
# CONFIG_MCB_PCI is not set
# CONFIG_MCB_LPC is not set
#
# Performance monitor support
#
# end of Performance monitor support
CONFIG_RAS=y
# CONFIG_USB4 is not set
#
# Android
#CONFIG_ANDROID_BINDER_IPC=y CONFIG_ANDROID_BINDERFS=y CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder" # CONFIG_ANDROID_BINDER_IPC_SELFTEST is not set
# end of Android
# CONFIG_DAX is not setCONFIG_NVMEM=yCONFIG_NVMEM_SYSFS=y
# CONFIG_NVMEM_RAVE_SP_EEPROM is not set CONFIG_NVMEM_RMEM=y CONFIG_NVMEM_SPMI_SDAM=y
#
# HW tracing support
#CONFIG_STM=y
# CONFIG_STM_PROTO_BASIC is not set CONFIG_STM_PROTO_SYS_T=y CONFIG_STM_DUMMY=y CONFIG_STM_SOURCE_CONSOLE=y
# CONFIG_STM_SOURCE_HEARTBEAT is not set # CONFIG_STM_SOURCE_FTRACE is not set # CONFIG_INTEL_TH is not set
# end of HW tracing support
CONFIG_FPGA=y CONFIG_ALTERA_PR_IP_CORE=y
# CONFIG_FPGA_MGR_ALTERA_CVP is not set CONFIG_FPGA_BRIDGE=y CONFIG_ALTERA_FREEZE_BRIDGE=y
# CONFIG_XILINX_PR_DECOUPLER is not set CONFIG_FPGA_REGION=yCONFIG_FPGA_DFL=y
# CONFIG_FPGA_DFL_FME is not set CONFIG_FPGA_DFL_AFU=y CONFIG_FPGA_DFL_NIOS_INTEL_PAC_N3000=y # CONFIG_FPGA_DFL_PCI is not set CONFIG_PM_OPP=y
# CONFIG_SIOX is not set CONFIG_SLIMBUS=y CONFIG_SLIM_QCOM_CTRL=y CONFIG_INTERCONNECT=y
# CONFIG_COUNTER is not set CONFIG_MOST=yCONFIG_MOST_CDEV=y
# CONFIG_PECI is not set
# CONFIG_HTE is not set
# end of Device Drivers
#
# File systems
#CONFIG_DCACHE_WORD_ACCESS=y
# CONFIG_VALIDATE_FS_PARSER is not set CONFIG_FS_POSIX_ACL=yCONFIG_EXPORTFS=yCONFIG_EXPORTFS_BLOCK_OPS=y CONFIG_FILE_LOCKING=y
# CONFIG_FS_ENCRYPTION is not set CONFIG_FS_VERITY=yCONFIG_FS_VERITY_DEBUG=y
# CONFIG_FS_VERITY_BUILTIN_SIGNATURES is not set CONFIG_FSNOTIFY=y
# CONFIG_DNOTIFY is not set CONFIG_INOTIFY_USER=y
# CONFIG_FANOTIFY is not set
# CONFIG_QUOTA is not setCONFIG_AUTOFS4_FS=yCONFIG_AUTOFS_FS=yCONFIG_FUSE_FS=yCONFIG_CUSE=yCONFIG_VIRTIO_FS=yCONFIG_OVERLAY_FS=y CONFIG_OVERLAY_FS_REDIRECT_DIR=y
# CONFIG_OVERLAY_FS_REDIRECT_ALWAYS_FOLLOW is not set # CONFIG_OVERLAY_FS_INDEX is not set CONFIG_OVERLAY_FS_XINO_AUTO=y CONFIG_OVERLAY_FS_METACOPY=y
#
# Caches
#CONFIG_NETFS_SUPPORT=y
# CONFIG_NETFS_STATS is not set CONFIG_FSCACHE=y
# CONFIG_FSCACHE_STATS is not set CONFIG_FSCACHE_DEBUG=y
# end of Caches
#
# Pseudo filesystems
#CONFIG_PROC_FS=y
# CONFIG_PROC_KCORE is not set CONFIG_PROC_SYSCTL=yCONFIG_PROC_PAGE_MONITOR=yCONFIG_PROC_CHILDREN=y CONFIG_PROC_PID_ARCH_STATUS=yCONFIG_KERNFS=yCONFIG_SYSFS=yCONFIG_TMPFS=yCONFIG_TMPFS_POSIX_ACL=yCONFIG_TMPFS_XATTR=yCONFIG_TMPFS_INODE64=yCONFIG_HUGETLBFS=yCONFIG_HUGETLB_PAGE=y CONFIG_ARCH_WANT_HUGETLB_PAGE_OPTIMIZE_VMEMMAP=y CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP=y
# CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP_DEFAULT_ON is not set CONFIG_MEMFD_CREATE=y CONFIG_ARCH_HAS_GIGANTIC_PAGE=y CONFIG_CONFIGFS_FS=y
# CONFIG_EFIVAR_FS is not set
# end of Pseudo filesystems
CONFIG_MISC_FILESYSTEMS=y
# CONFIG_ORANGEFS_FS is not set
# CONFIG_ECRYPT_FS is not set CONFIG_JFFS2_FS=yCONFIG_JFFS2_FS_DEBUG=0
# CONFIG_JFFS2_FS_WRITEBUFFER is not set
# CONFIG_JFFS2_SUMMARY is not set
# CONFIG_JFFS2_FS_XATTR is not set CONFIG_JFFS2_COMPRESSION_OPTIONS=y CONFIG_JFFS2_ZLIB=yCONFIG_JFFS2_LZO=y
# CONFIG_JFFS2_RTIME is not set
# CONFIG_JFFS2_RUBIN is not set
# CONFIG_JFFS2_CMODE_NONE is not set
# CONFIG_JFFS2_CMODE_PRIORITY is not set CONFIG_JFFS2_CMODE_SIZE=y
# CONFIG_JFFS2_CMODE_FAVOURLZO is not set CONFIG_UBIFS_FS=y
# CONFIG_UBIFS_FS_ADVANCED_COMPR is not set CONFIG_UBIFS_FS_LZO=y CONFIG_UBIFS_FS_ZLIB=y CONFIG_UBIFS_FS_ZSTD=y
# CONFIG_UBIFS_ATIME_SUPPORT is not set
# CONFIG_UBIFS_FS_XATTR is not set CONFIG_UBIFS_FS_AUTHENTICATION=y CONFIG_CRAMFS=y
# CONFIG_CRAMFS_MTD is not set CONFIG_ROMFS_FS=y CONFIG_ROMFS_BACKED_BY_MTD=y CONFIG_ROMFS_ON_MTD=yCONFIG_PSTORE=y CONFIG_PSTORE_DEFAULT_KMSG_BYTES=10240 CONFIG_PSTORE_DEFLATE_COMPRESS=y
# CONFIG_PSTORE_LZO_COMPRESS is not set
# CONFIG_PSTORE_LZ4_COMPRESS is not set
# CONFIG_PSTORE_LZ4HC_COMPRESS is not set CONFIG_PSTORE_842_COMPRESS=y
# CONFIG_PSTORE_ZSTD_COMPRESS is not set CONFIG_PSTORE_COMPRESS=y
# CONFIG_PSTORE_DEFLATE_COMPRESS_DEFAULT is not set CONFIG_PSTORE_842_COMPRESS_DEFAULT=y CONFIG_PSTORE_COMPRESS_DEFAULT="842"
# CONFIG_PSTORE_CONSOLE is not set CONFIG_PSTORE_PMSG=yCONFIG_PSTORE_RAM=y CONFIG_NETWORK_FILESYSTEMS=y CONFIG_NFS_FS=yCONFIG_NFS_V2=yCONFIG_NFS_V3=y
# CONFIG_NFS_V3_ACL is not set CONFIG_NFS_V4=m
# CONFIG_NFS_V4_1 is not set
# CONFIG_ROOT_NFS is not set
# CONFIG_NFS_FSCACHE is not set
# CONFIG_NFS_USE_LEGACY_DNS is not set CONFIG_NFS_USE_KERNEL_DNS=y CONFIG_NFS_DISABLE_UDP_SUPPORT=y
# CONFIG_NFSD is not set CONFIG_GRACE_PERIOD=yCONFIG_LOCKD=yCONFIG_LOCKD_V4=yCONFIG_NFS_COMMON=yCONFIG_SUNRPC=yCONFIG_SUNRPC_GSS=m
# CONFIG_SUNRPC_DEBUG is not set
# CONFIG_CEPH_FS is not setCONFIG_CIFS=mCONFIG_CIFS_STATS2=y CONFIG_CIFS_ALLOW_INSECURE_LEGACY=y
# CONFIG_CIFS_UPCALL is not set
# CONFIG_CIFS_XATTR is not set CONFIG_CIFS_DEBUG=y
# CONFIG_CIFS_DEBUG2 is not set
# CONFIG_CIFS_DEBUG_DUMP_KEYS is not set
# CONFIG_CIFS_DFS_UPCALL is not set
# CONFIG_CIFS_SWN_UPCALL is not set
# CONFIG_CIFS_FSCACHE is not set
# CONFIG_SMB_SERVER is not set CONFIG_SMBFS_COMMON=m
# CONFIG_CODA_FS is not set
# CONFIG_AFS_FS is not set
# CONFIG_9P_FS is not setCONFIG_NLS=yCONFIG_NLS_DEFAULT="iso8859-1" CONFIG_NLS_CODEPAGE_437=y CONFIG_NLS_CODEPAGE_737=y CONFIG_NLS_CODEPAGE_775=y CONFIG_NLS_CODEPAGE_850=y CONFIG_NLS_CODEPAGE_852=y
# CONFIG_NLS_CODEPAGE_855 is not set
# CONFIG_NLS_CODEPAGE_857 is not set
# CONFIG_NLS_CODEPAGE_860 is not set CONFIG_NLS_CODEPAGE_861=y
# CONFIG_NLS_CODEPAGE_862 is not set
# CONFIG_NLS_CODEPAGE_863 is not set
# CONFIG_NLS_CODEPAGE_864 is not set CONFIG_NLS_CODEPAGE_865=y
# CONFIG_NLS_CODEPAGE_866 is not set CONFIG_NLS_CODEPAGE_869=y
# CONFIG_NLS_CODEPAGE_936 is not set CONFIG_NLS_CODEPAGE_950=y
# CONFIG_NLS_CODEPAGE_932 is not set
# CONFIG_NLS_CODEPAGE_949 is not set
# CONFIG_NLS_CODEPAGE_874 is not set CONFIG_NLS_ISO8859_8=y CONFIG_NLS_CODEPAGE_1250=y CONFIG_NLS_CODEPAGE_1251=y CONFIG_NLS_ASCII=y
# CONFIG_NLS_ISO8859_1 is not set CONFIG_NLS_ISO8859_2=y CONFIG_NLS_ISO8859_3=y CONFIG_NLS_ISO8859_4=y CONFIG_NLS_ISO8859_5=y
# CONFIG_NLS_ISO8859_6 is not set CONFIG_NLS_ISO8859_7=y
# CONFIG_NLS_ISO8859_9 is not set CONFIG_NLS_ISO8859_13=y CONFIG_NLS_ISO8859_14=y CONFIG_NLS_ISO8859_15=yCONFIG_NLS_KOI8_R=yCONFIG_NLS_KOI8_U=yCONFIG_NLS_MAC_ROMAN=y
# CONFIG_NLS_MAC_CELTIC is not set CONFIG_NLS_MAC_CENTEURO=y
# CONFIG_NLS_MAC_CROATIAN is not set CONFIG_NLS_MAC_CYRILLIC=y
# CONFIG_NLS_MAC_GAELIC is not set CONFIG_NLS_MAC_GREEK=y CONFIG_NLS_MAC_ICELAND=y CONFIG_NLS_MAC_INUIT=y
# CONFIG_NLS_MAC_ROMANIAN is not set CONFIG_NLS_MAC_TURKISH=yCONFIG_NLS_UTF8=y
# CONFIG_DLM is not set
# CONFIG_UNICODE is not setCONFIG_IO_WQ=y
# end of File systems
#
# Security options
#CONFIG_KEYS=yCONFIG_KEYS_REQUEST_CACHE=yCONFIG_PERSISTENT_KEYRINGS=y
# CONFIG_TRUSTED_KEYS is not setCONFIG_ENCRYPTED_KEYS=y
# CONFIG_USER_DECRYPTED_DATA is not set CONFIG_KEY_DH_OPERATIONS=y
# CONFIG_SECURITY_DMESG_RESTRICT is not set CONFIG_SECURITY=y
# CONFIG_SECURITYFS is not set
# CONFIG_SECURITY_NETWORK is not set
# CONFIG_SECURITY_PATH is not set CONFIG_FORTIFY_SOURCE=yCONFIG_STATIC_USERMODEHELPER=y CONFIG_STATIC_USERMODEHELPER_PATH="/sbin/usermode-helper" # CONFIG_SECURITY_SMACK is not set
# CONFIG_SECURITY_TOMOYO is not set
# CONFIG_SECURITY_APPARMOR is not set
# CONFIG_SECURITY_YAMA is not set
# CONFIG_SECURITY_SAFESETID is not set
# CONFIG_SECURITY_LOCKDOWN_LSM is not set
# CONFIG_SECURITY_LANDLOCK is not setCONFIG_INTEGRITY=y
# CONFIG_INTEGRITY_SIGNATURE is not set
# CONFIG_IMA is not set
# CONFIG_IMA_SECURE_AND_OR_TRUSTED_BOOT is not set
# CONFIG_EVM is not setCONFIG_DEFAULT_SECURITY_DAC=y CONFIG_LSM="landlock,lockdown,yama,loadpin,safesetid,integrity,bpf"
#
# Kernel hardening options
#
#
# Memory initialization
#CONFIG_INIT_STACK_NONE=y
# CONFIG_GCC_PLUGIN_STRUCTLEAK_USER is not set # CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF is not set # CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF_ALL is not set # CONFIG_GCC_PLUGIN_STACKLEAK is not set CONFIG_INIT_ON_ALLOC_DEFAULT_ON=y CONFIG_INIT_ON_FREE_DEFAULT_ON=y CONFIG_CC_HAS_ZERO_CALL_USED_REGS=y
# CONFIG_ZERO_CALL_USED_REGS is not set
# end of Memory initialization
CONFIG_RANDSTRUCT_NONE=y
# CONFIG_RANDSTRUCT_FULL is not set
# CONFIG_RANDSTRUCT_PERFORMANCE is not set
# end of Kernel hardening options # end of Security options
CONFIG_CRYPTO=y
#
# Crypto core or helper
#CONFIG_CRYPTO_ALGAPI=y CONFIG_CRYPTO_ALGAPI2=y CONFIG_CRYPTO_AEAD=y CONFIG_CRYPTO_AEAD2=y CONFIG_CRYPTO_SKCIPHER=y CONFIG_CRYPTO_SKCIPHER2=y CONFIG_CRYPTO_HASH=y CONFIG_CRYPTO_HASH2=y CONFIG_CRYPTO_RNG=y CONFIG_CRYPTO_RNG2=y CONFIG_CRYPTO_RNG_DEFAULT=y CONFIG_CRYPTO_AKCIPHER2=y CONFIG_CRYPTO_AKCIPHER=y CONFIG_CRYPTO_KPP2=y CONFIG_CRYPTO_KPP=y CONFIG_CRYPTO_ACOMP2=y CONFIG_CRYPTO_MANAGER=y CONFIG_CRYPTO_MANAGER2=y
# CONFIG_CRYPTO_USER is not set CONFIG_CRYPTO_MANAGER_DISABLE_TESTS=y CONFIG_CRYPTO_GF128MUL=y CONFIG_CRYPTO_NULL=y CONFIG_CRYPTO_NULL2=y CONFIG_CRYPTO_CRYPTD=y CONFIG_CRYPTO_AUTHENC=y
# CONFIG_CRYPTO_TEST is not set CONFIG_CRYPTO_SIMD=y
# end of Crypto core or helper
#
# Public-key cryptography
#CONFIG_CRYPTO_RSA=yCONFIG_CRYPTO_DH=y
# CONFIG_CRYPTO_DH_RFC7919_GROUPS is not set CONFIG_CRYPTO_ECC=y
# CONFIG_CRYPTO_ECDH is not set CONFIG_CRYPTO_ECDSA=y CONFIG_CRYPTO_ECRDSA=y CONFIG_CRYPTO_SM2=y
# CONFIG_CRYPTO_CURVE25519 is not set
# end of Public-key cryptography
#
# Block ciphers
#CONFIG_CRYPTO_AES=y CONFIG_CRYPTO_AES_TI=y
# CONFIG_CRYPTO_ARIA is not set CONFIG_CRYPTO_BLOWFISH=y CONFIG_CRYPTO_BLOWFISH_COMMON=y
# CONFIG_CRYPTO_CAMELLIA is not set CONFIG_CRYPTO_CAST_COMMON=y
# CONFIG_CRYPTO_CAST5 is not set CONFIG_CRYPTO_CAST6=y CONFIG_CRYPTO_DES=y CONFIG_CRYPTO_FCRYPT=y CONFIG_CRYPTO_SERPENT=y CONFIG_CRYPTO_SM4=y
# CONFIG_CRYPTO_SM4_GENERIC is not set # CONFIG_CRYPTO_TWOFISH is not set CONFIG_CRYPTO_TWOFISH_COMMON=y
# end of Block ciphers
#
# Length-preserving ciphers and modes #CONFIG_CRYPTO_ADIANTUM=y CONFIG_CRYPTO_CHACHA20=y CONFIG_CRYPTO_CBC=y CONFIG_CRYPTO_CFB=y CONFIG_CRYPTO_CTR=y
# CONFIG_CRYPTO_CTS is not set CONFIG_CRYPTO_ECB=y
# CONFIG_CRYPTO_HCTR2 is not set
# CONFIG_CRYPTO_KEYWRAP is not set
# CONFIG_CRYPTO_LRW is not set CONFIG_CRYPTO_OFB=y
# CONFIG_CRYPTO_PCBC is not set CONFIG_CRYPTO_XTS=y CONFIG_CRYPTO_NHPOLY1305=y
# end of Length-preserving ciphers and modes
#
# AEAD (authenticated encryption with associated data) ciphers #CONFIG_CRYPTO_AEGIS128=y
# CONFIG_CRYPTO_CHACHA20POLY1305 is not set CONFIG_CRYPTO_CCM=yCONFIG_CRYPTO_GCM=y
# CONFIG_CRYPTO_SEQIV is not set
# CONFIG_CRYPTO_ECHAINIV is not set CONFIG_CRYPTO_ESSIV=y
# end of AEAD (authenticated encryption with associated data) ciphers
#
# Hashes, digests, and MACs
#CONFIG_CRYPTO_BLAKE2B=y CONFIG_CRYPTO_CMAC=m CONFIG_CRYPTO_GHASH=y CONFIG_CRYPTO_HMAC=y CONFIG_CRYPTO_MD4=y CONFIG_CRYPTO_MD5=m CONFIG_CRYPTO_MICHAEL_MIC=y
# CONFIG_CRYPTO_POLY1305 is not set CONFIG_CRYPTO_RMD160=y CONFIG_CRYPTO_SHA1=y CONFIG_CRYPTO_SHA256=y CONFIG_CRYPTO_SHA512=y CONFIG_CRYPTO_SHA3=y CONFIG_CRYPTO_SM3=y
# CONFIG_CRYPTO_SM3_GENERIC is not set CONFIG_CRYPTO_STREEBOG=y CONFIG_CRYPTO_VMAC=y CONFIG_CRYPTO_WP512=y CONFIG_CRYPTO_XCBC=y CONFIG_CRYPTO_XXHASH=y
# end of Hashes, digests, and MACs
#
# CRCs (cyclic redundancy checks)
#CONFIG_CRYPTO_CRC32C=y
# CONFIG_CRYPTO_CRC32 is not set CONFIG_CRYPTO_CRCT10DIF=y
# end of CRCs (cyclic redundancy checks)
#
# Compression
#CONFIG_CRYPTO_DEFLATE=yCONFIG_CRYPTO_LZO=yCONFIG_CRYPTO_842=yCONFIG_CRYPTO_LZ4=y
# CONFIG_CRYPTO_LZ4HC is not setCONFIG_CRYPTO_ZSTD=y
# end of Compression
#
# Random number generation
#CONFIG_CRYPTO_ANSI_CPRNG=y CONFIG_CRYPTO_DRBG_MENU=y CONFIG_CRYPTO_DRBG_HMAC=y
# CONFIG_CRYPTO_DRBG_HASH is not set CONFIG_CRYPTO_DRBG_CTR=y CONFIG_CRYPTO_DRBG=y CONFIG_CRYPTO_JITTERENTROPY=y CONFIG_CRYPTO_KDF800108_CTR=y
# end of Random number generation
#
# Userspace interface
#
# CONFIG_CRYPTO_USER_API_HASH is not set # CONFIG_CRYPTO_USER_API_SKCIPHER is not set # CONFIG_CRYPTO_USER_API_RNG is not set # CONFIG_CRYPTO_USER_API_AEAD is not set
# end of Userspace interface
CONFIG_CRYPTO_HASH_INFO=y
#
# Accelerated Cryptographic Algorithms for CPU (x86) #
# CONFIG_CRYPTO_CURVE25519_X86 is not set CONFIG_CRYPTO_AES_NI_INTEL=y CONFIG_CRYPTO_BLOWFISH_X86_64=y CONFIG_CRYPTO_CAMELLIA_X86_64=y CONFIG_CRYPTO_CAMELLIA_AESNI_AVX_X86_64=y CONFIG_CRYPTO_CAMELLIA_AESNI_AVX2_X86_64=y
# CONFIG_CRYPTO_CAST5_AVX_X86_64 is not set CONFIG_CRYPTO_CAST6_AVX_X86_64=y CONFIG_CRYPTO_DES3_EDE_X86_64=y
# CONFIG_CRYPTO_SERPENT_SSE2_X86_64 is not set CONFIG_CRYPTO_SERPENT_AVX_X86_64=y CONFIG_CRYPTO_SERPENT_AVX2_X86_64=y CONFIG_CRYPTO_SM4_AESNI_AVX_X86_64=y CONFIG_CRYPTO_SM4_AESNI_AVX2_X86_64=y CONFIG_CRYPTO_TWOFISH_X86_64=y CONFIG_CRYPTO_TWOFISH_X86_64_3WAY=y CONFIG_CRYPTO_TWOFISH_AVX_X86_64=y
# CONFIG_CRYPTO_ARIA_AESNI_AVX_X86_64 is not set CONFIG_CRYPTO_CHACHA20_X86_64=y CONFIG_CRYPTO_AEGIS128_AESNI_SSE2=y CONFIG_CRYPTO_NHPOLY1305_SSE2=y
# CONFIG_CRYPTO_NHPOLY1305_AVX2 is not set
# CONFIG_CRYPTO_BLAKE2S_X86 is not set
# CONFIG_CRYPTO_POLYVAL_CLMUL_NI is not set # CONFIG_CRYPTO_POLY1305_X86_64 is not set CONFIG_CRYPTO_SHA1_SSSE3=y CONFIG_CRYPTO_SHA256_SSSE3=y
# CONFIG_CRYPTO_SHA512_SSSE3 is not set
# CONFIG_CRYPTO_SM3_AVX_X86_64 is not set CONFIG_CRYPTO_GHASH_CLMUL_NI_INTEL=y CONFIG_CRYPTO_CRC32C_INTEL=y CONFIG_CRYPTO_CRC32_PCLMUL=y
# CONFIG_CRYPTO_CRCT10DIF_PCLMUL is not set
# end of Accelerated Cryptographic Algorithms for CPU (x86)
# CONFIG_CRYPTO_HW is not set CONFIG_ASYMMETRIC_KEY_TYPE=y CONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE=y CONFIG_X509_CERTIFICATE_PARSER=y
# CONFIG_PKCS8_PRIVATE_KEY_PARSER is not set CONFIG_PKCS7_MESSAGE_PARSER=y
# CONFIG_PKCS7_TEST_KEY is not set
# CONFIG_SIGNED_PE_FILE_VERIFICATION is not set # CONFIG_FIPS_SIGNATURE_SELFTEST is not set
#
# Certificates for signature checking
#CONFIG_SYSTEM_TRUSTED_KEYRING=y CONFIG_SYSTEM_TRUSTED_KEYS="" CONFIG_SYSTEM_EXTRA_CERTIFICATE=y CONFIG_SYSTEM_EXTRA_CERTIFICATE_SIZE=4096 # CONFIG_SECONDARY_TRUSTED_KEYRING is not set CONFIG_SYSTEM_BLACKLIST_KEYRING=y CONFIG_SYSTEM_BLACKLIST_HASH_LIST=""
# CONFIG_SYSTEM_REVOCATION_LIST is not set # CONFIG_SYSTEM_BLACKLIST_AUTH_UPDATE is not set
# end of Certificates for signature checking
CONFIG_BINARY_PRINTF=y
#
# Library routines
#CONFIG_LINEAR_RANGES=y CONFIG_PACKING=yCONFIG_BITREVERSE=y CONFIG_GENERIC_STRNCPY_FROM_USER=y CONFIG_GENERIC_STRNLEN_USER=y CONFIG_GENERIC_NET_UTILS=y CONFIG_CORDIC=yCONFIG_PRIME_NUMBERS=y CONFIG_RATIONAL=y CONFIG_GENERIC_PCI_IOMAP=y CONFIG_GENERIC_IOMAP=y CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y CONFIG_ARCH_HAS_FAST_MULTIPLIER=y CONFIG_ARCH_USE_SYM_ANNOTATIONS=y
#
# Crypto library routines
#CONFIG_CRYPTO_LIB_UTILS=y CONFIG_CRYPTO_LIB_AES=y CONFIG_CRYPTO_LIB_BLAKE2S_GENERIC=y CONFIG_CRYPTO_ARCH_HAVE_LIB_CHACHA=y CONFIG_CRYPTO_LIB_CHACHA_GENERIC=y
# CONFIG_CRYPTO_LIB_CHACHA is not set
# CONFIG_CRYPTO_LIB_CURVE25519 is not set CONFIG_CRYPTO_LIB_DES=y CONFIG_CRYPTO_LIB_POLY1305_RSIZE=11 CONFIG_CRYPTO_LIB_POLY1305_GENERIC=y
# CONFIG_CRYPTO_LIB_POLY1305 is not set # CONFIG_CRYPTO_LIB_CHACHA20POLY1305 is not set CONFIG_CRYPTO_LIB_SHA1=y CONFIG_CRYPTO_LIB_SHA256=y
# end of Crypto library routines
CONFIG_CRC_CCITT=yCONFIG_CRC16=yCONFIG_CRC_T10DIF=y
# CONFIG_CRC64_ROCKSOFT is not set CONFIG_CRC_ITU_T=yCONFIG_CRC32=y
# CONFIG_CRC32_SELFTEST is not set
# CONFIG_CRC32_SLICEBY8 is not set
# CONFIG_CRC32_SLICEBY4 is not set
# CONFIG_CRC32_SARWATE is not set CONFIG_CRC32_BIT=y
# CONFIG_CRC64 is not set CONFIG_CRC4=y
# CONFIG_CRC7 is not set CONFIG_LIBCRC32C=yCONFIG_CRC8=yCONFIG_XXHASH=y
# CONFIG_RANDOM32_SELFTEST is not set CONFIG_842_COMPRESS=y CONFIG_842_DECOMPRESS=y CONFIG_ZLIB_INFLATE=y CONFIG_ZLIB_DEFLATE=y CONFIG_LZO_COMPRESS=y CONFIG_LZO_DECOMPRESS=y CONFIG_LZ4_COMPRESS=y CONFIG_LZ4_DECOMPRESS=y CONFIG_ZSTD_COMMON=y CONFIG_ZSTD_COMPRESS=y CONFIG_ZSTD_DECOMPRESS=y CONFIG_XZ_DEC=y
# CONFIG_XZ_DEC_X86 is not set
# CONFIG_XZ_DEC_POWERPC is not set
# CONFIG_XZ_DEC_IA64 is not set CONFIG_XZ_DEC_ARM=y
# CONFIG_XZ_DEC_ARMTHUMB is not set CONFIG_XZ_DEC_SPARC=y
# CONFIG_XZ_DEC_MICROLZMA is not set CONFIG_XZ_DEC_BCJ=y
# CONFIG_XZ_DEC_TEST is not set CONFIG_DECOMPRESS_GZIP=y CONFIG_DECOMPRESS_BZIP2=y CONFIG_DECOMPRESS_XZ=y CONFIG_DECOMPRESS_ZSTD=y CONFIG_GENERIC_ALLOCATOR=y CONFIG_REED_SOLOMON=y CONFIG_REED_SOLOMON_ENC8=y CONFIG_REED_SOLOMON_DEC8=y CONFIG_REED_SOLOMON_DEC16=y CONFIG_BCH=yCONFIG_INTERVAL_TREE=y CONFIG_ASSOCIATIVE_ARRAY=y CONFIG_HAS_IOMEM=y CONFIG_HAS_IOPORT_MAP=y CONFIG_HAS_DMA=yCONFIG_DMA_OPS=y CONFIG_NEED_SG_DMA_LENGTH=y CONFIG_NEED_DMA_MAP_STATE=y CONFIG_ARCH_DMA_ADDR_T_64BIT=y CONFIG_SWIOTLB=yCONFIG_DMA_CMA=y CONFIG_DMA_PERNUMA_CMA=y
#
# Default contiguous memory area size:
#CONFIG_CMA_SIZE_MBYTES=0 CONFIG_CMA_SIZE_PERCENTAGE=0
# CONFIG_CMA_SIZE_SEL_MBYTES is not set # CONFIG_CMA_SIZE_SEL_PERCENTAGE is not set # CONFIG_CMA_SIZE_SEL_MIN is not set CONFIG_CMA_SIZE_SEL_MAX=y CONFIG_CMA_ALIGNMENT=8
# CONFIG_DMA_API_DEBUG is not set CONFIG_DMA_MAP_BENCHMARK=y CONFIG_SGL_ALLOC=yCONFIG_DQL=yCONFIG_GLOB=y
# CONFIG_GLOB_SELFTEST is not set CONFIG_NLATTR=yCONFIG_CLZ_TAB=y
# CONFIG_IRQ_POLL is not set CONFIG_MPILIB=yCONFIG_OID_REGISTRY=y CONFIG_UCS2_STRING=y CONFIG_HAVE_GENERIC_VDSO=y CONFIG_GENERIC_GETTIMEOFDAY=y CONFIG_GENERIC_VDSO_TIME_NS=y CONFIG_FONT_SUPPORT=y CONFIG_FONT_8x16=y CONFIG_FONT_AUTOSELECT=y CONFIG_ARCH_HAS_PMEM_API=y CONFIG_ARCH_HAS_UACCESS_FLUSHCACHE=y CONFIG_ARCH_HAS_COPY_MC=y CONFIG_ARCH_STACKWALK=y CONFIG_STACKDEPOT=y CONFIG_REF_TRACKER=y
# end of Library routines
#
# Kernel hacking
#
#
# printk and dmesg options # CONFIG_PRINTK_TIME=y CONFIG_PRINTK_CALLER=y # CONFIG_STACKTRACE_BUILD_ID is not set CONFIG_CONSOLE_LOGLEVEL_DEFAULT=7 CONFIG_CONSOLE_LOGLEVEL_QUIET=4 CONFIG_MESSAGE_LOGLEVEL_DEFAULT=4 # CONFIG_BOOT_PRINTK_DELAY is not set # CONFIG_DYNAMIC_DEBUG is not set # CONFIG_DYNAMIC_DEBUG_CORE is not set CONFIG_SYMBOLIC_ERRNAME=y CONFIG_DEBUG_BUGVERBOSE=y # end of printk and dmesg options
CONFIG_DEBUG_KERNEL=yCONFIG_DEBUG_MISC=y
#
# Compile-time checks and compiler options
#CONFIG_DEBUG_INFO=y CONFIG_AS_HAS_NON_CONST_LEB128=y
# CONFIG_DEBUG_INFO_NONE is not set
# CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT is not set # CONFIG_DEBUG_INFO_DWARF4 is not set CONFIG_DEBUG_INFO_DWARF5=y
# CONFIG_DEBUG_INFO_REDUCED is not set
# CONFIG_DEBUG_INFO_COMPRESSED is not set
# CONFIG_DEBUG_INFO_SPLIT is not set CONFIG_DEBUG_INFO_BTF=y CONFIG_PAHOLE_HAS_SPLIT_BTF=y CONFIG_DEBUG_INFO_BTF_MODULES=y
# CONFIG_MODULE_ALLOW_BTF_MISMATCH is not set # CONFIG_GDB_SCRIPTS is not set CONFIG_FRAME_WARN=8192
# CONFIG_STRIP_ASM_SYMS is not set CONFIG_READABLE_ASM=y
# CONFIG_HEADERS_INSTALL is not set CONFIG_DEBUG_SECTION_MISMATCH=y CONFIG_SECTION_MISMATCH_WARN_ONLY=y CONFIG_DEBUG_FORCE_FUNCTION_ALIGN_64B=y CONFIG_OBJTOOL=yCONFIG_NOINSTR_VALIDATION=y CONFIG_VMLINUX_MAP=y
# CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set
# end of Compile-time checks and compiler options
#
# Generic Kernel Debugging Instruments #CONFIG_MAGIC_SYSRQ=y CONFIG_MAGIC_SYSRQ_DEFAULT_ENABLE=0x1 CONFIG_MAGIC_SYSRQ_SERIAL=y CONFIG_MAGIC_SYSRQ_SERIAL_SEQUENCE="" CONFIG_DEBUG_FS=y
# CONFIG_DEBUG_FS_ALLOW_ALL is not set CONFIG_DEBUG_FS_DISALLOW_MOUNT=y
# CONFIG_DEBUG_FS_ALLOW_NONE is not set CONFIG_HAVE_ARCH_KGDB=y
# CONFIG_KGDB is not set CONFIG_ARCH_HAS_UBSAN_SANITIZE_ALL=y CONFIG_UBSAN=y
# CONFIG_UBSAN_TRAP is not set CONFIG_CC_HAS_UBSAN_BOUNDS=y CONFIG_UBSAN_BOUNDS=y CONFIG_UBSAN_ONLY_BOUNDS=y CONFIG_UBSAN_SHIFT=y
# CONFIG_UBSAN_DIV_ZERO is not set
# CONFIG_UBSAN_BOOL is not set
# CONFIG_UBSAN_ENUM is not set
# CONFIG_UBSAN_ALIGNMENT is not set CONFIG_UBSAN_SANITIZE_ALL=y
# CONFIG_TEST_UBSAN is not set CONFIG_HAVE_ARCH_KCSAN=y CONFIG_HAVE_KCSAN_COMPILER=y
# CONFIG_KCSAN is not set
# end of Generic Kernel Debugging Instruments
#
# Networking Debugging
#CONFIG_NET_DEV_REFCNT_TRACKER=yCONFIG_NET_NS_REFCNT_TRACKER=y
# CONFIG_DEBUG_NET is not set
# end of Networking Debugging
#
# Memory Debugging
#CONFIG_PAGE_EXTENSION=y
# CONFIG_DEBUG_PAGEALLOC is not set CONFIG_PAGE_OWNER=y
# CONFIG_PAGE_TABLE_CHECK is not set
# CONFIG_PAGE_POISONING is not set CONFIG_DEBUG_PAGE_REF=y
# CONFIG_DEBUG_RODATA_TEST is not set CONFIG_ARCH_HAS_DEBUG_WX=y CONFIG_DEBUG_WX=y CONFIG_GENERIC_PTDUMP=y CONFIG_PTDUMP_CORE=y CONFIG_PTDUMP_DEBUGFS=y CONFIG_DEBUG_OBJECTS=y
# CONFIG_DEBUG_OBJECTS_SELFTEST is not set CONFIG_DEBUG_OBJECTS_FREE=y
# CONFIG_DEBUG_OBJECTS_TIMERS is not set # CONFIG_DEBUG_OBJECTS_WORK is not set
# CONFIG_DEBUG_OBJECTS_RCU_HEAD is not set # CONFIG_DEBUG_OBJECTS_PERCPU_COUNTER is not set CONFIG_DEBUG_OBJECTS_ENABLE_DEFAULT=1
# CONFIG_SHRINKER_DEBUG is not set CONFIG_HAVE_DEBUG_KMEMLEAK=y
# CONFIG_DEBUG_KMEMLEAK is not set
# CONFIG_DEBUG_STACK_USAGE is not set CONFIG_SCHED_STACK_END_CHECK=y CONFIG_ARCH_HAS_DEBUG_VM_PGTABLE=y
# CONFIG_DEBUG_VM is not set CONFIG_DEBUG_VM_PGTABLE=y CONFIG_ARCH_HAS_DEBUG_VIRTUAL=y
# CONFIG_DEBUG_VIRTUAL is not set
# CONFIG_DEBUG_MEMORY_INIT is not set CONFIG_ARCH_SUPPORTS_KMAP_LOCAL_FORCE_MAP=y # CONFIG_DEBUG_KMAP_LOCAL_FORCE_MAP is not set CONFIG_HAVE_ARCH_KASAN=y CONFIG_HAVE_ARCH_KASAN_VMALLOC=y CONFIG_CC_HAS_KASAN_GENERIC=y CONFIG_CC_HAS_WORKING_NOSANITIZE_ADDRESS=y CONFIG_HAVE_ARCH_KFENCE=y CONFIG_HAVE_ARCH_KMSAN=y
# end of Memory Debugging
CONFIG_DEBUG_SHIRQ=y
#
# Debug Oops, Lockups and Hangs
#CONFIG_PANIC_ON_OOPS=y CONFIG_PANIC_ON_OOPS_VALUE=1 CONFIG_PANIC_TIMEOUT=0 CONFIG_LOCKUP_DETECTOR=y CONFIG_SOFTLOCKUP_DETECTOR=y
# CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC is not set CONFIG_HARDLOCKUP_DETECTOR_PERF=y CONFIG_HARDLOCKUP_CHECK_TIMESTAMP=y CONFIG_HARDLOCKUP_DETECTOR=y
# CONFIG_BOOTPARAM_HARDLOCKUP_PANIC is not set CONFIG_DETECT_HUNG_TASK=y CONFIG_DEFAULT_HUNG_TASK_TIMEOUT=480 CONFIG_BOOTPARAM_HUNG_TASK_PANIC=y CONFIG_WQ_WATCHDOG=y
# CONFIG_TEST_LOCKUP is not set
# end of Debug Oops, Lockups and Hangs
#
# Scheduler Debugging
#CONFIG_SCHED_DEBUG=yCONFIG_SCHED_INFO=yCONFIG_SCHEDSTATS=y
# end of Scheduler Debugging
CONFIG_DEBUG_TIMEKEEPING=y
#
# Lock Debugging (spinlocks, mutexes, etc...) #CONFIG_LOCK_DEBUGGING_SUPPORT=y CONFIG_PROVE_LOCKING=y
# CONFIG_PROVE_RAW_LOCK_NESTING is not set # CONFIG_LOCK_STAT is not set CONFIG_DEBUG_RT_MUTEXES=y CONFIG_DEBUG_SPINLOCK=y CONFIG_DEBUG_MUTEXES=y CONFIG_DEBUG_WW_MUTEX_SLOWPATH=y CONFIG_DEBUG_RWSEMS=y CONFIG_DEBUG_LOCK_ALLOC=y CONFIG_LOCKDEP=yCONFIG_LOCKDEP_BITS=15 CONFIG_LOCKDEP_CHAINS_BITS=16 CONFIG_LOCKDEP_STACK_TRACE_BITS=19 CONFIG_LOCKDEP_STACK_TRACE_HASH_BITS=14 CONFIG_LOCKDEP_CIRCULAR_QUEUE_BITS=12
# CONFIG_DEBUG_LOCKDEP is not set CONFIG_DEBUG_ATOMIC_SLEEP=y
# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set CONFIG_LOCK_TORTURE_TEST=m
# CONFIG_WW_MUTEX_SELFTEST is not set
# CONFIG_SCF_TORTURE_TEST is not set
# CONFIG_CSD_LOCK_WAIT_DEBUG is not set
# end of Lock Debugging (spinlocks, mutexes, etc...)
CONFIG_TRACE_IRQFLAGS=y CONFIG_TRACE_IRQFLAGS_NMI=y CONFIG_DEBUG_IRQFLAGS=y CONFIG_STACKTRACE=y
# CONFIG_WARN_ALL_UNSEEDED_RANDOM is not set # CONFIG_DEBUG_KOBJECT is not set
#
# Debug kernel data structures
#CONFIG_DEBUG_LIST=y
# CONFIG_DEBUG_PLIST is not set
# CONFIG_DEBUG_SG is not set CONFIG_DEBUG_NOTIFIERS=y
# CONFIG_BUG_ON_DATA_CORRUPTION is not set # CONFIG_DEBUG_MAPLE_TREE is not set
# end of Debug kernel data structures
CONFIG_DEBUG_CREDENTIALS=y
#
# RCU Debugging
#CONFIG_PROVE_RCU=y
# CONFIG_PROVE_RCU_LIST is not set CONFIG_TORTURE_TEST=m CONFIG_RCU_SCALE_TEST=m CONFIG_RCU_TORTURE_TEST=m
# CONFIG_RCU_REF_SCALE_TEST is not set # CONFIG_RCU_TRACE is not set CONFIG_RCU_EQS_DEBUG=y
# end of RCU Debugging
CONFIG_DEBUG_WQ_FORCE_RR_CPU=y CONFIG_LATENCYTOP=y CONFIG_USER_STACKTRACE_SUPPORT=y CONFIG_NOP_TRACER=yCONFIG_HAVE_RETHOOK=yCONFIG_RETHOOK=y CONFIG_HAVE_FUNCTION_TRACER=y CONFIG_HAVE_DYNAMIC_FTRACE=y CONFIG_HAVE_DYNAMIC_FTRACE_WITH_REGS=y CONFIG_HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALLS=y CONFIG_HAVE_DYNAMIC_FTRACE_WITH_ARGS=y CONFIG_HAVE_DYNAMIC_FTRACE_NO_PATCHABLE=y CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y CONFIG_HAVE_SYSCALL_TRACEPOINTS=y CONFIG_HAVE_FENTRY=y CONFIG_HAVE_OBJTOOL_MCOUNT=y CONFIG_HAVE_C_RECORDMCOUNT=y CONFIG_HAVE_BUILDTIME_MCOUNT_SORT=y CONFIG_TRACE_CLOCK=yCONFIG_RING_BUFFER=yCONFIG_EVENT_TRACING=y CONFIG_CONTEXT_SWITCH_TRACER=y CONFIG_PREEMPTIRQ_TRACEPOINTS=y CONFIG_TRACING=yCONFIG_TRACING_SUPPORT=yCONFIG_FTRACE=y
# CONFIG_BOOTTIME_TRACING is not set
# CONFIG_FUNCTION_TRACER is not set
# CONFIG_STACK_TRACER is not set
# CONFIG_IRQSOFF_TRACER is not set
# CONFIG_SCHED_TRACER is not set
# CONFIG_HWLAT_TRACER is not set
# CONFIG_OSNOISE_TRACER is not set
# CONFIG_TIMERLAT_TRACER is not set
# CONFIG_MMIOTRACE is not set
# CONFIG_ENABLE_DEFAULT_TRACERS is not set
# CONFIG_FTRACE_SYSCALLS is not set
# CONFIG_TRACER_SNAPSHOT is not set CONFIG_BRANCH_PROFILE_NONE=y
# CONFIG_PROFILE_ANNOTATED_BRANCHES is not set CONFIG_KPROBE_EVENTS=y CONFIG_UPROBE_EVENTS=yCONFIG_BPF_EVENTS=yCONFIG_DYNAMIC_EVENTS=y CONFIG_PROBE_EVENTS=y CONFIG_BPF_KPROBE_OVERRIDE=y
# CONFIG_SYNTH_EVENTS is not set
# CONFIG_HIST_TRIGGERS is not set
# CONFIG_TRACE_EVENT_INJECT is not set
# CONFIG_TRACEPOINT_BENCHMARK is not set
# CONFIG_RING_BUFFER_BENCHMARK is not set
# CONFIG_TRACE_EVAL_MAP_FILE is not set
# CONFIG_GCOV_PROFILE_FTRACE is not set
# CONFIG_RING_BUFFER_STARTUP_TEST is not set # CONFIG_RING_BUFFER_VALIDATE_TIME_DELTAS is not set # CONFIG_PREEMPTIRQ_DELAY_TEST is not set
# CONFIG_KPROBE_EVENT_GEN_TEST is not set
# CONFIG_RV is not set
# CONFIG_PROVIDE_OHCI1394_DMA_INIT is not set CONFIG_SAMPLES=yCONFIG_SAMPLE_AUXDISPLAY=y
# CONFIG_SAMPLE_TRACE_EVENTS is not set
# CONFIG_SAMPLE_TRACE_CUSTOM_EVENTS is not set # CONFIG_SAMPLE_TRACE_PRINTK is not set
# CONFIG_SAMPLE_TRACE_ARRAY is not set CONFIG_SAMPLE_KOBJECT=y
# CONFIG_SAMPLE_KPROBES is not set
# CONFIG_SAMPLE_HW_BREAKPOINT is not set
# CONFIG_SAMPLE_KFIFO is not set
# CONFIG_SAMPLE_CONFIGFS is not set CONFIG_SAMPLE_WATCHDOG=y CONFIG_HAVE_SAMPLE_FTRACE_DIRECT=y CONFIG_HAVE_SAMPLE_FTRACE_DIRECT_MULTI=y CONFIG_ARCH_HAS_DEVMEM_IS_ALLOWED=y
#
# x86 Debugging # CONFIG_EARLY_PRINTK_USB=y CONFIG_X86_VERBOSE_BOOTUP=y CONFIG_EARLY_PRINTK=y CONFIG_EARLY_PRINTK_DBGP=y CONFIG_EARLY_PRINTK_USB_XDBC=y CONFIG_EFI_PGT_DUMP=y CONFIG_DEBUG_TLBFLUSH=y CONFIG_HAVE_MMIOTRACE_SUPPORT=y # CONFIG_X86_DECODER_SELFTEST is not set # CONFIG_IO_DELAY_0X80 is not set # CONFIG_IO_DELAY_0XED is not set # CONFIG_IO_DELAY_UDELAY is not set CONFIG_IO_DELAY_NONE=y # CONFIG_DEBUG_BOOT_PARAMS is not set # CONFIG_CPA_DEBUG is not set CONFIG_DEBUG_ENTRY=y # CONFIG_DEBUG_NMI_SELFTEST is not set # CONFIG_X86_DEBUG_FPU is not set # CONFIG_PUNIT_ATOM_DEBUG is not set CONFIG_UNWINDER_ORC=y # CONFIG_UNWINDER_FRAME_POINTER is not set # end of x86 Debugging
#
# Kernel Testing and Coverage
#
# CONFIG_KUNIT is not set
# CONFIG_NOTIFIER_ERROR_INJECTION is not set CONFIG_FUNCTION_ERROR_INJECTION=y
# CONFIG_FAULT_INJECTION is not set CONFIG_ARCH_HAS_KCOV=y CONFIG_CC_HAS_SANCOV_TRACE_PC=y CONFIG_KCOV=y CONFIG_KCOV_ENABLE_COMPARISONS=y CONFIG_KCOV_INSTRUMENT_ALL=y CONFIG_KCOV_IRQ_AREA_SIZE=0x40000
# CONFIG_RUNTIME_TESTING_MENU is not set CONFIG_ARCH_USE_MEMTEST=y CONFIG_MEMTEST=y
# end of Kernel Testing and Coverage
#
# Rust hacking
#
# end of Rust hacking # end of Kernel hacking
Kumar Kartikeya Dwivedi
maintainerRe: [PATCH bpf-next v6 11/26] bpf: Allow locking bpf_spin_lock in allocated objects
Quoted 9 lines · Dan Carpenter
Hi Kumar,
url: https://github.com/intel-lab-lkp/linux/commits/Kumar-Kartikeya-Dwivedi/Allocated-objects-BPF-linked-lists/20221112-033643 base: e5659e4e19e49f1eac58bb07ce8bc2d78a89fe65 patch link: https://lore.kernel.org/r/20221111193224.876706-12-memxor%40gmail.com patch subject: [PATCH bpf-next v6 11/26] bpf: Allow locking bpf_spin_lock in allocated objects config: x86_64-randconfig-m001 compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
Quoted 8 lines
If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot <[email protected]>
| Reported-by: Dan Carpenter <[email protected]>smatch warnings:
kernel/bpf/verifier.c:5623process_spin_lock()error: uninitialized symbol 'rec'.vim +/rec +5623
kernel/bpf/verifier.c
Hi Dan,
Thanks for the report! I noticed it yesterday night.
How should I be crediting you in the respin? Not sure Reported-by: is ok if I incorporate the fix into the patch and resend it. Would Fixed-by: be better?
Quoted 1 line
[...]
Re: [PATCH bpf-next v6 11/26] bpf: Allow locking bpf_spin_lock in allocated objects
Quoted 17 lines · Kumar Kartikeya Dwivedi
Quoted 16 lines · Dan Carpenter
Hi Kumar,
url: https://github.com/intel-lab-lkp/linux/commits/Kumar-Kartikeya-Dwivedi/Allocated-objects-BPF-linked-lists/20221112-033643 base: e5659e4e19e49f1eac58bb07ce8bc2d78a89fe65 patch link: https://lore.kernel.org/r/20221111193224.876706-12-memxor%40gmail.com patch subject: [PATCH bpf-next v6 11/26] bpf: Allow locking bpf_spin_lock in allocated objects config: x86_64-randconfig-m001 compiler: gcc-11 (Debian 11.3.0-8) 11.3.0If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot <[email protected]>
| Reported-by: Dan Carpenter <[email protected]>smatch warnings:
kernel/bpf/verifier.c:5623process_spin_lock()error: uninitialized symbol 'rec'.
Quoted 9 lines
Quoted 1 line
vim +/rec +5623
kernel/bpf/verifier.cHi Dan,
Thanks for the report! I noticed it yesterday night.
How should I be crediting you in the respin? Not sure Reported-by: is ok if I incorporate the fix into the patch and resend it. Would Fixed-by: be better?
I've always said there should be a Fixes-from: tag but it doesn't exist.
Just leave it off. These emails are auto-generated by the kbuild-bot because credit helps fund their work. I just look the bug reports and forward the reports.
regards,
dan carpenter