Remove generic rpc credentials, and associated changed - V3
Subsystems (4)
cover Remove generic rpc credentials, and associated changed - V3
Here is the revises (For 4.16-rc2) version of a patch series I sent in Dec and Jan.
This series has 4 'cred' patches at the front. I sent them separately to people who might be interested, and got no response.
I don't think that are at all controversial, so I think it would be reasonable to submit them to Linux through the NFS tree with no Acks. Would you be OK with that?
This series includes the fix for the rpcsec-gss problem that Anna found.
---
NeilBrown (23):
cred: add cred_fscmp() for comparing creds.
cred: add get_cred_rcu()
cred: export get_task_cred().
cred: allow get_cred() and put_cred() to be given NULL.
SUNRPC: add 'struct cred *' to auth_cred and rpc_cred
SUNRPC: remove groupinfo from struct auth_cred.
SUNRPC: remove uid and gid from struct auth_cred
SUNRPC: remove machine_cred field from struct auth_cred
NFSv4: add cl_root_cred for use when machine cred is not available.
NFSv4: don't require lock for get_renew_cred or get_machine_cred
SUNRPC: discard RPC_DO_ROOTOVERRIDE()
NFS/SUNRPC: don't lookup machine credential until rpcauth_bindcred().
SUNRPC: introduce RPC_TASK_NULLCREDS to request auth_none
SUNRPC: add side channel to use non-generic cred for rpc call.
NFS: move credential expiry tracking out of SUNRPC into NFS.
SUNRPC: remove RPCAUTH_AUTH_NO_CRKEY_TIMEOUT
NFS: change access cache to use 'struct cred'.
NFS: struct nfs_open_dir_context: convert rpc_cred pointer to cred. NFS/NFSD/SUNRPC: replace generic creds with 'struct cred'.
SUNRPC: remove generic cred code.
SUNRPC: remove crbind rpc_cred operation
SUNRPC: simplify auth_unix.
SUNRPC: discard cr_uid from struct rpc_cred.
fs/lockd/clntproc.c | 6 - fs/nfs/blocklayout/blocklayout.c | 2 fs/nfs/client.c | 9 - fs/nfs/delegation.c | 26 +-- fs/nfs/delegation.h | 10 - fs/nfs/dir.c | 59 ++---- fs/nfs/flexfilelayout/flexfilelayout.c | 62 +++--- fs/nfs/flexfilelayout/flexfilelayout.h | 8 - fs/nfs/flexfilelayout/flexfilelayoutdev.c | 16 +- fs/nfs/inode.c | 12 + fs/nfs/internal.h | 8 - fs/nfs/nfs3proc.c | 4 fs/nfs/nfs4_fs.h | 65 +++--- fs/nfs/nfs4client.c | 4 fs/nfs/nfs4proc.c | 149 +++++++------- fs/nfs/nfs4renewd.c | 9 - fs/nfs/nfs4session.c | 4 fs/nfs/nfs4state.c | 127 ++++++------ fs/nfs/pagelist.c | 2 fs/nfs/pnfs.c | 10 - fs/nfs/pnfs.h | 10 - fs/nfs/pnfs_dev.c | 4 fs/nfs/pnfs_nfs.c | 2 fs/nfs/proc.c | 2 fs/nfs/unlink.c | 15 - fs/nfs/write.c | 24 ++ fs/nfsd/nfs4callback.c | 42 +--- fs/nfsd/nfs4state.c | 10 - fs/nfsd/state.h | 4 include/linux/cred.h | 26 ++- include/linux/nfs_fs.h | 13 + include/linux/nfs_fs_sb.h | 2 include/linux/nfs_xdr.h | 16 +- include/linux/sunrpc/auth.h | 53 ----- include/linux/sunrpc/clnt.h | 1 include/linux/sunrpc/sched.h | 6 - kernel/cred.c | 58 ++++++ net/sunrpc/Makefile | 2 net/sunrpc/auth.c | 115 ++++++----- net/sunrpc/auth_generic.c | 299 ----------------------------- net/sunrpc/auth_gss/auth_gss.c | 45 +--- net/sunrpc/auth_null.c | 4 net/sunrpc/auth_unix.c | 110 +++-------- net/sunrpc/clnt.c | 26 +-- net/sunrpc/sched.c | 5 45 files changed, 551 insertions(+), 935 deletions(-) delete mode 100644 net/sunrpc/auth_generic.c
--
Signature
PATCH 1/23 cred: add cred_fscmp() for comparing creds.
NFS needs to compare to credentials, to see if they can be treated the same w.r.t. filesystem access. Sometimes an ordering is needed when credentials are used as a key to an rbtree.
NFS current has its own private credential management from before 'struct cred' existed. To move it over to more consistent use of 'struct cred' we need a comparison function. This patch adds that function.
--- include/linux/cred.h | 1 + kernel/cred.c | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+)
include/linux/cred.h +1 -0
@@ -164,6 +164,7 @@ extern int change_create_files_as(struct cred *, struct inode *);extern int set_security_override (struct cred *,u32 );extern int set_security_override_from_ctx (struct cred *,const char *);extern int set_create_files_as (struct cred *,struct inode *); +extern int cred_fscmp (const struct cred *,const struct cred *);extern void __init cred_init (void );/*
kernel/cred.c +55 -0
67 lines not on this page · raw message
PATCH 2/23 cred: add get_cred_rcu()
In reply to NeilBrownSometimes we want to opportunistically get a ref to a cred in an rcu_read_lock protected section. get_task_cred() does this, and NFS does as similar thing with its own credential structures.
To prepare for NFS converting to use 'struct cred' more uniformly, define get_cred_rcu(), and use it in get_task_cred().
--- include/linux/cred.h | 11 +++++++++++ kernel/cred.c | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-)
include/linux/cred.h +11 -0
@@ -247,6 +247,17 @@ static inline const struct cred *get_cred(const struct cred *cred)return get_new_cred (nonconst_cred); } +static inline const struct cred *get_cred_rcu (const struct cred *cred) +{ +struct cred *nonconst_cred = (struct cred *) cred; +if (!cred) +return NULL ; +if (!atomic_inc_not_zero (&nonconst_cred->usage)) +return NULL ; +validate_creds (cred); +return cred; +} +/** * put_cred - Release a reference to a set of credentials * @cred: The credentials to release
kernel/cred.c +1 -1
@@ -195,7 +195,7 @@ const struct cred *get_task_cred(struct task_struct *task)do { cred =__task_cred ((task));BUG_ON (!cred); - }while (!atomic_inc_not_zero (&((struct cred *)cred)->usage)); + }while (!get_cred_rcu (cred));rcu_read_unlock ();return cred;
PATCH 3/23 cred: export get_task_cred().
In reply to NeilBrownThere is no reason that modules should not be able to use this, and NFS will need it when converted to use 'struct cred'.
--- kernel/cred.c | 1 + 1 file changed, 1 insertion(+)
kernel/cred.c +1 -0
@@ -200,6 +200,7 @@ const struct cred *get_task_cred(struct task_struct *task)rcu_read_unlock ();return cred; } +EXPORT_SYMBOL (get_task_cred);/* * Allocate blank credentials, such that the credentials can be filled in at a
PATCH 4/23 cred: allow get_cred() and put_cred() to be given NULL.
In reply to NeilBrownIt is common practice of helps like this so silently, accept a NULL pointer.get_rpccred() and put_rpccred() used by NFS act this way and using the same interface will ease the conversion for NFS, and simplify the resulting code.
--- include/linux/cred.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)
include/linux/cred.h +9 -5
@@ -232,7 +232,7 @@ static inline struct cred *get_new_cred(struct cred *cred)* @cred: The credentials to reference * * Get a reference on the specified set of credentials. The caller must -* release the reference. +* release the reference. If %NULL is passed, it is returned with no action. * * This is used to deal with a committed set of credentials. Although the * pointer is const, this will temporarily discard the const and increment the
@@ -243,6 +243,8 @@ static inline struct cred *get_new_cred(struct cred *cred)static inline const struct cred *get_cred (const struct cred *cred) {struct cred *nonconst_cred = (struct cred *) cred; +if (!cred) +return cred;validate_creds (cred);return get_new_cred (nonconst_cred); }
@@ -263,7 +265,7 @@ static inline const struct cred *get_cred_rcu(const struct cred *cred)* @cred: The credentials to release * * Release a reference to a set of credentials, deleting them when the last ref -* is released. +* is released. If %NULL is passed, nothing is done. * * This takes a const pointer to a set of credentials because the credentials * on task_struct are attached by const pointers to prevent accidental
@@ -273,9 +275,11 @@ static inline void put_cred(const struct cred *_cred) {struct cred *cred = (struct cred *) _cred; -validate_creds (cred); -if (atomic_dec_and_test (&(cred)->usage)) -__put_cred (cred); +if (cred) { +validate_creds (cred); +if (atomic_dec_and_test (&(cred)->usage)) +__put_cred (cred); + } }/**
PATCH 5/23 SUNRPC: add 'struct cred *' to auth_cred and rpc_cred
In reply to NeilBrownThe SUNRPC credential framework was put together before Linux has 'struct cred'. Now that we have it, it makes sense to use it.
This first step just includes a suitable 'struct cred *' pointer in every 'struct auth_cred' and almost every 'struct rpc_cred'.
The rpc_cred used for auth_null has a NULL 'struct cred *' as nothing else really makes sense.
For rpc_cred, the pointer is reference counted.
For auth_cred it isn't. struct auth_cred are either allocated on the stack, in which case the thread owns a reference to the auth, or are part of 'struct generic_cred' in which case gc_base owns the reference and acred shares it.
===Changelog
Fixed typo in get_backchannel_cred - testing wrong field for NULL. Call put_cred() from crdestroy() callback, so it is still available for auth_gss to use.
--- fs/nfs/flexfilelayout/flexfilelayout.c | 17 +++++++++++++++++ fs/nfsd/nfs4callback.c | 13 ++++++++++++- include/linux/sunrpc/auth.h | 2 ++ net/sunrpc/auth.c | 8 +++++++- net/sunrpc/auth_generic.c | 8 +++++++- net/sunrpc/auth_gss/auth_gss.c | 2 ++ net/sunrpc/auth_unix.c | 1 + 7 files changed, 48 insertions(+), 3 deletions(-)
fs/nfs/flexfilelayout/flexfilelayout.c +17 -0
@@ -9,6 +9,7 @@#include <linux/nfs_fs.h> #include <linux/nfs_page.h> #include <linux/module.h> +#include <linux/sched/mm.h> #include <linux/sunrpc/metrics.h>
@@ -415,6 +416,7 @@ ff_layout_alloc_lseg(struct pnfs_layout_hdr *lh,struct nfs4_ff_layout_mirror *mirror;struct auth_cred acred = { .group_info = ff_zero_group };struct rpc_cred __rcu *cred; +struct cred *kcred;u32 ds_count, fh_count, id;int j;
@@ -491,8 +493,23 @@ ff_layout_alloc_lseg(struct pnfs_layout_hdr *lh, acred.gid =make_kgid (&init_user_ns, id); +if (gfp_flags & __GFP_FS) + kcred =prepare_kernel_cred (NULL ); +else { +unsigned int nofs_flags =memalloc_nofs_save (); + kcred =prepare_kernel_cred (NULL ); +memalloc_nofs_restore (nofs_flags); + } + rc = -ENOMEM ; +if (!kcred) + goto out_err_free; + kcred->fsuid = acred.uid; + kcred->fsgid = acred.gid; + acred.cred = kcred; +/* find the cred for it */ rcu_assign_pointer (cred,rpc_lookup_generic_cred (&acred,0 , gfp_flags)); +put_cred (kcred);if (IS_ERR (cred)) { rc =PTR_ERR (cred); goto out_err_free;
fs/nfsd/nfs4callback.c +12 -1
@@ -773,10 +773,21 @@ static struct rpc_cred *get_backchannel_cred(struct nfs4_client *clp, struct rpc }else {struct rpc_auth *auth = client->cl_auth;struct auth_cred acred = {}; +struct cred *kcred; +struct rpc_cred *ret; + + kcred =prepare_kernel_cred (NULL ); +if (!kcred) +return NULL ; acred.uid = ses->se_cb_sec.uid; acred.gid = ses->se_cb_sec.gid; -return auth->au_ops->lookup_cred (client->cl_auth, &acred,0 ); + kcred->uid = acred.uid; + kcred->gid = acred.gid; + acred.cred = kcred; + ret = auth->au_ops->lookup_cred (client->cl_auth, &acred,0 ); +put_cred (kcred); +return ret; } }
include/linux/sunrpc/auth.h +2 -0
@@ -46,6 +46,7 @@ enum {/* Work around the lack of a VFS credential */ struct auth_cred { +const struct cred *cred;kuid_t uid;kgid_t gid;struct group_info *group_info;
@@ -68,6 +69,7 @@ struct rpc_cred {unsigned long cr_expire;/* when to gc */ unsigned long cr_flags;/* various flags */ atomic_t cr_count;/* ref count */ +const struct cred *cr_cred;kuid_t cr_uid;
net/sunrpc/auth.c +7 -1
@@ -634,6 +634,7 @@ rpcauth_lookupcred(struct rpc_auth *auth, int flags) acred.uid = cred->fsuid; acred.gid = cred->fsgid; acred.group_info = cred->group_info; + acred.cred = cred; ret = auth->au_ops->lookup_cred (auth, &acred, flags);return ret; }
@@ -649,6 +650,7 @@ rpcauth_init_cred(struct rpc_cred *cred, const struct auth_cred *acred, cred->cr_auth = auth; cred->cr_ops = ops; cred->cr_expire = jiffies; + cred->cr_cred =get_cred (acred->cred); cred->cr_uid = acred->uid; }EXPORT_SYMBOL_GPL (rpcauth_init_cred);
@@ -669,11 +671,15 @@ rpcauth_bind_root_cred(struct rpc_task *task, int lookupflags)struct auth_cred acred = { .uid =GLOBAL_ROOT_UID , .gid =GLOBAL_ROOT_GID , + .cred =get_task_cred (&init_task), }; +struct rpc_cred *ret;dprintk ("RPC: %5u looking up %s cred\n" , task->tk_pid, task->tk_client->cl_auth->au_ops->au_name); -return auth->au_ops->lookup_cred (auth, &acred, lookupflags); + ret = auth->au_ops->lookup_cred (auth, &acred, lookupflags); +put_cred (acred.cred); +return ret; } static struct rpc_cred *
net/sunrpc/auth_generic.c +7 -1
@@ -61,11 +61,15 @@ struct rpc_cred *rpc_lookup_machine_cred(const char *service_name) .gid = RPC_MACHINE_CRED_GROUPID, .principal = service_name, .machine_cred = 1, + .cred = get_task_cred(&init_task), }; +struct rpc_cred *ret;dprintk ("RPC: looking up machine cred for service %s\n" , service_name); -return generic_auth.au_ops->lookup_cred (&generic_auth, &acred,0 ); + ret = generic_auth.au_ops->lookup_cred (&generic_auth, &acred,0 ); +put_cred (acred.cred); +return ret; }EXPORT_SYMBOL_GPL (rpc_lookup_machine_cred);
@@ -110,6 +114,7 @@ generic_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags, g gcred->acred.uid = acred->uid; gcred->acred.gid = acred->gid; gcred->acred.group_info = acred->group_info; + gcred->acred.cred = gcred->gc_base.cr_cred; gcred->acred.ac_flags =0 ;if (gcred->acred.group_info !=NULL )get_group_info (gcred->acred.group_info);
@@ -132,6 +137,7 @@ generic_free_cred(struct rpc_cred *cred)dprintk ("RPC: generic_free_cred %p\n" , gcred);if (gcred->acred.group_info !=NULL )put_group_info (gcred->acred.group_info); +put_cred (cred->cr_cred);kfree (gcred); }
net/sunrpc/auth_gss/auth_gss.c +2 -0
@@ -1288,6 +1288,7 @@ gss_destroy_nullcred(struct rpc_cred *cred)struct gss_cl_ctx *ctx =rcu_dereference_protected (gss_cred->gc_ctx,1 );RCU_INIT_POINTER (gss_cred->gc_ctx,NULL ); +put_cred (cred->cr_cred);call_rcu (&cred->cr_rcu, gss_free_cred_callback);if (ctx)gss_put_ctx (ctx);
@@ -1553,6 +1554,7 @@ static int gss_renew_cred(struct rpc_task *task)struct rpc_auth *auth = oldcred->cr_auth;struct auth_cred acred = { .uid = oldcred->cr_uid, + .cred = oldcred->cr_cred, .principal = gss_cred->gc_principal, .machine_cred = (gss_cred->gc_principal !=NULL ?1 :0 ), };
net/sunrpc/auth_unix.c +1 -0
@@ -97,6 +97,7 @@ static void unx_free_cred(struct unx_cred *unx_cred) {dprintk ("RPC: unx_free_cred %p\n" , unx_cred); +put_cred (unx_cred->uc_base.cr_cred);kfree (unx_cred); }
PATCH 6/23 SUNRPC: remove groupinfo from struct auth_cred.
In reply to NeilBrownWe can use cred->groupinfo (from the 'struct cred') instead.
--- fs/nfs/flexfilelayout/flexfilelayout.c | 14 +------------- include/linux/sunrpc/auth.h | 1 - net/sunrpc/auth.c | 1 - net/sunrpc/auth_generic.c | 17 +++++++---------- net/sunrpc/auth_unix.c | 12 ++++++------ 5 files changed, 14 insertions(+), 31 deletions(-)
fs/nfs/flexfilelayout/flexfilelayout.c +1 -13
@@ -28,9 +28,6 @@#define FF_LAYOUT_POLL_RETRY_MAX (15*HZ)#define FF_LAYOUTRETURN_MAXERR 20 - -static struct group_info *ff_zero_group; -static void ff_layout_read_record_layoutstats_done (struct rpc_task *task,struct nfs_pgio_header *hdr); static int ff_layout_mirror_prepare_stats(struct pnfs_layout_hdr *lo,
@@ -414,7 +411,7 @@ ff_layout_alloc_lseg(struct pnfs_layout_hdr *lh,for (i =0 ; i < fls->mirror_array_cnt; i++) {struct nfs4_ff_layout_mirror *mirror; -struct auth_cred acred = { .group_info = ff_zero_group }; +struct auth_cred acred = {};struct rpc_cred __rcu *cred;struct cred *kcred;u32 ds_count, fh_count, id;
@@ -2391,11 +2388,6 @@ static int __init nfs4flexfilelayout_init(void) {printk (KERN_INFO "%s: NFSv4 Flexfile Layout Driver Registering...\n" , __func__); -if (!ff_zero_group) { - ff_zero_group =groups_alloc (0 ); -if (!ff_zero_group) -return -ENOMEM ; - }return pnfs_register_layoutdriver (&flexfilelayout_type); }
@@ -2404,10 +2396,6 @@ static void __exit nfs4flexfilelayout_exit(void)printk (KERN_INFO "%s: NFSv4 Flexfile Layout Driver Unregistering...\n" , __func__);pnfs_unregister_layoutdriver (&flexfilelayout_type); -if (ff_zero_group) { -put_group_info (ff_zero_group); - ff_zero_group =NULL ; - } }MODULE_ALIAS ("nfs-layouttype4-4" );
include/linux/sunrpc/auth.h +0 -1
@@ -49,7 +49,6 @@ struct auth_cred {const struct cred *cred;kuid_t uid;kgid_t gid; -struct group_info *group_info;const char *principal;unsigned long ac_flags; unsigned char machine_cred : 1;
net/sunrpc/auth.c +0 -1
@@ -633,7 +633,6 @@ rpcauth_lookupcred(struct rpc_auth *auth, int flags)memset (&acred,0 ,sizeof (acred)); acred.uid = cred->fsuid; acred.gid = cred->fsgid; - acred.group_info = cred->group_info; acred.cred = cred; ret = auth->au_ops->lookup_cred (auth, &acred, flags);return ret;
net/sunrpc/auth_generic.c +7 -10
@@ -113,11 +113,8 @@ generic_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags, g gcred->acred.uid = acred->uid; gcred->acred.gid = acred->gid; - gcred->acred.group_info = acred->group_info; gcred->acred.cred = gcred->gc_base.cr_cred; gcred->acred.ac_flags =0 ; -if (gcred->acred.group_info !=NULL ) -get_group_info (gcred->acred.group_info); gcred->acred.machine_cred = acred->machine_cred; gcred->acred.principal = acred->principal;
@@ -135,8 +132,6 @@ generic_free_cred(struct rpc_cred *cred) struct generic_cred *gcred = container_of(cred, struct generic_cred, gc_base);dprintk ("RPC: generic_free_cred %p\n" , gcred); -if (gcred->acred.group_info !=NULL ) -put_group_info (gcred->acred.group_info);put_cred (cred->cr_cred);kfree (gcred); }
@@ -173,6 +168,7 @@ generic_match(struct auth_cred *acred, struct rpc_cred *cred, int flags) { struct generic_cred *gcred = container_of(cred, struct generic_cred, gc_base);int i; +struct group_info *a, *g;if (acred->machine_cred)return machine_cred_match (acred, gcred, flags);
@@ -182,16 +178,17 @@ generic_match(struct auth_cred *acred, struct rpc_cred *cred, int flags) gcred->acred.machine_cred != 0) goto out_nomatch; + a = acred->cred->group_info; + g = gcred->acred.cred->group_info;/* Optimisation in the case where pointers are identical... */ -if (gcred->acred.group_info == acred->group_info) +if (a == g) goto out_match;/* Slow path... */ -if (gcred->acred.group_info->ngroups != acred->group_info->ngroups) +if (g->ngroups != a->ngroups) goto out_nomatch; -for (i =0 ; i < gcred->acred.group_info->ngroups; i++) { -if (!gid_eq (gcred->acred.group_info->gid[i], - acred->group_info->gid[i])) +for (i =0 ; i < g->ngroups; i++) { +if (!gid_eq (g->gid[i], a->gid[i])) goto out_nomatch; } out_match:
net/sunrpc/auth_unix.c +6 -6
@@ -79,14 +79,14 @@ unx_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags, gfp_trpcauth_init_cred (&cred->uc_base, acred, auth, &unix_credops); cred->uc_base.cr_flags =1UL <<RPCAUTH_CRED_UPTODATE ; -if (acred->group_info !=NULL ) - groups = acred->group_info->ngroups; +if (acred->cred && acred->cred->group_info !=NULL ) + groups = acred->cred->group_info->ngroups;if (groups >UNX_NGROUPS ) groups =UNX_NGROUPS ; cred->uc_gid = acred->gid;for (i =0 ; i < groups; i++) - cred->uc_gids[i] = acred->group_info->gid[i]; + cred->uc_gids[i] = acred->cred->group_info->gid[i];if (i <UNX_NGROUPS ) cred->uc_gids[i] =INVALID_GID ;
@@ -130,12 +130,12 @@ unx_match(struct auth_cred *acred, struct rpc_cred *rcred, int flags)if (!uid_eq (cred->uc_uid, acred->uid) || !gid_eq (cred->uc_gid, acred->gid))return 0 ; -if (acred->group_info !=NULL ) - groups = acred->group_info->ngroups; +if (acred->cred && acred->cred->group_info !=NULL ) + groups = acred->cred->group_info->ngroups;if (groups >UNX_NGROUPS ) groups =UNX_NGROUPS ;for (i =0 ; i < groups ; i++) -if (!gid_eq (cred->uc_gids[i], acred->group_info->gid[i])) +if (!gid_eq (cred->uc_gids[i], acred->cred->group_info->gid[i]))return 0 ;if (groups <UNX_NGROUPS &&gid_valid (cred->uc_gids[groups]))return 0 ;
PATCH 7/23 SUNRPC: remove uid and gid from struct auth_cred
In reply to NeilBrownUse cred->fsuid and cred->fsgid instead.
--- fs/nfs/flexfilelayout/flexfilelayout.c | 14 ++++++++------ fs/nfsd/nfs4callback.c | 6 ++---- include/linux/sunrpc/auth.h | 3 --- net/sunrpc/auth.c | 6 +----- net/sunrpc/auth_generic.c | 23 ++++++++--------------- net/sunrpc/auth_gss/auth_gss.c | 7 +++---- net/sunrpc/auth_unix.c | 12 ++++++------ 7 files changed, 28 insertions(+), 43 deletions(-)
fs/nfs/flexfilelayout/flexfilelayout.c +8 -6
@@ -414,6 +414,8 @@ ff_layout_alloc_lseg(struct pnfs_layout_hdr *lh,struct auth_cred acred = {};struct rpc_cred __rcu *cred;struct cred *kcred; +kuid_t uid; +kgid_t gid;u32 ds_count, fh_count, id;int j;
@@ -481,14 +483,14 @@ ff_layout_alloc_lseg(struct pnfs_layout_hdr *lh,if (rc) goto out_err_free; - acred.uid =make_kuid (&init_user_ns, id); + uid =make_kuid (&init_user_ns, id);/* group */ rc =decode_name (&stream, &id);if (rc) goto out_err_free; - acred.gid =make_kgid (&init_user_ns, id); + gid =make_kgid (&init_user_ns, id);if (gfp_flags & __GFP_FS) kcred =prepare_kernel_cred (NULL );
@@ -500,8 +502,8 @@ ff_layout_alloc_lseg(struct pnfs_layout_hdr *lh, rc = -ENOMEM ;if (!kcred) goto out_err_free; - kcred->fsuid = acred.uid; - kcred->fsgid = acred.gid; + kcred->fsuid = uid; + kcred->fsgid = gid; acred.cred = kcred;/* find the cred for it */
@@ -533,8 +535,8 @@ ff_layout_alloc_lseg(struct pnfs_layout_hdr *lh,dprintk ("%s: iomode %s uid %u gid %u\n" , __func__, lgr->range.iomode ==IOMODE_READ ?"READ" :"RW" , -from_kuid (&init_user_ns, acred.uid), -from_kgid (&init_user_ns, acred.gid)); +from_kuid (&init_user_ns, uid), +from_kgid (&init_user_ns, gid)); } p =xdr_inline_decode (&stream,4 );
fs/nfsd/nfs4callback.c +2 -4
@@ -780,10 +780,8 @@ static struct rpc_cred *get_backchannel_cred(struct nfs4_client *clp, struct rpcif (!kcred)return NULL ; - acred.uid = ses->se_cb_sec.uid; - acred.gid = ses->se_cb_sec.gid; - kcred->uid = acred.uid; - kcred->gid = acred.gid; + kcred->uid = ses->se_cb_sec.uid; + kcred->gid = ses->se_cb_sec.gid; acred.cred = kcred; ret = auth->au_ops->lookup_cred (client->cl_auth, &acred,0 );put_cred (kcred);
include/linux/sunrpc/auth.h +0 -3
@@ -44,11 +44,8 @@ enum {key will expire soon */ }; -/* Work around the lack of a VFS credential */ struct auth_cred {const struct cred *cred; -kuid_t uid; -kgid_t gid;const char *principal;unsigned long ac_flags;unsigned char machine_cred :1 ;
net/sunrpc/auth.c +1 -5
@@ -631,8 +631,6 @@ rpcauth_lookupcred(struct rpc_auth *auth, int flags) auth->au_ops->au_name);memset (&acred,0 ,sizeof (acred)); - acred.uid = cred->fsuid; - acred.gid = cred->fsgid; acred.cred = cred; ret = auth->au_ops->lookup_cred (auth, &acred, flags);return ret;
@@ -650,7 +648,7 @@ rpcauth_init_cred(struct rpc_cred *cred, const struct auth_cred *acred, cred->cr_ops = ops; cred->cr_expire = jiffies; cred->cr_cred =get_cred (acred->cred); - cred->cr_uid = acred->uid; + cred->cr_uid = acred->cred->fsuid; }EXPORT_SYMBOL_GPL (rpcauth_init_cred);
@@ -668,8 +666,6 @@ rpcauth_bind_root_cred(struct rpc_task *task, int lookupflags) {struct rpc_auth *auth = task->tk_client->cl_auth;struct auth_cred acred = { - .uid =GLOBAL_ROOT_UID , - .gid =GLOBAL_ROOT_GID , .cred =get_task_cred (&init_task), };struct rpc_cred *ret;
net/sunrpc/auth_generic.c +8 -15
@@ -18,9 +18,6 @@# define RPCDBG_FACILITY RPCDBG_AUTH#endif -#define RPC_MACHINE_CRED_USERID GLOBAL_ROOT_UID -#define RPC_MACHINE_CRED_GROUPID GLOBAL_ROOT_GID -struct generic_cred {struct rpc_cred gc_base;struct auth_cred acred;
@@ -57,8 +54,6 @@ EXPORT_SYMBOL_GPL(rpc_lookup_cred_nonblock);struct rpc_cred *rpc_lookup_machine_cred (const char *service_name) {struct auth_cred acred = { - .uid =RPC_MACHINE_CRED_USERID , - .gid =RPC_MACHINE_CRED_GROUPID , .principal = service_name, .machine_cred =1 , .cred =get_task_cred (&init_task),
@@ -85,8 +80,8 @@ static struct rpc_cred *generic_bind_cred(struct rpc_task *task,static int generic_hash_cred (struct auth_cred *acred,unsigned int hashbits) { -return hash_64 (from_kgid (&init_user_ns, acred->gid) | - ((u64 )from_kuid (&init_user_ns, acred->uid) << +return hash_64 (from_kgid (&init_user_ns, acred->cred->fsgid) | + ((u64 )from_kuid (&init_user_ns, acred->cred->fsuid) << (sizeof (gid_t) *8 )), hashbits); }
@@ -111,8 +106,6 @@ generic_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags, grpcauth_init_cred (&gcred->gc_base, acred, &generic_auth, &generic_credops); gcred->gc_base.cr_flags =1UL <<RPCAUTH_CRED_UPTODATE ; - gcred->acred.uid = acred->uid; - gcred->acred.gid = acred->gid; gcred->acred.cred = gcred->gc_base.cr_cred; gcred->acred.ac_flags =0 ; gcred->acred.machine_cred = acred->machine_cred;
@@ -121,8 +114,8 @@ generic_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags, gdprintk ("RPC: allocated %s cred %p for uid %d gid %d\n" , gcred->acred.machine_cred ?"machine" :"generic" , gcred, -from_kuid (&init_user_ns, acred->uid), -from_kgid (&init_user_ns, acred->gid)); +from_kuid (&init_user_ns, acred->cred->fsuid), +from_kgid (&init_user_ns, acred->cred->fsgid));return &gcred->gc_base; }
@@ -154,8 +147,8 @@ machine_cred_match(struct auth_cred *acred, struct generic_cred *gcred, int flag {if (!gcred->acred.machine_cred || gcred->acred.principal != acred->principal || - !uid_eq (gcred->acred.uid, acred->uid) || - !gid_eq (gcred->acred.gid, acred->gid)) + !uid_eq (gcred->acred.cred->fsuid, acred->cred->fsuid) || + !gid_eq (gcred->acred.cred->fsgid, acred->cred->fsgid))return 0 ;return 1 ; }
@@ -173,8 +166,8 @@ generic_match(struct auth_cred *acred, struct rpc_cred *cred, int flags)if (acred->machine_cred)return machine_cred_match (acred, gcred, flags); -if (!uid_eq (gcred->acred.uid, acred->uid) || - !gid_eq (gcred->acred.gid, acred->gid) || +if (!uid_eq (gcred->acred.cred->fsuid, acred->cred->fsuid) || + !gid_eq (gcred->acred.cred->fsgid, acred->cred->fsgid) || gcred->acred.machine_cred !=0 ) goto out_nomatch;
net/sunrpc/auth_gss/auth_gss.c +3 -4
@@ -1307,7 +1307,7 @@ gss_destroy_cred(struct rpc_cred *cred)static int gss_hash_cred (struct auth_cred *acred,unsigned int hashbits) { -return hash_64 (from_kuid (&init_user_ns, acred->uid), hashbits); +return hash_64 (from_kuid (&init_user_ns, acred->cred->fsuid), hashbits); }/*
@@ -1327,7 +1327,7 @@ gss_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags, gfp_tint err = -ENOMEM ;dprintk ("RPC: %s for uid %d, flavor %d\n" , - __func__,from_kuid (&init_user_ns, acred->uid), + __func__,from_kuid (&init_user_ns, acred->cred->fsuid), auth->au_flavor);if (!(cred =kzalloc (sizeof (*cred), gfp)))
@@ -1468,7 +1468,7 @@ gss_match(struct auth_cred *acred, struct rpc_cred *rc, int flags) }if (gss_cred->gc_principal !=NULL )return 0 ; - ret =uid_eq (rc->cr_uid, acred->uid); + ret =uid_eq (rc->cr_uid, acred->cred->fsuid); check_expire:if (ret ==0 )
@@ -1553,7 +1553,6 @@ static int gss_renew_cred(struct rpc_task *task) gc_base);struct rpc_auth *auth = oldcred->cr_auth;struct auth_cred acred = { - .uid = oldcred->cr_uid, .cred = oldcred->cr_cred, .principal = gss_cred->gc_principal, .machine_cred = (gss_cred->gc_principal !=NULL ?1 :0 ),
net/sunrpc/auth_unix.c +6 -6
@@ -48,8 +48,8 @@ unx_destroy(struct rpc_auth *auth)static int unx_hash_cred (struct auth_cred *acred,unsigned int hashbits) { -return hash_64 (from_kgid (&init_user_ns, acred->gid) | - ((u64 )from_kuid (&init_user_ns, acred->uid) << +return hash_64 (from_kgid (&init_user_ns, acred->cred->fsgid) | + ((u64 )from_kuid (&init_user_ns, acred->cred->fsuid) << (sizeof (gid_t) *8 )), hashbits); }
@@ -70,8 +70,8 @@ unx_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags, gfp_tunsigned int i;dprintk ("RPC: allocating UNIX cred for uid %d gid %d\n" , -from_kuid (&init_user_ns, acred->uid), -from_kgid (&init_user_ns, acred->gid)); +from_kuid (&init_user_ns, acred->cred->fsuid), +from_kgid (&init_user_ns, acred->cred->fsgid));if (!(cred =kmalloc (sizeof (*cred), gfp)))return ERR_PTR (-ENOMEM );
@@ -84,7 +84,7 @@ unx_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags, gfp_tif (groups >UNX_NGROUPS ) groups =UNX_NGROUPS ; - cred->uc_gid = acred->gid; + cred->uc_gid = acred->cred->fsgid;for (i =0 ; i < groups; i++) cred->uc_gids[i] = acred->cred->group_info->gid[i];if (i <UNX_NGROUPS )
@@ -127,7 +127,7 @@ unx_match(struct auth_cred *acred, struct rpc_cred *rcred, int flags)unsigned int i; -if (!uid_eq (cred->uc_uid, acred->uid) || !gid_eq (cred->uc_gid, acred->gid)) +if (!uid_eq (cred->uc_uid, acred->cred->fsuid) || !gid_eq (cred->uc_gid, acred->cred->fsgid))return 0 ;if (acred->cred && acred->cred->group_info !=NULL )
PATCH 8/23 SUNRPC: remove machine_cred field from struct auth_cred
In reply to NeilBrownThe cred is a machine_cred iff ->principal is set, so there is no need for the extra flag.
There is one case which deserves some
explanation. nfs4_root_machine_cred() calls rpc_lookup_machine_cred() with a NULL principal name which results in not getting a machine credential, but getting a root credential instead.
This appears to be what is expected of the caller, and is clearly the result provided by both auth_unix and auth_gss which already ignore the flag. in the ->crmatch functions.
--- include/linux/sunrpc/auth.h | 3 +-- net/sunrpc/auth_generic.c | 12 ++++++------ net/sunrpc/auth_gss/auth_gss.c | 5 +---- 3 files changed, 8 insertions(+), 12 deletions(-)
include/linux/sunrpc/auth.h +1 -2
@@ -46,9 +46,8 @@ enum {struct auth_cred {const struct cred *cred; -const char *principal; +const char *principal;/* If present, this is a machine credential */ unsigned long ac_flags; -unsigned char machine_cred :1 ; };/*
net/sunrpc/auth_generic.c +6 -6
@@ -50,12 +50,13 @@ EXPORT_SYMBOL_GPL(rpc_lookup_cred_nonblock);/* * Public call interface for looking up machine creds. +* Note that if service_name is NULL, we actually look up +* "root" credential. */ struct rpc_cred *rpc_lookup_machine_cred (const char *service_name) {struct auth_cred acred = { .principal = service_name, - .machine_cred =1 , .cred =get_task_cred (&init_task), };struct rpc_cred *ret;
@@ -108,11 +109,10 @@ generic_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags, g gcred->acred.cred = gcred->gc_base.cr_cred; gcred->acred.ac_flags =0 ; - gcred->acred.machine_cred = acred->machine_cred; gcred->acred.principal = acred->principal;dprintk ("RPC: allocated %s cred %p for uid %d gid %d\n" , - gcred->acred.machine_cred ?"machine" :"generic" , + gcred->acred.principal ?"machine" :"generic" , gcred,from_kuid (&init_user_ns, acred->cred->fsuid),from_kgid (&init_user_ns, acred->cred->fsgid));
@@ -145,7 +145,7 @@ generic_destroy_cred(struct rpc_cred *cred)static int machine_cred_match (struct auth_cred *acred,struct generic_cred *gcred,int flags) { -if (!gcred->acred.machine_cred || +if (!gcred->acred.principal || gcred->acred.principal != acred->principal || !uid_eq (gcred->acred.cred->fsuid, acred->cred->fsuid) || !gid_eq (gcred->acred.cred->fsgid, acred->cred->fsgid))
@@ -163,12 +163,12 @@ generic_match(struct auth_cred *acred, struct rpc_cred *cred, int flags)int i;struct group_info *a, *g; -if (acred->machine_cred) +if (acred->principal)return machine_cred_match (acred, gcred, flags);if (!uid_eq (gcred->acred.cred->fsuid, acred->cred->fsuid) || !gid_eq (gcred->acred.cred->fsgid, acred->cred->fsgid) || - gcred->acred.machine_cred !=0 ) + gcred->acred.principal !=NULL ) goto out_nomatch; a = acred->cred->group_info;
net/sunrpc/auth_gss/auth_gss.c +1 -4
@@ -1340,9 +1340,7 @@ gss_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags, gfp_t*/ cred->gc_base.cr_flags =1UL <<RPCAUTH_CRED_NEW ; cred->gc_service = gss_auth->service; - cred->gc_principal =NULL ; -if (acred->machine_cred) - cred->gc_principal = acred->principal; + cred->gc_principal = acred->principal;kref_get (&gss_auth->kref);return &cred->gc_base;
@@ -1555,7 +1553,6 @@ static int gss_renew_cred(struct rpc_task *task)struct auth_cred acred = { .cred = oldcred->cr_cred, .principal = gss_cred->gc_principal, - .machine_cred = (gss_cred->gc_principal !=NULL ?1 :0 ), };struct rpc_cred *new;
PATCH 9/23 NFSv4: add cl_root_cred for use when machine cred is not available.
In reply to NeilBrownNFSv4 state management tries a root credential when no machine credential is available, as can happen with kerberos.
It does this by replacing the cl_machine_cred with a root credential. This means that any user of the machine credential needs to take a lock while getting a reference to the machine credential, which is a little cumbersome.
So introduce an explicit cl_root_cred, and never free either credential until client shutdown. This means that no locking is needed to reference these credentials. Future patches will make use of this.
This is only a temporary addition. both cl_machine_cred and cl_root_cred will disappear later in the series.
--- fs/nfs/client.c | 2 ++ fs/nfs/nfs4state.c | 20 ++++++++++++-------- include/linux/nfs_fs_sb.h | 1 + 3 files changed, 15 insertions(+), 8 deletions(-)
fs/nfs/client.c +2 -0
@@ -248,6 +248,8 @@ void nfs_free_client(struct nfs_client *clp)if (clp->cl_machine_cred !=NULL )put_rpccred (clp->cl_machine_cred); +if (clp->cl_root_cred !=NULL ) +put_rpccred (clp->cl_root_cred);put_net (clp->cl_net);put_nfs_version (clp->cl_nfs_mod);
fs/nfs/nfs4state.c +12 -8
@@ -158,24 +158,28 @@ int nfs40_discover_server_trunking(struct nfs_client *clp,struct rpc_cred *nfs4_get_machine_cred_locked (struct nfs_client *clp) { -struct rpc_cred *cred =NULL ; +struct rpc_cred *cred = clp->cl_root_cred; -if (clp->cl_machine_cred !=NULL ) - cred =get_rpccred (clp->cl_machine_cred); +if (!cred) + cred = clp->cl_machine_cred; +if (cred) +return get_rpccred (cred);return cred; }static void nfs4_root_machine_cred (struct nfs_client *clp) { -struct rpc_cred *cred, *new; +struct rpc_cred *new; new =rpc_lookup_machine_cred (NULL );spin_lock (&clp->cl_lock); - cred = clp->cl_machine_cred; - clp->cl_machine_cred = new; +if (clp->cl_root_cred ==NULL ) { + clp->cl_root_cred = new; + new =NULL ; + }spin_unlock (&clp->cl_lock); -if (cred !=NULL ) -put_rpccred (cred); +if (new !=NULL ) +put_rpccred (new); } static struct rpc_cred *
include/linux/nfs_fs_sb.h +1 -0
@@ -59,6 +59,7 @@ struct nfs_client {u32 cl_minorversion;/* NFSv4 minorversion */ struct rpc_cred *cl_machine_cred; +struct rpc_cred *cl_root_cred;/* Use when machine_cred is ineffective */ #if IS_ENABLED (CONFIG_NFS_V4 )struct list_head cl_ds_clients;/* auth flavor data servers */
PATCH 10/23 NFSv4: don't require lock for get_renew_cred or get_machine_cred
In reply to NeilBrownThis lock is no longer necessary.
If nfs4_get_renew_cred() needs to hunt through the open-state creds for a user cred, it still takes the lock to stablize the rbtree, but otherwise there are no races.
Note that this completely removes the lock from nfs4_renew_state(). It appears that the original need for the locking here was removed long ago, and there is no longer anything to protect.
--- fs/nfs/nfs4_fs.h | 6 +++--- fs/nfs/nfs4proc.c | 4 ++-- fs/nfs/nfs4renewd.c | 5 +---- fs/nfs/nfs4state.c | 26 ++++++++++---------------- 4 files changed, 16 insertions(+), 25 deletions(-)
fs/nfs/nfs4_fs.h +3 -3
@@ -219,7 +219,7 @@ struct nfs4_add_xprt_data {struct nfs4_state_maintenance_ops {int (*sched_state_renewal)(struct nfs_client *,struct rpc_cred *,unsigned ); -struct rpc_cred * (*get_state_renewal_cred_locked)(struct nfs_client *); +struct rpc_cred * (*get_state_renewal_cred)(struct nfs_client *);int (*renew_lease)(struct nfs_client *,struct rpc_cred *); };
@@ -417,8 +417,8 @@ extern void nfs4_set_lease_period(struct nfs_client *clp,/* nfs4state.c */ struct rpc_cred *nfs4_get_clid_cred (struct nfs_client *clp); -struct rpc_cred *nfs4_get_machine_cred_locked (struct nfs_client *clp); -struct rpc_cred *nfs4_get_renew_cred_locked (struct nfs_client *clp); +struct rpc_cred *nfs4_get_machine_cred (struct nfs_client *clp); +struct rpc_cred *nfs4_get_renew_cred (struct nfs_client *clp);int nfs4_discover_server_trunking (struct nfs_client *clp,struct nfs_client **); int nfs40_discover_server_trunking(struct nfs_client *clp,
fs/nfs/nfs4proc.c +2 -2
@@ -9412,14 +9412,14 @@ static const struct nfs4_state_recovery_ops nfs41_nograce_recovery_ops = {static const struct nfs4_state_maintenance_ops nfs40_state_renewal_ops = { .sched_state_renewal = nfs4_proc_async_renew, - .get_state_renewal_cred_locked = nfs4_get_renew_cred_locked, + .get_state_renewal_cred = nfs4_get_renew_cred, .renew_lease = nfs4_proc_renew, };#if defined(CONFIG_NFS_V4_1 )static const struct nfs4_state_maintenance_ops nfs41_state_renewal_ops = { .sched_state_renewal = nfs41_proc_async_sequence, - .get_state_renewal_cred_locked = nfs4_get_machine_cred_locked, + .get_state_renewal_cred = nfs4_get_machine_cred, .renew_lease = nfs4_proc_sequence, };#endif
fs/nfs/nfs4renewd.c +1 -4
@@ -68,7 +68,6 @@ nfs4_renew_state(struct work_struct *work)if (test_bit (NFS_CS_STOP_RENEW , &clp->cl_res_state)) goto out; -spin_lock (&clp->cl_lock); lease = clp->cl_lease_time; last = clp->cl_last_renewal; now = jiffies;
@@ -79,8 +78,7 @@ nfs4_renew_state(struct work_struct *work) renew_flags |=NFS4_RENEW_DELEGATION_CB ;if (renew_flags !=0 ) { - cred = ops->get_state_renewal_cred_locked (clp); -spin_unlock (&clp->cl_lock); + cred = ops->get_state_renewal_cred (clp);if (cred ==NULL ) {if (!(renew_flags &NFS4_RENEW_DELEGATION_CB )) {set_bit (NFS4CLNT_LEASE_EXPIRED , &clp->cl_state);
@@ -104,7 +102,6 @@ nfs4_renew_state(struct work_struct *work) }else {dprintk ("%s: failed to call renewd. Reason: lease not expired \n" , __func__); -spin_unlock (&clp->cl_lock); }nfs4_schedule_state_renewal (clp); out_exp:
fs/nfs/nfs4state.c +10 -16
@@ -156,7 +156,7 @@ int nfs40_discover_server_trunking(struct nfs_client *clp,return status; } -struct rpc_cred *nfs4_get_machine_cred_locked (struct nfs_client *clp) +struct rpc_cred *nfs4_get_machine_cred (struct nfs_client *clp) {struct rpc_cred *cred = clp->cl_root_cred;
@@ -202,22 +202,23 @@ nfs4_get_renew_cred_server_locked(struct nfs_server *server) }/** -* nfs4_get_renew_cred_locked - Acquire credential for a renew operation +* nfs4_get_renew_cred - Acquire credential for a renew operation * @clp: client state handle * * Returns an rpc_cred with reference count bumped, or NULL. * Caller must hold clp->cl_lock. */ -struct rpc_cred *nfs4_get_renew_cred_locked (struct nfs_client *clp) +struct rpc_cred *nfs4_get_renew_cred (struct nfs_client *clp) {struct rpc_cred *cred =NULL ;struct nfs_server *server;/* Use machine credentials if available */ - cred =nfs4_get_machine_cred_locked (clp); + cred =nfs4_get_machine_cred (clp);if (cred !=NULL ) goto out; +spin_lock (&clp->cl_lock);rcu_read_lock ();list_for_each_entry_rcu (server, &clp->cl_superblocks, client_link) { cred =nfs4_get_renew_cred_server_locked (server);
@@ -225,6 +226,7 @@ struct rpc_cred *nfs4_get_renew_cred_locked(struct nfs_client *clp)break ; }rcu_read_unlock (); +spin_unlock (&clp->cl_lock); out:return cred;
@@ -394,9 +396,7 @@ struct rpc_cred *nfs4_get_clid_cred(struct nfs_client *clp) {struct rpc_cred *cred; -spin_lock (&clp->cl_lock); - cred =nfs4_get_machine_cred_locked (clp); -spin_unlock (&clp->cl_lock); + cred =nfs4_get_machine_cred (clp);return cred; }
@@ -1862,9 +1862,7 @@ static int nfs4_check_lease(struct nfs_client *clp)/* Is the client already known to have an expired lease? */ if (test_bit (NFS4CLNT_LEASE_EXPIRED , &clp->cl_state))return 0 ; -spin_lock (&clp->cl_lock); - cred = ops->get_state_renewal_cred_locked (clp); -spin_unlock (&clp->cl_lock); + cred = ops->get_state_renewal_cred (clp);if (cred ==NULL ) { cred =nfs4_get_clid_cred (clp); status = -ENOKEY ;
@@ -2062,9 +2060,7 @@ static int nfs4_handle_migration(struct nfs_client *clp)dprintk ("%s: migration reported on \"%s\"\n" , __func__, clp->cl_hostname); -spin_lock (&clp->cl_lock); - cred = ops->get_state_renewal_cred_locked (clp); -spin_unlock (&clp->cl_lock); + cred = ops->get_state_renewal_cred (clp);if (cred ==NULL )return -NFS4ERR_NOENT ;
@@ -2110,9 +2106,7 @@ static int nfs4_handle_lease_moved(struct nfs_client *clp)dprintk ("%s: lease moved reported on \"%s\"\n" , __func__, clp->cl_hostname); -spin_lock (&clp->cl_lock); - cred = ops->get_state_renewal_cred_locked (clp); -spin_unlock (&clp->cl_lock); + cred = ops->get_state_renewal_cred (clp);if (cred ==NULL )return -NFS4ERR_NOENT ;
PATCH 11/23 SUNRPC: discard RPC_DO_ROOTOVERRIDE()
In reply to NeilBrownit is never used.
--- include/linux/sunrpc/sched.h | 1 - 1 file changed, 1 deletion(-)
include/linux/sunrpc/sched.h +0 -1
@@ -131,7 +131,6 @@ struct rpc_task_setup {#define RPC_IS_ASYNC (t) ((t)->tk_flags & RPC_TASK_ASYNC)#define RPC_IS_SWAPPER (t) ((t)->tk_flags & RPC_TASK_SWAPPER) -#define RPC_DO_ROOTOVERRIDE (t) ((t)->tk_flags & RPC_TASK_ROOTCREDS)#define RPC_ASSASSINATED (t) ((t)->tk_flags & RPC_TASK_KILLED)#define RPC_IS_SOFT (t) ((t)->tk_flags & (RPC_TASK_SOFT|RPC_TASK_TIMEOUT))#define RPC_IS_SOFTCONN (t) ((t)->tk_flags & RPC_TASK_SOFTCONN)
PATCH 12/23 NFS/SUNRPC: don't lookup machine credential until rpcauth_bindcred().
In reply to NeilBrownWhen NFS creates a machine credential, it is a "generic" credential, not tied to any auth protocol, and is really just a container for the princpal name.
This doesn't get linked to a genuine credential until rpcauth_bindcred() is called.
The lookup always succeeds, so various places that test if the machine credential is NULL, are pointless.
As a step towards getting rid of generic credentials, this patch gets rid of generic machine credentials. The nfs_client and rpc_client just hold a pointer to a constant principal name.
When a machine credential is wanted, a special static 'struct rpc_cred' pointer is used. rpcauth_bindcred() recognizes this, finds the principal from the client, and binds the correct credential.
--- fs/nfs/client.c | 11 ++--------- fs/nfs/nfs4_fs.h | 9 +-------- fs/nfs/nfs4state.c | 21 ++++----------------- fs/nfsd/nfs4callback.c | 23 ++--------------------- fs/nfsd/nfs4state.c | 10 ++-------- fs/nfsd/state.h | 2 -- include/linux/nfs_fs_sb.h | 3 +-- include/linux/sunrpc/auth.h | 3 ++- include/linux/sunrpc/clnt.h | 1 + net/sunrpc/auth.c | 42 +++++++++++++++++++++++++++++++++++++++--- net/sunrpc/auth_generic.c | 21 --------------------- net/sunrpc/clnt.c | 1 + 12 files changed, 55 insertions(+), 92 deletions(-)
fs/nfs/client.c +2 -9
@@ -151,7 +151,6 @@ EXPORT_SYMBOL_GPL(unregister_nfs_version);struct nfs_client *nfs_alloc_client (const struct nfs_client_initdata *cl_init) {struct nfs_client *clp; -struct rpc_cred *cred;int err = -ENOMEM ;if ((clp =kzalloc (sizeof (*clp),GFP_KERNEL )) ==NULL )
@@ -182,9 +181,7 @@ struct nfs_client *nfs_alloc_client(const struct nfs_client_initdata *cl_init) clp->cl_proto = cl_init->proto; clp->cl_net =get_net (cl_init->net); - cred =rpc_lookup_machine_cred ("*" ); -if (!IS_ERR (cred)) - clp->cl_machine_cred = cred; + clp->cl_principal ="*" ;nfs_fscache_get_client_cookie (clp);return clp;
@@ -246,11 +243,6 @@ void nfs_free_client(struct nfs_client *clp)if (!IS_ERR (clp->cl_rpcclient))rpc_shutdown_client (clp->cl_rpcclient); -if (clp->cl_machine_cred !=NULL ) -put_rpccred (clp->cl_machine_cred); -if (clp->cl_root_cred !=NULL ) -put_rpccred (clp->cl_root_cred); -put_net (clp->cl_net);put_nfs_version (clp->cl_nfs_mod);kfree (clp->cl_hostname);
@@ -529,6 +521,7 @@ int nfs_create_rpc_client(struct nfs_client *clp,return PTR_ERR (clnt); } + clnt->cl_principal = clp->cl_principal; clp->cl_rpcclient = clnt;return 0 ; }
fs/nfs/nfs4_fs.h +1 -8
@@ -304,7 +304,6 @@ static inline bool _nfs4_state_protect(struct nfs_client *clp, unsigned long sp4_mode, struct rpc_clnt **clntp, struct rpc_message *msg) { - struct rpc_cred *newcred = NULL; rpc_authflavor_t flavor; if (sp4_mode == NFS_SP4_MACH_CRED_CLEANUP ||
@@ -319,13 +318,7 @@ _nfs4_state_protect(struct nfs_client *clp, unsigned long sp4_mode,return false; }if (test_bit (sp4_mode, &clp->cl_sp4_flags)) { -spin_lock (&clp->cl_lock); -if (clp->cl_machine_cred !=NULL ) -/* don't call get_rpccred on the machine cred - -* a reference will be held for life of clp */ - newcred = clp->cl_machine_cred; -spin_unlock (&clp->cl_lock); - msg->rpc_cred = newcred; + msg->rpc_cred =rpc_machine_cred (); flavor = clp->cl_rpcclient->cl_auth->au_flavor; WARN_ON_ONCE(flavor != RPC_AUTH_GSS_KRB5I &&
fs/nfs/nfs4state.c +4 -17
@@ -158,28 +158,15 @@ int nfs40_discover_server_trunking(struct nfs_client *clp,struct rpc_cred *nfs4_get_machine_cred (struct nfs_client *clp) { -struct rpc_cred *cred = clp->cl_root_cred; - -if (!cred) - cred = clp->cl_machine_cred; -if (cred) -return get_rpccred (cred); -return cred; +return get_rpccred (rpc_machine_cred ()); }static void nfs4_root_machine_cred (struct nfs_client *clp) { -struct rpc_cred *new; - new =rpc_lookup_machine_cred (NULL ); -spin_lock (&clp->cl_lock); -if (clp->cl_root_cred ==NULL ) { - clp->cl_root_cred = new; - new =NULL ; - } -spin_unlock (&clp->cl_lock); -if (new !=NULL ) -put_rpccred (new); +/* Force root creds instead of machine */ + clp->cl_principal =NULL ; + clp->cl_rpcclient->cl_principal =NULL ; } static struct rpc_cred *
fs/nfsd/nfs4callback.c +2 -21
@@ -746,30 +746,11 @@ static int max_cb_time(struct net *net)return max (nn->nfsd4_lease/10 , (time_t )1 ) *HZ ; } -static struct rpc_cred *callback_cred; - -int set_callback_cred (void ) -{ -if (callback_cred) -return 0 ; - callback_cred =rpc_lookup_machine_cred ("nfs" ); -if (!callback_cred) -return -ENOMEM ; -return 0 ; -} - -void cleanup_callback_cred (void ) -{ -if (callback_cred) { -put_rpccred (callback_cred); - callback_cred =NULL ; - } -} -static struct rpc_cred *get_backchannel_cred (struct nfs4_client *clp,struct rpc_clnt *client,struct nfsd4_session *ses) {if (clp->cl_minorversion ==0 ) { -return get_rpccred (callback_cred); + client->cl_principal ="nfs" ; +return get_rpccred (rpc_machine_cred ()); }else {struct rpc_auth *auth = client->cl_auth;struct auth_cred acred = {};
fs/nfsd/nfs4state.c +2 -8
@@ -7177,14 +7177,10 @@ nfs4_state_start(void) {int ret; - ret =set_callback_cred (); -if (ret) -return ret; - laundry_wq =alloc_workqueue ("%s" ,WQ_UNBOUND ,0 ,"nfsd4" );if (laundry_wq ==NULL ) { ret = -ENOMEM ; - goto out_cleanup_cred; + goto out; } ret =nfsd4_create_callback_queue ();if (ret)
@@ -7195,8 +7191,7 @@ nfs4_state_start(void) out_free_laundry:destroy_workqueue (laundry_wq); -out_cleanup_cred: -cleanup_callback_cred (); +out:return ret; }
@@ -7254,7 +7249,6 @@ nfs4_state_shutdown(void) {destroy_workqueue (laundry_wq);nfsd4_destroy_callback_queue (); -cleanup_callback_cred (); } static void
fs/nfsd/state.h +0 -2
@@ -617,8 +617,6 @@ extern struct nfs4_client_reclaim *nfsd4_find_reclaim_client(const char *recdir, struct nfsd_net *nn);extern __be32 nfs4_check_open_reclaim (clientid_t *clid,struct nfsd4_compound_state *cstate,struct nfsd_net *nn); -extern int set_callback_cred (void ); -extern void cleanup_callback_cred (void );extern void nfsd4_probe_callback (struct nfs4_client *clp);extern void nfsd4_probe_callback_sync (struct nfs4_client *clp);extern void nfsd4_change_callback (struct nfs4_client *clp,struct nfs4_cb_conn *);
include/linux/nfs_fs_sb.h +1 -2
@@ -58,8 +58,7 @@ struct nfs_client {struct nfs_subversion * cl_nfs_mod;/* pointer to nfs version module */ u32 cl_minorversion;/* NFSv4 minorversion */ -struct rpc_cred *cl_machine_cred; -struct rpc_cred *cl_root_cred;/* Use when machine_cred is ineffective */ +const char * cl_principal;/* used for machine cred */ #if IS_ENABLED (CONFIG_NFS_V4 )struct list_head cl_ds_clients;/* auth flavor data servers */
include/linux/sunrpc/auth.h +2 -1
@@ -75,6 +75,8 @@ struct rpc_cred {#define RPCAUTH_CRED_HASHED 2#define RPCAUTH_CRED_NEGATIVE 3 +struct rpc_cred *rpc_machine_cred (void ); +/* rpc_auth au_flags */ #define RPCAUTH_AUTH_NO_CRKEY_TIMEOUT 0x0001/* underlying cred has no key timeout */
@@ -168,7 +170,6 @@ void rpc_destroy_authunix(void);struct rpc_cred *rpc_lookup_cred (void );struct rpc_cred *rpc_lookup_cred_nonblock (void );struct rpc_cred *rpc_lookup_generic_cred (struct auth_cred *,int ,gfp_t ); -struct rpc_cred *rpc_lookup_machine_cred (const char *service_name);int rpcauth_register (const struct rpc_authops *);int rpcauth_unregister (const struct rpc_authops *); struct rpc_auth * rpcauth_create(struct rpc_auth_create_args *,
include/linux/sunrpc/clnt.h +1 -0
@@ -66,6 +66,7 @@ struct rpc_clnt {struct rpc_rtt cl_rtt_default;struct rpc_timeout cl_timeout_default;const struct rpc_program *cl_program; +const char * cl_principal;/* use for machine cred */ #if IS_ENABLED (CONFIG_SUNRPC_DEBUG )struct dentry *cl_debugfs;/* debugfs directory */ #endif
net/sunrpc/auth.c +39 -3
65 lines not on this page · raw message
net/sunrpc/auth_generic.c +0 -21
@@ -48,27 +48,6 @@ struct rpc_cred *rpc_lookup_cred_nonblock(void) }EXPORT_SYMBOL_GPL (rpc_lookup_cred_nonblock); -/* -* Public call interface for looking up machine creds. -* Note that if service_name is NULL, we actually look up -* "root" credential. -*/ -struct rpc_cred *rpc_lookup_machine_cred (const char *service_name) -{ -struct auth_cred acred = { - .principal = service_name, - .cred =get_task_cred (&init_task), - }; -struct rpc_cred *ret; - -dprintk ("RPC: looking up machine cred for service %s\n" , - service_name); - ret = generic_auth.au_ops->lookup_cred (&generic_auth, &acred,0 ); -put_cred (acred.cred); -return ret; -} -EXPORT_SYMBOL_GPL (rpc_lookup_machine_cred); -static struct rpc_cred *generic_bind_cred (struct rpc_task *task,struct rpc_cred *cred,int lookupflags) {
net/sunrpc/clnt.c +1 -0
@@ -626,6 +626,7 @@ static struct rpc_clnt *__rpc_clone_client(struct rpc_create_args *args, new->cl_noretranstimeo = clnt->cl_noretranstimeo; new->cl_discrtry = clnt->cl_discrtry; new->cl_chatty = clnt->cl_chatty; + new->cl_principal = clnt->cl_principal;return new; out_err:
kbuild test robot
build botRe: [PATCH 12/23] NFS/SUNRPC: don't lookup machine credential until rpcauth_bindcred().
Thank you for the patch! Perhaps something to improve:
Hi NeilBrown,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on nfs/linux-next]
[also build test WARNING on v4.16-rc2 next-20180219]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/NeilBrown/Remove-generic-rpc-credentials-and-associated-changed-V3/20180219-190836 base: git://git.linux-nfs.org/projects/trondmy/linux-nfs.git linux-next reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__
sparse warnings: (new ones prefixed by >>)
>> net/sunrpc/auth.c:700:34: sparse: incorrect type in initializer (different address spaces) @@ expected struct cred const @@ got struct cred const [addrestruct cred const @@
net/sunrpc/auth.c:700:34: expected struct cred const net/sunrpc/auth.c:700:34: got struct cred const cred
vim +700 net/sunrpc/auth.c
693
694 static struct rpc_cred *
695 rpcauth_bind_machine_cred(struct rpc_task *task, int lookupflags)
696 {
697 struct rpc_auth *auth = task->tk_client->cl_auth;
698 struct auth_cred acred = {
699 .principal = task->tk_client->cl_principal,
> 700 .cred = init_task.cred,
701 };
702
703 if (!acred.principal)
704 return NULL;
705 dprintk("RPC: %5u looking up %s machine cred\n",
706 task->tk_pid, task->tk_client->cl_auth->au_ops->au_name);
707 return auth->au_ops->lookup_cred(auth, &acred, lookupflags);
708 }
709
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
PATCH 13/23 SUNRPC: introduce RPC_TASK_NULLCREDS to request auth_none
In reply to NeilBrownIn almost all cases the credential stored in rpc_message.rpc_cred is a "generic" credential. One of the two expections is when an AUTH_NULL credential is used such as for RPC ping requests.
To improve consistency, don't pass an explicit credential in these cases, but instead pass NULL and set a task flag, similar to RPC_TASK_ROOTCREDS, which requests that NULL credentials be used by default.
--- include/linux/sunrpc/sched.h | 1 + net/sunrpc/auth.c | 2 ++ net/sunrpc/clnt.c | 19 ++++++------------- 3 files changed, 9 insertions(+), 13 deletions(-)
include/linux/sunrpc/sched.h +1 -0
@@ -118,6 +118,7 @@ struct rpc_task_setup {*/ #define RPC_TASK_ASYNC 0x0001/* is an async task */ #define RPC_TASK_SWAPPER 0x0002/* is swapping in/out */ +#define RPC_TASK_NULLCREDS 0x0010/* Use AUTH_NULL credential */ #define RPC_CALL_MAJORSEEN 0x0020/* major timeout seen */ #define RPC_TASK_ROOTCREDS 0x0040/* force root creds */ #define RPC_TASK_DYNAMIC 0x0080/* task was kmalloc'ed */
net/sunrpc/auth.c +2 -0
@@ -736,6 +736,8 @@ rpcauth_bindcred(struct rpc_task *task, struct rpc_cred *cred, int flags) ; else if (cred == &machine_cred || (flags & RPC_TASK_ROOTCREDS)) new =rpcauth_bind_root_cred (task, lookupflags); + else if (flags & RPC_TASK_NULLCREDS) + new = authnull_ops.lookup_cred (NULL ,NULL ,0 ); else new =rpcauth_bind_new_cred (task, lookupflags);if (IS_ERR (new))
net/sunrpc/clnt.c +6 -13
@@ -2504,9 +2504,8 @@ static int rpc_ping(struct rpc_clnt *clnt) .rpc_proc = &rpcproc_null, };int err; - msg.rpc_cred = authnull_ops.lookup_cred (NULL ,NULL ,0 ); - err =rpc_call_sync (clnt, &msg,RPC_TASK_SOFT |RPC_TASK_SOFTCONN ); -put_rpccred (msg.rpc_cred); + err =rpc_call_sync (clnt, &msg,RPC_TASK_SOFT |RPC_TASK_SOFTCONN | +RPC_TASK_NULLCREDS );return err; }
@@ -2576,7 +2575,6 @@ int rpc_clnt_test_and_add_xprt(struct rpc_clnt *clnt, void *dummy) {struct rpc_cb_add_xprt_calldata *data; -struct rpc_cred *cred;struct rpc_task *task; data =kmalloc (sizeof (*data),GFP_NOFS );
@@ -2585,11 +2583,9 @@ int rpc_clnt_test_and_add_xprt(struct rpc_clnt *clnt, data->xps =xprt_switch_get (xps); data->xprt =xprt_get (xprt); - cred = authnull_ops.lookup_cred (NULL ,NULL ,0 ); - task =rpc_call_null_helper (clnt, xprt, cred, -RPC_TASK_SOFT |RPC_TASK_SOFTCONN |RPC_TASK_ASYNC , + task =rpc_call_null_helper (clnt, xprt,NULL , +RPC_TASK_SOFT |RPC_TASK_SOFTCONN |RPC_TASK_ASYNC |RPC_TASK_NULLCREDS , &rpc_cb_add_xprt_call_ops, data); -put_rpccred (cred);if (IS_ERR (task))return PTR_ERR (task);rpc_put_task (task);
@@ -2620,7 +2616,6 @@ int rpc_clnt_setup_test_and_add_xprt(struct rpc_clnt *clnt,struct rpc_xprt *xprt, void *data) { - struct rpc_cred *cred; struct rpc_task *task;struct rpc_add_xprt_test *xtest = (struct rpc_add_xprt_test *)data;int status = -EADDRINUSE ;
@@ -2632,11 +2627,9 @@ int rpc_clnt_setup_test_and_add_xprt(struct rpc_clnt *clnt, goto out_err;/* Test the connection */ - cred = authnull_ops.lookup_cred (NULL ,NULL ,0 ); - task =rpc_call_null_helper (clnt, xprt, cred, -RPC_TASK_SOFT |RPC_TASK_SOFTCONN , + task =rpc_call_null_helper (clnt, xprt,NULL , +RPC_TASK_SOFT |RPC_TASK_SOFTCONN |RPC_TASK_NULLCREDS ,NULL ,NULL ); -put_rpccred (cred);if (IS_ERR (task)) { status =PTR_ERR (task); goto out_err;
PATCH 14/23 SUNRPC: add side channel to use non-generic cred for rpc call.
In reply to NeilBrownThe credential passed in rpc_message.rpc_cred is always a generic credential except in one instance.
When gss_destroying_context() calls rpc_call_null(), it passes a specific credential that it needs to destroy.
In this case the RPC acts *on* the credential rather than being authorized by it.
This special case deserves explicit support and providing that will mean that rpc_message.rpc_cred is *always* generic, allowing some optimizations.
So add "tk_op_cred" to rpc_task and "rpc_op_cred" to the setup data. Use this to pass the cred down from rpc_call_null(), and have rpcauth_bindcred() notice it and bind it in place.
CHANGES: add missing 'else' in rpcauth_bindcred()
A subsequent patch added this before.
--- include/linux/sunrpc/sched.h | 2 ++ net/sunrpc/auth.c | 6 +++++- net/sunrpc/clnt.c | 2 +- net/sunrpc/sched.c | 3 +++ 4 files changed, 11 insertions(+), 2 deletions(-)
include/linux/sunrpc/sched.h +2 -0
@@ -71,6 +71,7 @@ struct rpc_task {struct rpc_clnt * tk_client;/* RPC client */ struct rpc_xprt * tk_xprt;/* Transport */ +struct rpc_cred * tk_op_cred;/* cred being operated on */ struct rpc_rqst * tk_rqstp;/* RPC request */
@@ -105,6 +106,7 @@ struct rpc_task_setup {struct rpc_task *task;struct rpc_clnt *rpc_client;struct rpc_xprt *rpc_xprt; +struct rpc_cred *rpc_op_cred;/* credential being operated on */ const struct rpc_message *rpc_message;const struct rpc_call_ops *callback_ops;void *callback_data;
net/sunrpc/auth.c +5 -1
@@ -726,7 +726,11 @@ rpcauth_bindcred(struct rpc_task *task, struct rpc_cred *cred, int flags)if (flags &RPC_TASK_ASYNC ) lookupflags |=RPCAUTH_LOOKUP_NEW ; -if (cred !=NULL && cred != &machine_cred) +if (task->tk_op_cred) +/* Task must use exactly this rpc_cred */ + new = task->tk_op_cred->cr_ops->crbind (task, task->tk_op_cred, + lookupflags); +else if (cred !=NULL && cred != &machine_cred) new = cred->cr_ops->crbind (task, cred, lookupflags);else if (cred == &machine_cred) new =rpcauth_bind_machine_cred (task, lookupflags);
net/sunrpc/clnt.c +1 -1
@@ -2516,12 +2516,12 @@ struct rpc_task *rpc_call_null_helper(struct rpc_clnt *clnt, {struct rpc_message msg = { .rpc_proc = &rpcproc_null, - .rpc_cred = cred, };struct rpc_task_setup task_setup_data = { .rpc_client = clnt, .rpc_xprt = xprt, .rpc_message = &msg, + .rpc_op_cred = cred, .callback_ops = (ops !=NULL ) ? ops : &rpc_default_ops, .callback_data = data, .flags = flags,
net/sunrpc/sched.c +3 -0
@@ -949,6 +949,8 @@ static void rpc_init_task(struct rpc_task *task, const struct rpc_task_setup *ta task->tk_xprt =xprt_get (task_setup_data->rpc_xprt); + task->tk_op_cred =get_rpccred (task_setup_data->rpc_op_cred); +if (task->tk_ops->rpc_call_prepare !=NULL ) task->tk_action = rpc_prepare_task;
@@ -1007,6 +1009,7 @@ static void rpc_free_task(struct rpc_task *task)unsigned short tk_flags = task->tk_flags;rpc_release_calldata (task->tk_ops, task->tk_calldata); +put_rpccred (task->tk_op_cred);if (tk_flags &RPC_TASK_DYNAMIC ) {dprintk ("RPC: %5u freeing task\n" , task->tk_pid);
kernel test robot
build bot[SUNRPC] e22c8d3cf4: BUG:KASAN:use-after-free_in_r
FYI, we noticed the following commit (built with gcc-7):
FYI, we noticed the following commit (built with gcc-7):
commit: e22c8d3cf4cd6307228c9946a670fa548c359611 ("SUNRPC: add side channel to use non-generic cred for rpc call.")
url: https://github.com/0day-ci/linux/commits/NeilBrown/Remove-generic-rpc-credentials-and-associated-changed-V3/20180219-190836
base: git://git.linux-nfs.org/projects/trondmy/linux-nfs.git linux-next
in testcase: boot
on test machine: qemu-system-x86_64 -enable-kvm -cpu host -smp 2 -m 1G
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
+-------------------------------+------------+------------+ | | a79c51c9c3 | e22c8d3cf4 | +-------------------------------+------------+------------+ | boot_successes | 6 | 4 | | boot_failures | 0 | 4 | | BUG:KASAN:use-after-free_in_r | 0 | 4 | +-------------------------------+------------+------------+
[ 66.551598] BUG: KASAN: use-after-free in rpc_free_task+0x5e/0x86 [ 66.552963] Read of size 8 at addr ffff8800093e93a8 by task kworker/0:3/201 [ 66.554505] [ 66.554880] CPU: 0 PID: 201 Comm: kworker/0:3 Not tainted 4.16.0-rc1-00284-ge22c8d3 #55 [ 66.556679] Workqueue: nfsiod rpc_async_release [ 66.557703] Call Trace: [ 66.558289] dump_stack+0x19/0x1b [ 66.559046] print_address_description+0x4e/0x225 [ 66.560100] ? rpc_free_task+0x5e/0x86 [ 66.560955] kasan_report+0x269/0x2a7 [ 66.561794] __asan_load8+0x81/0x83 [ 66.562593] rpc_free_task+0x5e/0x86 [ 66.563412] rpc_async_release+0x12/0x14 [ 66.564303] process_one_work+0x436/0x6bf [ 66.565223] ? hlock_class+0x74/0x94 [ 66.566027] ? pwq_dec_nr_in_flight+0x134/0x134 [ 66.567053] ? ftrace_likely_update+0x249/0x26b [ 66.568078] ? worker_clr_flags+0x9b/0xd6 [ 66.568991] worker_thread+0x3ae/0x4f0 [ 66.569842] kthread+0x18c/0x19c [ 66.570589] ? process_scheduled_works+0x43/0x43 [ 66.571640] ? queuing_blocked+0x9a/0x9a [ 66.572540] ret_from_fork+0x24/0x30 [ 66.573359] [ 66.573728] Allocated by task 560: [ 66.574523] save_stack+0x43/0xc9 [ 66.575307] kasan_kmalloc+0x93/0xa2 [ 66.576129] kasan_slab_alloc+0x12/0x14 [ 66.576993] slab_post_alloc_hook+0x35/0x45 [ 66.577935] kmem_cache_alloc+0x169/0x21f [ 66.578850] mempool_alloc_slab+0x4c/0x53 [ 66.579764] mempool_alloc+0x129/0x28b [ 66.580615] nfs_writehdr_alloc+0x1b/0x43 [ 66.581517] nfs_pgio_header_alloc+0x1a/0x6d [ 66.582485] nfs_generic_pg_pgios+0x29/0x11e [ 66.583447] nfs_pageio_doio+0x48/0xae [ 66.584320] nfs_pageio_complete+0x75/0x153 [ 66.585280] nfs_writepages+0x1a0/0x20f [ 66.586153] do_writepages+0x59/0xaa [ 66.586959] __filemap_fdatawrite_range+0xec/0x12a [ 66.588035] filemap_write_and_wait_range+0x43/0x7e [ 66.589137] nfs_file_fsync+0x123/0x2d3 [ 66.590005] vfs_fsync_range+0xfb/0x10c [ 66.590874] vfs_fsync+0x1c/0x1e [ 66.591623] nfs_file_flush+0x77/0x7e [ 66.592457] filp_close+0x6b/0xd0 [ 66.593226] __close_fd+0x8f/0xa9 [ 66.593982] SyS_close+0x38/0x7d [ 66.594730] do_syscall_64+0x139/0x15e [ 66.595592] entry_SYSCALL_64_after_hwframe+0x42/0xb7 [ 66.596720] [ 66.597086] Freed by task 201: [ 66.597797] save_stack+0x43/0xc9 [ 66.598572] __kasan_slab_free+0x107/0x12b [ 66.599504] kasan_slab_free+0xe/0x10 [ 66.600348] slab_free_freelist_hook+0x8a/0xaa [ 66.601348] kmem_cache_free+0x3f/0x19b [ 66.602228] mempool_free_slab+0x17/0x19 [ 66.603104] mempool_free+0x1df/0x1ec [ 66.603934] nfs_writehdr_free+0x15/0x17 [ 66.604831] nfs_pgio_header_free+0x6f/0x74 [ 66.605789] nfs_write_completion+0xb2/0x269 [ 66.606752] nfs_pgio_release+0x2e/0x33 [ 66.607626] rpc_release_calldata+0x29/0x2e [ 66.608572] rpc_free_task+0x52/0x86 [ 66.609390] rpc_async_release+0x12/0x14 [ 66.610284] process_one_work+0x436/0x6bf [ 66.611195] worker_thread+0x3ae/0x4f0 [ 66.612043] kthread+0x18c/0x19c [ 66.612792] ret_from_fork+0x24/0x30 [ 66.613597] [ 66.613969] The buggy address belongs to the object at ffff8800093e9200 [ 66.613969] which belongs to the cache nfs_write_data of size 984 [ 66.616752] The buggy address is located 424 bytes inside of [ 66.616752] 984-byte region [ffff8800093e9200, ffff8800093e95d8) [ 66.619324] The buggy address belongs to the page: [ 66.620409] page:ffffea000024fa00 count:1 mapcount:0 mapping: (null) index:0x0 compound_mapcount: 0 [ 66.622562] flags: 0x4000000000008100(slab|head) [ 66.623605] raw: 4000000000008100 0000000000000000 0000000000000000 00000001800e000e [ 66.625322] raw: dead000000000100 dead000000000200 ffff88000941ea80 0000000000000000 [ 66.627031] page dumped because: kasan: bad access detected [ 66.628278] [ 66.628643] Memory state around the buggy address: [ 66.629721] ffff8800093e9280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 66.631315] ffff8800093e9300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 66.632895] >ffff8800093e9380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 66.634881] ^ [ 66.636206] ffff8800093e9400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 66.638265] ffff8800093e9480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 66.640311] ================================================================== [ 66.642288] Disabling lock debugging due to kernel taint [ 67.472605] /usr/bin/curl -sSf http://inn:80/~lkp/cgi-bin/lkp-jobfile-append-var?job_file=/lkp/scheduled/vm-lkp-nex04-1G-3/boot-1-debian-x86_64-2016-08-31.cgz-e22c8d3cf4cd6307228c9946a670fa548c359611-20180219-32594-1bnjwvj-0.yaml&loadavg=2.85%200.77%200.26%203/77%20583&start_time=1519056660&end_time=1519056662&version=/lkp/lkp/.src-20180216-224223& -o /dev/null [ 67.472634] [ 67.744460] /usr/bin/curl -sSf http://inn:80/~lkp/cgi-bin/lkp-jobfile-append-var?job_file=/lkp/scheduled/vm-lkp-nex04-1G-3/boot-1-debian-x86_64-2016-08-31.cgz-e22c8d3cf4cd6307228c9946a670fa548c359611-20180219-32594-1bnjwvj-0.yaml&job_state=finished -o /dev/null [ 67.744487] [ 68.061284] LKP: rebooting [ 68.061320] [ 68.067822] sysrq: SysRq : Emergency Sync [ 68.069439] Emergency Sync complete [ 68.071141] sysrq: SysRq : Resetting
To reproduce:
git clone https://github.com/intel/lkp-tests.git
cd lkp-tests
bin/lkp qemu -k <bzImage> job-script # job-script is attached in this email
Thanks,
lkp
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 4.16.0-rc1 Kernel Configuration
#CONFIG_64BIT=yCONFIG_X86_64=yCONFIG_X86=yCONFIG_INSTRUCTION_DECODER=y CONFIG_OUTPUT_FORMAT="elf64-x86-64" CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig" CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=yCONFIG_MMU=yCONFIG_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_NEED_DMA_MAP_STATE=y CONFIG_NEED_SG_DMA_LENGTH=yCONFIG_GENERIC_BUG=y CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y CONFIG_GENERIC_HWEIGHT=y CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_ARCH_HAS_CPU_RELAX=y CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y CONFIG_HAVE_SETUP_PER_CPU_AREA=y CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y CONFIG_ARCH_HIBERNATION_POSSIBLE=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_GENERAL_HUGETLB=y CONFIG_ZONE_DMA32=yCONFIG_AUDIT_ARCH=y CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_KASAN_SHADOW_OFFSET=0xdffffc0000000000 CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_FIX_EARLYCON_MEM=yCONFIG_PGTABLE_LEVELS=4 CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config" CONFIG_CONSTRUCTORS=yCONFIG_IRQ_WORK=yCONFIG_BUILDTIME_EXTABLE_SORT=y CONFIG_THREAD_INFO_IN_TASK=y
#
# General setup
#CONFIG_BROKEN_ON_SMP=yCONFIG_INIT_ENV_ARG_LIMIT=32CONFIG_CROSS_COMPILE=""
# CONFIG_COMPILE_TEST is not setCONFIG_LOCALVERSION=""CONFIG_LOCALVERSION_AUTO=yCONFIG_HAVE_KERNEL_GZIP=yCONFIG_HAVE_KERNEL_BZIP2=yCONFIG_HAVE_KERNEL_LZMA=yCONFIG_HAVE_KERNEL_XZ=yCONFIG_HAVE_KERNEL_LZO=yCONFIG_HAVE_KERNEL_LZ4=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 setCONFIG_KERNEL_LZ4=yCONFIG_DEFAULT_HOSTNAME="(none)"
# CONFIG_SYSVIPC is not set
# CONFIG_POSIX_MQUEUE is not set
# CONFIG_CROSS_MEMORY_ATTACH is not set
# CONFIG_USELIB is not set
# CONFIG_AUDIT is not setCONFIG_HAVE_ARCH_AUDITSYSCALL=y
#
# IRQ subsystem
#CONFIG_GENERIC_IRQ_PROBE=yCONFIG_GENERIC_IRQ_SHOW=yCONFIG_GENERIC_IRQ_CHIP=yCONFIG_IRQ_DOMAIN=yCONFIG_IRQ_DOMAIN_HIERARCHY=yCONFIG_GENERIC_IRQ_MATRIX_ALLOCATOR=yCONFIG_GENERIC_IRQ_RESERVATION_MODE=yCONFIG_IRQ_FORCED_THREADING=yCONFIG_SPARSE_IRQ=y
# CONFIG_GENERIC_IRQ_DEBUGFS is not setCONFIG_CLOCKSOURCE_WATCHDOG=yCONFIG_ARCH_CLOCKSOURCE_DATA=yCONFIG_CLOCKSOURCE_VALIDATE_LAST_CYCLE=yCONFIG_GENERIC_TIME_VSYSCALL=yCONFIG_GENERIC_CLOCKEVENTS=yCONFIG_GENERIC_CLOCKEVENTS_BROADCAST=yCONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=yCONFIG_GENERIC_CMOS_UPDATE=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
#
# CPU/Task time and stats accounting
#CONFIG_TICK_CPU_ACCOUNTING=y
# CONFIG_VIRT_CPU_ACCOUNTING_GEN is not set
# CONFIG_IRQ_TIME_ACCOUNTING is not setCONFIG_BSD_PROCESS_ACCT=yCONFIG_BSD_PROCESS_ACCT_V3=y
# CONFIG_TASKSTATS is not set
#
# RCU Subsystem
#CONFIG_TINY_RCU=y
# CONFIG_RCU_EXPERT is not setCONFIG_SRCU=yCONFIG_TINY_SRCU=yCONFIG_TASKS_RCU=y
# CONFIG_RCU_STALL_COMMON is not set
# CONFIG_RCU_NEED_SEGCBLIST is not setCONFIG_BUILD_BIN2C=yCONFIG_IKCONFIG=yCONFIG_IKCONFIG_PROC=yCONFIG_LOG_BUF_SHIFT=20CONFIG_PRINTK_SAFE_LOG_BUF_SHIFT=13CONFIG_HAVE_UNSTABLE_SCHED_CLOCK=yCONFIG_ARCH_SUPPORTS_NUMA_BALANCING=yCONFIG_ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH=yCONFIG_ARCH_SUPPORTS_INT128=yCONFIG_CGROUPS=y
# CONFIG_MEMCG is not setCONFIG_CGROUP_SCHED=yCONFIG_FAIR_GROUP_SCHED=yCONFIG_CFS_BANDWIDTH=yCONFIG_RT_GROUP_SCHED=y
# CONFIG_CGROUP_PIDS is not set
# CONFIG_CGROUP_RDMA is not set
# CONFIG_CGROUP_FREEZER is not set
# CONFIG_CGROUP_HUGETLB is not set
# CONFIG_CGROUP_DEVICE is not set
# CONFIG_CGROUP_CPUACCT is not setCONFIG_CGROUP_PERF=yCONFIG_CGROUP_DEBUG=y
# CONFIG_SOCK_CGROUP_DATA is not set
# CONFIG_NAMESPACES is not setCONFIG_SCHED_AUTOGROUP=y
# CONFIG_SYSFS_DEPRECATED is not setCONFIG_RELAY=yCONFIG_BLK_DEV_INITRD=yCONFIG_INITRAMFS_SOURCE=""CONFIG_RD_GZIP=yCONFIG_RD_BZIP2=yCONFIG_RD_LZMA=yCONFIG_RD_XZ=yCONFIG_RD_LZO=yCONFIG_RD_LZ4=y
# CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is not setCONFIG_CC_OPTIMIZE_FOR_SIZE=yCONFIG_SYSCTL=yCONFIG_ANON_INODES=yCONFIG_HAVE_UID16=yCONFIG_SYSCTL_EXCEPTION_TRACE=yCONFIG_HAVE_PCSPKR_PLATFORM=yCONFIG_BPF=yCONFIG_EXPERT=y
# CONFIG_UID16 is not setCONFIG_MULTIUSER=y
# CONFIG_SGETMASK_SYSCALL is not set
# CONFIG_SYSFS_SYSCALL is not set
# CONFIG_SYSCTL_SYSCALL is not setCONFIG_FHANDLE=yCONFIG_POSIX_TIMERS=yCONFIG_PRINTK=yCONFIG_PRINTK_NMI=yCONFIG_BUG=yCONFIG_ELF_CORE=y
# CONFIG_PCSPKR_PLATFORM is not setCONFIG_BASE_FULL=yCONFIG_FUTEX=yCONFIG_FUTEX_PI=yCONFIG_EPOLL=yCONFIG_SIGNALFD=yCONFIG_TIMERFD=y
# CONFIG_EVENTFD is not setCONFIG_SHMEM=yCONFIG_AIO=yCONFIG_ADVISE_SYSCALLS=yCONFIG_MEMBARRIER=y
# CONFIG_CHECKPOINT_RESTORE is not setCONFIG_KALLSYMS=yCONFIG_KALLSYMS_ALL=y
# CONFIG_KALLSYMS_ABSOLUTE_PERCPU is not setCONFIG_KALLSYMS_BASE_RELATIVE=y
# CONFIG_BPF_SYSCALL is not set
# CONFIG_USERFAULTFD is not setCONFIG_ARCH_HAS_MEMBARRIER_SYNC_CORE=yCONFIG_EMBEDDED=yCONFIG_HAVE_PERF_EVENTS=yCONFIG_PERF_USE_VMALLOC=y
# CONFIG_PC104 is not set
#
# Kernel Performance Events And Counters
#CONFIG_PERF_EVENTS=y CONFIG_DEBUG_PERF_USE_VMALLOC=y CONFIG_VM_EVENT_COUNTERS=y
# CONFIG_SLUB_DEBUG is not set CONFIG_COMPAT_BRK=y
# CONFIG_SLAB is not setCONFIG_SLUB=y
# CONFIG_SLOB is not set CONFIG_SLAB_MERGE_DEFAULT=y
# CONFIG_SLAB_FREELIST_RANDOM is not set
# CONFIG_SLAB_FREELIST_HARDENED is not set CONFIG_SYSTEM_DATA_VERIFICATION=y CONFIG_PROFILING=yCONFIG_TRACEPOINTS=yCONFIG_CRASH_CORE=yCONFIG_KEXEC_CORE=yCONFIG_OPROFILE=y CONFIG_OPROFILE_EVENT_MULTIPLEX=y CONFIG_HAVE_OPROFILE=y CONFIG_OPROFILE_NMI_TIMER=y
# CONFIG_JUMP_LABEL is not set CONFIG_UPROBES=y
# CONFIG_HAVE_64BIT_ALIGNED_ACCESS is not set CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y CONFIG_ARCH_USE_BUILTIN_BSWAP=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_HAVE_FUNCTION_ERROR_INJECTION=y CONFIG_HAVE_NMI=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_HAVE_ARCH_THREAD_STRUCT_WHITELIST=y CONFIG_ARCH_WANTS_DYNAMIC_TASK_STRUCT=y CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y CONFIG_HAVE_CLK=y CONFIG_HAVE_DMA_API_DEBUG=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_RCU_TABLE_FREE=y CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=y CONFIG_HAVE_ALIGNED_STRUCT_PAGE=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_FILTER=y CONFIG_HAVE_GCC_PLUGINS=y
# CONFIG_GCC_PLUGINS is not set CONFIG_HAVE_CC_STACKPROTECTOR=y
# CONFIG_CC_STACKPROTECTOR_NONE is not set
# CONFIG_CC_STACKPROTECTOR_REGULAR is not set # CONFIG_CC_STACKPROTECTOR_STRONG is not set CONFIG_CC_STACKPROTECTOR_AUTO=y CONFIG_THIN_ARCHIVES=y CONFIG_HAVE_ARCH_WITHIN_STACK_FRAMES=y CONFIG_HAVE_CONTEXT_TRACKING=y CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y CONFIG_HAVE_IRQ_TIME_ACCOUNTING=y CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE=y CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD=y CONFIG_HAVE_ARCH_HUGE_VMAP=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_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_HAVE_COPY_THREAD_TLS=y CONFIG_HAVE_STACK_VALIDATION=y CONFIG_HAVE_RELIABLE_STACKTRACE=y
# CONFIG_HAVE_ARCH_HASH is not set CONFIG_ISA_BUS_API=y CONFIG_OLD_SIGSUSPEND3=y CONFIG_COMPAT_OLD_SIGACTION=y
# CONFIG_CPU_NO_EFFICIENT_FFS is not set CONFIG_HAVE_ARCH_VMAP_STACK=y
# CONFIG_ARCH_OPTIONAL_KERNEL_RWX is not set # CONFIG_ARCH_OPTIONAL_KERNEL_RWX_DEFAULT is not set CONFIG_ARCH_HAS_STRICT_KERNEL_RWX=y CONFIG_STRICT_KERNEL_RWX=y CONFIG_ARCH_HAS_STRICT_MODULE_RWX=y CONFIG_ARCH_HAS_PHYS_TO_DMA=y CONFIG_ARCH_HAS_REFCOUNT=y
# CONFIG_REFCOUNT_FULL is not set
#
# GCOV-based kernel profiling
#
# CONFIG_GCOV_KERNEL is not setCONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
# CONFIG_HAVE_GENERIC_DMA_COHERENT is not setCONFIG_RT_MUTEXES=yCONFIG_BASE_SMALL=0
# CONFIG_MODULES is not setCONFIG_MODULES_TREE_LOOKUP=y
# CONFIG_BLOCK is not setCONFIG_ASN1=yCONFIG_UNINLINE_SPIN_UNLOCK=yCONFIG_ARCH_SUPPORTS_ATOMIC_RMW=yCONFIG_ARCH_USE_QUEUED_SPINLOCKS=yCONFIG_ARCH_USE_QUEUED_RWLOCKS=yCONFIG_ARCH_HAS_SYNC_CORE_BEFORE_USERMODE=yCONFIG_FREEZER=y
#
# Processor type and features
#CONFIG_ZONE_DMA=y
# CONFIG_SMP is not set CONFIG_X86_FEATURE_NAMES=y
# CONFIG_X86_FAST_FEATURE_TESTS is not set
# CONFIG_X86_X2APIC is not set CONFIG_X86_MPPARSE=yCONFIG_GOLDFISH=y
# CONFIG_RETPOLINE is not set CONFIG_X86_EXTENDED_PLATFORM=y
# CONFIG_X86_GOLDFISH is not set
# CONFIG_X86_INTEL_LPSS is not set
# CONFIG_X86_AMD_PLATFORM_DEVICE is not set CONFIG_IOSF_MBI=y
# CONFIG_IOSF_MBI_DEBUG is not set
# CONFIG_SCHED_OMIT_FRAME_POINTER is not set CONFIG_HYPERVISOR_GUEST=yCONFIG_PARAVIRT=y
# CONFIG_PARAVIRT_DEBUG is not set
# CONFIG_XEN is not setCONFIG_KVM_GUEST=y
# CONFIG_KVM_DEBUG_FS is not set
# CONFIG_PARAVIRT_TIME_ACCOUNTING is not set CONFIG_PARAVIRT_CLOCK=y
# CONFIG_JAILHOUSE_GUEST is not set CONFIG_NO_BOOTMEM=y
# 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=6CONFIG_X86_TSC=yCONFIG_X86_CMPXCHG64=yCONFIG_X86_CMOV=y CONFIG_X86_MINIMUM_CPU_FAMILY=64 CONFIG_X86_DEBUGCTLMSR=y CONFIG_PROCESSOR_SELECT=y
# CONFIG_CPU_SUP_INTEL is not set CONFIG_CPU_SUP_AMD=y CONFIG_CPU_SUP_CENTAUR=yCONFIG_HPET_TIMER=y CONFIG_HPET_EMULATE_RTC=y
# CONFIG_DMI is not set
# CONFIG_GART_IOMMU is not set CONFIG_CALGARY_IOMMU=y
# CONFIG_CALGARY_IOMMU_ENABLED_BY_DEFAULT is not set CONFIG_SWIOTLB=yCONFIG_IOMMU_HELPER=y CONFIG_NR_CPUS_RANGE_BEGIN=1 CONFIG_NR_CPUS_RANGE_END=1 CONFIG_NR_CPUS_DEFAULT=1CONFIG_NR_CPUS=1CONFIG_PREEMPT_NONE=y
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT is not set CONFIG_PREEMPT_COUNT=yCONFIG_UP_LATE_INIT=y CONFIG_X86_LOCAL_APIC=yCONFIG_X86_IO_APIC=y
# CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS is not set # CONFIG_X86_MCE is not set
#
# Performance monitoring
#CONFIG_PERF_EVENTS_AMD_POWER=y
# CONFIG_VM86 is not set
# CONFIG_X86_16BIT is not setCONFIG_X86_VSYSCALL_EMULATION=y
# CONFIG_I8K is not setCONFIG_MICROCODE=y
# CONFIG_MICROCODE_INTEL is not set
# CONFIG_MICROCODE_AMD is not setCONFIG_MICROCODE_OLD_INTERFACE=yCONFIG_X86_MSR=y
# CONFIG_X86_CPUID is not set
# CONFIG_X86_5LEVEL is not setCONFIG_ARCH_PHYS_ADDR_T_64BIT=yCONFIG_ARCH_DMA_ADDR_T_64BIT=yCONFIG_ARCH_HAS_MEM_ENCRYPT=y
# CONFIG_AMD_MEM_ENCRYPT is not setCONFIG_ARCH_SPARSEMEM_ENABLE=yCONFIG_ARCH_SPARSEMEM_DEFAULT=yCONFIG_ARCH_SELECT_MEMORY_MODEL=yCONFIG_ARCH_MEMORY_PROBE=yCONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000CONFIG_SELECT_MEMORY_MODEL=yCONFIG_SPARSEMEM_MANUAL=yCONFIG_SPARSEMEM=yCONFIG_HAVE_MEMORY_PRESENT=yCONFIG_SPARSEMEM_EXTREME=yCONFIG_SPARSEMEM_VMEMMAP_ENABLE=yCONFIG_SPARSEMEM_ALLOC_MEM_MAP_TOGETHER=yCONFIG_SPARSEMEM_VMEMMAP=yCONFIG_HAVE_MEMBLOCK=yCONFIG_HAVE_MEMBLOCK_NODE_MAP=yCONFIG_HAVE_GENERIC_GUP=yCONFIG_ARCH_DISCARD_MEMBLOCK=yCONFIG_MEMORY_ISOLATION=y
# CONFIG_HAVE_BOOTMEM_INFO_NODE is not setCONFIG_MEMORY_HOTPLUG=yCONFIG_MEMORY_HOTPLUG_SPARSE=y
# CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE is not set
# CONFIG_MEMORY_HOTREMOVE is not setCONFIG_SPLIT_PTLOCK_CPUS=4CONFIG_ARCH_ENABLE_SPLIT_PMD_PTLOCK=y
# CONFIG_COMPACTION is not setCONFIG_MIGRATION=yCONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION=yCONFIG_PHYS_ADDR_T_64BIT=yCONFIG_VIRT_TO_BUS=yCONFIG_KSM=yCONFIG_DEFAULT_MMAP_MIN_ADDR=4096
# CONFIG_TRANSPARENT_HUGEPAGE is not setCONFIG_ARCH_WANTS_THP_SWAP=yCONFIG_NEED_PER_CPU_KM=yCONFIG_CLEANCACHE=yCONFIG_CMA=yCONFIG_CMA_DEBUG=y
# CONFIG_CMA_DEBUGFS is not setCONFIG_CMA_AREAS=7
# CONFIG_ZPOOL is not set
# CONFIG_ZBUD is not setCONFIG_ZSMALLOC=y
# CONFIG_PGTABLE_MAPPING is not setCONFIG_ZSMALLOC_STAT=yCONFIG_GENERIC_EARLY_IOREMAP=y
# CONFIG_DEFERRED_STRUCT_PAGE_INIT is not setCONFIG_IDLE_PAGE_TRACKING=yCONFIG_ARCH_HAS_ZONE_DEVICE=yCONFIG_PERCPU_STATS=yCONFIG_GUP_BENCHMARK=yCONFIG_X86_CHECK_BIOS_CORRUPTION=yCONFIG_X86_BOOTPARAM_MEMORY_CORRUPTION_CHECK=yCONFIG_X86_RESERVE_LOW=64CONFIG_MTRR=yCONFIG_MTRR_SANITIZER=yCONFIG_MTRR_SANITIZER_ENABLE_DEFAULT=0CONFIG_MTRR_SANITIZER_SPARE_REG_NR_DEFAULT=1CONFIG_X86_PAT=yCONFIG_ARCH_USES_PG_UNCACHED=yCONFIG_ARCH_RANDOM=yCONFIG_X86_SMAP=yCONFIG_EFI=y
# CONFIG_EFI_STUB is not set
# CONFIG_SECCOMP is not setCONFIG_HZ_100=y
# CONFIG_HZ_250 is not set
# CONFIG_HZ_300 is not set
# CONFIG_HZ_1000 is not setCONFIG_HZ=100
# CONFIG_SCHED_HRTICK is not setCONFIG_KEXEC=yCONFIG_KEXEC_FILE=y
# CONFIG_KEXEC_VERIFY_SIG is not setCONFIG_CRASH_DUMP=yCONFIG_PHYSICAL_START=0x1000000CONFIG_RELOCATABLE=yCONFIG_RANDOMIZE_BASE=yCONFIG_X86_NEED_RELOCS=yCONFIG_PHYSICAL_ALIGN=0x200000CONFIG_RANDOMIZE_MEMORY=yCONFIG_RANDOMIZE_MEMORY_PHYSICAL_PADDING=0xa
# CONFIG_COMPAT_VDSO is not set
# CONFIG_LEGACY_VSYSCALL_NATIVE is not setCONFIG_LEGACY_VSYSCALL_EMULATE=y
# CONFIG_LEGACY_VSYSCALL_NONE is not set
# CONFIG_CMDLINE_BOOL is not setCONFIG_MODIFY_LDT_SYSCALL=yCONFIG_HAVE_LIVEPATCH=yCONFIG_ARCH_HAS_ADD_PAGES=yCONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=yCONFIG_ARCH_ENABLE_MEMORY_HOTREMOVE=y
#
# Power management and ACPI options
#CONFIG_SUSPEND=yCONFIG_SUSPEND_FREEZER=yCONFIG_SUSPEND_SKIP_SYNC=yCONFIG_PM_SLEEP=y
# CONFIG_PM_AUTOSLEEP is not set
# CONFIG_PM_WAKELOCKS is not setCONFIG_PM=y
# CONFIG_PM_DEBUG is not setCONFIG_PM_CLK=y
# CONFIG_WQ_POWER_EFFICIENT_DEFAULT is not setCONFIG_ACPI=yCONFIG_ACPI_LEGACY_TABLES_LOOKUP=yCONFIG_ARCH_MIGHT_HAVE_ACPI_PDC=yCONFIG_ACPI_SYSTEM_POWER_STATES_SUPPORT=y
# CONFIG_ACPI_DEBUGGER is not setCONFIG_ACPI_SPCR_TABLE=yCONFIG_ACPI_LPIT=yCONFIG_ACPI_SLEEP=y
# CONFIG_ACPI_PROCFS_POWER is not setCONFIG_ACPI_REV_OVERRIDE_POSSIBLE=yCONFIG_ACPI_EC_DEBUGFS=yCONFIG_ACPI_AC=y
# CONFIG_ACPI_BATTERY is not setCONFIG_ACPI_BUTTON=yCONFIG_ACPI_VIDEO=yCONFIG_ACPI_FAN=y
# CONFIG_ACPI_DOCK is not setCONFIG_ACPI_CPU_FREQ_PSS=yCONFIG_ACPI_PROCESSOR_CSTATE=yCONFIG_ACPI_PROCESSOR_IDLE=yCONFIG_ACPI_PROCESSOR=yCONFIG_ACPI_IPMI=y
# CONFIG_ACPI_PROCESSOR_AGGREGATOR is not setCONFIG_ACPI_THERMAL=y
# CONFIG_ACPI_CUSTOM_DSDT is not setCONFIG_ARCH_HAS_ACPI_TABLE_UPGRADE=yCONFIG_ACPI_TABLE_UPGRADE=yCONFIG_ACPI_DEBUG=yCONFIG_ACPI_PCI_SLOT=yCONFIG_ACPI_CONTAINER=yCONFIG_ACPI_HOTPLUG_MEMORY=yCONFIG_ACPI_HOTPLUG_IOAPIC=yCONFIG_ACPI_SBS=y
# CONFIG_ACPI_HED is not setCONFIG_ACPI_CUSTOM_METHOD=y
# CONFIG_ACPI_BGRT is not set
# CONFIG_ACPI_REDUCED_HARDWARE_ONLY is not setCONFIG_HAVE_ACPI_APEI=yCONFIG_HAVE_ACPI_APEI_NMI=yCONFIG_ACPI_APEI=y
# CONFIG_ACPI_APEI_GHES is not setCONFIG_ACPI_APEI_PCIEAER=y
# CONFIG_ACPI_APEI_EINJ is not set
# CONFIG_ACPI_APEI_ERST_DEBUG is not setCONFIG_DPTF_POWER=yCONFIG_PMIC_OPREGION=yCONFIG_XPOWER_PMIC_OPREGION=yCONFIG_CHT_WC_PMIC_OPREGION=yCONFIG_CHT_DC_TI_PMIC_OPREGION=yCONFIG_ACPI_CONFIGFS=yCONFIG_TPS68470_PMIC_OPREGION=yCONFIG_X86_PM_TIMER=y
# CONFIG_SFI is not set
#
# CPU Frequency scaling
#
# CONFIG_CPU_FREQ is not set
#
# CPU Idle
#CONFIG_CPU_IDLE=yCONFIG_CPU_IDLE_GOV_LADDER=y
# CONFIG_CPU_IDLE_GOV_MENU is not set
# CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED is not set
#
# Bus options (PCI etc.)
#CONFIG_PCI=yCONFIG_PCI_DIRECT=y
# CONFIG_PCI_MMCONFIG is not setCONFIG_PCI_DOMAINS=y
# CONFIG_PCI_CNB20LE_QUIRK is not setCONFIG_PCIEPORTBUS=y
# CONFIG_HOTPLUG_PCI_PCIE is not setCONFIG_PCIEAER=y
# CONFIG_PCIE_ECRC is not set
# CONFIG_PCIEAER_INJECT is not set
# CONFIG_PCIEASPM is not setCONFIG_PCIE_PME=y
# CONFIG_PCIE_DPC is not setCONFIG_PCIE_PTM=yCONFIG_PCI_BUS_ADDR_T_64BIT=y
# CONFIG_PCI_MSI is not setCONFIG_PCI_QUIRKS=y
# CONFIG_PCI_DEBUG is not setCONFIG_PCI_REALLOC_ENABLE_AUTO=yCONFIG_PCI_STUB=yCONFIG_PCI_ATS=yCONFIG_PCI_LOCKLESS_CONFIG=yCONFIG_PCI_IOV=y
# CONFIG_PCI_PRI is not setCONFIG_PCI_PASID=yCONFIG_PCI_LABEL=yCONFIG_HOTPLUG_PCI=yCONFIG_HOTPLUG_PCI_ACPI=y
# CONFIG_HOTPLUG_PCI_ACPI_IBM is not set
# CONFIG_HOTPLUG_PCI_CPCI is not setCONFIG_HOTPLUG_PCI_SHPC=y
#
# Cadence PCIe controllers support
#
#
# DesignWare PCI Core Support
#
#
# PCI host controller drivers
#
#
# PCI Endpoint
#CONFIG_PCI_ENDPOINT=y
# CONFIG_PCI_ENDPOINT_CONFIGFS is not setCONFIG_PCI_EPF_TEST=y
#
# PCI switch controller drivers
#
# CONFIG_PCI_SW_SWITCHTEC is not setCONFIG_ISA_BUS=y
# CONFIG_ISA_DMA_API is not setCONFIG_AMD_NB=yCONFIG_PCCARD=yCONFIG_PCMCIA=yCONFIG_PCMCIA_LOAD_CIS=yCONFIG_CARDBUS=y
#
# PC-card bridges
#CONFIG_YENTA=yCONFIG_YENTA_O2=y
# CONFIG_YENTA_RICOH is not setCONFIG_YENTA_TI=yCONFIG_YENTA_ENE_TUNE=yCONFIG_YENTA_TOSHIBA=y
# CONFIG_PD6729 is not setCONFIG_I82092=yCONFIG_PCCARD_NONSTATIC=yCONFIG_RAPIDIO=yCONFIG_RAPIDIO_TSI721=yCONFIG_RAPIDIO_DISC_TIMEOUT=30CONFIG_RAPIDIO_ENABLE_RX_TX_PORTS=yCONFIG_RAPIDIO_DMA_ENGINE=y
# CONFIG_RAPIDIO_DEBUG is not setCONFIG_RAPIDIO_ENUM_BASIC=yCONFIG_RAPIDIO_CHMAN=yCONFIG_RAPIDIO_MPORT_CDEV=y
#
# RapidIO Switch drivers
#CONFIG_RAPIDIO_TSI57X=yCONFIG_RAPIDIO_CPS_XX=yCONFIG_RAPIDIO_TSI568=yCONFIG_RAPIDIO_CPS_GEN2=y
# CONFIG_RAPIDIO_RXS_GEN3 is not set
# CONFIG_X86_SYSFB is not set
#
# Executable file formats / Emulations
#CONFIG_BINFMT_ELF=yCONFIG_COMPAT_BINFMT_ELF=yCONFIG_ELFCORE=y
# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not setCONFIG_BINFMT_SCRIPT=y
# CONFIG_HAVE_AOUT is not setCONFIG_BINFMT_MISC=yCONFIG_COREDUMP=yCONFIG_IA32_EMULATION=y
# CONFIG_IA32_AOUT is not set
# CONFIG_X86_X32 is not setCONFIG_COMPAT_32=yCONFIG_COMPAT=yCONFIG_COMPAT_FOR_U64_ALIGNMENT=yCONFIG_X86_DEV_DMA_OPS=yCONFIG_NET=y
#
# Networking options
#
# CONFIG_PACKET is not setCONFIG_UNIX=y
# CONFIG_UNIX_DIAG is not set
# CONFIG_TLS is not setCONFIG_XFRM=y
# CONFIG_XFRM_USER is not set
# CONFIG_XFRM_SUB_POLICY is not set
# CONFIG_XFRM_MIGRATE is not set
# CONFIG_XFRM_STATISTICS is not set
# CONFIG_NET_KEY is not setCONFIG_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_UDP_TUNNEL 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_XFRM_TUNNEL is not set CONFIG_INET_TUNNEL=y CONFIG_INET_XFRM_MODE_TRANSPORT=y CONFIG_INET_XFRM_MODE_TUNNEL=y CONFIG_INET_XFRM_MODE_BEET=y CONFIG_INET_DIAG=yCONFIG_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 setCONFIG_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_INET6_XFRM_TUNNEL is not set
# CONFIG_INET6_TUNNEL is not set CONFIG_INET6_XFRM_MODE_TRANSPORT=y CONFIG_INET6_XFRM_MODE_TUNNEL=y CONFIG_INET6_XFRM_MODE_BEET=y
# CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION 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_FOU is not set
# CONFIG_IPV6_FOU_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_NETLABEL is not set
# CONFIG_NETWORK_SECMARK is not set CONFIG_NET_PTP_CLASSIFY=y
# CONFIG_NETWORK_PHY_TIMESTAMPING is not set # CONFIG_NETFILTER 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_HAVE_NET_DSA=y
# CONFIG_NET_DSA is not set
# CONFIG_VLAN_8021Q is not set
# CONFIG_DECNET 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 setCONFIG_DNS_RESOLVER=y
# 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_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
# 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_STREAM_PARSER is not setCONFIG_WIRELESS=y
# CONFIG_CFG80211 is not setCONFIG_CFG80211_REQUIRE_SIGNED_REGDB=yCONFIG_CFG80211_USE_KERNEL_REGDB_KEYS=y
# CONFIG_LIB80211 is not set
#
# CFG80211 needs to be enabled for MAC80211
#CONFIG_MAC80211_STA_HASH_MAX_SIZE=0
# CONFIG_WIMAX is not set
# CONFIG_RFKILL is not set
# CONFIG_NET_9P 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 setCONFIG_DST_CACHE=yCONFIG_GRO_CELLS=y
# CONFIG_NET_DEVLINK is not setCONFIG_MAY_USE_DEVLINK=yCONFIG_HAVE_EBPF_JIT=y
#
# Device Drivers
#
#
# Generic Driver Options
#
# CONFIG_UEVENT_HELPER is not set CONFIG_DEVTMPFS=y
# CONFIG_DEVTMPFS_MOUNT is not set CONFIG_STANDALONE=y
# CONFIG_PREVENT_FIRMWARE_BUILD is not set CONFIG_FW_LOADER=y CONFIG_EXTRA_FIRMWARE="" CONFIG_FW_LOADER_USER_HELPER=y
# CONFIG_FW_LOADER_USER_HELPER_FALLBACK is not set # CONFIG_ALLOW_DEV_COREDUMP is not set
# CONFIG_DEBUG_DRIVER is not set
# CONFIG_DEBUG_DEVRES is not set
# CONFIG_DEBUG_TEST_DRIVER_REMOVE is not set # CONFIG_SYS_HYPERVISOR is not set
# CONFIG_GENERIC_CPU_DEVICES is not set CONFIG_GENERIC_CPU_AUTOPROBE=y CONFIG_GENERIC_CPU_VULNERABILITIES=y CONFIG_REGMAP=yCONFIG_REGMAP_I2C=yCONFIG_REGMAP_MMIO=yCONFIG_REGMAP_IRQ=y
# CONFIG_DMA_SHARED_BUFFER is not set
# CONFIG_DMA_CMA is not set
#
# Bus devices
#
# CONFIG_CONNECTOR is not set
# CONFIG_MTD is not set
# CONFIG_OF is not setCONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=yCONFIG_PARPORT=yCONFIG_PARPORT_PC=y
# CONFIG_PARPORT_SERIAL is not setCONFIG_PARPORT_PC_FIFO=y
# CONFIG_PARPORT_PC_SUPERIO is not set
# CONFIG_PARPORT_PC_PCMCIA is not set
# CONFIG_PARPORT_GSC is not setCONFIG_PARPORT_AX88796=yCONFIG_PARPORT_1284=yCONFIG_PARPORT_NOT_PC=yCONFIG_PNP=yCONFIG_PNP_DEBUG_MESSAGES=y
#
# Protocols
#CONFIG_PNPACPI=y
#
# NVME Support
#
#
# Misc devices
#
# CONFIG_SENSORS_LIS3LV02D is not setCONFIG_AD525X_DPOT=y
# CONFIG_AD525X_DPOT_I2C is not setCONFIG_DUMMY_IRQ=yCONFIG_IBM_ASM=yCONFIG_PHANTOM=y
# CONFIG_SGI_IOC4 is not setCONFIG_TIFM_CORE=y
# CONFIG_TIFM_7XX1 is not set
# CONFIG_ICS932S401 is not set
# CONFIG_ENCLOSURE_SERVICES is not setCONFIG_HP_ILO=yCONFIG_APDS9802ALS=yCONFIG_ISL29003=y
# CONFIG_ISL29020 is not setCONFIG_SENSORS_TSL2550=y
# CONFIG_SENSORS_BH1770 is not setCONFIG_SENSORS_APDS990X=yCONFIG_HMC6352=y
# CONFIG_DS1682 is not setCONFIG_VMWARE_BALLOON=yCONFIG_USB_SWITCH_FSA9480=yCONFIG_SRAM=y
# CONFIG_PCI_ENDPOINT_TEST is not setCONFIG_MISC_RTSX=yCONFIG_C2PORT=y
# CONFIG_C2PORT_DURAMAR_2150 is not set
#
# EEPROM support
#CONFIG_EEPROM_AT24=yCONFIG_EEPROM_LEGACY=yCONFIG_EEPROM_MAX6875=y
# CONFIG_EEPROM_93CX6 is not set
# CONFIG_EEPROM_IDT_89HPESX is not setCONFIG_CB710_CORE=yCONFIG_CB710_DEBUG=yCONFIG_CB710_DEBUG_ASSUMPTIONS=y
#
# Texas Instruments shared transport line discipline #
# CONFIG_TI_ST is not set
# CONFIG_SENSORS_LIS3_I2C is not set CONFIG_ALTERA_STAPL=yCONFIG_INTEL_MEI=yCONFIG_INTEL_MEI_ME=yCONFIG_INTEL_MEI_TXE=yCONFIG_VMWARE_VMCI=y
#
# Intel MIC & related support
#
#
# Intel MIC Bus Driver
#CONFIG_INTEL_MIC_BUS=y
#
# SCIF Bus Driver
#CONFIG_SCIF_BUS=y
#
# VOP Bus Driver
#CONFIG_VOP_BUS=y
#
# Intel MIC Host Driver
#
#
# Intel MIC Card Driver
#
#
# SCIF Driver
#
#
# Intel MIC Coprocessor State Management (COSM) Drivers #
#
# VOP Driver
#CONFIG_VOP=yCONFIG_VHOST_RING=yCONFIG_GENWQE=yCONFIG_GENWQE_PLATFORM_ERROR_RECOVERY=0
# CONFIG_ECHO is not set
# CONFIG_CXL_BASE is not set
# CONFIG_CXL_AFU_DRIVER_OPS is not set
# CONFIG_CXL_LIB is not set
# CONFIG_OCXL_BASE is not setCONFIG_MISC_RTSX_PCI=yCONFIG_HAVE_IDE=y
#
# SCSI device support
#CONFIG_SCSI_MOD=y
# CONFIG_SCSI_DMA is not set
# CONFIG_SCSI_NETLINK is not set
# CONFIG_FUSION is not set
#
# IEEE 1394 (FireWire) support
#CONFIG_FIREWIRE=yCONFIG_FIREWIRE_OHCI=y
# CONFIG_FIREWIRE_NET is not setCONFIG_FIREWIRE_NOSY=yCONFIG_MACINTOSH_DRIVERS=y
# CONFIG_MAC_EMUMOUSEBTN is not setCONFIG_NETDEVICES=yCONFIG_NET_CORE=y
# CONFIG_BONDING is not set
# CONFIG_DUMMY is not set
# CONFIG_EQUALIZER is not set
# CONFIG_NET_TEAM is not set
# CONFIG_MACVLAN is not set
# CONFIG_VXLAN is not set
# CONFIG_MACSEC is not set
# CONFIG_NETCONSOLE is not set
# CONFIG_NETPOLL is not set
# CONFIG_NET_POLL_CONTROLLER is not set
# CONFIG_RIONET is not set
# CONFIG_TUN is not set
# CONFIG_TUN_VNET_CROSS_LE is not set
# CONFIG_VETH is not set
# CONFIG_VIRTIO_NET is not set
# CONFIG_NLMON is not set
# CONFIG_ARCNET is not set
#
# CAIF transport drivers
#
#
# Distributed Switch Architecture drivers
#CONFIG_ETHERNET=yCONFIG_MDIO=yCONFIG_NET_VENDOR_3COM=y
# CONFIG_PCMCIA_3C574 is not set
# CONFIG_PCMCIA_3C589 is not set
# CONFIG_VORTEX is not set
# CONFIG_TYPHOON is not setCONFIG_NET_VENDOR_ADAPTEC=y
# CONFIG_ADAPTEC_STARFIRE is not setCONFIG_NET_VENDOR_AGERE=y
# CONFIG_ET131X is not setCONFIG_NET_VENDOR_ALACRITECH=y
# CONFIG_SLICOSS is not setCONFIG_NET_VENDOR_ALTEON=y
# CONFIG_ACENIC is not set
# CONFIG_ALTERA_TSE is not setCONFIG_NET_VENDOR_AMAZON=yCONFIG_NET_VENDOR_AMD=y
# CONFIG_AMD8111_ETH is not set
# CONFIG_PCNET32 is not set
# CONFIG_PCMCIA_NMCLAN is not set
# CONFIG_AMD_XGBE is not set
# CONFIG_AMD_XGBE_HAVE_ECC is not setCONFIG_NET_VENDOR_AQUANTIA=y
# CONFIG_AQTION is not setCONFIG_NET_VENDOR_ARC=yCONFIG_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_NET_VENDOR_AURORA is not setCONFIG_NET_CADENCE=y
# CONFIG_MACB is not setCONFIG_NET_VENDOR_BROADCOM=y
# CONFIG_B44 is not set
# CONFIG_BNX2 is not set
# CONFIG_CNIC is not set
# CONFIG_TIGON3 is not set
# CONFIG_BNX2X is not set
# CONFIG_BNXT is not setCONFIG_NET_VENDOR_BROCADE=y
# CONFIG_BNA is not setCONFIG_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 setCONFIG_CAVIUM_PTP=y
# CONFIG_LIQUIDIO is not setCONFIG_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 setCONFIG_NET_VENDOR_CISCO=y
# CONFIG_ENIC is not setCONFIG_NET_VENDOR_CORTINA=y
# CONFIG_CX_ECAT is not set
# CONFIG_DNET is not setCONFIG_NET_VENDOR_DEC=y
# CONFIG_NET_TULIP is not setCONFIG_NET_VENDOR_DLINK=y
# CONFIG_DL2K is not set
# CONFIG_SUNDANCE is not setCONFIG_NET_VENDOR_EMULEX=y
# CONFIG_BE2NET is not setCONFIG_NET_VENDOR_EZCHIP=yCONFIG_NET_VENDOR_EXAR=y
# CONFIG_S2IO is not set
# CONFIG_VXGE is not setCONFIG_NET_VENDOR_FUJITSU=y
# CONFIG_PCMCIA_FMVJ18X is not setCONFIG_NET_VENDOR_HP=y
# CONFIG_HP100 is not setCONFIG_NET_VENDOR_HUAWEI=yCONFIG_NET_VENDOR_INTEL=y
# CONFIG_E100 is not setCONFIG_E1000=yCONFIG_E1000E=yCONFIG_E1000E_HWTS=yCONFIG_IGB=yCONFIG_IGB_HWMON=yCONFIG_IGB_DCA=y
# CONFIG_IGBVF is not set
# CONFIG_IXGB is not setCONFIG_IXGBE=yCONFIG_IXGBE_HWMON=yCONFIG_IXGBE_DCA=y
# CONFIG_I40E is not setCONFIG_NET_VENDOR_I825XX=y
# CONFIG_JME is not setCONFIG_NET_VENDOR_MARVELL=y
# CONFIG_MVMDIO is not set
# CONFIG_SKGE is not set
# CONFIG_SKY2 is not setCONFIG_NET_VENDOR_MELLANOX=y
# CONFIG_MLX4_EN is not set
# CONFIG_MLX4_CORE is not set
# CONFIG_MLX5_CORE is not set
# CONFIG_MLXSW_CORE is not set
# CONFIG_MLXFW is not setCONFIG_NET_VENDOR_MICREL=y
# CONFIG_KS8842 is not set
# CONFIG_KS8851_MLL is not set
# CONFIG_KSZ884X_PCI is not setCONFIG_NET_VENDOR_MYRI=y
# CONFIG_MYRI10GE is not set
# CONFIG_FEALNX is not setCONFIG_NET_VENDOR_NATSEMI=y
# CONFIG_NATSEMI is not set
# CONFIG_NS83820 is not setCONFIG_NET_VENDOR_NETRONOME=yCONFIG_NET_VENDOR_8390=y
# CONFIG_PCMCIA_AXNET is not set
# CONFIG_NE2K_PCI is not set
# CONFIG_PCMCIA_PCNET is not setCONFIG_NET_VENDOR_NVIDIA=y
# CONFIG_FORCEDETH is not setCONFIG_NET_VENDOR_OKI=y
# CONFIG_ETHOC is not setCONFIG_NET_PACKET_ENGINE=y
# CONFIG_HAMACHI is not set
# CONFIG_YELLOWFIN is not setCONFIG_NET_VENDOR_QLOGIC=y
# CONFIG_QLA3XXX is not set
# CONFIG_QLCNIC is not set
# CONFIG_QLGE is not set
# CONFIG_NETXEN_NIC is not set
# CONFIG_QED is not setCONFIG_NET_VENDOR_QUALCOMM=y
# CONFIG_QCOM_EMAC is not set
# CONFIG_RMNET is not setCONFIG_NET_VENDOR_REALTEK=y
# CONFIG_ATP is not set
# CONFIG_8139CP is not set
# CONFIG_8139TOO is not set
# CONFIG_R8169 is not setCONFIG_NET_VENDOR_RENESAS=yCONFIG_NET_VENDOR_RDC=y
# CONFIG_R6040 is not setCONFIG_NET_VENDOR_ROCKER=yCONFIG_NET_VENDOR_SAMSUNG=y
# CONFIG_SXGBE_ETH is not setCONFIG_NET_VENDOR_SEEQ=yCONFIG_NET_VENDOR_SILAN=y
# CONFIG_SC92031 is not setCONFIG_NET_VENDOR_SIS=y
# CONFIG_SIS900 is not set
# CONFIG_SIS190 is not setCONFIG_NET_VENDOR_SOLARFLARE=y
# CONFIG_SFC is not set
# CONFIG_SFC_FALCON is not setCONFIG_NET_VENDOR_SMSC=y
# CONFIG_PCMCIA_SMC91C92 is not set
# CONFIG_EPIC100 is not set
# CONFIG_SMSC911X is not set
# CONFIG_SMSC9420 is not setCONFIG_NET_VENDOR_SOCIONEXT=yCONFIG_NET_VENDOR_STMICRO=y
# CONFIG_STMMAC_ETH is not setCONFIG_NET_VENDOR_SUN=y
# CONFIG_HAPPYMEAL is not set
# CONFIG_SUNGEM is not set
# CONFIG_CASSINI is not set
# CONFIG_NIU is not setCONFIG_NET_VENDOR_TEHUTI=y
# CONFIG_TEHUTI is not setCONFIG_NET_VENDOR_TI=y
# CONFIG_TI_CPSW_ALE is not set
# CONFIG_TLAN is not setCONFIG_NET_VENDOR_VIA=y
# CONFIG_VIA_RHINE is not set
# CONFIG_VIA_VELOCITY is not setCONFIG_NET_VENDOR_WIZNET=y
# CONFIG_WIZNET_W5100 is not set
# CONFIG_WIZNET_W5300 is not setCONFIG_NET_VENDOR_XIRCOM=y
# CONFIG_PCMCIA_XIRC2PS is not setCONFIG_NET_VENDOR_SYNOPSYS=y
# CONFIG_DWC_XLGMAC is not set
# CONFIG_FDDI is not set
# CONFIG_HIPPI is not set
# CONFIG_NET_SB1000 is not set
# CONFIG_MDIO_DEVICE is not set
# CONFIG_MDIO_BUS is not set
# CONFIG_PHYLIB is not set
# 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=y
# CONFIG_WIRELESS_WDS is not set CONFIG_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 set
# CONFIG_PRISM54 is not set CONFIG_WLAN_VENDOR_MARVELL=y CONFIG_WLAN_VENDOR_MEDIATEK=y CONFIG_WLAN_VENDOR_RALINK=y CONFIG_WLAN_VENDOR_REALTEK=yCONFIG_WLAN_VENDOR_RSI=yCONFIG_WLAN_VENDOR_ST=yCONFIG_WLAN_VENDOR_TI=yCONFIG_WLAN_VENDOR_ZYDAS=y CONFIG_WLAN_VENDOR_QUANTENNA=y
# CONFIG_PCMCIA_RAYCS is not set
#
# Enable WiMAX (Networking options) to see the WiMAX drivers #
# CONFIG_WAN is not set
# CONFIG_VMXNET3 is not set
# CONFIG_FUJITSU_ES is not set
# CONFIG_THUNDERBOLT_NET is not set
# CONFIG_NETDEVSIM is not set
# CONFIG_ISDN is not set
#
# Input device support
#CONFIG_INPUT=yCONFIG_INPUT_LEDS=yCONFIG_INPUT_FF_MEMLESS=yCONFIG_INPUT_POLLDEV=yCONFIG_INPUT_SPARSEKMAP=yCONFIG_INPUT_MATRIXKMAP=y
#
# Userland interfaces
#CONFIG_INPUT_MOUSEDEV=yCONFIG_INPUT_MOUSEDEV_PSAUX=yCONFIG_INPUT_MOUSEDEV_SCREEN_X=1024CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768CONFIG_INPUT_JOYDEV=y
# CONFIG_INPUT_EVDEV is not set
# CONFIG_INPUT_EVBUG is not set
#
# Input Device Drivers
#CONFIG_INPUT_KEYBOARD=y
# CONFIG_KEYBOARD_ADP5588 is not set
# CONFIG_KEYBOARD_ADP5589 is not setCONFIG_KEYBOARD_ATKBD=y
# 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_SAMSUNG is not set
# CONFIG_KEYBOARD_GOLDFISH_EVENTS is not set
# CONFIG_KEYBOARD_STOWAWAY is not set
# CONFIG_KEYBOARD_SUNKBD is not set
# CONFIG_KEYBOARD_TM2_TOUCHKEY is not set
# CONFIG_KEYBOARD_TWL4030 is not set
# CONFIG_KEYBOARD_XTKBD is not set
# CONFIG_KEYBOARD_CROS_EC is not setCONFIG_INPUT_MOUSE=y
# CONFIG_MOUSE_PS2 is not setCONFIG_MOUSE_SERIAL=y
# CONFIG_MOUSE_APPLETOUCH is not set
# CONFIG_MOUSE_BCM5974 is not setCONFIG_MOUSE_CYAPA=y
# CONFIG_MOUSE_ELAN_I2C is not setCONFIG_MOUSE_VSXXXAA=yCONFIG_MOUSE_GPIO=yCONFIG_MOUSE_SYNAPTICS_I2C=y
# CONFIG_MOUSE_SYNAPTICS_USB is not setCONFIG_INPUT_JOYSTICK=y
# CONFIG_JOYSTICK_ANALOG is not setCONFIG_JOYSTICK_A3D=y
# CONFIG_JOYSTICK_ADI is not setCONFIG_JOYSTICK_COBRA=yCONFIG_JOYSTICK_GF2K=yCONFIG_JOYSTICK_GRIP=y
# CONFIG_JOYSTICK_GRIP_MP is not set
# CONFIG_JOYSTICK_GUILLEMOT is not setCONFIG_JOYSTICK_INTERACT=y
# CONFIG_JOYSTICK_SIDEWINDER is not setCONFIG_JOYSTICK_TMDC=yCONFIG_JOYSTICK_IFORCE=yCONFIG_JOYSTICK_IFORCE_232=yCONFIG_JOYSTICK_WARRIOR=yCONFIG_JOYSTICK_MAGELLAN=yCONFIG_JOYSTICK_SPACEORB=yCONFIG_JOYSTICK_SPACEBALL=yCONFIG_JOYSTICK_STINGER=y
# CONFIG_JOYSTICK_TWIDJOY is not set
# CONFIG_JOYSTICK_ZHENHUA is not setCONFIG_JOYSTICK_DB9=yCONFIG_JOYSTICK_GAMECON=yCONFIG_JOYSTICK_TURBOGRAFX=y
# CONFIG_JOYSTICK_AS5011 is not set
# CONFIG_JOYSTICK_JOYDUMP is not set
# CONFIG_JOYSTICK_XPAD is not setCONFIG_INPUT_TABLET=y
# CONFIG_TABLET_USB_ACECAD is not set
# CONFIG_TABLET_USB_AIPTEK is not set
# CONFIG_TABLET_USB_HANWANG is not set
# CONFIG_TABLET_USB_KBTAB is not set
# CONFIG_TABLET_USB_PEGASUS is not set
# CONFIG_TABLET_SERIAL_WACOM4 is not setCONFIG_INPUT_TOUCHSCREEN=yCONFIG_TOUCHSCREEN_PROPERTIES=yCONFIG_TOUCHSCREEN_AD7879=yCONFIG_TOUCHSCREEN_AD7879_I2C=y
# CONFIG_TOUCHSCREEN_ATMEL_MXT is not setCONFIG_TOUCHSCREEN_AUO_PIXCIR=yCONFIG_TOUCHSCREEN_BU21013=y
# CONFIG_TOUCHSCREEN_CY8CTMG110 is not setCONFIG_TOUCHSCREEN_CYTTSP_CORE=yCONFIG_TOUCHSCREEN_CYTTSP_I2C=yCONFIG_TOUCHSCREEN_CYTTSP4_CORE=y
# CONFIG_TOUCHSCREEN_CYTTSP4_I2C is not setCONFIG_TOUCHSCREEN_DYNAPRO=yCONFIG_TOUCHSCREEN_HAMPSHIRE=y
# CONFIG_TOUCHSCREEN_EETI is not set
# CONFIG_TOUCHSCREEN_EGALAX_SERIAL is not setCONFIG_TOUCHSCREEN_EXC3000=y
# CONFIG_TOUCHSCREEN_FUJITSU is not set
# CONFIG_TOUCHSCREEN_GOODIX is not setCONFIG_TOUCHSCREEN_HIDEEP=y
# CONFIG_TOUCHSCREEN_ILI210X is not setCONFIG_TOUCHSCREEN_S6SY761=yCONFIG_TOUCHSCREEN_GUNZE=y
# CONFIG_TOUCHSCREEN_EKTF2127 is not set
# CONFIG_TOUCHSCREEN_ELAN is not setCONFIG_TOUCHSCREEN_ELO=yCONFIG_TOUCHSCREEN_WACOM_W8001=yCONFIG_TOUCHSCREEN_WACOM_I2C=yCONFIG_TOUCHSCREEN_MAX11801=yCONFIG_TOUCHSCREEN_MCS5000=yCONFIG_TOUCHSCREEN_MMS114=yCONFIG_TOUCHSCREEN_MELFAS_MIP4=y
# CONFIG_TOUCHSCREEN_MTOUCH is not setCONFIG_TOUCHSCREEN_INEXIO=yCONFIG_TOUCHSCREEN_MK712=yCONFIG_TOUCHSCREEN_PENMOUNT=yCONFIG_TOUCHSCREEN_EDT_FT5X06=yCONFIG_TOUCHSCREEN_TOUCHRIGHT=yCONFIG_TOUCHSCREEN_TOUCHWIN=yCONFIG_TOUCHSCREEN_TI_AM335X_TSC=yCONFIG_TOUCHSCREEN_PIXCIR=y
# CONFIG_TOUCHSCREEN_WDT87XX_I2C is not set
# CONFIG_TOUCHSCREEN_USB_COMPOSITE is not setCONFIG_TOUCHSCREEN_MC13783=yCONFIG_TOUCHSCREEN_TOUCHIT213=y
# CONFIG_TOUCHSCREEN_TSC_SERIO is not set
# CONFIG_TOUCHSCREEN_TSC2004 is not setCONFIG_TOUCHSCREEN_TSC2007=y
# CONFIG_TOUCHSCREEN_RM_TS is not set
# CONFIG_TOUCHSCREEN_SILEAD is not setCONFIG_TOUCHSCREEN_SIS_I2C=yCONFIG_TOUCHSCREEN_ST1232=yCONFIG_TOUCHSCREEN_STMFTS=yCONFIG_TOUCHSCREEN_SX8654=yCONFIG_TOUCHSCREEN_TPS6507X=yCONFIG_TOUCHSCREEN_ZET6223=yCONFIG_TOUCHSCREEN_ZFORCE=yCONFIG_TOUCHSCREEN_ROHM_BU21023=y
# CONFIG_INPUT_MISC is not setCONFIG_RMI4_CORE=y
# CONFIG_RMI4_I2C is not setCONFIG_RMI4_SMB=yCONFIG_RMI4_F03=yCONFIG_RMI4_F03_SERIO=yCONFIG_RMI4_2D_SENSOR=yCONFIG_RMI4_F11=yCONFIG_RMI4_F12=yCONFIG_RMI4_F30=yCONFIG_RMI4_F34=y
# CONFIG_RMI4_F55 is not set
#
# Hardware I/O ports
#CONFIG_SERIO=yCONFIG_ARCH_MIGHT_HAVE_PC_SERIO=yCONFIG_SERIO_I8042=yCONFIG_SERIO_SERPORT=y
# CONFIG_SERIO_CT82C710 is not setCONFIG_SERIO_PARKBD=y
# CONFIG_SERIO_PCIPS2 is not setCONFIG_SERIO_LIBPS2=yCONFIG_SERIO_RAW=y
# CONFIG_SERIO_ALTERA_PS2 is not setCONFIG_SERIO_PS2MULT=y
# CONFIG_SERIO_ARC_PS2 is not setCONFIG_SERIO_GPIO_PS2=y
# CONFIG_USERIO is not setCONFIG_GAMEPORT=yCONFIG_GAMEPORT_NS558=yCONFIG_GAMEPORT_L4=y
# CONFIG_GAMEPORT_EMU10K1 is not setCONFIG_GAMEPORT_FM801=y
#
# Character devices
#CONFIG_TTY=y
# CONFIG_VT is not setCONFIG_UNIX98_PTYS=y
# CONFIG_LEGACY_PTYS is not set
# CONFIG_SERIAL_NONSTANDARD is not set
# CONFIG_NOZOMI is not set
# CONFIG_N_GSM is not setCONFIG_TRACE_ROUTER=yCONFIG_TRACE_SINK=y
# CONFIG_GOLDFISH_TTY is not setCONFIG_DEVMEM=yCONFIG_DEVKMEM=y
#
# Serial drivers
#CONFIG_SERIAL_EARLYCON=yCONFIG_SERIAL_8250=yCONFIG_SERIAL_8250_DEPRECATED_OPTIONS=yCONFIG_SERIAL_8250_PNP=y
# CONFIG_SERIAL_8250_FINTEK is not setCONFIG_SERIAL_8250_CONSOLE=yCONFIG_SERIAL_8250_DMA=yCONFIG_SERIAL_8250_PCI=yCONFIG_SERIAL_8250_EXAR=y
# CONFIG_SERIAL_8250_CS is not set
# CONFIG_SERIAL_8250_MEN_MCB is not setCONFIG_SERIAL_8250_NR_UARTS=4CONFIG_SERIAL_8250_RUNTIME_UARTS=4
# CONFIG_SERIAL_8250_EXTENDED is not set
# CONFIG_SERIAL_8250_FSL is not set
# CONFIG_SERIAL_8250_DW is not set
# CONFIG_SERIAL_8250_RT288X is not setCONFIG_SERIAL_8250_LPSS=yCONFIG_SERIAL_8250_MID=y
# CONFIG_SERIAL_8250_MOXA is not set
#
# Non-8250 serial port support
#
# CONFIG_SERIAL_UARTLITE is not set CONFIG_SERIAL_CORE=y CONFIG_SERIAL_CORE_CONSOLE=yCONFIG_SERIAL_JSM=yCONFIG_SERIAL_SCCNXP=y
# CONFIG_SERIAL_SCCNXP_CONSOLE is not set CONFIG_SERIAL_SC16IS7XX=y
# CONFIG_SERIAL_SC16IS7XX_I2C is not set CONFIG_SERIAL_ALTERA_JTAGUART=y CONFIG_SERIAL_ALTERA_JTAGUART_CONSOLE=y
# CONFIG_SERIAL_ALTERA_JTAGUART_CONSOLE_BYPASS is not set CONFIG_SERIAL_ALTERA_UART=y CONFIG_SERIAL_ALTERA_UART_MAXPORTS=4 CONFIG_SERIAL_ALTERA_UART_BAUDRATE=115200
# CONFIG_SERIAL_ALTERA_UART_CONSOLE is not set
# CONFIG_SERIAL_ARC is not set CONFIG_SERIAL_RP2=y CONFIG_SERIAL_RP2_NR_UARTS=32
# CONFIG_SERIAL_FSL_LPUART is not set CONFIG_SERIAL_MEN_Z135=yCONFIG_SERIAL_DEV_BUS=y
# CONFIG_SERIAL_DEV_CTRL_TTYPORT is not set CONFIG_TTY_PRINTK=yCONFIG_PRINTER=yCONFIG_LP_CONSOLE=yCONFIG_PPDEV=yCONFIG_HVC_DRIVER=yCONFIG_VIRTIO_CONSOLE=yCONFIG_IPMI_HANDLER=y CONFIG_IPMI_PROC_INTERFACE=y
# CONFIG_IPMI_PANIC_EVENT is not set CONFIG_IPMI_DEVICE_INTERFACE=yCONFIG_IPMI_SI=yCONFIG_IPMI_SSIF=y
# CONFIG_IPMI_WATCHDOG is not set CONFIG_IPMI_POWEROFF=yCONFIG_HW_RANDOM=yCONFIG_HW_RANDOM_TIMERIOMEM=y
# CONFIG_HW_RANDOM_INTEL is not set CONFIG_HW_RANDOM_AMD=y
# CONFIG_HW_RANDOM_VIA is not set CONFIG_HW_RANDOM_VIRTIO=yCONFIG_NVRAM=yCONFIG_R3964=yCONFIG_APPLICOM=y
#
# PCMCIA character devices
#CONFIG_SYNCLINK_CS=yCONFIG_CARDMAN_4000=y
# CONFIG_CARDMAN_4040 is not set
# CONFIG_SCR24X is not set
# CONFIG_IPWIRELESS is not set
# CONFIG_MWAVE is not setCONFIG_HPET=y
# CONFIG_HPET_MMAP is not setCONFIG_HANGCHECK_TIMER=yCONFIG_TCG_TPM=yCONFIG_HW_RANDOM_TPM=yCONFIG_TCG_TIS_CORE=yCONFIG_TCG_TIS=yCONFIG_TCG_TIS_I2C_ATMEL=y
# CONFIG_TCG_TIS_I2C_INFINEON is not set
# CONFIG_TCG_TIS_I2C_NUVOTON is not setCONFIG_TCG_NSC=yCONFIG_TCG_ATMEL=y
# CONFIG_TCG_INFINEON is not setCONFIG_TCG_CRB=yCONFIG_TCG_VTPM_PROXY=yCONFIG_TCG_TIS_ST33ZP24=yCONFIG_TCG_TIS_ST33ZP24_I2C=y
# CONFIG_TELCLOCK is not setCONFIG_DEVPORT=yCONFIG_XILLYBUS=y
#
# I2C support
#CONFIG_I2C=yCONFIG_ACPI_I2C_OPREGION=yCONFIG_I2C_BOARDINFO=y
# CONFIG_I2C_COMPAT is not set
# CONFIG_I2C_CHARDEV is not setCONFIG_I2C_MUX=y
#
# Multiplexer I2C Chip support
#CONFIG_I2C_MUX_GPIO=yCONFIG_I2C_MUX_LTC4306=yCONFIG_I2C_MUX_PCA9541=y
# CONFIG_I2C_MUX_PCA954x is not set
# CONFIG_I2C_MUX_REG is not setCONFIG_I2C_MUX_MLXCPLD=y
# CONFIG_I2C_HELPER_AUTO is not setCONFIG_I2C_SMBUS=y
#
# I2C Algorithms
#CONFIG_I2C_ALGOBIT=yCONFIG_I2C_ALGOPCF=yCONFIG_I2C_ALGOPCA=y
#
# I2C Hardware Bus support
#
#
# PC SMBus host controller drivers
#CONFIG_I2C_ALI1535=y
# CONFIG_I2C_ALI1563 is not set
# CONFIG_I2C_ALI15X3 is not setCONFIG_I2C_AMD756=y
# CONFIG_I2C_AMD756_S4882 is not setCONFIG_I2C_AMD8111=yCONFIG_I2C_I801=yCONFIG_I2C_ISCH=yCONFIG_I2C_ISMT=y
# CONFIG_I2C_PIIX4 is not setCONFIG_I2C_CHT_WC=y
# CONFIG_I2C_NFORCE2 is not setCONFIG_I2C_SIS5595=yCONFIG_I2C_SIS630=yCONFIG_I2C_SIS96X=yCONFIG_I2C_VIA=yCONFIG_I2C_VIAPRO=y
#
# ACPI drivers
#
# CONFIG_I2C_SCMI is not set
#
# I2C system bus drivers (mostly embedded / system-on-chip) #CONFIG_I2C_CBUS_GPIO=y CONFIG_I2C_DESIGNWARE_CORE=y CONFIG_I2C_DESIGNWARE_PLATFORM=y
# CONFIG_I2C_DESIGNWARE_SLAVE is not set CONFIG_I2C_DESIGNWARE_PCI=y
# CONFIG_I2C_DESIGNWARE_BAYTRAIL is not set CONFIG_I2C_EMEV2=yCONFIG_I2C_GPIO=y
# CONFIG_I2C_GPIO_FAULT_INJECTOR is not set
# CONFIG_I2C_OCORES is not set
# CONFIG_I2C_PCA_PLATFORM is not set
# CONFIG_I2C_PXA_PCI is not set CONFIG_I2C_SIMTEC=yCONFIG_I2C_XILINX=y
#
# External I2C/SMBus adapter drivers
#CONFIG_I2C_PARPORT=yCONFIG_I2C_PARPORT_LIGHT=yCONFIG_I2C_TAOS_EVM=y
#
# Other I2C/SMBus bus drivers
#CONFIG_I2C_MLXCPLD=yCONFIG_I2C_CROS_EC_TUNNEL=yCONFIG_I2C_SLAVE=y
# CONFIG_I2C_SLAVE_EEPROM is not set
# CONFIG_I2C_DEBUG_CORE is not set
# CONFIG_I2C_DEBUG_ALGO is not set
# CONFIG_I2C_DEBUG_BUS is not set
# CONFIG_SPI is not setCONFIG_SPMI=yCONFIG_HSI=yCONFIG_HSI_BOARDINFO=y
#
# HSI controllers
#
#
# HSI clients
#
# CONFIG_HSI_CHAR is not setCONFIG_PPS=y
# CONFIG_PPS_DEBUG is not set
# CONFIG_NTP_PPS is not set
#
# PPS clients support
#
# CONFIG_PPS_CLIENT_KTIMER is not set
# CONFIG_PPS_CLIENT_LDISC is not set
# CONFIG_PPS_CLIENT_PARPORT is not set
# CONFIG_PPS_CLIENT_GPIO is not set
#
# PPS generators support
#
#
# PTP clock support
#CONFIG_PTP_1588_CLOCK=y
#
# Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks. #CONFIG_PTP_1588_CLOCK_KVM=yCONFIG_PINCTRL=yCONFIG_PINMUX=yCONFIG_PINCONF=yCONFIG_GENERIC_PINCONF=yCONFIG_DEBUG_PINCTRL=yCONFIG_PINCTRL_AMD=y
# CONFIG_PINCTRL_MCP23S08 is not set
# CONFIG_PINCTRL_SX150X is not set
# CONFIG_PINCTRL_BAYTRAIL is not set
# CONFIG_PINCTRL_CHERRYVIEW is not setCONFIG_PINCTRL_INTEL=y
# CONFIG_PINCTRL_BROXTON is not set CONFIG_PINCTRL_CANNONLAKE=yCONFIG_PINCTRL_CEDARFORK=y
# CONFIG_PINCTRL_DENVERTON is not set
# CONFIG_PINCTRL_GEMINILAKE is not set CONFIG_PINCTRL_LEWISBURG=yCONFIG_PINCTRL_SUNRISEPOINT=yCONFIG_GPIOLIB=yCONFIG_GPIO_ACPI=yCONFIG_GPIOLIB_IRQCHIP=y
# CONFIG_DEBUG_GPIO is not set
# CONFIG_GPIO_SYSFS is not setCONFIG_GPIO_GENERIC=y
#
# Memory mapped GPIO drivers
#CONFIG_GPIO_AMDPT=yCONFIG_GPIO_DWAPB=y
# CONFIG_GPIO_EXAR is not set
# CONFIG_GPIO_GENERIC_PLATFORM is not setCONFIG_GPIO_ICH=y
# CONFIG_GPIO_LYNXPOINT is not setCONFIG_GPIO_MB86S7X=y
# CONFIG_GPIO_MENZ127 is not set
# CONFIG_GPIO_MOCKUP is not set
# CONFIG_GPIO_VX855 is not set
#
# Port-mapped I/O GPIO drivers
#
# CONFIG_GPIO_F7188X is not setCONFIG_GPIO_IT87=y
# CONFIG_GPIO_SCH is not setCONFIG_GPIO_SCH311X=y
# CONFIG_GPIO_WINBOND is not setCONFIG_GPIO_WS16C48=y
#
# I2C GPIO expanders
#CONFIG_GPIO_ADP5588=y
# CONFIG_GPIO_ADP5588_IRQ is not set
# CONFIG_GPIO_MAX7300 is not set
# CONFIG_GPIO_MAX732X is not setCONFIG_GPIO_PCA953X=y
# CONFIG_GPIO_PCA953X_IRQ is not setCONFIG_GPIO_PCF857X=yCONFIG_GPIO_TPIC2810=y
#
# MFD GPIO expanders
#
# CONFIG_GPIO_BD9571MWV is not set
# CONFIG_GPIO_JANZ_TTL is not set
# CONFIG_GPIO_LP3943 is not setCONFIG_GPIO_TPS65086=y
# CONFIG_GPIO_TPS6586X is not setCONFIG_GPIO_TPS65912=yCONFIG_GPIO_TPS68470=yCONFIG_GPIO_TWL4030=yCONFIG_GPIO_WM8994=y
#
# PCI GPIO expanders
#CONFIG_GPIO_AMD8111=y
# CONFIG_GPIO_BT8XX is not setCONFIG_GPIO_ML_IOH=yCONFIG_GPIO_PCI_IDIO_16=yCONFIG_GPIO_PCIE_IDIO_24=yCONFIG_GPIO_RDC321X=yCONFIG_W1=y
#
# 1-wire Bus Masters
#CONFIG_W1_MASTER_MATROX=yCONFIG_W1_MASTER_DS2482=yCONFIG_W1_MASTER_DS1WM=yCONFIG_W1_MASTER_GPIO=y
#
# 1-wire Slaves
#CONFIG_W1_SLAVE_THERM=y
# CONFIG_W1_SLAVE_SMEM is not setCONFIG_W1_SLAVE_DS2405=y
# CONFIG_W1_SLAVE_DS2408 is not setCONFIG_W1_SLAVE_DS2413=yCONFIG_W1_SLAVE_DS2406=y
# CONFIG_W1_SLAVE_DS2423 is not set
# CONFIG_W1_SLAVE_DS2805 is not setCONFIG_W1_SLAVE_DS2431=y
# CONFIG_W1_SLAVE_DS2433 is not setCONFIG_W1_SLAVE_DS2438=y
# CONFIG_W1_SLAVE_DS2760 is not setCONFIG_W1_SLAVE_DS2780=yCONFIG_W1_SLAVE_DS2781=yCONFIG_W1_SLAVE_DS28E04=y
# CONFIG_W1_SLAVE_DS28E17 is not setCONFIG_POWER_AVS=yCONFIG_POWER_RESET=y
# CONFIG_POWER_RESET_RESTART is not setCONFIG_POWER_SUPPLY=y
# CONFIG_POWER_SUPPLY_DEBUG is not setCONFIG_PDA_POWER=yCONFIG_MAX8925_POWER=y
# CONFIG_TEST_POWER is not setCONFIG_BATTERY_DS2780=y
# CONFIG_BATTERY_DS2781 is not setCONFIG_BATTERY_DS2782=yCONFIG_BATTERY_SBS=yCONFIG_CHARGER_SBS=yCONFIG_MANAGER_SBS=yCONFIG_BATTERY_BQ27XXX=yCONFIG_BATTERY_BQ27XXX_I2C=y
# CONFIG_BATTERY_BQ27XXX_HDQ is not setCONFIG_BATTERY_BQ27XXX_DT_UPDATES_NVM=y
# CONFIG_BATTERY_MAX17040 is not set
# CONFIG_BATTERY_MAX17042 is not set
# CONFIG_BATTERY_MAX1721X is not set
# CONFIG_CHARGER_MAX8903 is not setCONFIG_CHARGER_LP8727=yCONFIG_CHARGER_GPIO=yCONFIG_CHARGER_MANAGER=yCONFIG_CHARGER_LTC3651=y
# CONFIG_CHARGER_MAX14577 is not setCONFIG_CHARGER_MAX8997=yCONFIG_CHARGER_MAX8998=yCONFIG_CHARGER_BQ2415X=yCONFIG_CHARGER_BQ24190=y
# CONFIG_CHARGER_BQ24257 is not setCONFIG_CHARGER_BQ24735=yCONFIG_CHARGER_BQ25890=yCONFIG_CHARGER_SMB347=yCONFIG_BATTERY_GAUGE_LTC2941=yCONFIG_BATTERY_GOLDFISH=yCONFIG_BATTERY_RT5033=y
# CONFIG_CHARGER_RT9455 is not setCONFIG_HWMON=yCONFIG_HWMON_VID=yCONFIG_HWMON_DEBUG_CHIP=y
#
# Native drivers
#CONFIG_SENSORS_AD7414=yCONFIG_SENSORS_AD7418=yCONFIG_SENSORS_ADM1021=yCONFIG_SENSORS_ADM1025=y
# CONFIG_SENSORS_ADM1026 is not setCONFIG_SENSORS_ADM1029=yCONFIG_SENSORS_ADM1031=y
# CONFIG_SENSORS_ADM9240 is not setCONFIG_SENSORS_ADT7X10=yCONFIG_SENSORS_ADT7410=yCONFIG_SENSORS_ADT7411=yCONFIG_SENSORS_ADT7462=yCONFIG_SENSORS_ADT7470=yCONFIG_SENSORS_ADT7475=yCONFIG_SENSORS_ASC7621=y
# CONFIG_SENSORS_K8TEMP is not setCONFIG_SENSORS_K10TEMP=yCONFIG_SENSORS_FAM15H_POWER=yCONFIG_SENSORS_APPLESMC=yCONFIG_SENSORS_ASB100=yCONFIG_SENSORS_ASPEED=y
# CONFIG_SENSORS_ATXP1 is not set
# CONFIG_SENSORS_DS620 is not set
# CONFIG_SENSORS_DS1621 is not set
# CONFIG_SENSORS_DELL_SMM is not setCONFIG_SENSORS_I5K_AMB=yCONFIG_SENSORS_F71805F=y
# CONFIG_SENSORS_F71882FG is not setCONFIG_SENSORS_F75375S=y
# CONFIG_SENSORS_MC13783_ADC is not setCONFIG_SENSORS_FSCHMD=y
# CONFIG_SENSORS_GL518SM is not setCONFIG_SENSORS_GL520SM=yCONFIG_SENSORS_G760A=y
# CONFIG_SENSORS_G762 is not set
# CONFIG_SENSORS_HIH6130 is not setCONFIG_SENSORS_IBMAEM=y
# CONFIG_SENSORS_IBMPEX is not set
# CONFIG_SENSORS_I5500 is not setCONFIG_SENSORS_CORETEMP=y
# CONFIG_SENSORS_IT87 is not setCONFIG_SENSORS_JC42=y
# CONFIG_SENSORS_POWR1220 is not set
# CONFIG_SENSORS_LINEAGE is not set
# CONFIG_SENSORS_LTC2945 is not set
# CONFIG_SENSORS_LTC2990 is not set
# CONFIG_SENSORS_LTC4151 is not setCONFIG_SENSORS_LTC4215=yCONFIG_SENSORS_LTC4222=yCONFIG_SENSORS_LTC4245=y
# CONFIG_SENSORS_LTC4260 is not setCONFIG_SENSORS_LTC4261=y
# CONFIG_SENSORS_MAX16065 is not setCONFIG_SENSORS_MAX1619=yCONFIG_SENSORS_MAX1668=yCONFIG_SENSORS_MAX197=y
# CONFIG_SENSORS_MAX6621 is not setCONFIG_SENSORS_MAX6639=yCONFIG_SENSORS_MAX6642=y
# CONFIG_SENSORS_MAX6650 is not set
# CONFIG_SENSORS_MAX6697 is not setCONFIG_SENSORS_MAX31790=y
# CONFIG_SENSORS_MCP3021 is not set
# CONFIG_SENSORS_TC654 is not setCONFIG_SENSORS_LM63=yCONFIG_SENSORS_LM73=yCONFIG_SENSORS_LM75=y
# CONFIG_SENSORS_LM77 is not setCONFIG_SENSORS_LM78=yCONFIG_SENSORS_LM80=y
# CONFIG_SENSORS_LM83 is not setCONFIG_SENSORS_LM85=yCONFIG_SENSORS_LM87=yCONFIG_SENSORS_LM90=y
# CONFIG_SENSORS_LM92 is not setCONFIG_SENSORS_LM93=yCONFIG_SENSORS_LM95234=yCONFIG_SENSORS_LM95241=yCONFIG_SENSORS_LM95245=y
# CONFIG_SENSORS_PC87360 is not setCONFIG_SENSORS_PC87427=y
# CONFIG_SENSORS_NTC_THERMISTOR is not setCONFIG_SENSORS_NCT6683=y
# CONFIG_SENSORS_NCT6775 is not setCONFIG_SENSORS_NCT7802=y
# CONFIG_SENSORS_NCT7904 is not setCONFIG_SENSORS_PCF8591=yCONFIG_PMBUS=yCONFIG_SENSORS_PMBUS=y
# CONFIG_SENSORS_ADM1275 is not setCONFIG_SENSORS_IBM_CFFPS=yCONFIG_SENSORS_IR35221=yCONFIG_SENSORS_LM25066=yCONFIG_SENSORS_LTC2978=yCONFIG_SENSORS_LTC2978_REGULATOR=yCONFIG_SENSORS_LTC3815=y
# CONFIG_SENSORS_MAX16064 is not setCONFIG_SENSORS_MAX20751=yCONFIG_SENSORS_MAX31785=yCONFIG_SENSORS_MAX34440=yCONFIG_SENSORS_MAX8688=yCONFIG_SENSORS_TPS40422=yCONFIG_SENSORS_TPS53679=yCONFIG_SENSORS_UCD9000=y
# CONFIG_SENSORS_UCD9200 is not setCONFIG_SENSORS_ZL6100=yCONFIG_SENSORS_SHT15=yCONFIG_SENSORS_SHT21=y
CONFIG_SENSORS_SHT3x=y
# CONFIG_SENSORS_SHTC1 is not setCONFIG_SENSORS_SIS5595=yCONFIG_SENSORS_DME1737=yCONFIG_SENSORS_EMC1403=yCONFIG_SENSORS_EMC2103=yCONFIG_SENSORS_EMC6W201=y
# CONFIG_SENSORS_SMSC47M1 is not setCONFIG_SENSORS_SMSC47M192=yCONFIG_SENSORS_SMSC47B397=yCONFIG_SENSORS_STTS751=yCONFIG_SENSORS_SMM665=yCONFIG_SENSORS_ADC128D818=yCONFIG_SENSORS_ADS1015=yCONFIG_SENSORS_ADS7828=yCONFIG_SENSORS_AMC6821=yCONFIG_SENSORS_INA209=yCONFIG_SENSORS_INA2XX=yCONFIG_SENSORS_INA3221=yCONFIG_SENSORS_TC74=yCONFIG_SENSORS_THMC50=yCONFIG_SENSORS_TMP102=y
# CONFIG_SENSORS_TMP103 is not setCONFIG_SENSORS_TMP108=yCONFIG_SENSORS_TMP401=y
# CONFIG_SENSORS_TMP421 is not setCONFIG_SENSORS_VIA_CPUTEMP=y
# CONFIG_SENSORS_VIA686A is not set
# CONFIG_SENSORS_VT1211 is not setCONFIG_SENSORS_VT8231=yCONFIG_SENSORS_W83773G=yCONFIG_SENSORS_W83781D=yCONFIG_SENSORS_W83791D=yCONFIG_SENSORS_W83792D=yCONFIG_SENSORS_W83793=yCONFIG_SENSORS_W83795=yCONFIG_SENSORS_W83795_FANCTRL=yCONFIG_SENSORS_W83L785TS=yCONFIG_SENSORS_W83L786NG=yCONFIG_SENSORS_W83627HF=yCONFIG_SENSORS_W83627EHF=yCONFIG_SENSORS_XGENE=y
#
# ACPI drivers
#CONFIG_SENSORS_ACPI_POWER=y
# CONFIG_SENSORS_ATK0110 is not set CONFIG_THERMAL=y CONFIG_THERMAL_EMERGENCY_POWEROFF_DELAY_MS=0 CONFIG_THERMAL_HWMON=y CONFIG_THERMAL_WRITABLE_TRIPS=y CONFIG_THERMAL_DEFAULT_GOV_STEP_WISE=y
# CONFIG_THERMAL_DEFAULT_GOV_FAIR_SHARE is not set # CONFIG_THERMAL_DEFAULT_GOV_USER_SPACE is not set # CONFIG_THERMAL_DEFAULT_GOV_POWER_ALLOCATOR is not set # CONFIG_THERMAL_GOV_FAIR_SHARE is not set CONFIG_THERMAL_GOV_STEP_WISE=y
# CONFIG_THERMAL_GOV_BANG_BANG is not set
# CONFIG_THERMAL_GOV_USER_SPACE is not set
# CONFIG_THERMAL_GOV_POWER_ALLOCATOR is not set CONFIG_CLOCK_THERMAL=y CONFIG_DEVFREQ_THERMAL=y CONFIG_THERMAL_EMULATION=y CONFIG_INTEL_SOC_DTS_IOSF_CORE=y CONFIG_INTEL_SOC_DTS_THERMAL=y
#
# ACPI INT340X thermal drivers
#
# CONFIG_INT340X_THERMAL is not setCONFIG_INTEL_PCH_THERMAL=y
# CONFIG_WATCHDOG is not setCONFIG_SSB_POSSIBLE=y
# CONFIG_SSB is not setCONFIG_BCMA_POSSIBLE=yCONFIG_BCMA=yCONFIG_BCMA_HOST_PCI_POSSIBLE=y
# CONFIG_BCMA_HOST_PCI is not setCONFIG_BCMA_HOST_SOC=yCONFIG_BCMA_DRIVER_PCI=y
# CONFIG_BCMA_SFLASH is not set
# CONFIG_BCMA_DRIVER_GMAC_CMN is not setCONFIG_BCMA_DRIVER_GPIO=y
# CONFIG_BCMA_DEBUG is not set
#
# Multifunction device drivers
#CONFIG_MFD_CORE=y
# CONFIG_MFD_AS3711 is not set
# CONFIG_PMIC_ADP5520 is not setCONFIG_MFD_AAT2870_CORE=y
# CONFIG_MFD_BCM590XX is not setCONFIG_MFD_BD9571MWV=yCONFIG_MFD_AXP20X=yCONFIG_MFD_AXP20X_I2C=yCONFIG_MFD_CROS_EC=yCONFIG_MFD_CROS_EC_I2C=y
# CONFIG_MFD_CROS_EC_CHARDEV is not set
# CONFIG_PMIC_DA903X is not set
# CONFIG_MFD_DA9052_I2C is not set
# CONFIG_MFD_DA9055 is not setCONFIG_MFD_DA9062=yCONFIG_MFD_DA9063=y
# CONFIG_MFD_DA9150 is not setCONFIG_MFD_MC13XXX=yCONFIG_MFD_MC13XXX_I2C=yCONFIG_HTC_PASIC3=y
# CONFIG_HTC_I2CPLD is not set
# CONFIG_MFD_INTEL_QUARK_I2C_GPIO is not setCONFIG_LPC_ICH=yCONFIG_LPC_SCH=y
# CONFIG_INTEL_SOC_PMIC is not setCONFIG_INTEL_SOC_PMIC_CHTWC=yCONFIG_INTEL_SOC_PMIC_CHTDC_TI=yCONFIG_MFD_INTEL_LPSS=y
# CONFIG_MFD_INTEL_LPSS_ACPI is not setCONFIG_MFD_INTEL_LPSS_PCI=yCONFIG_MFD_JANZ_CMODIO=y
# CONFIG_MFD_KEMPLD is not setCONFIG_MFD_88PM800=yCONFIG_MFD_88PM805=y
# CONFIG_MFD_88PM860X is not setCONFIG_MFD_MAX14577=y
# CONFIG_MFD_MAX77693 is not set
# CONFIG_MFD_MAX77843 is not setCONFIG_MFD_MAX8907=yCONFIG_MFD_MAX8925=yCONFIG_MFD_MAX8997=yCONFIG_MFD_MAX8998=yCONFIG_MFD_MT6397=y
# CONFIG_MFD_MENF21BMC is not setCONFIG_MFD_RETU=y
# CONFIG_MFD_PCF50633 is not setCONFIG_MFD_RDC321X=yCONFIG_MFD_RT5033=y
# CONFIG_MFD_RC5T583 is not set
# CONFIG_MFD_SEC_CORE is not set
# CONFIG_MFD_SI476X_CORE is not setCONFIG_MFD_SM501=y
# CONFIG_MFD_SM501_GPIO is not setCONFIG_MFD_SKY81452=yCONFIG_MFD_SMSC=y
# CONFIG_ABX500_CORE is not setCONFIG_MFD_SYSCON=yCONFIG_MFD_TI_AM335X_TSCADC=yCONFIG_MFD_LP3943=y
# CONFIG_MFD_LP8788 is not setCONFIG_MFD_TI_LMU=y
# CONFIG_MFD_PALMAS is not setCONFIG_TPS6105X=y
# CONFIG_TPS65010 is not setCONFIG_TPS6507X=yCONFIG_MFD_TPS65086=y
# CONFIG_MFD_TPS65090 is not setCONFIG_MFD_TPS68470=y
# CONFIG_MFD_TI_LP873X is not setCONFIG_MFD_TPS6586X=y
# CONFIG_MFD_TPS65910 is not setCONFIG_MFD_TPS65912=yCONFIG_MFD_TPS65912_I2C=y
# CONFIG_MFD_TPS80031 is not setCONFIG_TWL4030_CORE=yCONFIG_MFD_TWL4030_AUDIO=y
# CONFIG_TWL6040_CORE is not setCONFIG_MFD_WL1273_CORE=yCONFIG_MFD_LM3533=y
# CONFIG_MFD_TMIO is not setCONFIG_MFD_VX855=y
# CONFIG_MFD_ARIZONA_I2C is not set
# CONFIG_MFD_WM8400 is not set
# CONFIG_MFD_WM831X_I2C is not set
# CONFIG_MFD_WM8350_I2C is not setCONFIG_MFD_WM8994=yCONFIG_RAVE_SP_CORE=yCONFIG_REGULATOR=y
# CONFIG_REGULATOR_DEBUG is not setCONFIG_REGULATOR_FIXED_VOLTAGE=yCONFIG_REGULATOR_VIRTUAL_CONSUMER=yCONFIG_REGULATOR_USERSPACE_CONSUMER=yCONFIG_REGULATOR_88PM800=yCONFIG_REGULATOR_ACT8865=y
# CONFIG_REGULATOR_AD5398 is not setCONFIG_REGULATOR_ANATOP=yCONFIG_REGULATOR_AAT2870=yCONFIG_REGULATOR_AXP20X=yCONFIG_REGULATOR_BD9571MWV=yCONFIG_REGULATOR_DA9062=yCONFIG_REGULATOR_DA9063=y
# CONFIG_REGULATOR_DA9210 is not setCONFIG_REGULATOR_DA9211=y
# CONFIG_REGULATOR_FAN53555 is not setCONFIG_REGULATOR_GPIO=y
# CONFIG_REGULATOR_ISL9305 is not set
# CONFIG_REGULATOR_ISL6271A is not setCONFIG_REGULATOR_LM363X=y
# CONFIG_REGULATOR_LP3971 is not setCONFIG_REGULATOR_LP3972=yCONFIG_REGULATOR_LP872X=yCONFIG_REGULATOR_LP8755=y
# CONFIG_REGULATOR_LTC3589 is not setCONFIG_REGULATOR_LTC3676=yCONFIG_REGULATOR_MAX14577=yCONFIG_REGULATOR_MAX1586=y
# CONFIG_REGULATOR_MAX8649 is not set
# CONFIG_REGULATOR_MAX8660 is not setCONFIG_REGULATOR_MAX8907=yCONFIG_REGULATOR_MAX8925=yCONFIG_REGULATOR_MAX8952=yCONFIG_REGULATOR_MAX8997=yCONFIG_REGULATOR_MAX8998=yCONFIG_REGULATOR_MC13XXX_CORE=yCONFIG_REGULATOR_MC13783=yCONFIG_REGULATOR_MC13892=y
# CONFIG_REGULATOR_MT6311 is not setCONFIG_REGULATOR_MT6323=yCONFIG_REGULATOR_MT6397=yCONFIG_REGULATOR_PFUZE100=y
# CONFIG_REGULATOR_PV88060 is not setCONFIG_REGULATOR_PV88080=yCONFIG_REGULATOR_PV88090=y
# CONFIG_REGULATOR_PWM is not setCONFIG_REGULATOR_QCOM_SPMI=yCONFIG_REGULATOR_RT5033=yCONFIG_REGULATOR_SKY81452=yCONFIG_REGULATOR_TPS51632=yCONFIG_REGULATOR_TPS6105X=yCONFIG_REGULATOR_TPS62360=yCONFIG_REGULATOR_TPS65023=yCONFIG_REGULATOR_TPS6507X=yCONFIG_REGULATOR_TPS65086=yCONFIG_REGULATOR_TPS65132=yCONFIG_REGULATOR_TPS6586X=yCONFIG_REGULATOR_TPS65912=yCONFIG_REGULATOR_TWL4030=y
# CONFIG_REGULATOR_WM8994 is not set
# CONFIG_RC_CORE is not set
# CONFIG_MEDIA_SUPPORT is not set
#
# Graphics support
#CONFIG_AGP=yCONFIG_AGP_AMD64=y
# CONFIG_AGP_INTEL is not setCONFIG_AGP_SIS=y
# CONFIG_AGP_VIA is not setCONFIG_VGA_ARB=yCONFIG_VGA_ARB_MAX_GPUS=16
# CONFIG_VGA_SWITCHEROO is not set
# CONFIG_DRM is not set
#
# ACP (Audio CoProcessor) Configuration
#
#
# AMD Library routines
#
# CONFIG_CHASH is not set
# CONFIG_DRM_LIB_RANDOM is not set
#
# Frame buffer Devices
#CONFIG_FB=yCONFIG_FIRMWARE_EDID=yCONFIG_FB_CMDLINE=yCONFIG_FB_NOTIFY=yCONFIG_FB_DDC=y CONFIG_FB_BOOT_VESA_SUPPORT=y CONFIG_FB_CFB_FILLRECT=y CONFIG_FB_CFB_COPYAREA=y CONFIG_FB_CFB_IMAGEBLIT=y
# CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set CONFIG_FB_SYS_FILLRECT=y CONFIG_FB_SYS_COPYAREA=y CONFIG_FB_SYS_IMAGEBLIT=y
# CONFIG_FB_PROVIDE_GET_FB_UNMAPPED_AREA is not set CONFIG_FB_FOREIGN_ENDIAN=y CONFIG_FB_BOTH_ENDIAN=y
# CONFIG_FB_BIG_ENDIAN is not set
# CONFIG_FB_LITTLE_ENDIAN is not set CONFIG_FB_SYS_FOPS=y CONFIG_FB_DEFERRED_IO=yCONFIG_FB_HECUBA=yCONFIG_FB_SVGALIB=y
# CONFIG_FB_MACMODES is not set CONFIG_FB_BACKLIGHT=y CONFIG_FB_MODE_HELPERS=y CONFIG_FB_TILEBLITTING=y
#
# Frame buffer hardware drivers
#CONFIG_FB_CIRRUS=y
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_ARC is not setCONFIG_FB_ASILIANT=yCONFIG_FB_IMSTT=y
# CONFIG_FB_VGA16 is not setCONFIG_FB_VESA=y
# CONFIG_FB_EFI is not setCONFIG_FB_N411=yCONFIG_FB_HGA=yCONFIG_FB_OPENCORES=y
# CONFIG_FB_S1D13XXX is not setCONFIG_FB_NVIDIA=y
# CONFIG_FB_NVIDIA_I2C is not setCONFIG_FB_NVIDIA_DEBUG=y
# CONFIG_FB_NVIDIA_BACKLIGHT is not setCONFIG_FB_RIVA=yCONFIG_FB_RIVA_I2C=yCONFIG_FB_RIVA_DEBUG=y
# CONFIG_FB_RIVA_BACKLIGHT is not setCONFIG_FB_I740=y
# CONFIG_FB_LE80578 is not setCONFIG_FB_MATROX=yCONFIG_FB_MATROX_MILLENIUM=yCONFIG_FB_MATROX_MYSTIQUE=yCONFIG_FB_MATROX_G=yCONFIG_FB_MATROX_I2C=yCONFIG_FB_MATROX_MAVEN=yCONFIG_FB_RADEON=yCONFIG_FB_RADEON_I2C=yCONFIG_FB_RADEON_BACKLIGHT=y
# CONFIG_FB_RADEON_DEBUG is not setCONFIG_FB_ATY128=y
# CONFIG_FB_ATY128_BACKLIGHT is not setCONFIG_FB_ATY=yCONFIG_FB_ATY_CT=y
# CONFIG_FB_ATY_GENERIC_LCD is not set
# CONFIG_FB_ATY_GX is not set
# CONFIG_FB_ATY_BACKLIGHT is not setCONFIG_FB_S3=yCONFIG_FB_S3_DDC=yCONFIG_FB_SAVAGE=yCONFIG_FB_SAVAGE_I2C=yCONFIG_FB_SAVAGE_ACCEL=yCONFIG_FB_SIS=yCONFIG_FB_SIS_300=y
# CONFIG_FB_SIS_315 is not setCONFIG_FB_VIA=yCONFIG_FB_VIA_DIRECT_PROCFS=y
# CONFIG_FB_VIA_X_COMPATIBILITY is not set
# CONFIG_FB_NEOMAGIC is not setCONFIG_FB_KYRO=yCONFIG_FB_3DFX=y
# CONFIG_FB_3DFX_ACCEL is not setCONFIG_FB_3DFX_I2C=yCONFIG_FB_VOODOO1=y
# CONFIG_FB_VT8623 is not setCONFIG_FB_TRIDENT=yCONFIG_FB_ARK=y
# CONFIG_FB_PM3 is not setCONFIG_FB_CARMINE=yCONFIG_FB_CARMINE_DRAM_EVAL=y
# CONFIG_CARMINE_DRAM_CUSTOM is not set
# CONFIG_FB_SM501 is not setCONFIG_FB_IBM_GXT4500=yCONFIG_FB_GOLDFISH=y
# CONFIG_FB_VIRTUAL is not setCONFIG_FB_METRONOME=y
# CONFIG_FB_MB862XX is not setCONFIG_FB_BROADSHEET=y
# CONFIG_FB_AUO_K190X is not setCONFIG_FB_SIMPLE=y
# CONFIG_FB_SM712 is not setCONFIG_BACKLIGHT_LCD_SUPPORT=yCONFIG_LCD_CLASS_DEVICE=y
# CONFIG_LCD_PLATFORM is not setCONFIG_BACKLIGHT_CLASS_DEVICE=yCONFIG_BACKLIGHT_GENERIC=y
# CONFIG_BACKLIGHT_LM3533 is not set
# CONFIG_BACKLIGHT_PWM is not setCONFIG_BACKLIGHT_MAX8925=y
# CONFIG_BACKLIGHT_APPLE is not setCONFIG_BACKLIGHT_PM8941_WLED=yCONFIG_BACKLIGHT_SAHARA=y
# CONFIG_BACKLIGHT_ADP8860 is not set
# CONFIG_BACKLIGHT_ADP8870 is not setCONFIG_BACKLIGHT_AAT2870=yCONFIG_BACKLIGHT_LM3630A=yCONFIG_BACKLIGHT_LM3639=yCONFIG_BACKLIGHT_LP855X=yCONFIG_BACKLIGHT_PANDORA=y
# CONFIG_BACKLIGHT_SKY81452 is not set
# CONFIG_BACKLIGHT_GPIO is not set
# CONFIG_BACKLIGHT_LV5207LP is not set
# CONFIG_BACKLIGHT_BD6107 is not set
# CONFIG_BACKLIGHT_ARCXCNN is not setCONFIG_VGASTATE=y
# CONFIG_LOGO is not set
# CONFIG_SOUND is not set
#
# HID support
#CONFIG_HID=y
# CONFIG_HID_BATTERY_STRENGTH is not set
# CONFIG_HIDRAW is not setCONFIG_UHID=y
# CONFIG_HID_GENERIC is not set
#
# Special HID drivers
#
# CONFIG_HID_A4TECH is not setCONFIG_HID_ACRUX=y
# CONFIG_HID_ACRUX_FF is not set
# CONFIG_HID_APPLE is not setCONFIG_HID_ASUS=y
# CONFIG_HID_AUREAL is not set
# CONFIG_HID_BELKIN is not set
# CONFIG_HID_CHERRY is not setCONFIG_HID_CHICONY=yCONFIG_HID_CMEDIA=y
# CONFIG_HID_CYPRESS is not setCONFIG_HID_DRAGONRISE=y
# CONFIG_DRAGONRISE_FF is not setCONFIG_HID_EMS_FF=yCONFIG_HID_ELECOM=yCONFIG_HID_EZKEY=y
# CONFIG_HID_GEMBIRD is not setCONFIG_HID_GFRM=yCONFIG_HID_KEYTOUCH=yCONFIG_HID_KYE=y
# CONFIG_HID_WALTOP is not set
# CONFIG_HID_GYRATION is not setCONFIG_HID_ICADE=yCONFIG_HID_ITE=yCONFIG_HID_JABRA=yCONFIG_HID_TWINHAN=y
# CONFIG_HID_KENSINGTON is not setCONFIG_HID_LCPOWER=yCONFIG_HID_LED=yCONFIG_HID_LENOVO=yCONFIG_HID_LOGITECH=yCONFIG_HID_LOGITECH_HIDPP=y
# CONFIG_LOGITECH_FF is not setCONFIG_LOGIRUMBLEPAD2_FF=yCONFIG_LOGIG940_FF=yCONFIG_LOGIWHEELS_FF=yCONFIG_HID_MAGICMOUSE=yCONFIG_HID_MAYFLASH=y
# CONFIG_HID_MICROSOFT is not setCONFIG_HID_MONTEREY=y
# CONFIG_HID_MULTITOUCH is not set
# CONFIG_HID_NTI is not set
# CONFIG_HID_ORTEK is not set
# CONFIG_HID_PANTHERLORD is not setCONFIG_HID_PETALYNX=yCONFIG_HID_PICOLCD=y
# CONFIG_HID_PICOLCD_FB is not setCONFIG_HID_PICOLCD_BACKLIGHT=y
# CONFIG_HID_PICOLCD_LCD is not set
# CONFIG_HID_PICOLCD_LEDS is not set
# CONFIG_HID_PLANTRONICS is not setCONFIG_HID_PRIMAX=yCONFIG_HID_SAITEK=yCONFIG_HID_SAMSUNG=yCONFIG_HID_SPEEDLINK=yCONFIG_HID_STEELSERIES=yCONFIG_HID_SUNPLUS=yCONFIG_HID_RMI=yCONFIG_HID_GREENASIA=yCONFIG_GREENASIA_FF=yCONFIG_HID_SMARTJOYPLUS=yCONFIG_SMARTJOYPLUS_FF=yCONFIG_HID_TIVO=y
# CONFIG_HID_TOPSEED is not setCONFIG_HID_THINGM=y
# CONFIG_HID_THRUSTMASTER is not setCONFIG_HID_UDRAW_PS3=yCONFIG_HID_WIIMOTE=yCONFIG_HID_XINMO=yCONFIG_HID_ZEROPLUS=y
# CONFIG_ZEROPLUS_FF is not setCONFIG_HID_ZYDACRON=yCONFIG_HID_SENSOR_HUB=yCONFIG_HID_SENSOR_CUSTOM_SENSOR=yCONFIG_HID_ALPS=y
#
# I2C HID support
#CONFIG_I2C_HID=y
#
# Intel ISH HID support
#CONFIG_INTEL_ISH_HID=yCONFIG_USB_OHCI_LITTLE_ENDIAN=yCONFIG_USB_SUPPORT=yCONFIG_USB_ARCH_HAS_HCD=y
# CONFIG_USB is not setCONFIG_USB_PCI=y
#
# USB port drivers
#
#
# USB Physical Layer drivers
#
# CONFIG_USB_PHY is not set
# CONFIG_NOP_USB_XCEIV is not set
# CONFIG_USB_GPIO_VBUS is not set
# CONFIG_TAHVO_USB is not set
# CONFIG_USB_GADGET is not set
# CONFIG_TYPEC is not set
# CONFIG_USB_ULPI_BUS is not setCONFIG_UWB=y
# CONFIG_UWB_WHCI is not set
# CONFIG_MMC is not setCONFIG_MEMSTICK=yCONFIG_MEMSTICK_DEBUG=y
#
# MemoryStick drivers
#CONFIG_MEMSTICK_UNSAFE_RESUME=y
#
# MemoryStick Host Controller Drivers
#CONFIG_MEMSTICK_TIFM_MS=yCONFIG_MEMSTICK_JMICRON_38X=yCONFIG_MEMSTICK_R592=yCONFIG_MEMSTICK_REALTEK_PCI=yCONFIG_NEW_LEDS=yCONFIG_LEDS_CLASS=yCONFIG_LEDS_CLASS_FLASH=yCONFIG_LEDS_BRIGHTNESS_HW_CHANGED=y
#
# LED drivers
#
# CONFIG_LEDS_AS3645A is not setCONFIG_LEDS_LM3530=yCONFIG_LEDS_LM3533=yCONFIG_LEDS_LM3642=yCONFIG_LEDS_MT6323=yCONFIG_LEDS_PCA9532=y
# CONFIG_LEDS_PCA9532_GPIO is not set
# CONFIG_LEDS_GPIO is not setCONFIG_LEDS_LP3944=y
# CONFIG_LEDS_LP3952 is not setCONFIG_LEDS_LP55XX_COMMON=yCONFIG_LEDS_LP5521=yCONFIG_LEDS_LP5523=yCONFIG_LEDS_LP5562=y
# CONFIG_LEDS_LP8501 is not setCONFIG_LEDS_PCA955X=yCONFIG_LEDS_PCA955X_GPIO=y
# CONFIG_LEDS_PCA963X is not set
# CONFIG_LEDS_PWM is not setCONFIG_LEDS_REGULATOR=y
# CONFIG_LEDS_BD2802 is not setCONFIG_LEDS_LT3593=yCONFIG_LEDS_MC13783=yCONFIG_LEDS_TCA6507=yCONFIG_LEDS_TLC591XX=y
# CONFIG_LEDS_MAX8997 is not set
CONFIG_LEDS_LM355x=y
#
# LED driver for blink(1) USB RGB LED is under Special HID drivers (HID_THINGM) #CONFIG_LEDS_BLINKM=yCONFIG_LEDS_USER=yCONFIG_LEDS_NIC78BX=y
#
# LED Triggers
#
# CONFIG_LEDS_TRIGGERS is not setCONFIG_ACCESSIBILITY=y
# CONFIG_INFINIBAND is not setCONFIG_EDAC_ATOMIC_SCRUB=yCONFIG_EDAC_SUPPORT=yCONFIG_EDAC=y
# CONFIG_EDAC_LEGACY_SYSFS is not set
# CONFIG_EDAC_DEBUG is not setCONFIG_EDAC_E752X=yCONFIG_EDAC_I82975X=yCONFIG_EDAC_I3000=y
# CONFIG_EDAC_I3200 is not set
# CONFIG_EDAC_IE31200 is not setCONFIG_EDAC_X38=yCONFIG_EDAC_I5400=yCONFIG_EDAC_I5000=yCONFIG_EDAC_I5100=yCONFIG_EDAC_I7300=yCONFIG_RTC_LIB=yCONFIG_RTC_MC146818_LIB=yCONFIG_RTC_CLASS=yCONFIG_RTC_HCTOSYS=yCONFIG_RTC_HCTOSYS_DEVICE="rtc0"
# CONFIG_RTC_SYSTOHC is not setCONFIG_RTC_DEBUG=yCONFIG_RTC_NVMEM=y
#
# RTC interfaces
#CONFIG_RTC_INTF_SYSFS=yCONFIG_RTC_INTF_PROC=y
# CONFIG_RTC_INTF_DEV is not setCONFIG_RTC_DRV_TEST=y
#
# I2C RTC drivers
#CONFIG_RTC_DRV_88PM80X=y
# CONFIG_RTC_DRV_ABB5ZES3 is not setCONFIG_RTC_DRV_ABX80X=yCONFIG_RTC_DRV_DS1307=y
# CONFIG_RTC_DRV_DS1307_HWMON is not setCONFIG_RTC_DRV_DS1307_CENTURY=yCONFIG_RTC_DRV_DS1374=yCONFIG_RTC_DRV_DS1374_WDT=yCONFIG_RTC_DRV_DS1672=y
# CONFIG_RTC_DRV_MAX6900 is not setCONFIG_RTC_DRV_MAX8907=yCONFIG_RTC_DRV_MAX8925=yCONFIG_RTC_DRV_MAX8998=y
# CONFIG_RTC_DRV_MAX8997 is not setCONFIG_RTC_DRV_RS5C372=y
# CONFIG_RTC_DRV_ISL1208 is not setCONFIG_RTC_DRV_ISL12022=yCONFIG_RTC_DRV_X1205=yCONFIG_RTC_DRV_PCF8523=yCONFIG_RTC_DRV_PCF85063=y
# CONFIG_RTC_DRV_PCF85363 is not setCONFIG_RTC_DRV_PCF8563=yCONFIG_RTC_DRV_PCF8583=y
# CONFIG_RTC_DRV_M41T80 is not setCONFIG_RTC_DRV_BQ32K=yCONFIG_RTC_DRV_TPS6586X=yCONFIG_RTC_DRV_S35390A=yCONFIG_RTC_DRV_FM3130=yCONFIG_RTC_DRV_RX8010=yCONFIG_RTC_DRV_RX8581=yCONFIG_RTC_DRV_RX8025=y
# CONFIG_RTC_DRV_EM3027 is not setCONFIG_RTC_DRV_RV8803=y
#
# SPI RTC drivers
#CONFIG_RTC_I2C_AND_SPI=y
#
# SPI and I2C RTC drivers
#CONFIG_RTC_DRV_DS3232=y
# CONFIG_RTC_DRV_DS3232_HWMON is not setCONFIG_RTC_DRV_PCF2127=y
# CONFIG_RTC_DRV_RV3029C2 is not set
#
# Platform RTC drivers
#CONFIG_RTC_DRV_CMOS=y
# CONFIG_RTC_DRV_DS1286 is not setCONFIG_RTC_DRV_DS1511=yCONFIG_RTC_DRV_DS1553=y
# CONFIG_RTC_DRV_DS1685_FAMILY is not set
# CONFIG_RTC_DRV_DS1742 is not setCONFIG_RTC_DRV_DS2404=yCONFIG_RTC_DRV_DA9063=yCONFIG_RTC_DRV_STK17TA8=yCONFIG_RTC_DRV_M48T86=yCONFIG_RTC_DRV_M48T35=yCONFIG_RTC_DRV_M48T59=y
# CONFIG_RTC_DRV_MSM6242 is not setCONFIG_RTC_DRV_BQ4802=yCONFIG_RTC_DRV_RP5C01=y
# CONFIG_RTC_DRV_V3020 is not setCONFIG_RTC_DRV_CROS_EC=y
#
# on-CPU RTC drivers
#
# CONFIG_RTC_DRV_FTRTC010 is not setCONFIG_RTC_DRV_MC13XXX=y
# CONFIG_RTC_DRV_MT6397 is not set
#
# HID Sensor RTC drivers
#CONFIG_DMADEVICES=yCONFIG_DMADEVICES_DEBUG=y
# CONFIG_DMADEVICES_VDEBUG is not set
#
# DMA Devices
#CONFIG_DMA_ENGINE=yCONFIG_DMA_VIRTUAL_CHANNELS=yCONFIG_DMA_ACPI=yCONFIG_ALTERA_MSGDMA=yCONFIG_INTEL_IDMA64=yCONFIG_INTEL_IOATDMA=yCONFIG_INTEL_MIC_X100_DMA=yCONFIG_QCOM_HIDMA_MGMT=y
# CONFIG_QCOM_HIDMA is not setCONFIG_DW_DMAC_CORE=y
# CONFIG_DW_DMAC is not setCONFIG_DW_DMAC_PCI=yCONFIG_HSU_DMA=y
#
# DMA Clients
#
# CONFIG_ASYNC_TX_DMA is not set
# CONFIG_DMATEST is not setCONFIG_DMA_ENGINE_RAID=y
#
# DMABUF options
#
# CONFIG_SYNC_FILE is not setCONFIG_DCA=y
# CONFIG_AUXDISPLAY is not setCONFIG_CHARLCD=yCONFIG_PANEL=yCONFIG_PANEL_PARPORT=0CONFIG_PANEL_PROFILE=5
# CONFIG_PANEL_CHANGE_MESSAGE is not setCONFIG_UIO=yCONFIG_UIO_CIF=yCONFIG_UIO_PDRV_GENIRQ=yCONFIG_UIO_DMEM_GENIRQ=y
# CONFIG_UIO_AEC is not setCONFIG_UIO_SERCOS3=yCONFIG_UIO_PCI_GENERIC=y
# CONFIG_UIO_NETX is not setCONFIG_UIO_PRUSS=yCONFIG_UIO_MF624=y
# CONFIG_VIRT_DRIVERS is not setCONFIG_VIRTIO=yCONFIG_VIRTIO_MENU=yCONFIG_VIRTIO_PCI=y
# CONFIG_VIRTIO_PCI_LEGACY is not set
# CONFIG_VIRTIO_BALLOON is not set
# CONFIG_VIRTIO_INPUT is not setCONFIG_VIRTIO_MMIO=y
# CONFIG_VIRTIO_MMIO_CMDLINE_DEVICES is not set
#
# Microsoft Hyper-V guest support
#
# CONFIG_HYPERV is not set
# CONFIG_HYPERV_TSCPAGE is not set
# CONFIG_STAGING is not set
# CONFIG_X86_PLATFORM_DEVICES is not setCONFIG_PMC_ATOM=y
# CONFIG_GOLDFISH_BUS is not setCONFIG_GOLDFISH_PIPE=yCONFIG_CHROME_PLATFORMS=yCONFIG_CHROMEOS_PSTORE=yCONFIG_CROS_EC_LPC=yCONFIG_CROS_EC_LPC_MEC=yCONFIG_CROS_EC_PROTO=yCONFIG_CROS_KBD_LED_BACKLIGHT=yCONFIG_MELLANOX_PLATFORM=yCONFIG_MLXREG_HOTPLUG=yCONFIG_CLKDEV_LOOKUP=yCONFIG_HAVE_CLK_PREPARE=yCONFIG_COMMON_CLK=y
#
# Common Clock Framework
#
# CONFIG_COMMON_CLK_SI5351 is not setCONFIG_COMMON_CLK_CDCE706=yCONFIG_COMMON_CLK_CS2000_CP=y
# CONFIG_COMMON_CLK_NXP is not setCONFIG_COMMON_CLK_PWM=y
# CONFIG_COMMON_CLK_PXA is not set
# CONFIG_COMMON_CLK_PIC32 is not setCONFIG_HWSPINLOCK=y
#
# Clock Source drivers
#CONFIG_CLKEVT_I8253=yCONFIG_CLKBLD_I8253=y
# CONFIG_ATMEL_PIT is not set
# CONFIG_SH_TIMER_CMT is not set
# CONFIG_SH_TIMER_MTU2 is not set
# CONFIG_SH_TIMER_TMU is not set
# CONFIG_EM_TIMER_STI is not setCONFIG_MAILBOX=yCONFIG_PCC=yCONFIG_ALTERA_MBOX=y
# CONFIG_IOMMU_SUPPORT is not set
#
# Remoteproc drivers
#
# CONFIG_REMOTEPROC is not set
#
# Rpmsg drivers
#CONFIG_RPMSG=y
# CONFIG_RPMSG_CHAR is not setCONFIG_RPMSG_QCOM_GLINK_NATIVE=yCONFIG_RPMSG_QCOM_GLINK_RPM=yCONFIG_RPMSG_VIRTIO=y
# CONFIG_SOUNDWIRE is not set
#
# SOC (System On Chip) specific Drivers
#
#
# Amlogic SoC drivers
#
#
# Broadcom SoC drivers
#
#
# i.MX SoC drivers
#
#
# Qualcomm SoC drivers
#
# CONFIG_SUNXI_SRAM is not set
# CONFIG_SOC_TI is not set
#
# Xilinx SoC drivers
#CONFIG_XILINX_VCU=yCONFIG_PM_DEVFREQ=y
#
# DEVFREQ Governors
#CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND=y
# CONFIG_DEVFREQ_GOV_PERFORMANCE is not setCONFIG_DEVFREQ_GOV_POWERSAVE=yCONFIG_DEVFREQ_GOV_USERSPACE=yCONFIG_DEVFREQ_GOV_PASSIVE=y
#
# DEVFREQ Drivers
#CONFIG_PM_DEVFREQ_EVENT=yCONFIG_EXTCON=y
#
# Extcon Device Drivers
#
# CONFIG_EXTCON_GPIO is not setCONFIG_EXTCON_INTEL_INT3496=yCONFIG_EXTCON_INTEL_CHT_WC=yCONFIG_EXTCON_MAX14577=yCONFIG_EXTCON_MAX3355=yCONFIG_EXTCON_MAX8997=yCONFIG_EXTCON_RT8973A=y
# CONFIG_EXTCON_SM5502 is not setCONFIG_EXTCON_USB_GPIO=yCONFIG_EXTCON_USBC_CROS_EC=yCONFIG_MEMORY=y
# CONFIG_IIO is not set
# CONFIG_NTB is not set
# CONFIG_VME_BUS is not setCONFIG_PWM=yCONFIG_PWM_SYSFS=yCONFIG_PWM_CROS_EC=y
# CONFIG_PWM_LP3943 is not setCONFIG_PWM_LPSS=yCONFIG_PWM_LPSS_PCI=yCONFIG_PWM_LPSS_PLATFORM=y
# CONFIG_PWM_PCA9685 is not set
# CONFIG_PWM_TWL is not setCONFIG_PWM_TWL_LED=y
#
# IRQ chip support
#CONFIG_ARM_GIC_MAX_NR=1
# CONFIG_ARM_GIC_V3_ITS is not setCONFIG_IPACK_BUS=yCONFIG_BOARD_TPCI200=yCONFIG_SERIAL_IPOCTAL=yCONFIG_RESET_CONTROLLER=y
# CONFIG_RESET_ATH79 is not set
# CONFIG_RESET_AXS10X is not set
# CONFIG_RESET_BERLIN is not set
# CONFIG_RESET_IMX7 is not set
# CONFIG_RESET_LANTIQ is not set
# CONFIG_RESET_LPC18XX is not set
# CONFIG_RESET_MESON is not set
# CONFIG_RESET_PISTACHIO is not set
# CONFIG_RESET_SIMPLE is not set
# CONFIG_RESET_SUNXI is not setCONFIG_RESET_TI_SYSCON=y
# CONFIG_RESET_ZYNQ is not set
# CONFIG_RESET_TEGRA_BPMP is not setCONFIG_FMC=y
# CONFIG_FMC_FAKEDEV is not setCONFIG_FMC_TRIVIAL=yCONFIG_FMC_WRITE_EEPROM=yCONFIG_FMC_CHARDEV=y
#
# PHY Subsystem
#CONFIG_GENERIC_PHY=yCONFIG_BCM_KONA_USB2_PHY=yCONFIG_PHY_PXA_28NM_HSIC=y
# CONFIG_PHY_PXA_28NM_USB2 is not set
# CONFIG_POWERCAP is not setCONFIG_MCB=yCONFIG_MCB_PCI=yCONFIG_MCB_LPC=y
#
# Performance monitor support
#CONFIG_RAS=yCONFIG_THUNDERBOLT=y
#
# Android
#CONFIG_ANDROID=yCONFIG_ANDROID_BINDER_IPC=y CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder" CONFIG_ANDROID_BINDER_IPC_SELFTEST=y CONFIG_DAX=yCONFIG_NVMEM=y
# CONFIG_STM is not setCONFIG_INTEL_TH=y
# CONFIG_INTEL_TH_PCI is not set
# CONFIG_INTEL_TH_GTH is not set
# CONFIG_INTEL_TH_MSU is not set CONFIG_INTEL_TH_PTI=yCONFIG_INTEL_TH_DEBUG=yCONFIG_FPGA=yCONFIG_ALTERA_PR_IP_CORE=y CONFIG_FPGA_MGR_ALTERA_CVP=y
# CONFIG_FPGA_BRIDGE is not setCONFIG_FSI=y
# CONFIG_FSI_MASTER_GPIO is not set
# CONFIG_FSI_MASTER_HUB is not set
# CONFIG_FSI_SCOM is not setCONFIG_PM_OPP=y
# CONFIG_UNISYS_VISORBUS is not set CONFIG_SIOX=yCONFIG_SIOX_BUS_GPIO=y
# CONFIG_SLIMBUS is not set
#
# Firmware Drivers
#
# CONFIG_EDD is not set
# CONFIG_FIRMWARE_MEMMAP is not set
# CONFIG_DELL_RBU is not setCONFIG_DCDBAS=y
# CONFIG_ISCSI_IBFT_FIND is not setCONFIG_FW_CFG_SYSFS=yCONFIG_FW_CFG_SYSFS_CMDLINE=yCONFIG_GOOGLE_FIRMWARE=yCONFIG_GOOGLE_COREBOOT_TABLE=yCONFIG_GOOGLE_COREBOOT_TABLE_ACPI=y
# CONFIG_GOOGLE_MEMCONSOLE_COREBOOT is not setCONFIG_GOOGLE_VPD=y
#
# EFI (Extensible Firmware Interface) Support
#CONFIG_EFI_VARS=yCONFIG_EFI_ESRT=yCONFIG_EFI_VARS_PSTORE=yCONFIG_EFI_VARS_PSTORE_DEFAULT_DISABLE=y
# CONFIG_EFI_RUNTIME_MAP is not setCONFIG_EFI_FAKE_MEMMAP=yCONFIG_EFI_MAX_FAKE_MEM=8CONFIG_EFI_RUNTIME_WRAPPERS=yCONFIG_EFI_BOOTLOADER_CONTROL=yCONFIG_EFI_CAPSULE_LOADER=yCONFIG_EFI_TEST=yCONFIG_UEFI_CPER=y
# CONFIG_EFI_DEV_PATH_PARSER is not set
#
# Tegra firmware driver
#
#
# File systems
#CONFIG_DCACHE_WORD_ACCESS=y CONFIG_FS_POSIX_ACL=yCONFIG_EXPORTFS=y
# CONFIG_EXPORTFS_BLOCK_OPS is not set CONFIG_FILE_LOCKING=y CONFIG_MANDATORY_FILE_LOCKING=y CONFIG_FS_ENCRYPTION=yCONFIG_FSNOTIFY=yCONFIG_DNOTIFY=yCONFIG_INOTIFY_USER=yCONFIG_FANOTIFY=y CONFIG_FANOTIFY_ACCESS_PERMISSIONS=y CONFIG_QUOTA=y
# CONFIG_QUOTA_NETLINK_INTERFACE is not set CONFIG_PRINT_QUOTA_WARNING=y CONFIG_QUOTA_DEBUG=yCONFIG_QUOTA_TREE=yCONFIG_QFMT_V1=yCONFIG_QFMT_V2=yCONFIG_QUOTACTL=yCONFIG_QUOTACTL_COMPAT=y
# CONFIG_AUTOFS4_FS is not set CONFIG_FUSE_FS=yCONFIG_CUSE=yCONFIG_OVERLAY_FS=y CONFIG_OVERLAY_FS_REDIRECT_DIR=y
# CONFIG_OVERLAY_FS_REDIRECT_ALWAYS_FOLLOW is not set CONFIG_OVERLAY_FS_INDEX=y
# CONFIG_OVERLAY_FS_NFS_EXPORT is not set
#
# Caches
#CONFIG_FSCACHE=y
# CONFIG_FSCACHE_STATS is not set
# CONFIG_FSCACHE_HISTOGRAM is not set
# CONFIG_FSCACHE_DEBUG is not set
# CONFIG_FSCACHE_OBJECT_LIST is not set
#
# Pseudo filesystems
#CONFIG_PROC_FS=y
# CONFIG_PROC_KCORE is not setCONFIG_PROC_VMCORE=yCONFIG_PROC_SYSCTL=yCONFIG_PROC_PAGE_MONITOR=yCONFIG_PROC_CHILDREN=yCONFIG_KERNFS=yCONFIG_SYSFS=yCONFIG_TMPFS=y
# CONFIG_TMPFS_POSIX_ACL is not set
# CONFIG_TMPFS_XATTR is not setCONFIG_HUGETLBFS=yCONFIG_HUGETLB_PAGE=yCONFIG_ARCH_HAS_GIGANTIC_PAGE=yCONFIG_CONFIGFS_FS=y
# CONFIG_EFIVAR_FS is not setCONFIG_MISC_FILESYSTEMS=y
# CONFIG_ORANGEFS_FS is not setCONFIG_ECRYPT_FS=y
# CONFIG_ECRYPT_FS_MESSAGING is not setCONFIG_CRAMFS=yCONFIG_PSTORE=yCONFIG_PSTORE_ZLIB_COMPRESS=y
# CONFIG_PSTORE_LZO_COMPRESS is not set
# CONFIG_PSTORE_LZ4_COMPRESS is not setCONFIG_PSTORE_CONSOLE=yCONFIG_PSTORE_PMSG=y
# CONFIG_PSTORE_FTRACE is not setCONFIG_PSTORE_RAM=yCONFIG_NETWORK_FILESYSTEMS=yCONFIG_NFS_FS=yCONFIG_NFS_V2=yCONFIG_NFS_V3=y
# CONFIG_NFS_V3_ACL is not setCONFIG_NFS_V4=y
# CONFIG_NFS_SWAP is not set
# 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 setCONFIG_NFS_USE_KERNEL_DNS=y
# CONFIG_NFSD is not setCONFIG_GRACE_PERIOD=yCONFIG_LOCKD=yCONFIG_LOCKD_V4=yCONFIG_NFS_COMMON=yCONFIG_SUNRPC=yCONFIG_SUNRPC_GSS=yCONFIG_RPCSEC_GSS_KRB5=y
# CONFIG_SUNRPC_DEBUG is not set
# CONFIG_CEPH_FS is not setCONFIG_CIFS=y
# CONFIG_CIFS_STATS is not set
# CONFIG_CIFS_WEAK_PW_HASH is not set
# CONFIG_CIFS_UPCALL is not set
# CONFIG_CIFS_XATTR is not setCONFIG_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_SMB311 is not set
# CONFIG_CIFS_FSCACHE is not set
# CONFIG_CODA_FS is not set
# CONFIG_AFS_FS is not setCONFIG_NLS=yCONFIG_NLS_DEFAULT="iso8859-1"CONFIG_NLS_CODEPAGE_437=yCONFIG_NLS_CODEPAGE_737=yCONFIG_NLS_CODEPAGE_775=yCONFIG_NLS_CODEPAGE_850=yCONFIG_NLS_CODEPAGE_852=yCONFIG_NLS_CODEPAGE_855=yCONFIG_NLS_CODEPAGE_857=yCONFIG_NLS_CODEPAGE_860=yCONFIG_NLS_CODEPAGE_861=yCONFIG_NLS_CODEPAGE_862=yCONFIG_NLS_CODEPAGE_863=yCONFIG_NLS_CODEPAGE_864=y
# CONFIG_NLS_CODEPAGE_865 is not setCONFIG_NLS_CODEPAGE_866=yCONFIG_NLS_CODEPAGE_869=y
# CONFIG_NLS_CODEPAGE_936 is not set
# CONFIG_NLS_CODEPAGE_950 is not setCONFIG_NLS_CODEPAGE_932=y
# CONFIG_NLS_CODEPAGE_949 is not set
# CONFIG_NLS_CODEPAGE_874 is not setCONFIG_NLS_ISO8859_8=yCONFIG_NLS_CODEPAGE_1250=y
# CONFIG_NLS_CODEPAGE_1251 is not set
# CONFIG_NLS_ASCII is not setCONFIG_NLS_ISO8859_1=yCONFIG_NLS_ISO8859_2=yCONFIG_NLS_ISO8859_3=y
# CONFIG_NLS_ISO8859_4 is not setCONFIG_NLS_ISO8859_5=y
# CONFIG_NLS_ISO8859_6 is not setCONFIG_NLS_ISO8859_7=y
# CONFIG_NLS_ISO8859_9 is not set
# CONFIG_NLS_ISO8859_13 is not setCONFIG_NLS_ISO8859_14=yCONFIG_NLS_ISO8859_15=yCONFIG_NLS_KOI8_R=yCONFIG_NLS_KOI8_U=y
# CONFIG_NLS_MAC_ROMAN is not setCONFIG_NLS_MAC_CELTIC=yCONFIG_NLS_MAC_CENTEURO=y
# CONFIG_NLS_MAC_CROATIAN is not setCONFIG_NLS_MAC_CYRILLIC=y
# CONFIG_NLS_MAC_GAELIC is not setCONFIG_NLS_MAC_GREEK=yCONFIG_NLS_MAC_ICELAND=y
# CONFIG_NLS_MAC_INUIT is not setCONFIG_NLS_MAC_ROMANIAN=y
# CONFIG_NLS_MAC_TURKISH is not setCONFIG_NLS_UTF8=y
# CONFIG_DLM is not set
#
# Kernel hacking
#CONFIG_TRACE_IRQFLAGS_SUPPORT=y
#
# printk and dmesg options # CONFIG_PRINTK_TIME=y CONFIG_CONSOLE_LOGLEVEL_DEFAULT=7 CONFIG_MESSAGE_LOGLEVEL_DEFAULT=4 # CONFIG_BOOT_PRINTK_DELAY is not set # CONFIG_DYNAMIC_DEBUG is not set
#
# Compile-time checks and compiler options
#CONFIG_DEBUG_INFO=yCONFIG_DEBUG_INFO_REDUCED=y
# CONFIG_DEBUG_INFO_SPLIT is not set
# CONFIG_DEBUG_INFO_DWARF4 is not set
# CONFIG_GDB_SCRIPTS is not setCONFIG_ENABLE_WARN_DEPRECATED=yCONFIG_ENABLE_MUST_CHECK=yCONFIG_FRAME_WARN=8192
# CONFIG_STRIP_ASM_SYMS is not setCONFIG_READABLE_ASM=y
# CONFIG_UNUSED_SYMBOLS is not setCONFIG_PAGE_OWNER=yCONFIG_DEBUG_FS=yCONFIG_HEADERS_CHECK=y
# CONFIG_DEBUG_SECTION_MISMATCH is not set
# CONFIG_SECTION_MISMATCH_WARN_ONLY is not setCONFIG_FRAME_POINTER=yCONFIG_STACK_VALIDATION=yCONFIG_DEBUG_FORCE_WEAK_PER_CPU=yCONFIG_MAGIC_SYSRQ=yCONFIG_MAGIC_SYSRQ_DEFAULT_ENABLE=0x1
# CONFIG_MAGIC_SYSRQ_SERIAL is not setCONFIG_DEBUG_KERNEL=y
#
# Memory Debugging
#CONFIG_PAGE_EXTENSION=y CONFIG_DEBUG_PAGEALLOC=y
# CONFIG_DEBUG_PAGEALLOC_ENABLE_DEFAULT is not set # CONFIG_PAGE_POISONING is not set CONFIG_DEBUG_PAGE_REF=y CONFIG_DEBUG_RODATA_TEST=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=y
# CONFIG_DEBUG_OBJECTS_RCU_HEAD is not set # CONFIG_DEBUG_OBJECTS_PERCPU_COUNTER is not set CONFIG_DEBUG_OBJECTS_ENABLE_DEFAULT=1
# CONFIG_SLUB_STATS is not set CONFIG_HAVE_DEBUG_KMEMLEAK=y
# CONFIG_DEBUG_KMEMLEAK is not set
# CONFIG_DEBUG_STACK_USAGE is not set CONFIG_DEBUG_VM=y CONFIG_DEBUG_VM_VMACACHE=y CONFIG_DEBUG_VM_RB=y
# CONFIG_DEBUG_VM_PGFLAGS is not set CONFIG_ARCH_HAS_DEBUG_VIRTUAL=y CONFIG_DEBUG_VIRTUAL=y
# CONFIG_DEBUG_MEMORY_INIT is not set CONFIG_HAVE_DEBUG_STACKOVERFLOW=y
# CONFIG_DEBUG_STACKOVERFLOW is not set CONFIG_HAVE_ARCH_KASAN=yCONFIG_KASAN=y
# CONFIG_KASAN_EXTRA is not set CONFIG_KASAN_OUTLINE=y
# CONFIG_KASAN_INLINE is not set CONFIG_ARCH_HAS_KCOV=y
# CONFIG_KCOV is not set
# CONFIG_DEBUG_SHIRQ is not set
#
# Debug Lockups and Hangs
#
# CONFIG_SOFTLOCKUP_DETECTOR is not setCONFIG_HARDLOCKUP_CHECK_TIMESTAMP=y
# CONFIG_HARDLOCKUP_DETECTOR is not setCONFIG_DETECT_HUNG_TASK=yCONFIG_DEFAULT_HUNG_TASK_TIMEOUT=120
# CONFIG_BOOTPARAM_HUNG_TASK_PANIC is not setCONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE=0
# CONFIG_WQ_WATCHDOG is not set
# CONFIG_PANIC_ON_OOPS is not setCONFIG_PANIC_ON_OOPS_VALUE=0CONFIG_PANIC_TIMEOUT=0CONFIG_SCHED_DEBUG=y
# CONFIG_SCHED_INFO is not set
# CONFIG_SCHEDSTATS is not setCONFIG_SCHED_STACK_END_CHECK=y
# CONFIG_DEBUG_TIMEKEEPING is not set
#
# Lock Debugging (spinlocks, mutexes, etc...)
#CONFIG_DEBUG_RT_MUTEXES=yCONFIG_DEBUG_SPINLOCK=yCONFIG_DEBUG_MUTEXES=y
# CONFIG_DEBUG_WW_MUTEX_SLOWPATH is not setCONFIG_DEBUG_LOCK_ALLOC=y
# CONFIG_PROVE_LOCKING is not setCONFIG_LOCKDEP=yCONFIG_LOCK_STAT=yCONFIG_DEBUG_LOCKDEP=yCONFIG_DEBUG_ATOMIC_SLEEP=y
# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not setCONFIG_LOCK_TORTURE_TEST=yCONFIG_WW_MUTEX_SELFTEST=yCONFIG_TRACE_IRQFLAGS=yCONFIG_STACKTRACE=yCONFIG_WARN_ALL_UNSEEDED_RANDOM=y
# CONFIG_DEBUG_KOBJECT is not setCONFIG_DEBUG_BUGVERBOSE=yCONFIG_DEBUG_LIST=y
# CONFIG_DEBUG_PI_LIST is not set
# CONFIG_DEBUG_SG is not set
# CONFIG_DEBUG_NOTIFIERS is not set
# CONFIG_DEBUG_CREDENTIALS is not set
#
# RCU Debugging
#
# CONFIG_PROVE_RCU is not setCONFIG_TORTURE_TEST=y
# CONFIG_RCU_PERF_TEST is not setCONFIG_RCU_TORTURE_TEST=yCONFIG_RCU_TRACE=yCONFIG_RCU_EQS_DEBUG=y
# CONFIG_DEBUG_WQ_FORCE_RR_CPU is not set
# CONFIG_NOTIFIER_ERROR_INJECTION is not set
# CONFIG_FAULT_INJECTION is not set
# CONFIG_LATENCYTOP is not setCONFIG_USER_STACKTRACE_SUPPORT=yCONFIG_NOP_TRACER=yCONFIG_HAVE_FUNCTION_TRACER=yCONFIG_HAVE_FUNCTION_GRAPH_TRACER=yCONFIG_HAVE_DYNAMIC_FTRACE=yCONFIG_HAVE_DYNAMIC_FTRACE_WITH_REGS=yCONFIG_HAVE_FTRACE_MCOUNT_RECORD=yCONFIG_HAVE_SYSCALL_TRACEPOINTS=yCONFIG_HAVE_FENTRY=yCONFIG_HAVE_C_RECORDMCOUNT=yCONFIG_TRACER_MAX_TRACE=yCONFIG_TRACE_CLOCK=yCONFIG_RING_BUFFER=yCONFIG_EVENT_TRACING=yCONFIG_CONTEXT_SWITCH_TRACER=yCONFIG_RING_BUFFER_ALLOW_SWAP=yCONFIG_TRACING=yCONFIG_GENERIC_TRACER=yCONFIG_TRACING_SUPPORT=yCONFIG_FTRACE=yCONFIG_FUNCTION_TRACER=y
# CONFIG_FUNCTION_GRAPH_TRACER is not set
# CONFIG_PREEMPTIRQ_EVENTS is not setCONFIG_IRQSOFF_TRACER=yCONFIG_SCHED_TRACER=y
# CONFIG_HWLAT_TRACER is not setCONFIG_FTRACE_SYSCALLS=yCONFIG_TRACER_SNAPSHOT=yCONFIG_TRACER_SNAPSHOT_PER_CPU_SWAP=yCONFIG_TRACE_BRANCH_PROFILING=y
# CONFIG_BRANCH_PROFILE_NONE is not setCONFIG_PROFILE_ANNOTATED_BRANCHES=yCONFIG_TRACING_BRANCHES=yCONFIG_BRANCH_TRACER=yCONFIG_STACK_TRACER=yCONFIG_UPROBE_EVENTS=yCONFIG_PROBE_EVENTS=y
# CONFIG_DYNAMIC_FTRACE is not set
# CONFIG_FUNCTION_PROFILER is not set
# CONFIG_FTRACE_STARTUP_TEST is not setCONFIG_MMIOTRACE=yCONFIG_TRACING_MAP=yCONFIG_HIST_TRIGGERS=y
# CONFIG_TRACEPOINT_BENCHMARK is not setCONFIG_RING_BUFFER_BENCHMARK=y
# CONFIG_RING_BUFFER_STARTUP_TEST is not set
# CONFIG_TRACE_EVAL_MAP_FILE is not set
# CONFIG_TRACING_EVENTS_GPIO is not setCONFIG_PROVIDE_OHCI1394_DMA_INIT=y
# CONFIG_DMA_API_DEBUG is not set
# CONFIG_RUNTIME_TESTING_MENU is not setCONFIG_MEMTEST=y
# CONFIG_BUG_ON_DATA_CORRUPTION is not set
# CONFIG_SAMPLES is not setCONFIG_HAVE_ARCH_KGDB=y
# CONFIG_KGDB is not setCONFIG_ARCH_HAS_UBSAN_SANITIZE_ALL=y
# CONFIG_ARCH_WANTS_UBSAN_NO_NULL is not setCONFIG_UBSAN=y
# CONFIG_UBSAN_SANITIZE_ALL is not set
# CONFIG_UBSAN_ALIGNMENT is not set
# CONFIG_UBSAN_NULL is not setCONFIG_ARCH_HAS_DEVMEM_IS_ALLOWED=y
# CONFIG_STRICT_DEVMEM is not setCONFIG_EARLY_PRINTK_USB=yCONFIG_X86_VERBOSE_BOOTUP=yCONFIG_EARLY_PRINTK=y
# CONFIG_EARLY_PRINTK_DBGP is not set
# CONFIG_EARLY_PRINTK_EFI is not setCONFIG_EARLY_PRINTK_USB_XDBC=yCONFIG_X86_PTDUMP_CORE=yCONFIG_X86_PTDUMP=y
# CONFIG_EFI_PGT_DUMP is not set
# CONFIG_DEBUG_WX is not setCONFIG_DOUBLEFAULT=yCONFIG_DEBUG_TLBFLUSH=yCONFIG_HAVE_MMIOTRACE_SUPPORT=yCONFIG_IO_DELAY_TYPE_0X80=0CONFIG_IO_DELAY_TYPE_0XED=1CONFIG_IO_DELAY_TYPE_UDELAY=2CONFIG_IO_DELAY_TYPE_NONE=3CONFIG_IO_DELAY_0X80=y
# CONFIG_IO_DELAY_0XED is not set
# CONFIG_IO_DELAY_UDELAY is not set
# CONFIG_IO_DELAY_NONE is not setCONFIG_DEFAULT_IO_DELAY_TYPE=0
# CONFIG_DEBUG_BOOT_PARAMS is not set
# CONFIG_CPA_DEBUG is not setCONFIG_OPTIMIZE_INLINING=yCONFIG_DEBUG_ENTRY=yCONFIG_DEBUG_NMI_SELFTEST=yCONFIG_X86_DEBUG_FPU=yCONFIG_PUNIT_ATOM_DEBUG=y
# CONFIG_UNWINDER_ORC is not setCONFIG_UNWINDER_FRAME_POINTER=y
#
# Security options
#CONFIG_KEYS=yCONFIG_KEYS_COMPAT=y
# CONFIG_PERSISTENT_KEYRINGS is not set
# CONFIG_BIG_KEYS is not setCONFIG_TRUSTED_KEYS=yCONFIG_ENCRYPTED_KEYS=yCONFIG_KEY_DH_OPERATIONS=y
# CONFIG_SECURITY_DMESG_RESTRICT is not setCONFIG_SECURITY=y
# CONFIG_SECURITY_WRITABLE_HOOKS is not setCONFIG_SECURITYFS=y
# CONFIG_SECURITY_NETWORK is not setCONFIG_PAGE_TABLE_ISOLATION=yCONFIG_SECURITY_PATH=yCONFIG_HAVE_HARDENED_USERCOPY_ALLOCATOR=y
# CONFIG_HARDENED_USERCOPY is not setCONFIG_FORTIFY_SOURCE=y
# CONFIG_STATIC_USERMODEHELPER is not set
# CONFIG_SECURITY_SMACK is not set
# CONFIG_SECURITY_TOMOYO is not set
# CONFIG_SECURITY_APPARMOR is not setCONFIG_SECURITY_YAMA=y
# CONFIG_INTEGRITY is not setCONFIG_DEFAULT_SECURITY_DAC=yCONFIG_DEFAULT_SECURITY=""CONFIG_CRYPTO=y
#
# Crypto core or helper
#CONFIG_CRYPTO_ALGAPI=yCONFIG_CRYPTO_ALGAPI2=yCONFIG_CRYPTO_AEAD=yCONFIG_CRYPTO_AEAD2=yCONFIG_CRYPTO_BLKCIPHER=yCONFIG_CRYPTO_BLKCIPHER2=yCONFIG_CRYPTO_HASH=yCONFIG_CRYPTO_HASH2=yCONFIG_CRYPTO_RNG=yCONFIG_CRYPTO_RNG2=yCONFIG_CRYPTO_RNG_DEFAULT=yCONFIG_CRYPTO_AKCIPHER2=yCONFIG_CRYPTO_AKCIPHER=yCONFIG_CRYPTO_KPP2=yCONFIG_CRYPTO_KPP=yCONFIG_CRYPTO_ACOMP2=yCONFIG_CRYPTO_RSA=yCONFIG_CRYPTO_DH=y
# CONFIG_CRYPTO_ECDH is not setCONFIG_CRYPTO_MANAGER=yCONFIG_CRYPTO_MANAGER2=y
# CONFIG_CRYPTO_USER is not setCONFIG_CRYPTO_MANAGER_DISABLE_TESTS=yCONFIG_CRYPTO_GF128MUL=yCONFIG_CRYPTO_NULL=yCONFIG_CRYPTO_NULL2=yCONFIG_CRYPTO_WORKQUEUE=yCONFIG_CRYPTO_CRYPTD=yCONFIG_CRYPTO_MCRYPTD=yCONFIG_CRYPTO_AUTHENC=yCONFIG_CRYPTO_ABLK_HELPER=yCONFIG_CRYPTO_SIMD=yCONFIG_CRYPTO_GLUE_HELPER_X86=y
#
# Authenticated Encryption with Associated Data
#CONFIG_CRYPTO_CCM=yCONFIG_CRYPTO_GCM=yCONFIG_CRYPTO_CHACHA20POLY1305=yCONFIG_CRYPTO_SEQIV=yCONFIG_CRYPTO_ECHAINIV=y
#
# Block modes
#CONFIG_CRYPTO_CBC=yCONFIG_CRYPTO_CTR=yCONFIG_CRYPTO_CTS=yCONFIG_CRYPTO_ECB=yCONFIG_CRYPTO_LRW=yCONFIG_CRYPTO_PCBC=yCONFIG_CRYPTO_XTS=y
# CONFIG_CRYPTO_KEYWRAP is not set
#
# Hash modes
#CONFIG_CRYPTO_CMAC=yCONFIG_CRYPTO_HMAC=y
# CONFIG_CRYPTO_XCBC is not setCONFIG_CRYPTO_VMAC=y
#
# Digest
#CONFIG_CRYPTO_CRC32C=yCONFIG_CRYPTO_CRC32C_INTEL=y
# CONFIG_CRYPTO_CRC32 is not setCONFIG_CRYPTO_CRC32_PCLMUL=yCONFIG_CRYPTO_CRCT10DIF=y
# CONFIG_CRYPTO_CRCT10DIF_PCLMUL is not setCONFIG_CRYPTO_GHASH=yCONFIG_CRYPTO_POLY1305=y
# CONFIG_CRYPTO_POLY1305_X86_64 is not setCONFIG_CRYPTO_MD4=yCONFIG_CRYPTO_MD5=yCONFIG_CRYPTO_MICHAEL_MIC=yCONFIG_CRYPTO_RMD128=yCONFIG_CRYPTO_RMD160=yCONFIG_CRYPTO_RMD256=yCONFIG_CRYPTO_RMD320=yCONFIG_CRYPTO_SHA1=yCONFIG_CRYPTO_SHA1_SSSE3=yCONFIG_CRYPTO_SHA256_SSSE3=yCONFIG_CRYPTO_SHA512_SSSE3=y
# CONFIG_CRYPTO_SHA1_MB is not set
# CONFIG_CRYPTO_SHA256_MB is not setCONFIG_CRYPTO_SHA512_MB=yCONFIG_CRYPTO_SHA256=yCONFIG_CRYPTO_SHA512=yCONFIG_CRYPTO_SHA3=y
# CONFIG_CRYPTO_SM3 is not setCONFIG_CRYPTO_TGR192=y
# CONFIG_CRYPTO_WP512 is not setCONFIG_CRYPTO_GHASH_CLMUL_NI_INTEL=y
#
# Ciphers
#CONFIG_CRYPTO_AES=yCONFIG_CRYPTO_AES_TI=yCONFIG_CRYPTO_AES_X86_64=yCONFIG_CRYPTO_AES_NI_INTEL=y
# CONFIG_CRYPTO_ANUBIS is not setCONFIG_CRYPTO_ARC4=yCONFIG_CRYPTO_BLOWFISH=yCONFIG_CRYPTO_BLOWFISH_COMMON=y
# CONFIG_CRYPTO_BLOWFISH_X86_64 is not setCONFIG_CRYPTO_CAMELLIA=yCONFIG_CRYPTO_CAMELLIA_X86_64=yCONFIG_CRYPTO_CAMELLIA_AESNI_AVX_X86_64=yCONFIG_CRYPTO_CAMELLIA_AESNI_AVX2_X86_64=yCONFIG_CRYPTO_CAST_COMMON=y
# CONFIG_CRYPTO_CAST5 is not set
# CONFIG_CRYPTO_CAST5_AVX_X86_64 is not setCONFIG_CRYPTO_CAST6=yCONFIG_CRYPTO_CAST6_AVX_X86_64=yCONFIG_CRYPTO_DES=yCONFIG_CRYPTO_DES3_EDE_X86_64=y
# CONFIG_CRYPTO_FCRYPT is not setCONFIG_CRYPTO_KHAZAD=yCONFIG_CRYPTO_SALSA20=yCONFIG_CRYPTO_SALSA20_X86_64=yCONFIG_CRYPTO_CHACHA20=yCONFIG_CRYPTO_CHACHA20_X86_64=yCONFIG_CRYPTO_SEED=yCONFIG_CRYPTO_SERPENT=yCONFIG_CRYPTO_SERPENT_SSE2_X86_64=yCONFIG_CRYPTO_SERPENT_AVX_X86_64=yCONFIG_CRYPTO_SERPENT_AVX2_X86_64=yCONFIG_CRYPTO_TEA=yCONFIG_CRYPTO_TWOFISH=yCONFIG_CRYPTO_TWOFISH_COMMON=yCONFIG_CRYPTO_TWOFISH_X86_64=yCONFIG_CRYPTO_TWOFISH_X86_64_3WAY=yCONFIG_CRYPTO_TWOFISH_AVX_X86_64=y
#
# Compression
#CONFIG_CRYPTO_DEFLATE=yCONFIG_CRYPTO_LZO=yCONFIG_CRYPTO_842=yCONFIG_CRYPTO_LZ4=yCONFIG_CRYPTO_LZ4HC=y
#
# Random Number Generation
#CONFIG_CRYPTO_ANSI_CPRNG=yCONFIG_CRYPTO_DRBG_MENU=yCONFIG_CRYPTO_DRBG_HMAC=y
# CONFIG_CRYPTO_DRBG_HASH is not setCONFIG_CRYPTO_DRBG_CTR=yCONFIG_CRYPTO_DRBG=yCONFIG_CRYPTO_JITTERENTROPY=y
# 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 setCONFIG_CRYPTO_HASH_INFO=y
# CONFIG_CRYPTO_HW is not setCONFIG_ASYMMETRIC_KEY_TYPE=yCONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE=yCONFIG_X509_CERTIFICATE_PARSER=yCONFIG_PKCS7_MESSAGE_PARSER=y
# CONFIG_PKCS7_TEST_KEY is not set
# CONFIG_SIGNED_PE_FILE_VERIFICATION is not set
#
# Certificates for signature checking
#CONFIG_SYSTEM_TRUSTED_KEYRING=yCONFIG_SYSTEM_TRUSTED_KEYS=""
# CONFIG_SYSTEM_EXTRA_CERTIFICATE is not set
# CONFIG_SECONDARY_TRUSTED_KEYRING is not setCONFIG_SYSTEM_BLACKLIST_KEYRING=yCONFIG_SYSTEM_BLACKLIST_HASH_LIST=""CONFIG_HAVE_KVM=y
# CONFIG_VIRTUALIZATION is not setCONFIG_BINARY_PRINTF=y
#
# Library routines
#CONFIG_BITREVERSE=y
# CONFIG_HAVE_ARCH_BITREVERSE is not setCONFIG_RATIONAL=yCONFIG_GENERIC_STRNCPY_FROM_USER=yCONFIG_GENERIC_STRNLEN_USER=yCONFIG_GENERIC_NET_UTILS=yCONFIG_GENERIC_FIND_FIRST_BIT=yCONFIG_GENERIC_PCI_IOMAP=yCONFIG_GENERIC_IOMAP=yCONFIG_ARCH_USE_CMPXCHG_LOCKREF=yCONFIG_ARCH_HAS_FAST_MULTIPLIER=yCONFIG_CRC_CCITT=yCONFIG_CRC16=yCONFIG_CRC_T10DIF=yCONFIG_CRC_ITU_T=yCONFIG_CRC32=yCONFIG_CRC32_SELFTEST=y
# CONFIG_CRC32_SLICEBY8 is not setCONFIG_CRC32_SLICEBY4=y
# CONFIG_CRC32_SARWATE is not set
# CONFIG_CRC32_BIT is not setCONFIG_CRC4=yCONFIG_CRC7=y
# CONFIG_LIBCRC32C is not setCONFIG_CRC8=y
# CONFIG_AUDIT_ARCH_COMPAT_GENERIC is not set
# CONFIG_RANDOM32_SELFTEST is not setCONFIG_842_COMPRESS=yCONFIG_842_DECOMPRESS=yCONFIG_ZLIB_INFLATE=yCONFIG_ZLIB_DEFLATE=yCONFIG_LZO_COMPRESS=yCONFIG_LZO_DECOMPRESS=yCONFIG_LZ4_COMPRESS=yCONFIG_LZ4HC_COMPRESS=yCONFIG_LZ4_DECOMPRESS=yCONFIG_XZ_DEC=yCONFIG_XZ_DEC_X86=yCONFIG_XZ_DEC_POWERPC=y
# CONFIG_XZ_DEC_IA64 is not setCONFIG_XZ_DEC_ARM=yCONFIG_XZ_DEC_ARMTHUMB=yCONFIG_XZ_DEC_SPARC=yCONFIG_XZ_DEC_BCJ=yCONFIG_XZ_DEC_TEST=yCONFIG_DECOMPRESS_GZIP=yCONFIG_DECOMPRESS_BZIP2=yCONFIG_DECOMPRESS_LZMA=yCONFIG_DECOMPRESS_XZ=yCONFIG_DECOMPRESS_LZO=yCONFIG_DECOMPRESS_LZ4=yCONFIG_GENERIC_ALLOCATOR=yCONFIG_REED_SOLOMON=yCONFIG_REED_SOLOMON_ENC8=yCONFIG_REED_SOLOMON_DEC8=yCONFIG_ASSOCIATIVE_ARRAY=yCONFIG_HAS_IOMEM=yCONFIG_HAS_IOPORT_MAP=yCONFIG_HAS_DMA=yCONFIG_SGL_ALLOC=y
# CONFIG_DMA_DIRECT_OPS is not set
# CONFIG_DMA_VIRT_OPS is not setCONFIG_DQL=yCONFIG_GLOB=yCONFIG_GLOB_SELFTEST=yCONFIG_NLATTR=yCONFIG_CLZ_TAB=y
# CONFIG_CORDIC is not setCONFIG_DDR=y
# CONFIG_IRQ_POLL is not setCONFIG_MPILIB=yCONFIG_OID_REGISTRY=yCONFIG_UCS2_STRING=y
# CONFIG_SG_SPLIT is not set
# CONFIG_SG_POOL is not setCONFIG_ARCH_HAS_SG_CHAIN=yCONFIG_ARCH_HAS_PMEM_API=yCONFIG_ARCH_HAS_UACCESS_FLUSHCACHE=yCONFIG_STACKDEPOT=y
# CONFIG_STRING_SELFTEST is not set
#!/bin/sh
export_top_env()
{
export suite='boot'
export testcase='boot'
export timeout='10m'
export job_origin='/lkp/lkp/src/jobs/boot.yaml'
export queue='bisect'
export testbox='vm-lkp-nex04-1G-3'
export tbox_group='vm-lkp-nex04-1G'
export branch='linux-devel/devel-catchup-201802192019'
export commit='e22c8d3cf4cd6307228c9946a670fa548c359611'
export kconfig='x86_64-randconfig-i0-201807'
export submit_id='5a8af1050b9a937f520711e1'
export job_file='/lkp/scheduled/vm-lkp-nex04-1G-3/boot-1-debian-x86_64-2016-08-31.cgz-e22c8d3cf4cd6307228c9946a670fa548c359611-20180219-32594-1bnjwvj-0.yaml'
export id='53158e0750f18851c32336c86317faf70a4695f8'
export model='qemu-system-x86_64 -enable-kvm -cpu host'
export nr_vm=30
export nr_cpu=2
export memory='1G'
export need_kconfig='CONFIG_KVM_GUEST=y'
export ssh_base_port=23200
export compiler='gcc-7'
export rootfs='debian-x86_64-2016-08-31.cgz'
export enqueue_time='2018-02-19 23:45:10 +0800'
export _id='5a8af1050b9a937f520711e1'
export _rt='/result/boot/1/vm-lkp-nex04-1G/debian-x86_64-2016-08-31.cgz/x86_64-randconfig-i0-201807/gcc-7/e22c8d3cf4cd6307228c9946a670fa548c359611'
export user='lkp'
export result_root='/result/boot/1/vm-lkp-nex04-1G/debian-x86_64-2016-08-31.cgz/x86_64-randconfig-i0-201807/gcc-7/e22c8d3cf4cd6307228c9946a670fa548c359611/0'
export LKP_SERVER='inn'
export max_uptime=600
export initrd='/osimage/debian/debian-x86_64-2016-08-31.cgz'
export bootloader_append='root=/dev/ram0user=lkp job=/lkp/scheduled/vm-lkp-nex04-1G-3/boot-1-debian-x86_64-2016-08-31.cgz-e22c8d3cf4cd6307228c9946a670fa548c359611-20180219-32594-1bnjwvj-0.yaml ARCH=x86_64
kconfig=x86_64-randconfig-i0-201807
branch=linux-devel/devel-catchup-201802192019
commit=e22c8d3cf4cd6307228c9946a670fa548c359611 BOOT_IMAGE=/pkg/linux/x86_64-randconfig-i0-201807/gcc-7/e22c8d3cf4cd6307228c9946a670fa548c359611/vmlinuz-4.16.0-rc1-00284-ge22c8d3 max_uptime=600 RESULT_ROOT=/result/boot/1/vm-lkp-nex04-1G/debian-x86_64-2016-08-31.cgz/x86_64-randconfig-i0-201807/gcc-7/e22c8d3cf4cd6307228c9946a670fa548c359611/0 LKP_SERVER=inn
debug
apic=debugsysrq_always_enabled
rcupdate.rcu_cpu_stall_timeout=100
net.ifnames=0
printk.devkmsg=on
panic=-1
softlockup_panic=1
nmi_watchdog=panic
oops=panic
load_ramdisk=2
prompt_ramdisk=0
drbd.minor_count=8
systemd.log_level=errignore_loglevel
console=tty0
earlyprintk=ttyS0,115200
console=ttyS0,115200
vga=normal
rw'
export bm_initrd='/osimage/deps/debian-x86_64-2016-08-31.cgz/lkp_2017-12-14.cgz,/osimage/deps/debian-x86_64-2016-08-31.cgz/rsync-rootfs_2016-11-15.cgz,/osimage/deps/debian-x86_64-2016-08-31.cgz/run-ipconfig_2016-11-15.cgz'
export lkp_initrd='/lkp/lkp/lkp-x86_64.cgz'
export site='inn'
export LKP_CGI_PORT=80
export LKP_CIFS_PORT=139
export kernel='/pkg/linux/x86_64-randconfig-i0-201807/gcc-7/e22c8d3cf4cd6307228c9946a670fa548c359611/vmlinuz-4.16.0-rc1-00284-ge22c8d3'
export dequeue_time='2018-02-20 00:09:56 +0800'
export job_initrd='/lkp/scheduled/vm-lkp-nex04-1G-3/boot-1-debian-x86_64-2016-08-31.cgz-e22c8d3cf4cd6307228c9946a670fa548c359611-20180219-32594-1bnjwvj-0.cgz'
[ -n "$LKP_SRC" ] ||
export LKP_SRC=/lkp/${user:-lkp}/src
}run_job()
{
echo $$ > $TMP/run-job.pid
. $LKP_SRC/lib/http.sh
. $LKP_SRC/lib/job.sh
. $LKP_SRC/lib/env.sh
export_top_env
run_monitor $LKP_SRC/monitors/one-shot/wrapper boot-slabinfo run_monitor $LKP_SRC/monitors/one-shot/wrapper boot-meminfo run_monitor $LKP_SRC/monitors/one-shot/wrapper memmap run_monitor $LKP_SRC/monitors/no-stdout/wrapper boot-time run_monitor $LKP_SRC/monitors/wrapper kmsg run_monitor $LKP_SRC/monitors/wrapper oom-killer run_monitor $LKP_SRC/monitors/plain/watchdog
run_test $LKP_SRC/tests/wrapper sleep 1
}
extract_stats()
{
$LKP_SRC/stats/wrapper boot-slabinfo
$LKP_SRC/stats/wrapper boot-meminfo
$LKP_SRC/stats/wrapper memmap
$LKP_SRC/stats/wrapper boot-memory
$LKP_SRC/stats/wrapper boot-time
$LKP_SRC/stats/wrapper kernel-size
$LKP_SRC/stats/wrapper kmsg
$LKP_SRC/stats/wrapper time sleep.time
$LKP_SRC/stats/wrapper time
$LKP_SRC/stats/wrapper dmesg
$LKP_SRC/stats/wrapper kmsg
$LKP_SRC/stats/wrapper stderr
$LKP_SRC/stats/wrapper last_state
}
"$@"
Re: [SUNRPC] e22c8d3cf4: BUG:KASAN:use-after-free_in_r
Quoted 23 lines · kernel test robot
FYI, we noticed the following commit (built with gcc-7):
commit:
e22c8d3cf4cd6307228c9946a670fa548c359611("SUNRPC: add side channel to use non-generic cred for rpc call.")
url: https://github.com/0day-ci/linux/commits/NeilBrown/Remove-generic-rpc-credentials-and-associated-changed-V3/20180219-190836
base:git://git.linux-nfs.org/projects/trondmy/linux-nfs.gitlinux-nextin testcase: boot
on test machine: qemu-system-x86_64 -enable-kvm -cpu host -smp 2 -m 1G
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
+-------------------------------+------------+------------+ | | a79c51c9c3 | e22c8d3cf4 | +-------------------------------+------------+------------+ | boot_successes | 6 | 4 | | boot_failures | 0 | 4 | | BUG:KASAN:use-after-free_in_r | 0 | 4 | +-------------------------------+------------+------------+
Quoted 2 lines
[ 66.551598] BUG: KASAN: use-after-free in rpc_free_task+0x5e/0x86 [ 66.552963] Read of size 8 at addr ffff8800093e93a8 by task kworker/0:3/201
Thanks.
The patch had
rpc_release_calldata(task->tk_ops, task->tk_calldata);
+ put_rpccred(task->tk_op_cred);
It should have had
+ put_rpccred(task->tk_op_cred);
rpc_release_calldata(task->tk_ops, task->tk_calldata);as the rpc_release_calldata might free the task.
I'll send a revised patch.
Thanks,
NeilBrown
PATCH v2 14/23 SUNRPC: add side channel to use non-generic cred for rpc call.
In reply to NeilBrownThe credential passed in rpc_message.rpc_cred is always a generic credential except in one instance.
When gss_destroying_context() calls rpc_call_null(), it passes a specific credential that it needs to destroy.
In this case the RPC acts *on* the credential rather than being authorized by it.
This special case deserves explicit support and providing that will mean that rpc_message.rpc_cred is *always* generic, allowing some optimizations.
So add "tk_op_cred" to rpc_task and "rpc_op_cred" to the setup data. Use this to pass the cred down from rpc_call_null(), and have rpcauth_bindcred() notice it and bind it in place.
Credit to kernel test robot <[email protected]> for finding a bug in earlier version of this patch.
---
This replaces a patch already in nfs-next.
If you would like an incremental patch instead, please let me know.
Thanks,
NeilBrown
include/linux/sunrpc/sched.h | 2 ++ net/sunrpc/auth.c | 6 +++++- net/sunrpc/clnt.c | 2 +- net/sunrpc/sched.c | 3 +++ 4 files changed, 11 insertions(+), 2 deletions(-)
include/linux/sunrpc/sched.h +2 -0
@@ -71,6 +71,7 @@ struct rpc_task {struct rpc_clnt * tk_client;/* RPC client */ struct rpc_xprt * tk_xprt;/* Transport */ +struct rpc_cred * tk_op_cred;/* cred being operated on */ struct rpc_rqst * tk_rqstp;/* RPC request */
@@ -105,6 +106,7 @@ struct rpc_task_setup {struct rpc_task *task;struct rpc_clnt *rpc_client;struct rpc_xprt *rpc_xprt; +struct rpc_cred *rpc_op_cred;/* credential being operated on */ const struct rpc_message *rpc_message;const struct rpc_call_ops *callback_ops;void *callback_data;
net/sunrpc/auth.c +5 -1
@@ -726,7 +726,11 @@ rpcauth_bindcred(struct rpc_task *task, struct rpc_cred *cred, int flags)if (flags &RPC_TASK_ASYNC ) lookupflags |=RPCAUTH_LOOKUP_NEW ; -if (cred !=NULL && cred != &machine_cred) +if (task->tk_op_cred) +/* Task must use exactly this rpc_cred */ + new = task->tk_op_cred->cr_ops->crbind (task, task->tk_op_cred, + lookupflags); +else if (cred !=NULL && cred != &machine_cred) new = cred->cr_ops->crbind (task, cred, lookupflags);else if (cred == &machine_cred) new =rpcauth_bind_machine_cred (task, lookupflags);
net/sunrpc/clnt.c +1 -1
@@ -2516,12 +2516,12 @@ struct rpc_task *rpc_call_null_helper(struct rpc_clnt *clnt, {struct rpc_message msg = { .rpc_proc = &rpcproc_null, - .rpc_cred = cred, };struct rpc_task_setup task_setup_data = { .rpc_client = clnt, .rpc_xprt = xprt, .rpc_message = &msg, + .rpc_op_cred = cred, .callback_ops = (ops !=NULL ) ? ops : &rpc_default_ops, .callback_data = data, .flags = flags,
net/sunrpc/sched.c +3 -0
@@ -949,6 +949,8 @@ static void rpc_init_task(struct rpc_task *task, const struct rpc_task_setup *ta task->tk_xprt =xprt_get (task_setup_data->rpc_xprt); + task->tk_op_cred =get_rpccred (task_setup_data->rpc_op_cred); +if (task->tk_ops->rpc_call_prepare !=NULL ) task->tk_action = rpc_prepare_task;
@@ -1006,6 +1008,7 @@ static void rpc_free_task(struct rpc_task *task) {unsigned short tk_flags = task->tk_flags; +put_rpccred (task->tk_op_cred);rpc_release_calldata (task->tk_ops, task->tk_calldata);if (tk_flags &RPC_TASK_DYNAMIC ) {
Signature · 1 line
2.14.0.rc0.dirty
PATCH 15/23 NFS: move credential expiry tracking out of SUNRPC into NFS.
In reply to NeilBrownNFS needs to know when a credential is about to expire so that it can modify write-back behaviour to finish the write inside the expiry time.
It currently uses functions in SUNRPC code which make use of a fairly complex callback scheme and flags in the generic credientials.
As I am working to discard the generic credentials, this has to change.
This patch moves the logic into NFS, in part by finding and caching the low-level credential in the open_context. We then make direct cred-api calls on that.
This makes the code much simpler and removes a dependency on generic rpc credentials.
--- fs/nfs/inode.c | 2 + fs/nfs/write.c | 24 +++++++++++-- include/linux/nfs_fs.h | 1 + include/linux/sunrpc/auth.h | 12 ------ net/sunrpc/auth.c | 23 ------------ net/sunrpc/auth_generic.c | 75 ---------------------------------------- net/sunrpc/auth_gss/auth_gss.c | 21 ++--------- 7 files changed, 28 insertions(+), 130 deletions(-)
fs/nfs/inode.c +2 -0
@@ -923,6 +923,7 @@ struct nfs_open_context *alloc_nfs_open_context(struct dentry *dentry,nfs_sb_active (dentry->d_sb); ctx->dentry =dget (dentry); ctx->cred = cred; + ctx->ll_cred =NULL ; ctx->state =NULL ; ctx->mode = f_mode; ctx->flags =0 ;
@@ -962,6 +963,7 @@ static void __put_nfs_open_context(struct nfs_open_context *ctx, int is_sync)put_rpccred (ctx->cred);dput (ctx->dentry);nfs_sb_deactive (sb); +put_rpccred (ctx->ll_cred);kfree (ctx->mdsthreshold);kfree (ctx); }
fs/nfs/write.c +21 -3
@@ -1232,9 +1232,12 @@ int nfs_key_timeout_notify(struct file *filp, struct inode *inode) { struct nfs_open_context *ctx = nfs_file_open_context(filp); -struct rpc_auth *auth =NFS_SERVER (inode)->client->cl_auth; -return rpcauth_key_timeout_notify (auth, ctx->cred); +if (nfs_ctx_key_to_expire (ctx, inode) && + !ctx->ll_cred) +/* Already expired! */ +return -EACCES ; +return 0 ; }/*
@@ -1243,8 +1246,23 @@ nfs_key_timeout_notify(struct file *filp, struct inode *inode)bool nfs_ctx_key_to_expire (struct nfs_open_context *ctx,struct inode *inode) {struct rpc_auth *auth =NFS_SERVER (inode)->client->cl_auth; +struct rpc_cred *cred = ctx->ll_cred; +struct auth_cred acred = { + .cred = ctx->cred->cr_cred, + }; -return rpcauth_cred_key_to_expire (auth, ctx->cred); +if (cred && !cred->cr_ops->crmatch (&acred, cred,0 )) { +put_rpccred (cred); + ctx->ll_cred =NULL ; + cred =NULL ; + } +if (!cred) + cred = auth->au_ops->lookup_cred (auth, &acred,0 ); +if (!cred ||IS_ERR (cred)) +return true; + ctx->ll_cred = cred; +return !!(cred->cr_ops->crkey_timeout && + cred->cr_ops->crkey_timeout (cred)); }/*
include/linux/nfs_fs.h +1 -0
@@ -70,6 +70,7 @@ struct nfs_open_context {fl_owner_t flock_owner;struct dentry *dentry;struct rpc_cred *cred; +struct rpc_cred *ll_cred;/* low-level cred - use to check for expiry */ struct nfs4_state *state;fmode_t mode;
include/linux/sunrpc/auth.h +0 -12
@@ -37,17 +37,9 @@struct rpcsec_gss_info ; -/* auth_cred ac_flags bits */ -enum { -RPC_CRED_KEY_EXPIRE_SOON =1 ,/* underlying cred key will expire soon */ -RPC_CRED_NOTIFY_TIMEOUT =2 ,/* nofity generic cred when underlying -key will expire soon */ -}; -struct auth_cred {const struct cred *cred;const char *principal;/* If present, this is a machine credential */ -unsigned long ac_flags; };/*
@@ -153,7 +145,6 @@ struct rpc_credops {int (*crunwrap_resp)(struct rpc_task *,kxdrdproc_t ,void *,__be32 *,void *);int (*crkey_timeout)(struct rpc_cred *); -bool (*crkey_to_expire)(struct rpc_cred *);char * (*crstringify_acceptor)(struct rpc_cred *); };
@@ -195,9 +186,6 @@ int rpcauth_uptodatecred(struct rpc_task *);int rpcauth_init_credcache (struct rpc_auth *);void rpcauth_destroy_credcache (struct rpc_auth *);void rpcauth_clear_credcache (struct rpc_cred_cache *); -int rpcauth_key_timeout_notify (struct rpc_auth *, -struct rpc_cred *); -bool rpcauth_cred_key_to_expire (struct rpc_auth *,struct rpc_cred *);char *rpcauth_stringify_acceptor (struct rpc_cred *); static inline
net/sunrpc/auth.c +0 -23
@@ -359,29 +359,6 @@ rpcauth_init_credcache(struct rpc_auth *auth) }EXPORT_SYMBOL_GPL (rpcauth_init_credcache); -/* -* Setup a credential key lifetime timeout notification -*/ -int -rpcauth_key_timeout_notify (struct rpc_auth *auth,struct rpc_cred *cred) -{ -if (!cred->cr_auth->au_ops->key_timeout) -return 0 ; -return cred->cr_auth->au_ops->key_timeout (auth, cred); -} -EXPORT_SYMBOL_GPL (rpcauth_key_timeout_notify); - -bool -rpcauth_cred_key_to_expire (struct rpc_auth *auth,struct rpc_cred *cred) -{ -if (auth->au_flags &RPCAUTH_AUTH_NO_CRKEY_TIMEOUT ) -return false; -if (!cred->cr_ops->crkey_to_expire) -return false; -return cred->cr_ops->crkey_to_expire (cred); -} -EXPORT_SYMBOL_GPL (rpcauth_cred_key_to_expire); -char *rpcauth_stringify_acceptor (struct rpc_cred *cred) {
net/sunrpc/auth_generic.c +0 -75
102 lines not on this page · raw message
net/sunrpc/auth_gss/auth_gss.c +4 -17
@@ -1462,23 +1462,10 @@ gss_match(struct auth_cred *acred, struct rpc_cred *rc, int flags)if (gss_cred->gc_principal ==NULL )return 0 ; ret =strcmp (acred->principal, gss_cred->gc_principal) ==0 ; - goto check_expire; - } -if (gss_cred->gc_principal !=NULL ) -return 0 ; - ret =uid_eq (rc->cr_uid, acred->cred->fsuid); - -check_expire: -if (ret ==0 ) -return ret; - -/* Notify acred users of GSS context expiration timeout */ -if (test_bit (RPC_CRED_NOTIFY_TIMEOUT , &acred->ac_flags) && - (gss_key_timeout (rc) !=0 )) { -/* test will now be done from generic cred */ -test_and_clear_bit (RPC_CRED_NOTIFY_TIMEOUT , &acred->ac_flags); -/* tell NFS layer that key will expire soon */ -set_bit (RPC_CRED_KEY_EXPIRE_SOON , &acred->ac_flags); + }else { +if (gss_cred->gc_principal !=NULL ) +return 0 ; + ret =uid_eq (rc->cr_uid, acred->cred->fsuid); }return ret; }
PATCH 16/23 SUNRPC: remove RPCAUTH_AUTH_NO_CRKEY_TIMEOUT
In reply to NeilBrownThis is no longer used.
--- include/linux/sunrpc/auth.h | 3 --- net/sunrpc/auth_null.c | 1 - net/sunrpc/auth_unix.c | 1 - 3 files changed, 5 deletions(-)
include/linux/sunrpc/auth.h +0 -3
@@ -69,9 +69,6 @@ struct rpc_cred {struct rpc_cred *rpc_machine_cred (void ); -/* rpc_auth au_flags */ -#define RPCAUTH_AUTH_NO_CRKEY_TIMEOUT 0x0001/* underlying cred has no key timeout */ -/* * Client authentication handle */
net/sunrpc/auth_null.c +0 -1
@@ -116,7 +116,6 @@ staticstruct rpc_auth null_auth = { .au_cslack =NUL_CALLSLACK , .au_rslack =NUL_REPLYSLACK , - .au_flags =RPCAUTH_AUTH_NO_CRKEY_TIMEOUT , .au_ops = &authnull_ops, .au_flavor =RPC_AUTH_NULL , .au_count =ATOMIC_INIT (0 ),
net/sunrpc/auth_unix.c +0 -1
@@ -237,7 +237,6 @@ staticstruct rpc_auth unix_auth = { .au_cslack =UNX_CALLSLACK , .au_rslack =NUL_REPLYSLACK , - .au_flags =RPCAUTH_AUTH_NO_CRKEY_TIMEOUT , .au_ops = &authunix_ops, .au_flavor =RPC_AUTH_UNIX , .au_count =ATOMIC_INIT (0 ),
PATCH 17/23 NFS: change access cache to use 'struct cred'.
In reply to NeilBrownRather than keying the access cache with 'struct rpc_cred', use 'struct cred'. Then use cred_fscmp() to compare credentials rather than comparing the raw pointer.
A benefit of this approach is that in the common case we avoid the rpc_lookup_cred_nonblock() call which can be slow when the cred cache is large. This also keeps many fewer items pinned in the rpc cred cache, so the cred cache is less likely to get large.
--- fs/nfs/dir.c | 44 +++++++++++++++++++------------------------- fs/nfs/nfs3proc.c | 9 ++++++++- fs/nfs/nfs4proc.c | 16 ++++++++++++---- include/linux/nfs_fs.h | 4 ++-- 4 files changed, 41 insertions(+), 32 deletions(-)
fs/nfs/dir.c +19 -25
@@ -2079,7 +2079,7 @@ MODULE_PARM_DESC(nfs_access_max_cachesize, "NFS access maximum total cache lengtstatic void nfs_access_free_entry (struct nfs_access_entry *entry) { -put_rpccred (entry->cred); +put_cred (entry->cred);kfree_rcu (entry, rcu_head);smp_mb__before_atomic ();atomic_long_dec (&nfs_access_nr_entries);
@@ -2205,17 +2205,18 @@ void nfs_access_zap_cache(struct inode *inode) }EXPORT_SYMBOL_GPL (nfs_access_zap_cache); -static struct nfs_access_entry *nfs_access_search_rbtree (struct inode *inode,struct rpc_cred *cred) +static struct nfs_access_entry *nfs_access_search_rbtree (struct inode *inode,const struct cred *cred) {struct rb_node *n =NFS_I (inode)->access_cache.rb_node; -struct nfs_access_entry *entry;while (n !=NULL ) { - entry = rb_entry(n, struct nfs_access_entry, rb_node); +struct nfs_access_entry *entry = + rb_entry(n, struct nfs_access_entry, rb_node); +int cmp =cred_fscmp (cred, entry->cred); -if (cred < entry->cred) +if (cmp <0 ) n = n->rb_left; -else if (cred > entry->cred) +else if (cmp >0 ) n = n->rb_right;else return entry;
@@ -2223,7 +2224,7 @@ static struct nfs_access_entry *nfs_access_search_rbtree(struct inode *inode, streturn NULL ; } -static int nfs_access_get_cached (struct inode *inode,struct rpc_cred *cred,struct nfs_access_entry *res,bool may_block) +static int nfs_access_get_cached (struct inode *inode,const struct cred *cred,struct nfs_access_entry *res,bool may_block) {struct nfs_inode *nfsi =NFS_I (inode);struct nfs_access_entry *cache;
@@ -2266,7 +2267,7 @@ static int nfs_access_get_cached(struct inode *inode, struct rpc_cred *cred, strreturn -ENOENT ; } -static int nfs_access_get_cached_rcu (struct inode *inode,struct rpc_cred *cred,struct nfs_access_entry *res) +static int nfs_access_get_cached_rcu (struct inode *inode,const struct cred *cred,struct nfs_access_entry *res) {/* Only check the most recently returned cache entry, * but do it without locking.
@@ -2303,15 +2304,17 @@ static void nfs_access_add_rbtree(struct inode *inode, struct nfs_access_entry *struct rb_node **p = &root_node->rb_node;struct rb_node *parent =NULL ;struct nfs_access_entry *entry; +int cmp;spin_lock (&inode->i_lock);while (*p !=NULL ) { parent = *p; entry = rb_entry(parent, struct nfs_access_entry, rb_node); + cmp =cred_fscmp (set->cred, entry->cred); -if (set->cred < entry->cred) +if (cmp <0 ) p = &parent->rb_left; -else if (set->cred > entry->cred) +else if (cmp >0 ) p = &parent->rb_right;else goto found;
@@ -2335,7 +2338,7 @@ void nfs_access_add_cache(struct inode *inode, struct nfs_access_entry *set)if (cache ==NULL )return ;RB_CLEAR_NODE (&cache->rb_node); - cache->cred =get_rpccred (set->cred); + cache->cred =get_cred (set->cred); cache->mask = set->mask;/* The above field assignments must be visible
@@ -2399,7 +2402,7 @@ void nfs_access_set_mask(struct nfs_access_entry *entry, u32 access_result) }EXPORT_SYMBOL_GPL (nfs_access_set_mask); -static int nfs_do_access (struct inode *inode,struct rpc_cred *cred,int mask) +static int nfs_do_access (struct inode *inode,const struct cred *cred,int mask) {struct nfs_access_entry cache;bool may_block = (mask &MAY_NOT_BLOCK ) ==0 ;
@@ -2463,7 +2466,7 @@ static int nfs_open_permission_mask(int openflags)return mask; } -int nfs_may_open (struct inode *inode,struct rpc_cred *cred,int openflags) +int nfs_may_open (struct inode *inode,const struct cred *cred,int openflags) {return nfs_do_access (inode, cred,nfs_open_permission_mask (openflags)); }
@@ -2486,7 +2489,7 @@ static int nfs_execute_ok(struct inode *inode, int mask)int nfs_permission (struct inode *inode,int mask) { -struct rpc_cred *cred; +const struct cred *cred =current_cred ();int res =0 ;nfs_inc_stats (inode,NFSIOS_VFSACCESS );
@@ -2520,20 +2523,11 @@ int nfs_permission(struct inode *inode, int mask)/* Always try fast lookups first */ rcu_read_lock (); - cred =rpc_lookup_cred_nonblock (); -if (!IS_ERR (cred)) - res =nfs_do_access (inode, cred, mask|MAY_NOT_BLOCK ); -else - res =PTR_ERR (cred); + res =nfs_do_access (inode, cred, mask|MAY_NOT_BLOCK );rcu_read_unlock ();if (res == -ECHILD && !(mask &MAY_NOT_BLOCK )) {/* Fast lookup failed, try the slow way */ - cred =rpc_lookup_cred (); -if (!IS_ERR (cred)) { - res =nfs_do_access (inode, cred, mask); -put_rpccred (cred); - }else - res =PTR_ERR (cred); + res =nfs_do_access (inode, cred, mask); } out:if (!res && (mask &MAY_EXEC ))
fs/nfs/nfs3proc.c +8 -1
@@ -191,15 +191,20 @@ static int nfs3_proc_access(struct inode *inode, struct nfs_access_entry *entry) .access = entry->mask, };struct nfs3_accessres res; +struct auth_cred acred = { + .cred = entry->cred, + };struct rpc_message msg = { .rpc_proc = &nfs3_procedures[NFS3PROC_ACCESS ], .rpc_argp = &arg, .rpc_resp = &res, - .rpc_cred = entry->cred, + .rpc_cred =rpc_lookup_generic_cred (&acred,0 ,GFP_NOFS ), };int status = -ENOMEM ;dprintk ("NFS call access\n" ); +if (!msg.rpc_cred) + goto out; res.fattr =nfs_alloc_fattr ();if (res.fattr ==NULL ) goto out;
@@ -210,6 +215,8 @@ static int nfs3_proc_access(struct inode *inode, struct nfs_access_entry *entry)nfs_access_set_mask (entry, res.access);nfs_free_fattr (res.fattr); out: +if (msg.rpc_cred) +put_rpccred (msg.rpc_cred);dprintk ("NFS reply access: %d\n" , status);return status; }
fs/nfs/nfs4proc.c +12 -4
@@ -1709,7 +1709,7 @@ static struct nfs4_state *nfs4_try_open_cached(struct nfs4_opendata *opendata)rcu_read_unlock ();nfs_release_seqid (opendata->o_arg.seqid);if (!opendata->is_recover) { - ret =nfs_may_open (state->inode, state->owner->so_cred, open_mode); + ret =nfs_may_open (state->inode, state->owner->so_cred->cr_cred, open_mode);if (ret !=0 ) goto out; }
@@ -2420,7 +2420,7 @@ static int nfs4_opendata_access(struct rpc_cred *cred, }else if ((fmode &FMODE_READ ) && !opendata->file_created) mask =NFS4_ACCESS_READ ; - cache.cred = cred; + cache.cred = cred->cr_cred;nfs_access_set_mask (&cache, opendata->o_res.access_result);nfs_access_add_cache (state->inode, &cache);
@@ -4054,17 +4054,24 @@ static int _nfs4_proc_access(struct inode *inode, struct nfs_access_entry *entrystruct nfs4_accessres res = { .server = server, }; +struct auth_cred acred = { + .cred = entry->cred, + };struct rpc_message msg = { .rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_ACCESS ], .rpc_argp = &args, .rpc_resp = &res, - .rpc_cred = entry->cred, + .rpc_cred =rpc_lookup_generic_cred (&acred,0 ,GFP_NOFS ), };int status =0 ; +if (!msg.rpc_cred) +return -ENOMEM ; res.fattr =nfs_alloc_fattr (); -if (res.fattr ==NULL ) +if (res.fattr ==NULL ) { +put_rpccred (msg.rpc_cred);return -ENOMEM ; + } status =nfs4_call_sync (server->client, server, &msg, &args.seq_args, &res.seq_res,0 );if (!status) {
@@ -4072,6 +4079,7 @@ static int _nfs4_proc_access(struct inode *inode, struct nfs_access_entry *entrynfs_refresh_inode (inode, res.fattr); }nfs_free_fattr (res.fattr); +put_rpccred (msg.rpc_cred);return status; }
include/linux/nfs_fs.h +2 -2
@@ -51,7 +51,7 @@struct nfs_access_entry {struct rb_node rb_node;struct list_head lru; -struct rpc_cred * cred; +const struct cred * cred;__u32 mask;struct rcu_head rcu_head; };
@@ -467,7 +467,7 @@ extern const struct dentry_operations nfs_dentry_operations;extern void nfs_force_lookup_revalidate (struct inode *dir);extern int nfs_instantiate (struct dentry *dentry,struct nfs_fh *fh,struct nfs_fattr *fattr,struct nfs4_label *label); -extern int nfs_may_open (struct inode *inode,struct rpc_cred *cred,int openflags); +extern int nfs_may_open (struct inode *inode,const struct cred *cred,int openflags);extern void nfs_access_zap_cache (struct inode *inode);/*
PATCH 18/23 NFS: struct nfs_open_dir_context: convert rpc_cred pointer to cred.
In reply to NeilBrownUse the common 'struct cred' to pass credentials for readdir.
--- fs/nfs/dir.c | 15 +++++---------- fs/nfs/nfs3proc.c | 11 +++++++++-- fs/nfs/nfs4proc.c | 13 ++++++++++--- fs/nfs/proc.c | 11 +++++++++-- include/linux/nfs_fs.h | 2 +- include/linux/nfs_xdr.h | 2 +- 6 files changed, 35 insertions(+), 19 deletions(-)
fs/nfs/dir.c +5 -10
@@ -67,7 +67,7 @@ const struct address_space_operations nfs_dir_aops = { .freepage = nfs_readdir_clear_array, }; -static struct nfs_open_dir_context *alloc_nfs_open_dir_context (struct inode *dir,struct rpc_cred *cred) +static struct nfs_open_dir_context *alloc_nfs_open_dir_context (struct inode *dir,const struct cred *cred) {struct nfs_inode *nfsi =NFS_I (dir);struct nfs_open_dir_context *ctx;
@@ -77,7 +77,7 @@ static struct nfs_open_dir_context *alloc_nfs_open_dir_context(struct inode *dir ctx->attr_gencount = nfsi->attr_gencount; ctx->dir_cookie =0 ; ctx->dup_cookie =0 ; - ctx->cred =get_rpccred (cred); + ctx->cred =get_cred (cred);spin_lock (&dir->i_lock);list_add (&ctx->list, &nfsi->open_files);spin_unlock (&dir->i_lock);
@@ -91,7 +91,7 @@ static void put_nfs_open_dir_context(struct inode *dir, struct nfs_open_dir_contspin_lock (&dir->i_lock);list_del (&ctx->list);spin_unlock (&dir->i_lock); -put_rpccred (ctx->cred); +put_cred (ctx->cred);kfree (ctx); }
@@ -103,23 +103,18 @@ nfs_opendir(struct inode *inode, struct file *filp) {int res =0 ;struct nfs_open_dir_context *ctx; -struct rpc_cred *cred;dfprintk (FILE ,"NFS: open dir(%pD2)\n" , filp);nfs_inc_stats (inode,NFSIOS_VFSOPEN ); - cred =rpc_lookup_cred (); -if (IS_ERR (cred)) -return PTR_ERR (cred); - ctx =alloc_nfs_open_dir_context (inode, cred); + ctx =alloc_nfs_open_dir_context (inode,current_cred ());if (IS_ERR (ctx)) { res =PTR_ERR (ctx); goto out; } filp->private_data = ctx; out: -put_rpccred (cred);return res; }
@@ -334,7 +329,7 @@ int nfs_readdir_xdr_filler(struct page **pages, nfs_readdir_descriptor_t *desc, struct nfs_entry *entry, struct file *file, struct inode *inode) { struct nfs_open_dir_context *ctx = file->private_data; -struct rpc_cred *cred = ctx->cred; +const struct cred *cred = ctx->cred;unsigned long timestamp, gencount;int error;
fs/nfs/nfs3proc.c +9 -2
@@ -606,7 +606,7 @@ nfs3_proc_rmdir(struct inode *dir, const struct qstr *name)* readdirplus. */ static int -nfs3_proc_readdir (struct dentry *dentry,struct rpc_cred *cred, +nfs3_proc_readdir (struct dentry *dentry,const struct cred *cred,u64 cookie,struct page **pages,unsigned int count,bool plus) {struct inode *dir =d_inode (dentry);
@@ -623,11 +623,15 @@ nfs3_proc_readdir(struct dentry *dentry, struct rpc_cred *cred, .verf = verf, .plus = plus }; +struct auth_cred acred = { + .cred = cred, + };struct rpc_message msg = { .rpc_proc = &nfs3_procedures[NFS3PROC_READDIR ], .rpc_argp = &arg, .rpc_resp = &res, - .rpc_cred = cred + .rpc_cred =rpc_lookup_generic_cred (&acred, +0 ,GFP_NOFS ), };int status = -ENOMEM ;
@@ -637,6 +641,8 @@ nfs3_proc_readdir(struct dentry *dentry, struct rpc_cred *cred,dprintk ("NFS call readdir%s %d\n" , plus?"plus" :"" , (unsigned int ) cookie); +if (!msg.rpc_cred) +return -ENOMEM ; res.dir_attr =nfs_alloc_fattr ();if (res.dir_attr ==NULL ) goto out;
@@ -648,6 +654,7 @@ nfs3_proc_readdir(struct dentry *dentry, struct rpc_cred *cred,nfs_free_fattr (res.dir_attr); out: +put_rpccred (msg.rpc_cred);dprintk ("NFS reply readdir%s: %d\n" , plus?"plus" :"" , status);return status;
fs/nfs/nfs4proc.c +10 -3
@@ -4503,7 +4503,7 @@ static int nfs4_proc_mkdir(struct inode *dir, struct dentry *dentry,return err; } -static int _nfs4_proc_readdir (struct dentry *dentry,struct rpc_cred *cred, +static int _nfs4_proc_readdir (struct dentry *dentry,const struct cred *cred,u64 cookie,struct page **pages,unsigned int count,bool plus) {struct inode *dir =d_inode (dentry);
@@ -4516,17 +4516,23 @@ static int _nfs4_proc_readdir(struct dentry *dentry, struct rpc_cred *cred, .plus = plus, };struct nfs4_readdir_res res; +struct auth_cred acred = { + .cred = cred, + };struct rpc_message msg = { .rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_READDIR ], .rpc_argp = &args, .rpc_resp = &res, - .rpc_cred = cred, + .rpc_cred =rpc_lookup_generic_cred (&acred, +0 ,GFP_NOFS ), };int status;dprintk ("%s: dentry = %pd2, cookie = %Lu\n" , __func__, dentry, (unsigned long long )cookie); +if (!msg.rpc_cred) +return -ENOMEM ;nfs4_setup_readdir (cookie,NFS_I (dir)->cookieverf, dentry, &args); res.pgbase = args.pgbase; status =nfs4_call_sync (NFS_SERVER (dir)->client,NFS_SERVER (dir), &msg, &args.seq_args, &res.seq_res,0 );
@@ -4537,11 +4543,12 @@ static int _nfs4_proc_readdir(struct dentry *dentry, struct rpc_cred *cred,nfs_invalidate_atime (dir); +put_rpccred (msg.rpc_cred);dprintk ("%s: returns %d\n" , __func__, status);return status; } -static int nfs4_proc_readdir (struct dentry *dentry,struct rpc_cred *cred, +static int nfs4_proc_readdir (struct dentry *dentry,const struct cred *cred,u64 cookie,struct page **pages,unsigned int count,bool plus) {struct nfs4_exception exception = { };
fs/nfs/proc.c +9 -2
@@ -485,7 +485,7 @@ nfs_proc_rmdir(struct inode *dir, const struct qstr *name)* from nfs_readdir by calling the decode_entry function directly. */ static int -nfs_proc_readdir (struct dentry *dentry,struct rpc_cred *cred, +nfs_proc_readdir (struct dentry *dentry,const struct cred *cred,u64 cookie,struct page **pages,unsigned int count,bool plus) {struct inode *dir =d_inode (dentry);
@@ -495,18 +495,25 @@ nfs_proc_readdir(struct dentry *dentry, struct rpc_cred *cred, .count = count, .pages = pages, }; +struct auth_cred acred = { + .cred = cred, + };struct rpc_message msg = { .rpc_proc = &nfs_procedures[NFSPROC_READDIR ], .rpc_argp = &arg, - .rpc_cred = cred, + .rpc_cred =rpc_lookup_generic_cred (&acred, +0 ,GFP_NOFS ), };int status;dprintk ("NFS call readdir %d\n" , (unsigned int )cookie); +if (!msg.rpc_cred) +return -ENOMEM ; status =rpc_call_sync (NFS_CLIENT (dir), &msg,0 );nfs_invalidate_atime (dir); +put_rpccred (msg.rpc_cred);dprintk ("NFS reply readdir: %d\n" , status);return status; }
include/linux/nfs_fs.h +1 -1
@@ -87,7 +87,7 @@ struct nfs_open_context {struct nfs_open_dir_context {struct list_head list; -struct rpc_cred *cred; +const struct cred *cred;unsigned long attr_gencount;__u64 dir_cookie;__u64 dup_cookie;
include/linux/nfs_xdr.h +1 -1
@@ -1602,7 +1602,7 @@ struct nfs_rpc_ops { unsigned int, struct iattr *);int (*mkdir) (struct inode *,struct dentry *,struct iattr *);int (*rmdir) (struct inode *,const struct qstr *); -int (*readdir) (struct dentry *,struct rpc_cred *, +int (*readdir) (struct dentry *,const struct cred *,u64 ,struct page **,unsigned int ,bool );int (*mknod) (struct inode *,struct dentry *,struct iattr *,dev_t );
PATCH 19/23 NFS/NFSD/SUNRPC: replace generic creds with 'struct cred'.
In reply to NeilBrownSUNRPC has two sorts of credentials, both of which appear as "struct rpc_cred".
There are "generic credentials" which are supplied by clients such as NFS and passed in 'struct rpc_message' to indicate which user should be used to authorize the request, and there are low-level credentials such as AUTH_NULL, AUTH_UNIX, AUTH_GSS which describe the credential to be sent over the wires.
This patch replaces all the generic credentials by 'struct cred' pointers - the credential structure used throughout Linux.
For machine credentials, there is a special 'struct cred *' pointer which is statically allocated and recognized where needed as having a special meaning. A look-up of a low-level cred will map this to a machine credential.
CHANGES: protect some put_cred() call if cred could be NULL.
--- fs/lockd/clntproc.c | 6 + fs/nfs/blocklayout/blocklayout.c | 2 fs/nfs/delegation.c | 26 ++--- fs/nfs/delegation.h | 10 +- fs/nfs/flexfilelayout/flexfilelayout.c | 31 ++--- fs/nfs/flexfilelayout/flexfilelayout.h | 8 + fs/nfs/flexfilelayout/flexfilelayoutdev.c | 16 +-- fs/nfs/inode.c | 10 +- fs/nfs/internal.h | 8 + fs/nfs/nfs3proc.c | 18 --- fs/nfs/nfs4_fs.h | 56 +++++----- fs/nfs/nfs4client.c | 4 - fs/nfs/nfs4proc.c | 166 +++++++++++++---------------- fs/nfs/nfs4renewd.c | 4 - fs/nfs/nfs4session.c | 4 - fs/nfs/nfs4state.c | 90 ++++++++-------- fs/nfs/pagelist.c | 2 fs/nfs/pnfs.c | 10 +- fs/nfs/pnfs.h | 10 +- fs/nfs/pnfs_dev.c | 4 - fs/nfs/pnfs_nfs.c | 2 fs/nfs/proc.c | 9 -- fs/nfs/unlink.c | 15 +-- fs/nfs/write.c | 2 fs/nfsd/nfs4callback.c | 16 +-- fs/nfsd/state.h | 2 include/linux/nfs_fs.h | 6 + include/linux/nfs_xdr.h | 14 +- include/linux/sunrpc/auth.h | 20 --- include/linux/sunrpc/sched.h | 2 net/sunrpc/auth.c | 14 ++ net/sunrpc/clnt.c | 4 - net/sunrpc/sched.c | 2 33 files changed, 262 insertions(+), 331 deletions(-)
fs/lockd/clntproc.c +3 -3
@@ -256,7 +256,7 @@ static int nlm_wait_on_grace(wait_queue_head_t *queue)* Generic NLM call */ static int -nlmclnt_call (struct rpc_cred *cred,struct nlm_rqst *req,u32 proc) +nlmclnt_call (const struct cred *cred,struct nlm_rqst *req,u32 proc) {struct nlm_host *host = req->a_host;struct rpc_clnt *clnt;
@@ -401,7 +401,7 @@ int nlm_async_reply(struct nlm_rqst *req, u32 proc, const struct rpc_call_ops *t* completion in order to be able to correctly track the lock * state. */ -static int nlmclnt_async_call (struct rpc_cred *cred,struct nlm_rqst *req,u32 proc,const struct rpc_call_ops *tk_ops) +static int nlmclnt_async_call (const struct cred *cred,struct nlm_rqst *req,u32 proc,const struct rpc_call_ops *tk_ops) {struct rpc_message msg = { .rpc_argp = &req->a_args,
@@ -510,7 +510,7 @@ static int do_vfs_lock(struct file_lock *fl)static int nlmclnt_lock (struct nlm_rqst *req,struct file_lock *fl) { -struct rpc_cred *cred =nfs_file_cred (fl->fl_file); +const struct cred *cred =nfs_file_cred (fl->fl_file);struct nlm_host *host = req->a_host;struct nlm_res *resp = &req->a_res;struct nlm_wait *block =NULL ;
fs/nfs/blocklayout/blocklayout.c +1 -1
@@ -584,7 +584,7 @@ static int decode_sector_number(__be32 **rp, sector_t *sp)static struct nfs4_deviceid_node *bl_find_get_deviceid (struct nfs_server *server, -const struct nfs4_deviceid *id,struct rpc_cred *cred, +const struct nfs4_deviceid *id,const struct cred *cred,gfp_t gfp_mask) {struct nfs4_deviceid_node *node;
fs/nfs/delegation.c +14 -12
@@ -26,7 +26,7 @@static void nfs_free_delegation (struct nfs_delegation *delegation) {if (delegation->cred) { -put_rpccred (delegation->cred); +put_cred (delegation->cred); delegation->cred =NULL ; }kfree_rcu (delegation, rcu);
@@ -174,11 +174,11 @@ static int nfs_delegation_claim_opens(struct inode *inode,* @res: new delegation state from server * */ -void nfs_inode_reclaim_delegation (struct inode *inode,struct rpc_cred *cred, +void nfs_inode_reclaim_delegation (struct inode *inode,const struct cred *cred,struct nfs_openres *res) {struct nfs_delegation *delegation; -struct rpc_cred *oldcred =NULL ; +const struct cred *oldcred =NULL ;rcu_read_lock (); delegation =rcu_dereference (NFS_I (inode)->delegation);
@@ -189,12 +189,13 @@ void nfs_inode_reclaim_delegation(struct inode *inode, struct rpc_cred *cred, delegation->type = res->delegation_type; delegation->pagemod_limit = res->pagemod_limit; oldcred = delegation->cred; - delegation->cred =get_rpccred (cred); + delegation->cred =get_cred (cred);clear_bit (NFS_DELEGATION_NEED_RECLAIM , &delegation->flags);spin_unlock (&delegation->lock);rcu_read_unlock (); -put_rpccred (oldcred); +if (oldcred) +put_cred (oldcred);trace_nfs4_reclaim_delegation (inode, res->delegation_type);return ; }
@@ -333,7 +334,7 @@ nfs_update_inplace_delegation(struct nfs_delegation *delegation,* * Returns zero on success, or a negative errno value. */ -int nfs_inode_set_delegation (struct inode *inode,struct rpc_cred *cred,struct nfs_openres *res) +int nfs_inode_set_delegation (struct inode *inode,const struct cred *cred,struct nfs_openres *res) {struct nfs_server *server =NFS_SERVER (inode);struct nfs_client *clp = server->nfs_client;
@@ -349,7 +350,7 @@ int nfs_inode_set_delegation(struct inode *inode, struct rpc_cred *cred, struct delegation->type = res->delegation_type; delegation->pagemod_limit = res->pagemod_limit; delegation->change_attr =inode_peek_iversion_raw (inode); - delegation->cred =get_rpccred (cred); + delegation->cred =get_cred (cred); delegation->inode = inode; delegation->flags =1 <<NFS_DELEGATION_REFERENCED ;spin_lock_init (&delegation->lock);
@@ -954,7 +955,7 @@ void nfs_reap_expired_delegations(struct nfs_client *clp)struct nfs_delegation *delegation;struct nfs_server *server;struct inode *inode; -struct rpc_cred *cred; +const struct cred *cred;nfs4_stateid stateid; restart:
@@ -976,7 +977,7 @@ void nfs_reap_expired_delegations(struct nfs_client *clp)nfs_sb_deactive (server->super); goto restart; } - cred =get_rpccred_rcu (delegation->cred); + cred =get_cred_rcu (delegation->cred);nfs4_stateid_copy (&stateid, &delegation->stateid);clear_bit (NFS_DELEGATION_TEST_EXPIRED , &delegation->flags);rcu_read_unlock ();
@@ -985,7 +986,8 @@ void nfs_reap_expired_delegations(struct nfs_client *clp)nfs_revoke_delegation (inode, &stateid);nfs_inode_find_state_and_recover (inode, &stateid); } -put_rpccred (cred); +if (cred) +put_cred (cred);if (nfs4_server_rebooted (clp)) {nfs_inode_mark_test_expired_delegation (server,inode);iput (inode);
@@ -1079,7 +1081,7 @@ bool nfs4_refresh_delegation_stateid(nfs4_stateid *dst, struct inode *inode)* otherwise "false" is returned. */ bool nfs4_copy_delegation_stateid (struct inode *inode,fmode_t flags, -nfs4_stateid *dst,struct rpc_cred **cred) +nfs4_stateid *dst,const struct cred **cred) {struct nfs_inode *nfsi =NFS_I (inode);struct nfs_delegation *delegation;
@@ -1093,7 +1095,7 @@ bool nfs4_copy_delegation_stateid(struct inode *inode, fmode_t flags,nfs4_stateid_copy (dst, &delegation->stateid);nfs_mark_delegation_referenced (delegation);if (cred) - *cred =get_rpccred (delegation->cred); + *cred =get_cred (delegation->cred); }rcu_read_unlock ();return ret;
fs/nfs/delegation.h +5 -5
@@ -15,7 +15,7 @@*/ struct nfs_delegation {struct list_head super_list; -struct rpc_cred *cred; +const struct cred *cred;struct inode *inode;nfs4_stateid stateid;fmode_t type;
@@ -36,8 +36,8 @@ enum { NFS_DELEGATION_TEST_EXPIRED, }; -int nfs_inode_set_delegation (struct inode *inode,struct rpc_cred *cred,struct nfs_openres *res); -void nfs_inode_reclaim_delegation (struct inode *inode,struct rpc_cred *cred,struct nfs_openres *res); +int nfs_inode_set_delegation (struct inode *inode,const struct cred *cred,struct nfs_openres *res); +void nfs_inode_reclaim_delegation (struct inode *inode,const struct cred *cred,struct nfs_openres *res);int nfs4_inode_return_delegation (struct inode *inode);int nfs_async_inode_return_delegation (struct inode *inode,const nfs4_stateid *stateid);void nfs_inode_return_delegation_noreclaim (struct inode *inode);
@@ -58,10 +58,10 @@ void nfs_mark_test_expired_all_delegations(struct nfs_client *clp);void nfs_reap_expired_delegations (struct nfs_client *clp);/* NFSv4 delegation-related procedures */ -int nfs4_proc_delegreturn (struct inode *inode,struct rpc_cred *cred,const nfs4_stateid *stateid,int issync); +int nfs4_proc_delegreturn (struct inode *inode,const struct cred *cred,const nfs4_stateid *stateid,int issync);int nfs4_open_delegation_recall (struct nfs_open_context *ctx,struct nfs4_state *state,const nfs4_stateid *stateid,fmode_t type);int nfs4_lock_delegation_recall (struct file_lock *fl,struct nfs4_state *state,const nfs4_stateid *stateid); -bool nfs4_copy_delegation_stateid (struct inode *inode,fmode_t flags,nfs4_stateid *dst,struct rpc_cred **cred); +bool nfs4_copy_delegation_stateid (struct inode *inode,fmode_t flags,nfs4_stateid *dst,const struct cred **cred);bool nfs4_refresh_delegation_stateid (nfs4_stateid *dst,struct inode *inode);void nfs_mark_delegation_referenced (struct nfs_delegation *delegation);
fs/nfs/flexfilelayout/flexfilelayout.c +11 -20
@@ -224,16 +224,16 @@ static struct nfs4_ff_layout_mirror *ff_layout_alloc_mirror(gfp_t gfp_flags)static void ff_layout_free_mirror (struct nfs4_ff_layout_mirror *mirror) { -struct rpc_cred *cred; +const struct cred *cred;ff_layout_remove_mirror (mirror);kfree (mirror->fh_versions); cred =rcu_access_pointer (mirror->ro_cred);if (cred) -put_rpccred (cred); +put_cred (cred); cred =rcu_access_pointer (mirror->rw_cred);if (cred) -put_rpccred (cred); +put_cred (cred);nfs4_ff_layout_put_deviceid (mirror->mirror_ds);kfree (mirror); }
@@ -411,9 +411,8 @@ ff_layout_alloc_lseg(struct pnfs_layout_hdr *lh,for (i =0 ; i < fls->mirror_array_cnt; i++) {struct nfs4_ff_layout_mirror *mirror; -struct auth_cred acred = {}; -struct rpc_cred __rcu *cred;struct cred *kcred; +const struct cred *cred;kuid_t uid;kgid_t gid;u32 ds_count, fh_count, id;
@@ -504,15 +503,7 @@ ff_layout_alloc_lseg(struct pnfs_layout_hdr *lh, goto out_err_free; kcred->fsuid = uid; kcred->fsgid = gid; - acred.cred = kcred; - -/* find the cred for it */ -rcu_assign_pointer (cred,rpc_lookup_generic_cred (&acred,0 , gfp_flags)); -put_cred (kcred); -if (IS_ERR (cred)) { - rc =PTR_ERR (cred); - goto out_err_free; - } + cred = kcred;if (lgr->range.iomode ==IOMODE_READ )rcu_assign_pointer (fls->mirror_array[i]->ro_cred, cred);
@@ -1716,7 +1707,7 @@ ff_layout_read_pagelist(struct nfs_pgio_header *hdr)struct pnfs_layout_segment *lseg = hdr->lseg;struct nfs4_pnfs_ds *ds;struct rpc_clnt *ds_clnt; -struct rpc_cred *ds_cred; +const struct cred *ds_cred;loff_t offset = hdr->args.offset;u32 idx = hdr->pgio_mirror_idx;int vers;
@@ -1762,7 +1753,7 @@ ff_layout_read_pagelist(struct nfs_pgio_header *hdr) vers ==3 ? &ff_layout_read_call_ops_v3 : &ff_layout_read_call_ops_v4, 0, RPC_TASK_SOFTCONN); -put_rpccred (ds_cred); +put_cred (ds_cred);return PNFS_ATTEMPTED ; out_failed:
@@ -1778,7 +1769,7 @@ ff_layout_write_pagelist(struct nfs_pgio_header *hdr, int sync)struct pnfs_layout_segment *lseg = hdr->lseg;struct nfs4_pnfs_ds *ds;struct rpc_clnt *ds_clnt; -struct rpc_cred *ds_cred; +const struct cred *ds_cred;loff_t offset = hdr->args.offset;int vers;struct nfs_fh *fh;
@@ -1823,7 +1814,7 @@ ff_layout_write_pagelist(struct nfs_pgio_header *hdr, int sync) vers ==3 ? &ff_layout_write_call_ops_v3 : &ff_layout_write_call_ops_v4, sync, RPC_TASK_SOFTCONN); -put_rpccred (ds_cred); +put_cred (ds_cred);return PNFS_ATTEMPTED ; out_failed:
@@ -1853,7 +1844,7 @@ static int ff_layout_initiate_commit(struct nfs_commit_data *data, int how)struct pnfs_layout_segment *lseg = data->lseg;struct nfs4_pnfs_ds *ds;struct rpc_clnt *ds_clnt; -struct rpc_cred *ds_cred; +const struct cred *ds_cred;u32 idx;int vers, ret;struct nfs_fh *fh;
@@ -1893,7 +1884,7 @@ static int ff_layout_initiate_commit(struct nfs_commit_data *data, int how) vers ==3 ? &ff_layout_commit_call_ops_v3 : &ff_layout_commit_call_ops_v4, how, RPC_TASK_SOFTCONN); -put_rpccred (ds_cred); +put_cred (ds_cred);return ret; out_err:pnfs_generic_prepare_to_resend_writes (data);
fs/nfs/flexfilelayout/flexfilelayout.h +4 -4
@@ -81,8 +81,8 @@ struct nfs4_ff_layout_mirror {u32 fh_versions_cnt;struct nfs_fh *fh_versions;nfs4_stateid stateid; -struct rpc_cred __rcu *ro_cred; -struct rpc_cred __rcu *rw_cred; +const struct cred __rcu *ro_cred; +const struct cred __rcu *rw_cred;refcount_t ref;spinlock_t lock;unsigned long flags;
@@ -225,8 +225,8 @@ nfs4_ff_find_or_create_ds_client(struct pnfs_layout_segment *lseg,u32 ds_idx, struct nfs_client *ds_clp, struct inode *inode); -struct rpc_cred *ff_layout_get_ds_cred (struct pnfs_layout_segment *lseg, -u32 ds_idx,struct rpc_cred *mdscred); +const struct cred *ff_layout_get_ds_cred (struct pnfs_layout_segment *lseg, +u32 ds_idx,const struct cred *mdscred);bool ff_layout_avoid_mds_available_ds (struct pnfs_layout_segment *lseg);bool ff_layout_avoid_read_on_rw (struct pnfs_layout_segment *lseg);
fs/nfs/flexfilelayout/flexfilelayoutdev.c +8 -8
@@ -329,10 +329,10 @@ int ff_layout_track_ds_error(struct nfs4_flexfile_layout *flo,return 0 ; } -static struct rpc_cred * +static const struct cred *ff_layout_get_mirror_cred (struct nfs4_ff_layout_mirror *mirror,u32 iomode) { -struct rpc_cred *cred,__rcu **pcred; +const struct cred *cred,__rcu **pcred;if (iomode ==IOMODE_READ ) pcred = &mirror->ro_cred;
@@ -345,7 +345,7 @@ ff_layout_get_mirror_cred(struct nfs4_ff_layout_mirror *mirror, u32 iomode)if (!cred)break ; - cred =get_rpccred_rcu (cred); + cred =get_cred_rcu (cred); }while (!cred);rcu_read_unlock ();return cred;
@@ -445,19 +445,19 @@ nfs4_ff_layout_prepare_ds(struct pnfs_layout_segment *lseg, u32 ds_idx,return ds; } -struct rpc_cred * +const struct cred *ff_layout_get_ds_cred (struct pnfs_layout_segment *lseg,u32 ds_idx, -struct rpc_cred *mdscred) +const struct cred *mdscred) {struct nfs4_ff_layout_mirror *mirror =FF_LAYOUT_COMP (lseg, ds_idx); -struct rpc_cred *cred; +const struct cred *cred;if (mirror) { cred =ff_layout_get_mirror_cred (mirror, lseg->pls_range.iomode);if (!cred) - cred =get_rpccred (mdscred); + cred =get_cred (mdscred); }else { - cred =get_rpccred (mdscred); + cred =get_cred (mdscred); }return cred; }
fs/nfs/inode.c +4 -6
@@ -911,13 +911,11 @@ struct nfs_open_context *alloc_nfs_open_context(struct dentry *dentry, struct file *filp) {struct nfs_open_context *ctx; -struct rpc_cred *cred =rpc_lookup_cred (); -if (IS_ERR (cred)) -return ERR_CAST (cred); +const struct cred *cred =get_current_cred (); ctx =kmalloc (sizeof (*ctx),GFP_KERNEL );if (!ctx) { -put_rpccred (cred); +put_cred (cred);return ERR_PTR (-ENOMEM ); }nfs_sb_active (dentry->d_sb);
@@ -960,7 +958,7 @@ static void __put_nfs_open_context(struct nfs_open_context *ctx, int is_sync)if (inode !=NULL )NFS_PROTO (inode)->close_context (ctx, is_sync);if (ctx->cred !=NULL ) -put_rpccred (ctx->cred); +put_cred (ctx->cred);dput (ctx->dentry);nfs_sb_deactive (sb);put_rpccred (ctx->ll_cred);
@@ -1008,7 +1006,7 @@ EXPORT_SYMBOL_GPL(nfs_file_set_open_context);/* * Given an inode, search for an open context with the desired characteristics */ -struct nfs_open_context *nfs_find_open_context (struct inode *inode,struct rpc_cred *cred,fmode_t mode) +struct nfs_open_context *nfs_find_open_context (struct inode *inode,const struct cred *cred,fmode_t mode) {struct nfs_inode *nfsi =NFS_I (inode);struct nfs_open_context *pos, *ctx =NULL ;
fs/nfs/internal.h +4 -4
@@ -254,7 +254,7 @@ struct nfs_pgio_header *nfs_pgio_header_alloc(const struct nfs_rw_ops *);void nfs_pgio_header_free (struct nfs_pgio_header *);int nfs_generic_pgio (struct nfs_pageio_descriptor *,struct nfs_pgio_header *);int nfs_initiate_pgio (struct rpc_clnt *clnt,struct nfs_pgio_header *hdr, -struct rpc_cred *cred,const struct nfs_rpc_ops *rpc_ops, +const struct cred *cred,const struct nfs_rpc_ops *rpc_ops,const struct rpc_call_ops *call_ops,int how,int flags);void nfs_free_request (struct nfs_page *req); struct nfs_pgio_mirror *
@@ -269,7 +269,7 @@ static inline bool nfs_pgio_has_mirroring(struct nfs_pageio_descriptor *desc)static inline bool nfs_match_open_context (const struct nfs_open_context *ctx1,const struct nfs_open_context *ctx2) { -return ctx1->cred == ctx2->cred && ctx1->state == ctx2->state; +return cred_fscmp (ctx1->cred, ctx2->cred) ==0 && ctx1->state == ctx2->state; }/* nfs2xdr.c */
@@ -565,10 +565,10 @@ extern struct nfs_client *nfs4_init_client(struct nfs_client *clp, const struct nfs_client_initdata *);extern int nfs40_walk_client_list (struct nfs_client *clp,struct nfs_client **result, -struct rpc_cred *cred); +const struct cred *cred);extern int nfs41_walk_client_list (struct nfs_client *clp,struct nfs_client **result, -struct rpc_cred *cred); +const struct cred *cred);extern int nfs4_test_session_trunk (struct rpc_clnt *,struct rpc_xprt *,void *);
fs/nfs/nfs3proc.c +2 -16
@@ -191,20 +191,15 @@ static int nfs3_proc_access(struct inode *inode, struct nfs_access_entry *entry) .access = entry->mask, };struct nfs3_accessres res; -struct auth_cred acred = { - .cred = entry->cred, - };struct rpc_message msg = { .rpc_proc = &nfs3_procedures[NFS3PROC_ACCESS ], .rpc_argp = &arg, .rpc_resp = &res, - .rpc_cred =rpc_lookup_generic_cred (&acred,0 ,GFP_NOFS ), + .rpc_cred = entry->cred, };int status = -ENOMEM ;dprintk ("NFS call access\n" ); -if (!msg.rpc_cred) - goto out; res.fattr =nfs_alloc_fattr ();if (res.fattr ==NULL ) goto out;
@@ -215,8 +210,6 @@ static int nfs3_proc_access(struct inode *inode, struct nfs_access_entry *entry)nfs_access_set_mask (entry, res.access);nfs_free_fattr (res.fattr); out: -if (msg.rpc_cred) -put_rpccred (msg.rpc_cred);dprintk ("NFS reply access: %d\n" , status);return status; }
@@ -623,15 +616,11 @@ nfs3_proc_readdir(struct dentry *dentry, const struct cred *cred, .verf = verf, .plus = plus }; -struct auth_cred acred = { - .cred = cred, - };struct rpc_message msg = { .rpc_proc = &nfs3_procedures[NFS3PROC_READDIR ], .rpc_argp = &arg, .rpc_resp = &res, - .rpc_cred =rpc_lookup_generic_cred (&acred, -0 ,GFP_NOFS ), + .rpc_cred = cred, };int status = -ENOMEM ;
@@ -641,8 +630,6 @@ nfs3_proc_readdir(struct dentry *dentry, const struct cred *cred,dprintk ("NFS call readdir%s %d\n" , plus?"plus" :"" , (unsigned int ) cookie); -if (!msg.rpc_cred) -return -ENOMEM ; res.dir_attr =nfs_alloc_fattr ();if (res.dir_attr ==NULL ) goto out;
@@ -654,7 +641,6 @@ nfs3_proc_readdir(struct dentry *dentry, const struct cred *cred,nfs_free_fattr (res.dir_attr); out: -put_rpccred (msg.rpc_cred);dprintk ("NFS reply readdir%s: %d\n" , plus?"plus" :"" , status);return status;
fs/nfs/nfs4_fs.h +28 -28
128 lines not on this page · raw message
fs/nfs/nfs4client.c +2 -2
@@ -530,7 +530,7 @@ static int nfs4_match_client(struct nfs_client *pos, struct nfs_client *new,*/ int nfs40_walk_client_list (struct nfs_client *new,struct nfs_client **result, -struct rpc_cred *cred) +const struct cred *cred) {struct nfs_net *nn =net_generic (new->cl_net, nfs_net_id);struct nfs_client *pos, *prev =NULL ;
@@ -696,7 +696,7 @@ int nfs4_detect_session_trunking(struct nfs_client *clp,*/ int nfs41_walk_client_list (struct nfs_client *new,struct nfs_client **result, -struct rpc_cred *cred) +const struct cred *cred) {struct nfs_net *nn =net_generic (new->cl_net, nfs_net_id);struct nfs_client *pos, *prev =NULL ;
fs/nfs/nfs4proc.c +74 -92
624 lines not on this page · raw message
fs/nfs/nfs4renewd.c +2 -2
@@ -57,7 +57,7 @@ nfs4_renew_state(struct work_struct *work)const struct nfs4_state_maintenance_ops *ops;struct nfs_client *clp = container_of(work, struct nfs_client, cl_renewd.work); -struct rpc_cred *cred; +const struct cred *cred;long lease;unsigned long last, now;unsigned renew_flags =0 ;
@@ -90,7 +90,7 @@ nfs4_renew_state(struct work_struct *work)/* Queue an asynchronous RENEW. */ ret = ops->sched_state_renewal (clp, cred, renew_flags); -put_rpccred (cred); +put_cred (cred);switch (ret) {default : goto out_exp;
fs/nfs/nfs4session.c +2 -2
@@ -573,12 +573,12 @@ static void nfs4_destroy_session_slot_tables(struct nfs4_session *session)void nfs4_destroy_session (struct nfs4_session *session) {struct rpc_xprt *xprt; -struct rpc_cred *cred; +const struct cred *cred; cred =nfs4_get_clid_cred (session->clp);nfs4_proc_destroy_session (session, cred);if (cred) -put_rpccred (cred); +put_cred (cred);rcu_read_lock (); xprt =rcu_dereference (session->clp->cl_rpcclient->cl_xprt);
fs/nfs/nfs4state.c +47 -43
320 lines not on this page · raw message
fs/nfs/pagelist.c +1 -1
@@ -587,7 +587,7 @@ static void nfs_pgio_prepare(struct rpc_task *task, void *calldata) }int nfs_initiate_pgio (struct rpc_clnt *clnt,struct nfs_pgio_header *hdr, -struct rpc_cred *cred,const struct nfs_rpc_ops *rpc_ops, +const struct cred *cred,const struct nfs_rpc_ops *rpc_ops,const struct rpc_call_ops *call_ops,int how,int flags) {struct rpc_task *task;
fs/nfs/pnfs.c +5 -5
@@ -274,7 +274,7 @@ pnfs_free_layout_hdr(struct pnfs_layout_hdr *lo)list_del_init (&lo->plh_layouts);spin_unlock (&clp->cl_lock); } -put_rpccred (lo->plh_lc_cred); +put_cred (lo->plh_lc_cred);return ld->free_layout_hdr (lo); }
@@ -1223,7 +1223,7 @@ pnfs_commit_and_return_layout(struct inode *inode)bool pnfs_roc (struct inode *ino,struct nfs4_layoutreturn_args *args,struct nfs4_layoutreturn_res *res, -const struct rpc_cred *cred) +const struct cred *cred) {struct nfs_inode *nfsi =NFS_I (ino);struct nfs_open_context *ctx;
@@ -1475,7 +1475,7 @@ alloc_init_layout_hdr(struct inode *ino,INIT_LIST_HEAD (&lo->plh_return_segs);INIT_LIST_HEAD (&lo->plh_bulk_destroy); lo->plh_inode = ino; - lo->plh_lc_cred =get_rpccred (ctx->cred); + lo->plh_lc_cred =get_cred (ctx->cred); lo->plh_flags |=1 <<NFS_LAYOUT_INVALID_STID ;return lo; }
@@ -2607,7 +2607,7 @@ pnfs_layoutcommit_inode(struct inode *inode, bool sync)spin_unlock (&inode->i_lock); data->args.inode = inode; - data->cred =get_rpccred (nfsi->layout->plh_lc_cred); + data->cred =get_cred (nfsi->layout->plh_lc_cred);nfs_fattr_init (&data->fattr); data->args.bitmask =NFS_SERVER (inode)->cache_consistency_bitmask; data->res.fattr = &data->fattr;
@@ -2620,7 +2620,7 @@ pnfs_layoutcommit_inode(struct inode *inode, bool sync)if (ld->prepare_layoutcommit) { status = ld->prepare_layoutcommit (&data->args);if (status) { -put_rpccred (data->cred); +put_cred (data->cred);spin_lock (&inode->i_lock);set_bit (NFS_INO_LAYOUTCOMMIT , &nfsi->flags);if (end_pos > nfsi->layout->plh_lwb)
fs/nfs/pnfs.h +5 -5
@@ -196,7 +196,7 @@ struct pnfs_layout_hdr {u32 plh_return_seq;enum pnfs_iomode plh_return_iomode;loff_t plh_lwb;/* last write byte for layoutcommit */ -struct rpc_cred *plh_lc_cred;/* layoutcommit cred */ +const struct cred *plh_lc_cred;/* layoutcommit cred */ struct inode *plh_inode; };
@@ -225,7 +225,7 @@ extern void pnfs_unregister_layoutdriver(struct pnfs_layoutdriver_type *);/* nfs4proc.c */ extern int nfs4_proc_getdeviceinfo (struct nfs_server *server,struct pnfs_device *dev, -struct rpc_cred *cred); +const struct cred *cred);extern struct pnfs_layout_segment *nfs4_proc_layoutget (struct nfs4_layoutget *lgp,long *timeout,gfp_t gfp_flags);extern int nfs4_proc_layoutreturn (struct nfs4_layoutreturn *lrp,bool sync);
@@ -272,7 +272,7 @@ int pnfs_mark_layout_stateid_invalid(struct pnfs_layout_hdr *lo,bool pnfs_roc (struct inode *ino,struct nfs4_layoutreturn_args *args,struct nfs4_layoutreturn_res *res, -const struct rpc_cred *cred); +const struct cred *cred);void pnfs_roc_release (struct nfs4_layoutreturn_args *args,struct nfs4_layoutreturn_res *res,int ret);
@@ -335,7 +335,7 @@ struct nfs4_deviceid_node {struct nfs4_deviceid_node *nfs4_find_get_deviceid (struct nfs_server *server, -const struct nfs4_deviceid *id,struct rpc_cred *cred, +const struct nfs4_deviceid *id,const struct cred *cred,gfp_t gfp_mask);void nfs4_delete_deviceid (const struct pnfs_layoutdriver_type *,const struct nfs_client *,const struct nfs4_deviceid *); void nfs4_init_deviceid_node(struct nfs4_deviceid_node *, struct nfs_server *,
@@ -681,7 +681,7 @@ static inline bool pnfs_roc(struct inode *ino, struct nfs4_layoutreturn_args *args, struct nfs4_layoutreturn_res *res, - const struct rpc_cred *cred) + const struct cred *cred) { return false; }
fs/nfs/pnfs_dev.c +2 -2
@@ -94,7 +94,7 @@ _lookup_deviceid(const struct pnfs_layoutdriver_type *ld,static struct nfs4_deviceid_node *nfs4_get_device_info (struct nfs_server *server,const struct nfs4_deviceid *dev_id, -struct rpc_cred *cred,gfp_t gfp_flags) +const struct cred *cred,gfp_t gfp_flags) {struct nfs4_deviceid_node *d =NULL ;struct pnfs_device *pdev =NULL ;
@@ -184,7 +184,7 @@ __nfs4_find_get_deviceid(struct nfs_server *server,struct nfs4_deviceid_node *nfs4_find_get_deviceid (struct nfs_server *server, -const struct nfs4_deviceid *id,struct rpc_cred *cred, +const struct nfs4_deviceid *id,const struct cred *cred,gfp_t gfp_mask) {long hash =nfs4_deviceid_hash (id);
fs/nfs/pnfs_nfs.c +1 -1
@@ -688,7 +688,7 @@ static int _nfs4_pnfs_v4_ds_connect(struct nfs_server *mds_srv, rpc_clnt_setup_test_and_add_xprt, &rpcdata);if (xprtdata.cred) -put_rpccred (xprtdata.cred); +put_cred (xprtdata.cred); }else { clp = nfs4_set_ds_client(mds_srv, (struct sockaddr *)&da->da_addr,
fs/nfs/proc.c +1 -8
@@ -495,25 +495,18 @@ nfs_proc_readdir(struct dentry *dentry, const struct cred *cred, .count = count, .pages = pages, }; -struct auth_cred acred = { - .cred = cred, - };struct rpc_message msg = { .rpc_proc = &nfs_procedures[NFSPROC_READDIR ], .rpc_argp = &arg, - .rpc_cred =rpc_lookup_generic_cred (&acred, -0 ,GFP_NOFS ), + .rpc_cred = cred, };int status;dprintk ("NFS call readdir %d\n" , (unsigned int )cookie); -if (!msg.rpc_cred) -return -ENOMEM ; status =rpc_call_sync (NFS_CLIENT (dir), &msg,0 );nfs_invalidate_atime (dir); -put_rpccred (msg.rpc_cred);dprintk ("NFS reply readdir: %d\n" , status);return status; }
fs/nfs/unlink.c +5 -10
@@ -31,7 +31,7 @@static void nfs_free_unlinkdata (struct nfs_unlinkdata *data) { -put_rpccred (data->cred); +put_cred (data->cred);kfree (data->args.name.name);kfree (data); }
@@ -177,11 +177,7 @@ nfs_async_unlink(struct dentry *dentry, const struct qstr *name) goto out_free; data->args.name.len = name->len; - data->cred =rpc_lookup_cred (); -if (IS_ERR (data->cred)) { - status =PTR_ERR (data->cred); - goto out_free_name; - } + data->cred =get_current_cred (); data->res.dir_attr = &data->dir_attr;init_waitqueue_head (&data->wq);
@@ -202,8 +198,7 @@ nfs_async_unlink(struct dentry *dentry, const struct qstr *name)return 0 ; out_unlock:spin_unlock (&dentry->d_lock); -put_rpccred (data->cred); -out_free_name: +put_cred (data->cred);kfree (data->args.name.name); out_free:kfree (data);
@@ -307,7 +302,7 @@ static void nfs_async_rename_release(void *calldata)iput (data->old_dir);iput (data->new_dir);nfs_sb_deactive (sb); -put_rpccred (data->cred); +put_cred (data->cred);kfree (data); }
@@ -352,7 +347,7 @@ nfs_async_rename(struct inode *old_dir, struct inode *new_dir,return ERR_PTR (-ENOMEM ); task_setup_data.callback_data = data; - data->cred =rpc_lookup_cred (); + data->cred =get_current_cred ();if (IS_ERR (data->cred)) {struct rpc_task *task =ERR_CAST (data->cred);kfree (data);
fs/nfs/write.c +1 -1
@@ -1248,7 +1248,7 @@ bool nfs_ctx_key_to_expire(struct nfs_open_context *ctx, struct inode *inode)struct rpc_auth *auth =NFS_SERVER (inode)->client->cl_auth;struct rpc_cred *cred = ctx->ll_cred;struct auth_cred acred = { - .cred = ctx->cred->cr_cred, + .cred = ctx->cred, };if (cred && !cred->cr_ops->crmatch (&acred, cred,0 )) {
fs/nfsd/nfs4callback.c +5 -11
@@ -746,16 +746,13 @@ static int max_cb_time(struct net *net)return max (nn->nfsd4_lease/10 , (time_t )1 ) *HZ ; } -static struct rpc_cred *get_backchannel_cred (struct nfs4_client *clp,struct rpc_clnt *client,struct nfsd4_session *ses) +static const struct cred *get_backchannel_cred (struct nfs4_client *clp,struct rpc_clnt *client,struct nfsd4_session *ses) {if (clp->cl_minorversion ==0 ) { client->cl_principal ="nfs" ; -return get_rpccred (rpc_machine_cred ()); +return get_cred (rpc_machine_cred ()); }else { -struct rpc_auth *auth = client->cl_auth; -struct auth_cred acred = {};struct cred *kcred; -struct rpc_cred *ret; kcred =prepare_kernel_cred (NULL );if (!kcred)
@@ -763,10 +760,7 @@ static struct rpc_cred *get_backchannel_cred(struct nfs4_client *clp, struct rpc kcred->uid = ses->se_cb_sec.uid; kcred->gid = ses->se_cb_sec.gid; - acred.cred = kcred; - ret = auth->au_ops->lookup_cred (client->cl_auth, &acred,0 ); -put_cred (kcred); -return ret; +return kcred; } }
@@ -789,7 +783,7 @@ static int setup_callback_client(struct nfs4_client *clp, struct nfs4_cb_conn *c .flags = (RPC_CLNT_CREATE_NOPING | RPC_CLNT_CREATE_QUIET), };struct rpc_clnt *client; -struct rpc_cred *cred; +const struct cred *cred;if (clp->cl_minorversion ==0 ) { if (!clp->cl_cred.cr_principal &&
@@ -1118,7 +1112,7 @@ static void nfsd4_process_cb_update(struct nfsd4_callback *cb)if (clp->cl_cb_client) {rpc_shutdown_client (clp->cl_cb_client); clp->cl_cb_client =NULL ; -put_rpccred (clp->cl_cb_cred); +put_cred (clp->cl_cb_cred); clp->cl_cb_cred =NULL ; }if (clp->cl_cb_conn.cb_xprt) {
fs/nfsd/state.h +1 -1
@@ -327,7 +327,7 @@ struct nfs4_client {#define NFSD4_CLIENT_CB_FLAG_MASK (1 << NFSD4_CLIENT_CB_UPDATE | \ 1 << NFSD4_CLIENT_CB_KILL)unsigned long cl_flags; -struct rpc_cred *cl_cb_cred; +const struct cred *cl_cb_cred;struct rpc_clnt *cl_cb_client;u32 cl_cb_ident;#define NFSD4_CB_UP 0
include/linux/nfs_fs.h +3 -3
@@ -69,7 +69,7 @@ struct nfs_open_context {struct nfs_lock_context lock_context;fl_owner_t flock_owner;struct dentry *dentry; -struct rpc_cred *cred; +const struct cred *cred;struct rpc_cred *ll_cred;/* low-level cred - use to check for expiry */ struct nfs4_state *state;fmode_t mode;
@@ -367,7 +367,7 @@ extern void nfs_setsecurity(struct inode *inode, struct nfs_fattr *fattr, struct nfs4_label *label);extern struct nfs_open_context *get_nfs_open_context (struct nfs_open_context *ctx);extern void put_nfs_open_context (struct nfs_open_context *ctx); -extern struct nfs_open_context *nfs_find_open_context (struct inode *inode,struct rpc_cred *cred,fmode_t mode); +extern struct nfs_open_context *nfs_find_open_context (struct inode *inode,const struct cred *cred,fmode_t mode);extern struct nfs_open_context *alloc_nfs_open_context (struct dentry *dentry,fmode_t f_mode,struct file *filp);extern void nfs_inode_attach_open_context (struct nfs_open_context *ctx);extern void nfs_file_set_open_context (struct file *filp,struct nfs_open_context *ctx);
@@ -438,7 +438,7 @@ static inline struct nfs_open_context *nfs_file_open_context(struct file *filp)return filp->private_data; } -static inline struct rpc_cred *nfs_file_cred (struct file *file) +static inline const struct cred *nfs_file_cred (struct file *file) {if (file !=NULL ) { struct nfs_open_context *ctx =
include/linux/nfs_xdr.h +7 -7
@@ -269,7 +269,7 @@ struct nfs4_layoutget_res {struct nfs4_layoutget {struct nfs4_layoutget_args args;struct nfs4_layoutget_res res; -struct rpc_cred *cred; +const struct cred *cred;gfp_t gfp_flags; };
@@ -308,7 +308,7 @@ struct nfs4_layoutcommit_data {struct rpc_task task;struct nfs_fattr fattr;struct list_head lseg_list; -struct rpc_cred *cred; +const struct cred *cred;struct inode *inode;struct nfs4_layoutcommit_args args;struct nfs4_layoutcommit_res res;
@@ -333,7 +333,7 @@ struct nfs4_layoutreturn_res {struct nfs4_layoutreturn {struct nfs4_layoutreturn_args args;struct nfs4_layoutreturn_res res; -struct rpc_cred *cred; +const struct cred *cred;struct nfs_client *clp;struct inode *inode;int rpc_status;
@@ -1439,7 +1439,7 @@ enum {struct nfs_io_completion ;struct nfs_pgio_header {struct inode *inode; -struct rpc_cred *cred; +const struct cred *cred;struct list_head pages;struct nfs_page *req;struct nfs_writeverf verf;/* Used for writes */
@@ -1500,7 +1500,7 @@ struct nfs_commit_info {struct nfs_commit_data {struct rpc_task task;struct inode *inode; -struct rpc_cred *cred; +const struct cred *cred;struct nfs_fattr fattr;struct nfs_writeverf verf;struct list_head pages;/* Coalesced requests we wish to flush */
@@ -1531,7 +1531,7 @@ struct nfs_unlinkdata {struct nfs_removeres res;struct dentry *dentry;wait_queue_head_t wq; -struct rpc_cred *cred; +const struct cred *cred;struct nfs_fattr dir_attr;long timeout; };
@@ -1539,7 +1539,7 @@ struct nfs_unlinkdata {struct nfs_renamedata {struct nfs_renameargs args;struct nfs_renameres res; -struct rpc_cred *cred; +const struct cred *cred;struct inode *old_dir;struct dentry *old_dentry;struct nfs_fattr old_fattr;
include/linux/sunrpc/auth.h +1 -19
@@ -67,7 +67,7 @@ struct rpc_cred {#define RPCAUTH_CRED_HASHED 2#define RPCAUTH_CRED_NEGATIVE 3 -struct rpc_cred *rpc_machine_cred (void ); +const struct cred *rpc_machine_cred (void );/* * Client authentication handle
@@ -193,23 +193,5 @@ struct rpc_cred * get_rpccred(struct rpc_cred *cred)return cred; } -/** -* get_rpccred_rcu - get a reference to a cred using rcu-protected pointer -* @cred: cred of which to take a reference -* -* In some cases, we may have a pointer to a credential to which we -* want to take a reference, but don't already have one. Because these -* objects are freed using RCU, we can access the cr_count while its -* on its way to destruction and only take a reference if it's not already -* zero. -*/ -static inline struct rpc_cred * -get_rpccred_rcu (struct rpc_cred *cred) -{ -if (atomic_inc_not_zero (&cred->cr_count)) -return cred; -return NULL ; -} -#endif /* __KERNEL__ */ #endif /* _LINUX_SUNRPC_AUTH_H */
include/linux/sunrpc/sched.h +1 -1
@@ -26,7 +26,7 @@ struct rpc_message {const struct rpc_procinfo *rpc_proc;/* Procedure information */ void * rpc_argp;/* Arguments */ void * rpc_resp;/* Result */ -struct rpc_cred * rpc_cred;/* Credentials */ +const struct cred * rpc_cred;/* Credentials */ };struct rpc_call_ops ;
net/sunrpc/auth.c +9 -5
@@ -40,15 +40,15 @@ static const struct rpc_authops *auth_flavors[RPC_AUTH_MAXFLAVOR] = {static LIST_HEAD (cred_unused);static unsigned long number_cred_unused; -static struct rpc_cred machine_cred = { - .cr_count =ATOMIC_INIT (1 ), +static struct cred machine_cred = { + .usage =ATOMIC_INIT (1 ), };/* * Return the machine_cred pointer to be used whenever * the a generic machine credential is needed. */ -struct rpc_cred *rpc_machine_cred (void ) +const struct cred *rpc_machine_cred (void ) {return &machine_cred; }
@@ -695,11 +695,15 @@ rpcauth_bind_new_cred(struct rpc_task *task, int lookupflags) }static int -rpcauth_bindcred (struct rpc_task *task,struct rpc_cred *cred,int flags) +rpcauth_bindcred (struct rpc_task *task,const struct cred *cred,int flags) {struct rpc_rqst *req = task->tk_rqstp;struct rpc_cred *new =NULL ;int lookupflags =0 ; +struct rpc_auth *auth = task->tk_client->cl_auth; +struct auth_cred acred = { + .cred = cred, + };if (flags &RPC_TASK_ASYNC ) lookupflags |=RPCAUTH_LOOKUP_NEW ;
@@ -708,7 +712,7 @@ rpcauth_bindcred(struct rpc_task *task, struct rpc_cred *cred, int flags) new = task->tk_op_cred->cr_ops->crbind (task, task->tk_op_cred, lookupflags); else if (cred != NULL && cred != &machine_cred) - new = cred->cr_ops->crbind (task, cred, lookupflags); + new = auth->au_ops->lookup_cred (auth, &acred, lookupflags); else if (cred == &machine_cred) new =rpcauth_bind_machine_cred (task, lookupflags);
net/sunrpc/clnt.c +2 -2
@@ -1018,7 +1018,7 @@ rpc_task_set_rpc_message(struct rpc_task *task, const struct rpc_message *msg) task->tk_msg.rpc_argp = msg->rpc_argp; task->tk_msg.rpc_resp = msg->rpc_resp;if (msg->rpc_cred !=NULL ) - task->tk_msg.rpc_cred =get_rpccred (msg->rpc_cred); + task->tk_msg.rpc_cred =get_cred (msg->rpc_cred); } }
@@ -2524,7 +2524,7 @@ struct rpc_task *rpc_call_null_helper(struct rpc_clnt *clnt, .rpc_op_cred = cred, .callback_ops = (ops != NULL) ? ops : &rpc_default_ops, .callback_data = data, - .flags = flags, + .flags = flags | RPC_TASK_NULLCREDS, };return rpc_run_task (&task_setup_data);
net/sunrpc/sched.c +1 -1
@@ -1026,7 +1026,7 @@ static void rpc_release_resources_task(struct rpc_task *task) {xprt_release (task);if (task->tk_msg.rpc_cred) { -put_rpccred (task->tk_msg.rpc_cred); +put_cred (task->tk_msg.rpc_cred); task->tk_msg.rpc_cred =NULL ; }rpc_task_release_client (task);
kbuild test robot
build botRe: [PATCH 19/23] NFS/NFSD/SUNRPC: replace generic creds with 'struct cred'.
Thank you for the patch! Perhaps something to improve:
Hi NeilBrown,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on nfs/linux-next]
[also build test WARNING on v4.16-rc2 next-20180219]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/NeilBrown/Remove-generic-rpc-credentials-and-associated-changed-V3/20180219-190836 base: git://git.linux-nfs.org/projects/trondmy/linux-nfs.git linux-next reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__
sparse warnings: (new ones prefixed by >>)
>> fs/nfs/flexfilelayout/flexfilelayout.c:517:40: sparse: incorrect type in initializer (different address spaces) @@ expected struct cred const @@ got cred const @@ fs/nfs/flexfilelayout/flexfilelayout.c:517:40: expected struct cred const fs/nfs/flexfilelayout/flexfilelayout.c:517:40: got struct cred const Documentation Kbuild Kconfig Makefile certs drivers firmware fs include samples scripts sound tools cred >> fs/nfs/flexfilelayout/flexfilelayout.c:517:38: sparse: incorrect type in assignment (different address spaces) @@ expected struct cred const Documentation Kbuild Kconfig Makefile certs drivers firmware fs include samples scripts sound tools cred @@ got struct cred conststruct cred const Documentation Kbuild Kconfig Makefile certs drivers firmware fs include samples scripts sound tools cred @@
fs/nfs/flexfilelayout/flexfilelayout.c:517:38: expected struct cred const Documentation Kbuild Kconfig Makefile certs drivers firmware fs include samples scripts sound tools cred
fs/nfs/flexfilelayout/flexfilelayout.c:517:38: got struct cred const __ret
fs/nfs/flexfilelayout/flexfilelayout.c:520:40: sparse: incorrect type in initializer (different address spaces) @@ expected struct cred const @@ got cred const @@
fs/nfs/flexfilelayout/flexfilelayout.c:520:40: expected struct cred const
fs/nfs/flexfilelayout/flexfilelayout.c:520:40: got struct cred const Documentation Kbuild Kconfig Makefile certs drivers firmware fs include samples scripts sound tools cred
fs/nfs/flexfilelayout/flexfilelayout.c:520:38: sparse: incorrect type in assignment (different address spaces) @@ expected struct cred const Documentation Kbuild Kconfig Makefile certs drivers firmware fs include samples scripts sound tools cred @@ got struct cred conststruct cred const Documentation Kbuild Kconfig Makefile certs drivers firmware fs include samples scripts sound tools cred @@ fs/nfs/flexfilelayout/flexfilelayout.c:520:38: expected struct cred const Documentation Kbuild Kconfig Makefile certs drivers firmware fs include samples scripts sound tools cred
fs/nfs/flexfilelayout/flexfilelayout.c:520:38: got struct cred const __ret
vim +517 fs/nfs/flexfilelayout/flexfilelayout.c
d67ae825 Tom Haynes 2014-12-11 360
d67ae825 Tom Haynes 2014-12-11 361 static struct pnfs_layout_segment *
d67ae825 Tom Haynes 2014-12-11 362 ff_layout_alloc_lseg(struct pnfs_layout_hdr *lh,
d67ae825 Tom Haynes 2014-12-11 363 struct nfs4_layoutget_res *lgr,
d67ae825 Tom Haynes 2014-12-11 364 gfp_t gfp_flags)
d67ae825 Tom Haynes 2014-12-11 365 {
d67ae825 Tom Haynes 2014-12-11 366 struct pnfs_layout_segment *ret;
d67ae825 Tom Haynes 2014-12-11 367 struct nfs4_ff_layout_segment *fls = NULL;
d67ae825 Tom Haynes 2014-12-11 368 struct xdr_stream stream;
d67ae825 Tom Haynes 2014-12-11 369 struct xdr_buf buf;
d67ae825 Tom Haynes 2014-12-11 370 struct page *scratch;
d67ae825 Tom Haynes 2014-12-11 371 u64 stripe_unit;
d67ae825 Tom Haynes 2014-12-11 372 u32 mirror_array_cnt;
d67ae825 Tom Haynes 2014-12-11 373 __be32 *p;
d67ae825 Tom Haynes 2014-12-11 374 int i, rc;
d67ae825 Tom Haynes 2014-12-11 375
d67ae825 Tom Haynes 2014-12-11 376 dprintk("--> %s\n", __func__);
d67ae825 Tom Haynes 2014-12-11 377 scratch = alloc_page(gfp_flags);
d67ae825 Tom Haynes 2014-12-11 378 if (!scratch)
d67ae825 Tom Haynes 2014-12-11 379 return ERR_PTR(-ENOMEM);
d67ae825 Tom Haynes 2014-12-11 380
d67ae825 Tom Haynes 2014-12-11 381 xdr_init_decode_pages(&stream, &buf, lgr->layoutp->pages,
d67ae825 Tom Haynes 2014-12-11 382 lgr->layoutp->len);
d67ae825 Tom Haynes 2014-12-11 383 xdr_set_scratch_buffer(&stream, page_address(scratch), PAGE_SIZE);
d67ae825 Tom Haynes 2014-12-11 384
d67ae825 Tom Haynes 2014-12-11 385 /* stripe unit and mirror_array_cnt */
d67ae825 Tom Haynes 2014-12-11 386 rc = -EIO;
d67ae825 Tom Haynes 2014-12-11 387 p = xdr_inline_decode(&stream, 8 + 4);
d67ae825 Tom Haynes 2014-12-11 388 if (!p)
d67ae825 Tom Haynes 2014-12-11 389 goto out_err_free;
d67ae825 Tom Haynes 2014-12-11 390
d67ae825 Tom Haynes 2014-12-11 391 p = xdr_decode_hyper(p, &stripe_unit);
d67ae825 Tom Haynes 2014-12-11 392 mirror_array_cnt = be32_to_cpup(p++);
d67ae825 Tom Haynes 2014-12-11 393 dprintk("%s: stripe_unit=%llu mirror_array_cnt=%u\n", __func__,
d67ae825 Tom Haynes 2014-12-11 394 stripe_unit, mirror_array_cnt);
d67ae825 Tom Haynes 2014-12-11 395
d67ae825 Tom Haynes 2014-12-11 396 if (mirror_array_cnt > NFS4_FLEXFILE_LAYOUT_MAX_MIRROR_CNT ||
d67ae825 Tom Haynes 2014-12-11 397 mirror_array_cnt == 0)
d67ae825 Tom Haynes 2014-12-11 398 goto out_err_free;
d67ae825 Tom Haynes 2014-12-11 399
d67ae825 Tom Haynes 2014-12-11 400 rc = -ENOMEM;
d67ae825 Tom Haynes 2014-12-11 401 fls = kzalloc(sizeof(*fls), gfp_flags);
d67ae825 Tom Haynes 2014-12-11 402 if (!fls)
d67ae825 Tom Haynes 2014-12-11 403 goto out_err_free;
d67ae825 Tom Haynes 2014-12-11 404
d67ae825 Tom Haynes 2014-12-11 405 fls->mirror_array_cnt = mirror_array_cnt;
d67ae825 Tom Haynes 2014-12-11 406 fls->stripe_unit = stripe_unit;
d67ae825 Tom Haynes 2014-12-11 407 fls->mirror_array = kcalloc(fls->mirror_array_cnt,
d67ae825 Tom Haynes 2014-12-11 408 sizeof(fls->mirror_array[0]), gfp_flags);
d67ae825 Tom Haynes 2014-12-11 409 if (fls->mirror_array == NULL)
d67ae825 Tom Haynes 2014-12-11 410 goto out_err_free;
d67ae825 Tom Haynes 2014-12-11 411
d67ae825 Tom Haynes 2014-12-11 412 for (i = 0; i < fls->mirror_array_cnt; i++) {
266d12d4 Trond Myklebust 2015-08-24 413 struct nfs4_ff_layout_mirror *mirror;
bbf32642 NeilBrown 2018-02-19 414 struct cred *kcred;
3c189a1f NeilBrown 2018-02-19 415 const struct cred *cred;
df462af3 NeilBrown 2018-02-19 416 kuid_t uid;
df462af3 NeilBrown 2018-02-19 417 kgid_t gid;
90a0be00 Jeff Layton 2016-04-21 418 u32 ds_count, fh_count, id;
d67ae825 Tom Haynes 2014-12-11 419 int j;
d67ae825 Tom Haynes 2014-12-11 420
d67ae825 Tom Haynes 2014-12-11 421 rc = -EIO;
d67ae825 Tom Haynes 2014-12-11 422 p = xdr_inline_decode(&stream, 4);
d67ae825 Tom Haynes 2014-12-11 423 if (!p)
d67ae825 Tom Haynes 2014-12-11 424 goto out_err_free;
d67ae825 Tom Haynes 2014-12-11 425 ds_count = be32_to_cpup(p);
d67ae825 Tom Haynes 2014-12-11 426
d67ae825 Tom Haynes 2014-12-11 427 /* FIXME: allow for striping? */
d67ae825 Tom Haynes 2014-12-11 428 if (ds_count != 1)
d67ae825 Tom Haynes 2014-12-11 429 goto out_err_free;
d67ae825 Tom Haynes 2014-12-11 430
28a0d72c Trond Myklebust 2015-08-24 431 fls->mirror_array[i] = ff_layout_alloc_mirror(gfp_flags);
d67ae825 Tom Haynes 2014-12-11 432 if (fls->mirror_array[i] == NULL) {
d67ae825 Tom Haynes 2014-12-11 433 rc = -ENOMEM;
d67ae825 Tom Haynes 2014-12-11 434 goto out_err_free;
d67ae825 Tom Haynes 2014-12-11 435 }
d67ae825 Tom Haynes 2014-12-11 436
d67ae825 Tom Haynes 2014-12-11 437 fls->mirror_array[i]->ds_count = ds_count;
d67ae825 Tom Haynes 2014-12-11 438
d67ae825 Tom Haynes 2014-12-11 439 /* deviceid */
65990d1a Fred Isaman 2016-09-30 440 rc = decode_deviceid(&stream, &fls->mirror_array[i]->devid);
d67ae825 Tom Haynes 2014-12-11 441 if (rc)
d67ae825 Tom Haynes 2014-12-11 442 goto out_err_free;
d67ae825 Tom Haynes 2014-12-11 443
d67ae825 Tom Haynes 2014-12-11 444 /* efficiency */
d67ae825 Tom Haynes 2014-12-11 445 rc = -EIO;
d67ae825 Tom Haynes 2014-12-11 446 p = xdr_inline_decode(&stream, 4);
d67ae825 Tom Haynes 2014-12-11 447 if (!p)
d67ae825 Tom Haynes 2014-12-11 448 goto out_err_free;
d67ae825 Tom Haynes 2014-12-11 449 fls->mirror_array[i]->efficiency = be32_to_cpup(p);
d67ae825 Tom Haynes 2014-12-11 450
d67ae825 Tom Haynes 2014-12-11 451 /* stateid */
93b717fd Trond Myklebust 2016-05-16 452 rc = decode_pnfs_stateid(&stream, &fls->mirror_array[i]->stateid);
d67ae825 Tom Haynes 2014-12-11 453 if (rc)
d67ae825 Tom Haynes 2014-12-11 454 goto out_err_free;
d67ae825 Tom Haynes 2014-12-11 455
d67ae825 Tom Haynes 2014-12-11 456 /* fh */
662f9a10 Dan Carpenter 2017-05-20 457 rc = -EIO;
d67ae825 Tom Haynes 2014-12-11 458 p = xdr_inline_decode(&stream, 4);
d67ae825 Tom Haynes 2014-12-11 459 if (!p)
d67ae825 Tom Haynes 2014-12-11 460 goto out_err_free;
d67ae825 Tom Haynes 2014-12-11 461 fh_count = be32_to_cpup(p);
d67ae825 Tom Haynes 2014-12-11 462
d67ae825 Tom Haynes 2014-12-11 463 fls->mirror_array[i]->fh_versions =
d67ae825 Tom Haynes 2014-12-11 464 kzalloc(fh_count * sizeof(struct nfs_fh),
d67ae825 Tom Haynes 2014-12-11 465 gfp_flags);
d67ae825 Tom Haynes 2014-12-11 466 if (fls->mirror_array[i]->fh_versions == NULL) {
d67ae825 Tom Haynes 2014-12-11 467 rc = -ENOMEM;
d67ae825 Tom Haynes 2014-12-11 468 goto out_err_free;
d67ae825 Tom Haynes 2014-12-11 469 }
d67ae825 Tom Haynes 2014-12-11 470
d67ae825 Tom Haynes 2014-12-11 471 for (j = 0; j < fh_count; j++) {
d67ae825 Tom Haynes 2014-12-11 472 rc = decode_nfs_fh(&stream,
d67ae825 Tom Haynes 2014-12-11 473 &fls->mirror_array[i]->fh_versions[j]);
d67ae825 Tom Haynes 2014-12-11 474 if (rc)
d67ae825 Tom Haynes 2014-12-11 475 goto out_err_free;
d67ae825 Tom Haynes 2014-12-11 476 }
d67ae825 Tom Haynes 2014-12-11 477
d67ae825 Tom Haynes 2014-12-11 478 fls->mirror_array[i]->fh_versions_cnt = fh_count;
d67ae825 Tom Haynes 2014-12-11 479
d67ae825 Tom Haynes 2014-12-11 480 /* user */
90a0be00 Jeff Layton 2016-04-21 481 rc = decode_name(&stream, &id);
d67ae825 Tom Haynes 2014-12-11 482 if (rc)
d67ae825 Tom Haynes 2014-12-11 483 goto out_err_free;
d67ae825 Tom Haynes 2014-12-11 484
df462af3 NeilBrown 2018-02-19 485 uid = make_kuid(&init_user_ns, id);
90a0be00 Jeff Layton 2016-04-21 486
d67ae825 Tom Haynes 2014-12-11 487 /* group */
90a0be00 Jeff Layton 2016-04-21 488 rc = decode_name(&stream, &id);
d67ae825 Tom Haynes 2014-12-11 489 if (rc)
d67ae825 Tom Haynes 2014-12-11 490 goto out_err_free;
d67ae825 Tom Haynes 2014-12-11 491
df462af3 NeilBrown 2018-02-19 492 gid = make_kgid(&init_user_ns, id);
90a0be00 Jeff Layton 2016-04-21 493
bbf32642 NeilBrown 2018-02-19 494 if (gfp_flags & __GFP_FS)
bbf32642 NeilBrown 2018-02-19 495 kcred = prepare_kernel_cred(NULL);
bbf32642 NeilBrown 2018-02-19 496 else {
bbf32642 NeilBrown 2018-02-19 497 unsigned int nofs_flags = memalloc_nofs_save();
bbf32642 NeilBrown 2018-02-19 498 kcred = prepare_kernel_cred(NULL);
bbf32642 NeilBrown 2018-02-19 499 memalloc_nofs_restore(nofs_flags);
bbf32642 NeilBrown 2018-02-19 500 }
bbf32642 NeilBrown 2018-02-19 501 rc = -ENOMEM;
bbf32642 NeilBrown 2018-02-19 502 if (!kcred)
bbf32642 NeilBrown 2018-02-19 503 goto out_err_free;
df462af3 NeilBrown 2018-02-19 504 kcred->fsuid = uid;
df462af3 NeilBrown 2018-02-19 505 kcred->fsgid = gid;
3c189a1f NeilBrown 2018-02-19 506 cred = kcred;
90a0be00 Jeff Layton 2016-04-21 507
3064b686 Jeff Layton 2016-04-21 508 if (lgr->range.iomode == IOMODE_READ)
3064b686 Jeff Layton 2016-04-21 509 rcu_assign_pointer(fls->mirror_array[i]->ro_cred, cred);
3064b686 Jeff Layton 2016-04-21 510 else
3064b686 Jeff Layton 2016-04-21 511 rcu_assign_pointer(fls->mirror_array[i]->rw_cred, cred);
90a0be00 Jeff Layton 2016-04-21 512
266d12d4 Trond Myklebust 2015-08-24 513 mirror = ff_layout_add_mirror(lh, fls->mirror_array[i]);
266d12d4 Trond Myklebust 2015-08-24 514 if (mirror != fls->mirror_array[i]) {
90a0be00 Jeff Layton 2016-04-21 515 /* swap cred ptrs so free_mirror will clean up old */
3064b686 Jeff Layton 2016-04-21 516 if (lgr->range.iomode == IOMODE_READ) {
3064b686 Jeff Layton 2016-04-21 @517 cred = xchg(&mirror->ro_cred, cred);
3064b686 Jeff Layton 2016-04-21 518 rcu_assign_pointer(fls->mirror_array[i]->ro_cred, cred);
3064b686 Jeff Layton 2016-04-21 519 } else {
3064b686 Jeff Layton 2016-04-21 520 cred = xchg(&mirror->rw_cred, cred);
3064b686 Jeff Layton 2016-04-21 521 rcu_assign_pointer(fls->mirror_array[i]->rw_cred, cred);
3064b686 Jeff Layton 2016-04-21 522 }
266d12d4 Trond Myklebust 2015-08-24 523 ff_layout_free_mirror(fls->mirror_array[i]);
266d12d4 Trond Myklebust 2015-08-24 524 fls->mirror_array[i] = mirror;
266d12d4 Trond Myklebust 2015-08-24 525 }
266d12d4 Trond Myklebust 2015-08-24 526
3064b686 Jeff Layton 2016-04-21 527 dprintk("%s: iomode %s uid %u gid %u\n", __func__,
3064b686 Jeff Layton 2016-04-21 528 lgr->range.iomode == IOMODE_READ ? "READ" : "RW",
df462af3 NeilBrown 2018-02-19 529 from_kuid(&init_user_ns, uid),
df462af3 NeilBrown 2018-02-19 530 from_kgid(&init_user_ns, gid));
d67ae825 Tom Haynes 2014-12-11 531 }
d67ae825 Tom Haynes 2014-12-11 532
c0f5f505 Trond Myklebust 2015-06-26 533 p = xdr_inline_decode(&stream, 4);
d0379a5d Trond Myklebust 2015-11-16 534 if (!p)
d0379a5d Trond Myklebust 2015-11-16 535 goto out_sort_mirrors;
c0f5f505 Trond Myklebust 2015-06-26 536 fls->flags = be32_to_cpup(p);
c0f5f505 Trond Myklebust 2015-06-26 537
d0379a5d Trond Myklebust 2015-11-16 538 p = xdr_inline_decode(&stream, 4);
d0379a5d Trond Myklebust 2015-11-16 539 if (!p)
d0379a5d Trond Myklebust 2015-11-16 540 goto out_sort_mirrors;
d0379a5d Trond Myklebust 2015-11-16 541 for (i=0; i < fls->mirror_array_cnt; i++)
d0379a5d Trond Myklebust 2015-11-16 542 fls->mirror_array[i]->report_interval = be32_to_cpup(p);
d0379a5d Trond Myklebust 2015-11-16 543
d0379a5d Trond Myklebust 2015-11-16 544 out_sort_mirrors:
d67ae825 Tom Haynes 2014-12-11 545 ff_layout_sort_mirrors(fls);
d67ae825 Tom Haynes 2014-12-11 546 rc = ff_layout_check_layout(lgr);
d67ae825 Tom Haynes 2014-12-11 547 if (rc)
d67ae825 Tom Haynes 2014-12-11 548 goto out_err_free;
d67ae825 Tom Haynes 2014-12-11 549 ret = &fls->generic_hdr;
d67ae825 Tom Haynes 2014-12-11 550 dprintk("<-- %s (success)\n", __func__);
d67ae825 Tom Haynes 2014-12-11 551 out_free_page:
d67ae825 Tom Haynes 2014-12-11 552 __free_page(scratch);
d67ae825 Tom Haynes 2014-12-11 553 return ret;
d67ae825 Tom Haynes 2014-12-11 554 out_err_free:
d67ae825 Tom Haynes 2014-12-11 555 _ff_layout_free_lseg(fls);
d67ae825 Tom Haynes 2014-12-11 556 ret = ERR_PTR(rc);
d67ae825 Tom Haynes 2014-12-11 557 dprintk("<-- %s (%d)\n", __func__, rc);
d67ae825 Tom Haynes 2014-12-11 558 goto out_free_page;
d67ae825 Tom Haynes 2014-12-11 559 }
d67ae825 Tom Haynes 2014-12-11 560 :::::: The code at line 517 was first introduced by commit
:::::: 3064b6861d00b7124558cdf79f9387f948361be3 nfs: have flexfiles mirror keep creds for both ro and rw layouts
:::::: TO: Jeff Layton <[email protected]> :::::: CC: Anna Schumaker <[email protected]>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Re: [PATCH 19/23] NFS/NFSD/SUNRPC: replace generic creds with 'struct cred'.
Quoted 16 lines · kbuild test robot
Hi NeilBrown,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on nfs/linux-next]
[also build test WARNING on v4.16-rc2 next-20180219]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]url: https://github.com/0day-ci/linux/commits/NeilBrown/Remove-generic-rpc-credentials-and-associated-changed-V3/20180219-190836 base: git://git.linux-nfs.org/projects/trondmy/linux-nfs.git linux-next reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__
Quoted 5 lines
sparse warnings: (new ones prefixed by >>)
Quoted 1 line
Quoted 1 line
fs/nfs/flexfilelayout/flexfilelayout.c:517:40: sparse: incorrect type in initializer (different address spaces) @@ expected struct cred const @@ got cred const @@
fs/nfs/flexfilelayout/flexfilelayout.c:517:40: expected struct cred const
fs/nfs/flexfilelayout/flexfilelayout.c:517:40: got struct cred const DocumentationKbuildKconfigMakefilecerts drivers firmware fs include samples scripts sound tools cred
Hi Mr Robot :-)
It looks like you have some strange wild-card expansion happening here. I think the above should be
Quoted 1 line
fs/nfs/flexfilelayout/flexfilelayout.c:517:40: got struct cred const * cred
Even after correcting the that, I cannot see what the different address spaces are that might be a problem.
Does anyone have any ideas?
Thanks,
NeilBrown
Re: [kbuild-all] [PATCH 19/23] NFS/NFSD/SUNRPC: replace generic creds with 'struct cred'.
Quoted 20 lines · NeilBrown
Quoted 18 lines · kbuild test robot
Hi NeilBrown,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on nfs/linux-next]
[also build test WARNING on v4.16-rc2 next-20180219]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]url: https://github.com/0day-ci/linux/commits/NeilBrown/Remove-generic-rpc-credentials-and-associated-changed-V3/20180219-190836 base: git://git.linux-nfs.org/projects/trondmy/linux-nfs.git linux-next reproduce: # apt-get install sparse make ARCH=x86_64 allmodconfig make C=1 CF=-D__CHECK_ENDIAN__sparse warnings: (new ones prefixed by >>)
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
fs/nfs/flexfilelayout/flexfilelayout.c:517:40: sparse: incorrect type in initializer (different address spaces) @@ expected struct cred const @@ got cred const @@
fs/nfs/flexfilelayout/flexfilelayout.c:517:40: expected struct cred const
fs/nfs/flexfilelayout/flexfilelayout.c:517:40: got struct cred const DocumentationKbuildKconfigMakefilecerts drivers firmware fs include samples scripts sound tools credHi Mr Robot :-)
It looks like you have some strange wild-card expansion happening here. I think the above should beQuoted 1 line
fs/nfs/flexfilelayout/flexfilelayout.c:517:40: got struct cred const * cred
thanks for pointing this out, we will fix it.
Quoted 14 lines
Even after correcting the that, I cannot see what the different address spaces are that might be a problem.
Does anyone have any ideas?Thanks,
NeilBrown_______________________________________________
kbuild-all mailing list
[email protected]
https://lists.01.org/mailman/listinfo/kbuild-all
Fengguang Wu
build botRe: [kbuild-all] [PATCH 19/23] NFS/NFSD/SUNRPC: replace generic creds with 'struct cred'.
Obviously the robot shell-expands the '*' in error message ...
On Thu, Feb 22, 2018 at 09:51:23AM +0800, Philip Li wrote:
>On Tue, Feb 20, 2018 at 11:17:03AM +1100, NeilBrown wrote: >> On Mon, Feb 19 2018, kbuild test robot wrote: >> >> > Hi NeilBrown, >> > >> > Thank you for the patch! Perhaps something to improve: >> > >> > [auto build test WARNING on nfs/linux-next] >> > [also build test WARNING on v4.16-rc2 next-20180219] >> > [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] >> > >> > url: https://github.com/0day-ci/linux/commits/NeilBrown/Remove-generic-rpc-credentials-and-associated-changed-V3/20180219-190836 >> > base: git://git.linux-nfs.org/projects/trondmy/linux-nfs.git linux-next >> > reproduce: >> > # apt-get install sparse >> > make ARCH=x86_64 allmodconfig >> > make C=1 CF=-D__CHECK_ENDIAN__ >> > >> > >> > sparse warnings: (new ones prefixed by >>) >> > >> >>> fs/nfs/flexfilelayout/flexfilelayout.c:517:40: sparse: incorrect type in initializer (different address spaces) @@ expected struct cred const @@ got cred const @@ >> > fs/nfs/flexfilelayout/flexfilelayout.c:517:40: expected struct cred const >> > fs/nfs/flexfilelayout/flexfilelayout.c:517:40: got struct cred const Documentation Kbuild Kconfig Makefile certs drivers firmware fs include samples scripts sound tools cred >> >> Hi Mr Robot :-) >> It looks like you have some strange wild-card expansion happening here. >> I think the above should be >> > fs/nfs/flexfilelayout/flexfilelayout.c:517:40: got struct cred const * cred >thanks for pointing this out, we will fix it.
Obviously the robot shell-expands the '*' in error message ...
>> >> Even after correcting the that, I cannot see what the different address >> spaces are that might be a problem. >> Does anyone have any ideas? >> >> Thanks, >> NeilBrown > > > >> _______________________________________________ >> kbuild-all mailing list >> [email protected] >> https://lists.01.org/mailman/listinfo/kbuild-all >
PATCH 20/23 SUNRPC: remove generic cred code.
In reply to NeilBrownThis is no longer used.
--- include/linux/sunrpc/auth.h | 6 - net/sunrpc/Makefile | 2 net/sunrpc/auth.c | 17 ---- net/sunrpc/auth_generic.c | 199 ------------------------------------------- net/sunrpc/auth_null.c | 2 5 files changed, 2 insertions(+), 224 deletions(-) delete mode 100644 net/sunrpc/auth_generic.c
include/linux/sunrpc/auth.h +0 -6
@@ -104,7 +104,6 @@ struct rpc_auth_create_args {/* Flags for rpcauth_lookupcred() */ #define RPCAUTH_LOOKUP_NEW 0x01/* Accept an uninitialised cred */ -#define RPCAUTH_LOOKUP_RCU 0x02/* lock-less lookup */ /* * Client authentication ops
@@ -149,15 +148,10 @@ extern const struct rpc_authops authunix_ops;extern const struct rpc_authops authnull_ops;int __init rpc_init_authunix (void ); -int __init rpc_init_generic_auth (void );int __init rpcauth_init_module (void );void rpcauth_remove_module (void ); -void rpc_destroy_generic_auth (void );void rpc_destroy_authunix (void ); -struct rpc_cred *rpc_lookup_cred (void ); -struct rpc_cred *rpc_lookup_cred_nonblock (void ); -struct rpc_cred *rpc_lookup_generic_cred (struct auth_cred *,int ,gfp_t );int rpcauth_register (const struct rpc_authops *);int rpcauth_unregister (const struct rpc_authops *); struct rpc_auth * rpcauth_create(struct rpc_auth_create_args *,
net/sunrpc/Makefile +1 -1
@@ -9,7 +9,7 @@ obj-$(CONFIG_SUNRPC_GSS) += auth_gss/ obj-$(CONFIG_SUNRPC_XPRT_RDMA) += xprtrdma/ sunrpc-y := clnt.o xprt.o socklib.o xprtsock.o sched.o \ - auth.o auth_null.o auth_unix.o auth_generic.o \ + auth.o auth_null.o auth_unix.o \ svc.o svcsock.o svcauth.o svcauth_unix.o \ addr.o rpcb_clnt.o timer.o xdr.o \ sunrpc_syms.o cache.o rpc_pipe.o \
net/sunrpc/auth.c +1 -16
@@ -551,12 +551,6 @@ rpcauth_lookup_credcache(struct rpc_auth *auth, struct auth_cred * acred,hlist_for_each_entry_rcu (entry, &cache->hashtable[nr], cr_hash) {if (!entry->cr_ops->crmatch (acred, entry, flags))continue ; -if (flags &RPCAUTH_LOOKUP_RCU ) { -if (test_bit (RPCAUTH_CRED_HASHED , &entry->cr_flags) && - !test_bit (RPCAUTH_CRED_NEW , &entry->cr_flags)) - cred = entry; -break ; - }spin_lock (&cache->lock);if (test_bit (RPCAUTH_CRED_HASHED , &entry->cr_flags) ==0 ) {spin_unlock (&cache->lock);
@@ -571,9 +565,6 @@ rpcauth_lookup_credcache(struct rpc_auth *auth, struct auth_cred * acred,if (cred !=NULL ) goto found; -if (flags &RPCAUTH_LOOKUP_RCU ) -return ERR_PTR (-ECHILD ); - new = auth->au_ops->crcreate (auth, acred, flags, gfp);if (IS_ERR (new)) { cred = new;
@@ -897,15 +888,10 @@ int __init rpcauth_init_module(void) err =rpc_init_authunix ();if (err <0 ) goto out1; - err =rpc_init_generic_auth (); -if (err <0 ) - goto out2; err =register_shrinker (&rpc_cred_shrinker);if (err <0 ) - goto out3; + goto out2;return 0 ; -out3: -rpc_destroy_generic_auth (); out2:rpc_destroy_authunix (); out1:
@@ -915,6 +901,5 @@ int __init rpcauth_init_module(void)void rpcauth_remove_module (void ) {rpc_destroy_authunix (); -rpc_destroy_generic_auth ();unregister_shrinker (&rpc_cred_shrinker); }
net/sunrpc/auth_generic.c deleted +0 -199
199 lines not on this page · raw message
net/sunrpc/auth_null.c +0 -2
@@ -36,8 +36,6 @@ nul_destroy(struct rpc_auth *auth)static struct rpc_cred *nul_lookup_cred (struct rpc_auth *auth,struct auth_cred *acred,int flags) { -if (flags &RPCAUTH_LOOKUP_RCU ) -return &null_cred;return get_rpccred (&null_cred); }
PATCH 21/23 SUNRPC: remove crbind rpc_cred operation
In reply to NeilBrownThis now always just does get_rpccred(), so we don't need an operation pointer to know to do that.
--- include/linux/sunrpc/auth.h | 2 -- net/sunrpc/auth.c | 12 +----------- net/sunrpc/auth_gss/auth_gss.c | 2 -- net/sunrpc/auth_null.c | 1 - net/sunrpc/auth_unix.c | 1 - 5 files changed, 1 insertion(+), 17 deletions(-)
include/linux/sunrpc/auth.h +0 -2
@@ -132,7 +132,6 @@ struct rpc_credops {void (*crdestroy)(struct rpc_cred *);int (*crmatch)(struct auth_cred *,struct rpc_cred *,int ); -struct rpc_cred * (*crbind)(struct rpc_task *,struct rpc_cred *,int );__be32 * (*crmarshal)(struct rpc_task *,__be32 *);int (*crrefresh)(struct rpc_task *);__be32 * (*crvalidate)(struct rpc_task *,__be32 *);
@@ -165,7 +164,6 @@ int rpcauth_list_flavors(rpc_authflavor_t *, int);struct rpc_cred *rpcauth_lookup_credcache (struct rpc_auth *,struct auth_cred *,int ,gfp_t );void rpcauth_init_cred (struct rpc_cred *,const struct auth_cred *,struct rpc_auth *,const struct rpc_credops *);struct rpc_cred *rpcauth_lookupcred (struct rpc_auth *,int ); -struct rpc_cred *rpcauth_generic_bind_cred (struct rpc_task *,struct rpc_cred *,int );void put_rpccred (struct rpc_cred *);__be32 *rpcauth_marshcred (struct rpc_task *,__be32 *);__be32 *rpcauth_checkverf (struct rpc_task *,__be32 *);
net/sunrpc/auth.c +1 -11
@@ -634,15 +634,6 @@ rpcauth_init_cred(struct rpc_cred *cred, const struct auth_cred *acred, }EXPORT_SYMBOL_GPL (rpcauth_init_cred); -struct rpc_cred * -rpcauth_generic_bind_cred (struct rpc_task *task,struct rpc_cred *cred,int lookupflags) -{ -dprintk ("RPC: %5u holding %s cred %p\n" , task->tk_pid, - cred->cr_auth->au_ops->au_name, cred); -return get_rpccred (cred); -} -EXPORT_SYMBOL_GPL (rpcauth_generic_bind_cred); -static struct rpc_cred *rpcauth_bind_root_cred (struct rpc_task *task,int lookupflags) {
@@ -700,8 +691,7 @@ rpcauth_bindcred(struct rpc_task *task, const struct cred *cred, int flags) lookupflags |=RPCAUTH_LOOKUP_NEW ;if (task->tk_op_cred)/* Task must use exactly this rpc_cred */ - new = task->tk_op_cred->cr_ops->crbind (task, task->tk_op_cred, - lookupflags); + new =get_rpccred (task->tk_op_cred);else if (cred !=NULL && cred != &machine_cred) new = auth->au_ops->lookup_cred (auth, &acred, lookupflags);else if (cred == &machine_cred)
net/sunrpc/auth_gss/auth_gss.c +0 -2
@@ -1995,7 +1995,6 @@ static const struct rpc_credops gss_credops = { .cr_name = "AUTH_GSS", .crdestroy = gss_destroy_cred, .cr_init = gss_cred_init, - .crbind = rpcauth_generic_bind_cred, .crmatch = gss_match, .crmarshal = gss_marshal, .crrefresh = gss_refresh,
@@ -2009,7 +2008,6 @@ static const struct rpc_credops gss_credops = {static const struct rpc_credops gss_nullops = { .cr_name ="AUTH_GSS" , .crdestroy = gss_destroy_nullcred, - .crbind = rpcauth_generic_bind_cred, .crmatch = gss_match, .crmarshal = gss_marshal, .crrefresh = gss_refresh_null,
net/sunrpc/auth_null.c +0 -1
@@ -123,7 +123,6 @@ staticconst struct rpc_credops null_credops = { .cr_name ="AUTH_NULL" , .crdestroy = nul_destroy_cred, - .crbind = rpcauth_generic_bind_cred, .crmatch = nul_match, .crmarshal = nul_marshal, .crrefresh = nul_refresh,
net/sunrpc/auth_unix.c +0 -1
@@ -246,7 +246,6 @@ staticconst struct rpc_credops unix_credops = { .cr_name ="AUTH_UNIX" , .crdestroy = unx_destroy_cred, - .crbind = rpcauth_generic_bind_cred, .crmatch = unx_match, .crmarshal = unx_marshal, .crrefresh = unx_refresh,
PATCH 22/23 SUNRPC: simplify auth_unix.
In reply to NeilBrown1/ discard 'struct unx_cred'. We don't need any data that is
is not already in 'struct rpc_cred'.
2/ Don't keep these creds in a hash table. When a credential
is needed, simply allocate it. When not needed, discard it. This can easily be faster than performing a lookup on a shared hash table.
As the lookup can happen during write-out, use a mempool to ensure forward progress.
This means that we cannot compare two credentials for equality by comparing the pointers, but we never do that anyway.
--- net/sunrpc/auth.c | 1 net/sunrpc/auth_unix.c | 101 +++++++++++++++--------------------------------- 2 files changed, 32 insertions(+), 70 deletions(-)
net/sunrpc/auth.c +1 -0
@@ -627,6 +627,7 @@ rpcauth_init_cred(struct rpc_cred *cred, const struct auth_cred *acred,INIT_LIST_HEAD (&cred->cr_lru);atomic_set (&cred->cr_count,1 ); cred->cr_auth = auth; + cred->cr_flags =0 ; cred->cr_ops = ops; cred->cr_expire = jiffies; cred->cr_cred =get_cred (acred->cred);
net/sunrpc/auth_unix.c +31 -70
192 lines not on this page · raw message
PATCH 23/23 SUNRPC: discard cr_uid from struct rpc_cred.
In reply to NeilBrownJust use ->cr_cred->fsuid directly.
--- include/linux/sunrpc/auth.h | 2 -- net/sunrpc/auth.c | 1 - net/sunrpc/auth_gss/auth_gss.c | 12 ++++++------ 3 files changed, 6 insertions(+), 9 deletions(-)
include/linux/sunrpc/auth.h +0 -2
@@ -58,8 +58,6 @@ struct rpc_cred {atomic_t cr_count;/* ref count */ const struct cred *cr_cred; -kuid_t cr_uid; -/* per-flavor data */ };#define RPCAUTH_CRED_NEW 0
net/sunrpc/auth.c +0 -1
@@ -631,7 +631,6 @@ rpcauth_init_cred(struct rpc_cred *cred, const struct auth_cred *acred, cred->cr_ops = ops; cred->cr_expire = jiffies; cred->cr_cred =get_cred (acred->cred); - cred->cr_uid = acred->cred->fsuid; }EXPORT_SYMBOL_GPL (rpcauth_init_cred);
net/sunrpc/auth_gss/auth_gss.c +6 -6
@@ -534,7 +534,7 @@ gss_setup_upcall(struct gss_auth *gss_auth, struct rpc_cred *cred)struct gss_cred *gss_cred =container_of (cred, struct gss_cred, gc_base);struct gss_upcall_msg *gss_new, *gss_msg; -kuid_t uid = cred->cr_uid; +kuid_t uid = cred->cr_cred->fsuid; gss_new =gss_alloc_msg (gss_auth, uid, gss_cred->gc_principal);if (IS_ERR (gss_new))
@@ -573,7 +573,7 @@ gss_refresh_upcall(struct rpc_task *task)int err =0 ;dprintk ("RPC: %5u %s for uid %u\n" , - task->tk_pid, __func__,from_kuid (&init_user_ns, cred->cr_uid)); + task->tk_pid, __func__,from_kuid (&init_user_ns, cred->cr_cred->fsuid)); gss_msg =gss_setup_upcall (gss_auth, cred);if (PTR_ERR (gss_msg) == -EAGAIN ) {/* XXX: warning on the first, under the assumption we
@@ -606,7 +606,7 @@ gss_refresh_upcall(struct rpc_task *task) out:dprintk ("RPC: %5u %s for uid %u result %d\n" , task->tk_pid, __func__, -from_kuid (&init_user_ns, cred->cr_uid), err); +from_kuid (&init_user_ns, cred->cr_cred->fsuid), err);return err; }
@@ -622,7 +622,7 @@ gss_create_upcall(struct gss_auth *gss_auth, struct gss_cred *gss_cred)int err;dprintk ("RPC: %s for uid %u\n" , - __func__,from_kuid (&init_user_ns, cred->cr_uid)); + __func__,from_kuid (&init_user_ns, cred->cr_cred->fsuid)); retry: err =0 ;/* if gssd is down, just skip upcalling altogether */
@@ -670,7 +670,7 @@ gss_create_upcall(struct gss_auth *gss_auth, struct gss_cred *gss_cred)gss_release_msg (gss_msg); out:dprintk ("RPC: %s for uid %u result %d\n" , - __func__,from_kuid (&init_user_ns, cred->cr_uid), err); + __func__,from_kuid (&init_user_ns, cred->cr_cred->fsuid), err);return err; }
@@ -1465,7 +1465,7 @@ gss_match(struct auth_cred *acred, struct rpc_cred *rc, int flags) }else {if (gss_cred->gc_principal !=NULL )return 0 ; - ret =uid_eq (rc->cr_uid, acred->cred->fsuid); + ret =uid_eq (rc->cr_cred->fsuid, acred->cred->fsuid); }return ret; }