Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 19 files:

Smatch caller information:

init/do_mounts_rd.c compr_flush() -> kernel_write()

Type Parameter Key Value
PARAM_VALUE 3 pos 3263674890048008192
DATA_SOURCE 1 buf $0
DATA_SOURCE 2 count $1

init/do_mounts_rd.c rd_load_image() -> kernel_write()

Type Parameter Key Value
PARAM_VALUE 0 file 4096-ptr_max
PARAM_VALUE 0 file->f_mapping 4096-ptr_max
PARAM_VALUE 0 file->f_mapping->host 4096-ptr_max
PARAM_VALUE 1 buf 4096-ptr_max
PARAM_VALUE 2 count 1024
PARAM_VALUE 3 pos 3263674890048008192
BUF_SIZE 0 file (-1)-s32max
BUF_SIZE 0 file (-1)-s32max
BUF_SIZE 1 buf 1024
DATA_SOURCE 0 file r filp_open
DATA_SOURCE 1 buf r _kmalloc_noprof
NOCHECK_CALL

drivers/usb/gadget/function/f_mass_storage.c do_write() -> kernel_write()

Type Parameter Key Value
PARAM_VALUE 0 file 4096-ptr_max
PARAM_VALUE 0 file->f_lock.rlock.dep_map->name 0-255
PARAM_VALUE 2 count 1-u32max
PARAM_VALUE 3 pos 3901864085976981504
BUF_SIZE 1 buf 16384
CAPPED_DATA 2 count 1
UNITS 2 count unit_byte
LOCK2 &common->filesem
TYPE_LOCK (struct fsg_common)->filesem

fs/ecryptfs/read_write.c ecryptfs_write_lower() -> kernel_write()

Type Parameter Key Value
PARAM_VALUE 0 file 1-u64max
PARAM_VALUE 1 *buf 0-255
BUF_SIZE 1 buf (-1),8
DATA_SOURCE 1 buf $1
DATA_SOURCE 2 count $3
RX_PATH
TASK_NOT_RUNNING
USER_DATA 2 count 2-8192[c][u]
UNITS 2 count unit_byte
USER_PTR 1 buf

init/initramfs.c xwrite() -> kernel_write()

Type Parameter Key Value
PARAM_VALUE 2 count 1-u64max
PARAM_VALUE 3 pos 1724974192135548928,1772815037025873920
BUF_SIZE 0 file (-1),1-s32max
BUF_SIZE 0 file (-1),1-s32max
DATA_SOURCE 0 file $0
DATA_SOURCE 1 buf $1 [m]
DATA_SOURCE 2 count $2 [m]
DATA_SOURCE 3 pos $3
RX_PATH
TASK_NOT_RUNNING

net/9p/trans_fd.c p9_fd_write() -> kernel_write()

Type Parameter Key Value
PARAM_VALUE 0 file 4096-ptr_max
PARAM_VALUE 1 buf 4096-ptr_max
PARAM_VALUE 1 *buf 0-255
PARAM_VALUE 2 count 0-s32max,18446744071562067968-u64max
PARAM_VALUE 3 pos 4096-ptr_max
DATA_SOURCE 1 buf $1
DATA_SOURCE 2 count $2
BIT_INFO 0 file->f_flags 0x0,0xffffffff
UNITS 1 buf unit_byte
UNITS 2 count unit_byte
HALF_LOCKED2 &pool->lock

fs/pstore/blk.c psblk_generic_blk_write() -> kernel_write()

Type Parameter Key Value
BUF_SIZE 1 buf (-1)-s32max
DATA_SOURCE 1 buf $0
DATA_SOURCE 2 count $1
RX_PATH
TASK_NOT_RUNNING
USER_DATA 2 count 0-s32max[c]
UNITS 1 buf unit_byte
UNITS 2 count unit_byte

drivers/gpu/drm/i915/gem/i915_gem_shmem.c i915_gem_object_create_shmem_from_data() -> kernel_write()

Type Parameter Key Value
PARAM_VALUE 2 count 20-u64max
PARAM_VALUE 3 pos 3631792268752818176
PARAM_VALUE 3 *pos 0
BUF_SIZE 1 buf 1-s32max
BUF_SIZE 1 buf 1-s32max
CAPPED_DATA 2 count 1
CAPPED_DATA 2 count 1
DATA_SOURCE 1 buf $1
DATA_SOURCE 2 count $2
RX_PATH
TASK_NOT_RUNNING
UNITS 1 buf unit_byte
UNITS 2 count unit_byte

drivers/mtd/nand/raw/nandsim.c ns_write_file() -> kernel_write()

Type Parameter Key Value
PARAM_VALUE 0 file 4096-ptr_max
PARAM_VALUE 0 file->f_mapping->host->i_io_list.next->prev 4096-ptr_max
PARAM_VALUE 0 file->f_mapping->host->i_io_list.prev->next 4096-ptr_max
PARAM_VALUE 0 file->f_mapping->host->i_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 file->f_mapping->host->i_lru.next->prev 4096-ptr_max
PARAM_VALUE 0 file->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 file->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->list.next 2212933610777083904
PARAM_VALUE 0 file->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 0 file->f_mapping->host->i_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_bdev->bd_mapping->wb_err 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_cop->inode_info_offs 1632,1808,2632,2648
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_export_op->encode_fh 0,2,1398972869330624512,1616549510479982592,2037984473558433792
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_export_op->fh_to_dentry 0,8684,447817974243774464,687732489194512384,742201802719268864
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_export_op->fh_to_parent 0,5297,148606482432692224,436469935444291584,467281172929331200
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_export_op->get_parent 0,8931,264940071972966400,291591359766798336,565128213429456896
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->alloc_sem.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->alloc_sem.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->alloc_sem.first_waiter->task->blocked_on (-1)-0
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->alloc_sem.osq.tail.counter s32min-s32max
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->bad_size 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->check_ino 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->dirty_size 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->erase_free_sem.first_waiter->list.next 5159360019465732096
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->erase_free_sem.first_waiter->magic 5159360019465732096
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->erasing_size 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->free_size 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->gc_task->signal->curr_target->futex_state 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->gc_task->signal->flags 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->gc_task->signal->group_exit_code s32min-s32max
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->gc_task->signal->group_stop_count s32min-s32max
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->highest_xseqno 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->nextblock->allocated_refs 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->nextblock->bad_count s32min-s32max
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->nextblock->dirty_size 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->nextblock->free_size 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->nextblock->offset 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->nextblock->unchecked_size 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->nextblock->used_size 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->nextblock->wasted_size 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->no_chk_data_crc 0-1
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->nr_erasing_blocks 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->nr_free_blocks 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->ns_segctor_sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->ns_segctor_sem.first_waiter->list.next 2212933610777083904
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->ns_segctor_sem.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->ns_segctor_sem.first_waiter->type 0-1
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->ns_writer->sc_seq_request 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->ns_writer->sc_timer.flags 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->ns_writer->sc_timer.is_hard 0-1
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->ns_writer->sc_timer.is_lazy 0-1
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->ns_writer->sc_timer.is_queued 0-1
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->ns_writer->sc_timer.is_soft 0-1
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->ro_error 0-1
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->s_es->s_error_count 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->s_es->s_first_error_time 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->s_es->s_first_error_time_hi 0-255
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->s_es->s_free_blocks_count_lo 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->s_es->s_last_error_time 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->s_es->s_last_error_time_hi 0-255
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->s_es->s_wtime 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->s_es->s_wtime_hi 0-255
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->s_freeclusters_counter.lock.owner (-1)
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->s_freeclusters_counter.lock.owner_cpu 4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->s_freeinodes_counter.lock.owner (-1)
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->s_freeinodes_counter.lock.owner_cpu 4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->sd_jdesc->jd_log_bio->bi_end_io 6431644242391375872
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->sd_jdesc->jd_log_bio->bi_private->magic 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->sd_jdesc->jd_log_bio->bi_status 1-255
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->sd_log_blks_free.counter s32min-s32max
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->sd_log_blks_needed.counter s32min-s32max
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->sd_log_blks_reserved 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->sd_log_error s32min-s32max
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->sd_log_flush_head 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->sd_log_flush_lock.first_waiter->list.next 2212933610777083904,2624917664208203776
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->sd_log_flush_lock.first_waiter->list.prev 2212933610777083904,2624917664208203776
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->sd_log_flush_lock.first_waiter->type 0-1
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->sd_log_flush_tail 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->sd_log_head 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->sd_log_idle 0-1
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->sd_log_num_revoke 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->sd_log_pinned.counter s32min-s32max
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->sd_log_revokes_available.counter s32min-s32max
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->sd_log_tail 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->sd_log_thresh1.counter s32min-s32max
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->sd_log_thresh2.counter s32min-s32max
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->sector_size 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->summary->sum_buf->v32 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->summary->sum_num 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->summary->sum_padded 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->summary->sum_size 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->unchecked_size 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->used_size 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->wasted_size 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->wbuf_dwork.cpu s32min-s32max
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->wbuf_dwork.timer.flags 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->wbuf_dwork.wq->dfl_pwq 0-s64max
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->wbuf_dwork.wq->saved_max_active s32min-s32max
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->wbuf_dwork.wq->saved_min_active s32min-s32max
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->wbuf_inodes->ino 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->wbuf_len 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->wbuf_ofs 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->wbuf_pagesize 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->wbuf_sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->wbuf_sem.first_waiter->list.next 2212933610777083904,2624917664208203776
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->wbuf_sem.first_waiter->list.prev 2212933610777083904
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->wbuf_sem.first_waiter->type 0-1
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->xattr_sem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->xattr_sem.first_waiter->list.next 2624917664208203776
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->xattr_sem.first_waiter->type 0-1
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->xdatum_mem_usage 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->xref_dead_list->ic 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_sb->s_fs_info->xref_dead_list->xd 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_wb 4096-ptr_max
PARAM_VALUE 0 file->f_mapping->host->i_wb->dwork.timer.is_hard 0-1
PARAM_VALUE 0 file->f_mapping->host->i_wb->dwork.timer.is_lazy 0-1
PARAM_VALUE 0 file->f_mapping->host->i_wb->dwork.timer.is_queued 0-1
PARAM_VALUE 0 file->f_mapping->host->i_wb->dwork.timer.is_soft 0-1
PARAM_VALUE 0 file->f_mapping->host->i_wb->dwork.work.flags 0-4294967295
PARAM_VALUE 0 file->f_mapping->host->i_wb->dwork.work.is_hard 0-1
PARAM_VALUE 0 file->f_mapping->host->i_wb->dwork.work.is_lazy 0-1
PARAM_VALUE 0 file->f_mapping->host->i_wb->dwork.work.is_queued 0-1
PARAM_VALUE 0 file->f_mapping->host->i_wb->dwork.work.is_soft 0-1
PARAM_VALUE 0 file->f_mapping->host->i_wb->dwork.wq->dfl_pwq 0-s64max
PARAM_VALUE 0 file->f_mapping->host->i_wb->dwork.wq->saved_max_active s32min-s32max
PARAM_VALUE 0 file->f_mapping->host->i_wb->dwork.wq->saved_min_active s32min-s32max
PARAM_VALUE 0 file->f_mapping->host->i_wb->list_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 *file->f_mapping->host->i_sb->s_fs_info->s_es->s_first_error_func 0-255
PARAM_VALUE 0 *file->f_mapping->host->i_sb->s_fs_info->s_es->s_last_error_func 0-255
PARAM_VALUE 0 *file->f_mapping->host->i_sb->s_fs_info->s_first_error_func 0-255
PARAM_VALUE 0 *file->f_mapping->host->i_sb->s_fs_info->s_last_error_func 0-255
PARAM_VALUE 0 *file->f_mapping->host->i_sb->s_fs_info->summary->sum_list_head->d.name 0-255
PARAM_VALUE 0 *file->f_mapping->host->i_sb->s_fs_info->wbuf 0-255
PARAM_VALUE 0 *file->f_mapping->host->i_sb->s_fs_info->wbuf_verify 0-255
PARAM_VALUE 2 count 0-u32max,18446744071562067968-u64max
BUF_SIZE 1 buf (-1),1-s32max
BUF_SIZE 1 buf (-1),1-s32max
CAPPED_DATA 2 count 1
CAPPED_DATA 2 count 1
DATA_SOURCE 0 file $1
DATA_SOURCE 1 buf $2
DATA_SOURCE 2 count $3
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 file->f_path.d_inode->i_size
UNITS 1 buf unit_byte
UNITS 2 count unit_byte
HALF_LOCKED2 &chip->controller->lock
HALF_LOCKED2 &chip->lock

lib/test_workqueue.c set_affn_scope() -> kernel_write()

Type Parameter Key Value
PARAM_VALUE 0 file 0-ptr_max
PARAM_VALUE 2 count 0-1010101
PARAM_VALUE 3 pos 3068245259862364160
PARAM_VALUE 3 *pos 0
BUF_SIZE 0 file (-1)-s32max
BUF_SIZE 0 file (-1)-s32max
DATA_SOURCE 0 file r filp_open
DATA_SOURCE 1 buf $0
STR_LEN 0 file 0-1010101

drivers/target/target_core_alua.c core_alua_write_tpg_metadata() -> kernel_write()

Type Parameter Key Value
PARAM_VALUE 0 file 0-ptr_max
PARAM_VALUE 1 buf 4096-ptr_max
PARAM_VALUE 2 count 54,62
PARAM_VALUE 3 pos 3125915635423555584
PARAM_VALUE 3 *pos 0
BUF_SIZE 0 file (-1)-s32max
BUF_SIZE 0 file (-1)-s32max
BUF_SIZE 1 buf 1024
DATA_SOURCE 0 file r filp_open
DATA_SOURCE 1 buf $1
DATA_SOURCE 2 count $2
STR_LEN 0 file 1023
HARD_MAX 2 count 62
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &buffer->mutex
HALF_LOCKED2 &frag->frag_sem
HALF_LOCKED2 &lun->lun_tg_pt_md_mutex
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &tg_pt_gp->tg_pt_gp_transition_mutex

drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_debug.c debug_event_write_work_handler() -> kernel_write()

Type Parameter Key Value
PARAM_VALUE 0 file 1-u64max
PARAM_VALUE 1 buf 5400201927406948352
PARAM_VALUE 1 *buf 46
PARAM_VALUE 2 count 1
PARAM_VALUE 3 pos 8989567020464058368
PARAM_VALUE 3 *pos 0
NOCHECK_CALL
HALF_LOCKED2 &pool->lock

drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_debug.c kfd_dbg_ev_raise() -> kernel_write()

Type Parameter Key Value
PARAM_VALUE 1 buf 733096184036564992
PARAM_VALUE 1 *buf 46
PARAM_VALUE 2 count 1
PARAM_VALUE 3 pos 5497568561455693824
PARAM_VALUE 3 *pos 0
NOCHECK_CALL
LOCK2 &process->event_mutex
HALF_LOCKED2 &p->mutex
HALF_LOCKED2 &process->mutex
TYPE_LOCK (struct kfd_process)->event_mutex

drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_debug.c kfd_dbg_set_enabled_debug_exception_mask() -> kernel_write()

Type Parameter Key Value
PARAM_VALUE 1 buf 1110196294508527616
PARAM_VALUE 1 *buf 46
PARAM_VALUE 2 count 1
PARAM_VALUE 3 pos 641208417379201024
PARAM_VALUE 3 *pos 0
NOCHECK_CALL
LOCK2 &target->event_mutex
LOCK2 &target->mutex
TYPE_LOCK (struct kfd_process)->event_mutex
TYPE_LOCK (struct kfd_process)->mutex

fs/smb/server/vfs.c ksmbd_vfs_write() -> kernel_write()

Type Parameter Key Value
PARAM_VALUE 1 buf 16,4096-ptr_max
PARAM_VALUE 2 count 0-u32max
PARAM_VALUE 3 pos 4096-ptr_max
PARAM_VALUE 3 *pos 0-s64max
BUF_SIZE 1 buf (-1)-s32max
CAPPED_DATA 2 count 1
CAPPED_DATA 2 count 1
CAPPED_DATA 3 *pos 1
DATA_SOURCE 1 buf $2
DATA_SOURCE 2 count $3
DATA_SOURCE 3 pos $4
NOSPEC 2 count
NOSPEC 3 *pos
USER_DATA 2 count 0-s32max[c]
USER_DATA 3 *pos 0-s64max[c]
UNITS 1 buf unit_byte
UNITS 2 count unit_byte
BYTE_COUNT 1 ==buf2 8050
USER_PTR 1 buf
USER_PTR 3 pos
LOCK2 &pool->lock

security/keys/big_key.c big_key_preparse() -> kernel_write()

Type Parameter Key Value
PARAM_VALUE 0 file 4096-ptr_max
PARAM_VALUE 1 buf 1-18446744073709551614
PARAM_VALUE 3 pos 5597605879454539776
PARAM_VALUE 3 *pos 0
DATA_SOURCE 0 file r shmem_kernel_file_setup
DATA_SOURCE 1 buf r __kvmalloc_node_noprof
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 file->f_flags 0-18433,32770
USER_DATA 0 file->f_mode 33554432,34078720-571342855[c]
USER_DATA 2 count 16-1048591[c]
UNITS 2 count unit_byte
HALF_LOCKED2 global &key_types_sem

drivers/crypto/ccp/sev-dev.c sev_write_init_ex_file() -> kernel_write()

Type Parameter Key Value
PARAM_VALUE 0 file 0-ptr_max
PARAM_VALUE 1 buf 18379471554275704832,18446612682070032384
PARAM_VALUE 2 count 32768
PARAM_VALUE 3 pos 5055850714522017792
PARAM_VALUE 3 *pos 0
BUF_SIZE 0 file (-1)-s32max
BUF_SIZE 0 file (-1)-s32max
DATA_SOURCE 0 file r open_file_as_root
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 _T->lock
HALF_LOCKED2 global &sev_cmd_mutex

drivers/target/target_core_file.c fd_do_prot_fill() -> kernel_write()

Type Parameter Key Value
PARAM_VALUE 0 file 1-u64max
PARAM_VALUE 1 buf 1-u64max
PARAM_VALUE 3 pos 7993440651177730048
CAPPED_DATA 2 count 1
CAPPED_DATA 2 count 1
DATA_SOURCE 1 buf $3
RX_PATH
TASK_NOT_RUNNING
UNITS 2 count unit_byte
HALF_LOCKED2 &buffer->mutex
HALF_LOCKED2 &frag->frag_sem
HALF_LOCKED2 &pool->lock

fs/proc/proc_sysctl.c process_sysctl_arg() -> kernel_write()

Type Parameter Key Value
PARAM_VALUE 0 file 0-ptr_max
PARAM_VALUE 1 buf 4096-18446744073709547521
PARAM_VALUE 1 *buf 0-127
PARAM_VALUE 2 count 1-1010101
PARAM_VALUE 3 pos 5910019626986401792
PARAM_VALUE 3 *pos 0
CAPPED_DATA 2 count 1
DATA_SOURCE 0 file r file_open_root_mnt
DATA_SOURCE 1 buf $1
DATA_SOURCE 2 count r __fortify_strlen
STR_LEN 0 file (-1),10,13-14,17,19,23
HALF_LOCKED2 irq

drivers/target/target_core_pr.c __core_scsi3_write_aptpl_to_file() -> kernel_write()

Type Parameter Key Value
PARAM_VALUE 0 file 0-ptr_max
PARAM_VALUE 1 buf 1-u64max
PARAM_VALUE 2 count 1-524288
PARAM_VALUE 3 pos 8103367537263611904
PARAM_VALUE 3 *pos 0
BUF_SIZE 0 file (-1)-s32max
BUF_SIZE 0 file (-1)-s32max
BUF_SIZE 1 buf 34,262144,524288
DATA_SOURCE 0 file r filp_open
DATA_SOURCE 1 buf $1
STR_LEN 0 file (-1),33
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pool->lock

fs/btrfs/send.c write_buf() -> kernel_write()

Type Parameter Key Value
PARAM_VALUE 1 buf 4096-ptr_max
PARAM_VALUE 2 count 1-u32max
PARAM_VALUE 3 pos 4096-ptr_max
DATA_SOURCE 0 file $0
DATA_SOURCE 3 pos $3
NO_OVERFLOW_SIMPLE 0 file->f_path.d_inode->i_size
NO_OVERFLOW_SIMPLE 0 file->f_path.dentry->d_inode->i_size
NO_OVERFLOW_SIMPLE 0 file->f_path.moved->d_inode->i_size
UNITS 1 buf unit_byte
UNITS 2 count unit_byte