Defined in 1 files as a function:

No references found in the database

Smatch caller information:

net/kcm/kcmsock.c kcm_ioctl() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 4398740580125888512
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0
HALF_LOCKED2 &smc->sk

fs/file.c receive_fd() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 3812087148457590784
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->err 0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &match->notify_lock

mm/userfaultfd.c new_userfaultfd() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 5702460508587679744
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0

drivers/media/mc/mc-request.c media_request_alloc() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 3385406811206758400
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0
HALF_LOCKED2 &mdev->graph_mutex

kernel/bpf/bpf_iter.c bpf_iter_new_fd() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 2801177637130997760
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0

fs/autofs/dev-ioctl.c autofs_dev_ioctl_open_mountpoint() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 4103113007964098560
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0

drivers/misc/ntsync.c ntsync_obj_get_fd() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 341016318033838080
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0

drivers/gpio/gpiolib-cdev.c lineevent_create() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 6415079348929159168
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0
LOCK2 _T->lock

drivers/gpio/gpiolib-cdev.c linehandle_create() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 3730004710114062336
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0
LOCK2 _T->lock

drivers/gpio/gpiolib-cdev.c linereq_create() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 1480791487859216384
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0
LOCK2 _T->lock

mm/secretmem.c __do_sys_memfd_secret() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 5821798745877143552
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0

mm/secretmem.c __do_sys_memfd_secret() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 5821798745877143552
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0

fs/signalfd.c do_signalfd4() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 6119613974576316416
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0

io_uring/mock_file.c io_create_mock_file() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 7765689921401794560
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0
CAPABLE 0 21
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &ctx->uring_lock

drivers/gpu/drm/msm/msm_perfcntr.c msm_ioctl_perfcntr_config() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 8887980854487179264
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0
LOCK2 _T->lock

net/unix/af_unix.c unix_open_file() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 5523750332658819072
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0
NS_CAPABLE 0 12

drivers/tty/pty.c ptm_open_peer() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 334524503430561792
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0
USER_DATA 0 fdf->__fd 1-s32max[c]

net/handshake/netlink.c handshake_nl_accept_doit() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 7799914426964832256
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-ptr_max
PARAM_VALUE 0 fdf->err 0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dev->lock
HALF_LOCKED2 &devlink->lock
HALF_LOCKED2 &net->xfrm.xfrm_cfg_mutex
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 global &audit_cmd_mutex.lock
HALF_LOCKED2 global &cb_lock
HALF_LOCKED2 global &crypto_cfg_mutex
HALF_LOCKED2 global &dpll_lock
HALF_LOCKED2 global &hwsim_phys_lock
HALF_LOCKED2 global &net_dm_mutex
HALF_LOCKED2 global &rtnl_mutex
HALF_LOCKED2 global &rx_queue_mutex
HALF_LOCKED2 rcu_read

fs/namespace.c __do_sys_fsmount() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 1012579328547745792
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0
NS_CAPABLE 0 21
HALF_LOCKED2 &to_path.dentry->d_inode->i_rwsem

fs/namespace.c __do_sys_fsmount() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 1012579328547745792
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0

fs/namespace.c __do_sys_fsmount() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 1012579328547745792
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0
NS_CAPABLE 0 21
HALF_LOCKED2 &to_path.dentry->d_inode->i_rwsem

fs/namespace.c __do_sys_fsmount() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 1012579328547745792
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0

fs/namespace.c __do_sys_open_tree() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 3971030942625128448
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0
USER_DATA 0 fdf->__fd 1-s32max[c]
HALF_LOCKED2 &to_path.dentry->d_inode->i_rwsem

fs/namespace.c __do_sys_open_tree() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 3971030942625128448
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0
USER_DATA 0 fdf->__fd 1-s32max[c]
HALF_LOCKED2 &to_path.dentry->d_inode->i_rwsem

fs/namespace.c __do_sys_open_tree_attr() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 505405519262535680
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0
USER_DATA 0 fdf->__fd 1-s32max[c]
HALF_LOCKED2 &to_path.dentry->d_inode->i_rwsem

fs/namespace.c __do_sys_open_tree_attr() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 505405519262535680
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0
USER_DATA 0 fdf->__fd 1-s32max[c]
HALF_LOCKED2 &to_path.dentry->d_inode->i_rwsem

fs/nsfs.c ns_ioctl() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 7116817967957540864
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0

fs/nsfs.c open_namespace() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 5064852104622489600
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0
HALF_LOCKED2 &_T->lock->alloc_lock

fs/eventfd.c do_eventfd() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 2274794370380984320
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0
USER_DATA 0 fdf->__fd 1-s32max[c]

fs/fhandle.c do_handle_open() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 7052338075543502848
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->err 0
USER_DATA 0 fdf->__fd 1-s32max[c]

fs/timerfd.c __do_sys_timerfd_create() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 5852926458670403584
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0

fs/timerfd.c __do_sys_timerfd_create() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 5852926458670403584
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0

fs/eventpoll.c do_epoll_create() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 5440302029292748800
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0

net/socket.c __sys_accept4_file() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 4617388616533127168
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0
USER_DATA 0 fdf->__fd 1-s32max[c]

fs/anon_inodes.c __anon_inode_getfd() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 1105592933870415872
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 fdf->__fd 1-s32max[c]

drivers/vfio/group.c vfio_group_ioctl_get_device_fd() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 6695431453121896448
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0

fs/notify/fanotify/fanotify_user.c __do_sys_fanotify_init() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 1331825327430127616
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0

fs/notify/fanotify/fanotify_user.c __do_sys_fanotify_init() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 1331825327430127616
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0

fs/open.c do_sys_openat2() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 3637321634998509568
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->err 0
USER_DATA 0 fdf->__fd 1-s32max[c]

mm/memfd.c __do_sys_memfd_create() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 2792620690889908224
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0

mm/memfd.c __do_sys_memfd_create() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 2792620690889908224
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0

kernel/bpf/token.c bpf_token_create() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 4627625309547450368
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0
NS_CAPABLE 0 39

fs/xfs/xfs_handle.c xfs_open_by_handle() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 8317154943117770752
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-u64max
PARAM_VALUE 0 fdf->err 0
CAPABLE 0 21

fs/exec.c begin_new_exec() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 7621014720702062592
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,4096-ptr_max
PARAM_VALUE 0 fdf->err 0
LOCK2 &tsk->signal->exec_update_lock

ipc/mqueue.c do_mq_open() -> class_fd_prepare_lock_err()

Type Parameter Key Value
PARAM_VALUE 0 fdf 112388319483678720
PARAM_VALUE 0 fdf->__fd s32min-(-2),0-s32max
PARAM_VALUE 0 fdf->__file 0,(-4095)-(-1)
PARAM_VALUE 0 fdf->err 0