Lines Matching full:smb

58  * check_session_id() - check for valid session id in smb header
60 * @id: session id from smb header
87 * @work: smb work
101 ksmbd_debug(SMB, "skip to check tree connect request\n"); in smb2_get_ksmbd_tcon()
106 ksmbd_debug(SMB, "NO tree connected\n"); in smb2_get_ksmbd_tcon()
139 * smb2_set_err_rsp() - set error response code on smb response
140 * @work: smb work containing response buffer
169 * @work: smb work containing smb header
193 * @work: smb work containing smb response buffer
213 * get_smb2_cmd_val() - get smb command code from smb header
214 * @work: smb work containing smb request buffer
231 * @work: smb work containing response buffer
249 * @work: smb work containing smb request buffer
280 ksmbd_debug(SMB, "conn->dialect 0x%x\n", conn->dialect); in init_smb2_neg_rsp()
313 * @work: smb work containing smb response buffer
337 ksmbd_debug(SMB, "Insufficient credits granted, given: %u, granted: %u\n", in smb2_set_rsp_credits()
366 ksmbd_debug(SMB, in smb2_set_rsp_credits()
375 * @work: smb work containing smb response buffer
410 ksmbd_debug(SMB, in init_chained_smb2_rsp()
419 ksmbd_debug(SMB, "related flag should be set\n"); in init_chained_smb2_rsp()
443 * @work: smb work containing smb request buffer
461 pr_err("next command(%u) offset exceeds smb msg size\n", in is_chained_smb2_message()
472 ksmbd_debug(SMB, "got SMB2 chained command\n"); in is_chained_smb2_message()
483 ksmbd_debug(SMB, "padding len %u\n", len); in is_chained_smb2_message()
494 * @work: smb work containing smb request buffer
524 * @work: smb work containing smb request buffer
568 * @work: smb work containing smb request buffer
614 ksmbd_debug(SMB, "Invalid user session, Uid %llu\n", sess_id); in smb2_check_user_session()
619 * smb2_get_name() - get filename string from on the wire smb format
666 ksmbd_debug(SMB, in setup_async_work()
840 ksmbd_debug(SMB, in assemble_neg_contexts()
849 ksmbd_debug(SMB, in assemble_neg_contexts()
863 ksmbd_debug(SMB, in assemble_neg_contexts()
873 ksmbd_debug(SMB, in assemble_neg_contexts()
936 ksmbd_debug(SMB, "Cipher ID = 0x%x\n", in decode_encrypt_ctxt()
946 * @conn: smb connection
956 * SMB 3.0 and 3.0.2 dialects use the SMB2_GLOBAL_CAP_ENCRYPTION flag. in smb3_encryption_negotiated()
957 * SMB 3.1.1 uses the cipher_type field. in smb3_encryption_negotiated()
994 ksmbd_debug(SMB, "Signing Algorithm ID = 0x%x\n", in decode_sign_cap_ctxt()
1015 ksmbd_debug(SMB, "decoding %d negotiate contexts\n", neg_ctxt_cnt); in deassemble_neg_contexts()
1017 ksmbd_debug(SMB, "Invalid response: negotiate context offset\n"); in deassemble_neg_contexts()
1037 ksmbd_debug(SMB, in deassemble_neg_contexts()
1048 ksmbd_debug(SMB, in deassemble_neg_contexts()
1057 ksmbd_debug(SMB, in deassemble_neg_contexts()
1065 ksmbd_debug(SMB, in deassemble_neg_contexts()
1068 ksmbd_debug(SMB, in deassemble_neg_contexts()
1072 ksmbd_debug(SMB, in deassemble_neg_contexts()
1089 * @work: smb work containing smb request buffer
1102 ksmbd_debug(SMB, "Received negotiate request\n"); in smb2_handle_negotiate()
1207 ksmbd_debug(SMB, "Server dialect :0x%x not supported\n", in smb2_handle_negotiate()
1235 ksmbd_debug(SMB, "negotiate context offset %d, count %d\n", in smb2_handle_negotiate()
1349 ksmbd_debug(SMB, "negotiate phase\n"); in ntlm_negotiate()
1423 ksmbd_debug(SMB, "blob len %d too small\n", secbuf_len); in session_user()
1442 ksmbd_debug(SMB, "session setup request for user %s\n", name); in session_user()
1459 ksmbd_debug(SMB, "authenticate phase\n"); in ntlm_authenticate()
1477 ksmbd_debug(SMB, "Unknown user name or an error\n"); in ntlm_authenticate()
1518 ksmbd_debug(SMB, "authentication failed\n"); in ntlm_authenticate()
1543 ksmbd_debug(SMB, in ntlm_authenticate()
1578 ksmbd_debug(SMB, "SMB3 signing key generation failed\n"); in ntlm_authenticate()
1614 ksmbd_debug(SMB, "krb5 authentication failed\n"); in krb5_authenticate()
1645 ksmbd_debug(SMB, in krb5_authenticate()
1676 ksmbd_debug(SMB, "SMB3 signing key generation failed\n"); in krb5_authenticate()
1706 ksmbd_debug(SMB, "Received smb2 session setup request\n"); in smb2_sess_setup()
1968 * @work: smb work containing smb request buffer
1983 ksmbd_debug(SMB, "Received smb2 tree connect request\n"); in smb2_tree_connect()
2002 ksmbd_debug(SMB, "tree connect request for tree %s treename %s\n", in smb2_tree_connect()
2013 ksmbd_debug(SMB, "IPC share path request\n"); in smb2_tree_connect()
2096 * smb2_create_open_flags() - convert smb open flags to unix open flags
2116 ksmbd_debug(SMB, "Discard write access to a directory\n"); in smb2_create_open_flags()
2168 * smb2_tree_disconnect() - handler for smb tree connect request
2169 * @work: smb work containing request buffer
2181 ksmbd_debug(SMB, "Received smb2 tree disconnect request\n"); in smb2_tree_disconnect()
2186 ksmbd_debug(SMB, "Invalid tid %d\n", req->hdr.Id.SyncId.TreeId); in smb2_tree_disconnect()
2233 * @work: smb work containing request buffer
2248 ksmbd_debug(SMB, "Received smb2 session logoff request\n"); in smb2_session_logoff()
2265 ksmbd_debug(SMB, "Invalid tid %d\n", req->hdr.Id.SyncId.TreeId); in smb2_session_logoff()
2289 * @work: smb work containing request buffer
2391 ksmbd_debug(SMB, in smb2_set_ea()
2424 ksmbd_debug(SMB, in smb2_set_ea()
2438 ksmbd_debug(SMB, in smb2_set_ea()
2495 ksmbd_debug(SMB, "XATTR stream name lookup failed: %d\n", rc); in smb2_set_stream_name_xattr()
2516 ksmbd_debug(SMB, "empty xattr in the file\n"); in smb2_remove_smb_xattrs()
2522 ksmbd_debug(SMB, "%s, len %zd\n", name, strlen(name)); in smb2_remove_smb_xattrs()
2530 ksmbd_debug(SMB, "remove xattr failed : %s\n", in smb2_remove_smb_xattrs()
2552 ksmbd_debug(SMB, in smb2_create_truncate()
2576 ksmbd_debug(SMB, "failed to store file attribute into xattr\n"); in smb2_new_xattrs()
2613 ksmbd_debug(SMB, "file does not exist, so creating\n"); in smb2_creat()
2615 ksmbd_debug(SMB, "creating directory\n"); in smb2_creat()
2622 ksmbd_debug(SMB, "creating regular file\n"); in smb2_creat()
2656 ksmbd_debug(SMB, in smb2_create_sd_buffer()
2748 ksmbd_debug(SMB, "Failed to get durable handle state\n"); in parse_durable_handle_context()
2762 ksmbd_debug(SMB, in parse_durable_handle_context()
2788 ksmbd_debug(SMB, "Failed to get durable handle state\n"); in parse_durable_handle_context()
2795 ksmbd_debug(SMB, "reconnect Persistent-id from reconnect = %llu\n", in parse_durable_handle_context()
2818 ksmbd_debug(SMB, "Request for durable v2 open\n"); in parse_durable_handle_context()
2857 ksmbd_debug(SMB, "Request for durable open\n"); in parse_durable_handle_context()
2868 * smb2_open() - handler for smb file open request
2869 * @work: smb work containing request buffer
2907 ksmbd_debug(SMB, "Received smb2 create request\n"); in smb2_open()
2913 ksmbd_debug(SMB, "invalid flag in chained command\n"); in smb2_open()
2920 ksmbd_debug(SMB, "IPC pipe create request\n"); in smb2_open()
2938 ksmbd_debug(SMB, "get posix context\n"); in smb2_open()
2955 ksmbd_debug(SMB, "converted name = %s\n", name); in smb2_open()
2976 ksmbd_debug(SMB, "Reject open(), vetoed file: %s\n", in smb2_open()
2995 ksmbd_debug(SMB, "error parsing durable handle context\n"); in smb2_open()
3115 ksmbd_debug(SMB, in smb2_open()
3126 ksmbd_debug(SMB, "get timewarp context\n"); in smb2_open()
3154 ksmbd_debug(SMB, in smb2_open()
3168 ksmbd_debug(SMB, "can not get linux path for %s, rc = %d\n", in smb2_open()
3200 ksmbd_debug(SMB, "open() argument is a directory: %s, %x\n", in smb2_open()
3250 ksmbd_debug(SMB, in smb2_open()
3369 ksmbd_debug(SMB, "inherit posix acl failed : %d\n", posix_acl_rc); in smb2_open()
3497 ksmbd_debug(SMB, in smb2_open()
3544 ksmbd_debug(SMB, in smb2_open()
3551 ksmbd_debug(SMB, in smb2_open()
3561 ksmbd_debug(SMB, "get query on disk id context\n"); in smb2_open()
3647 ksmbd_debug(SMB, "lease granted on(%s) lease state 0x%x\n", in smb2_open()
3786 ksmbd_debug(SMB, "Error response: %x\n", rsp->hdr.Status); in smb2_open()
3899 * @info_level: smb information level
4112 ksmbd_debug(SMB, in smb2_populate_readdir_entry()
4151 ksmbd_debug(SMB, "Cannot lookup `%s' [%ld]\n", in process_query_dir_entries()
4158 ksmbd_debug(SMB, "Negative dentry `%s'\n", in process_query_dir_entries()
4381 ksmbd_debug(SMB, "Received smb2 query directory request\n"); in smb2_query_dir()
4423 ksmbd_debug(SMB, "Search Pattern not found\n"); in smb2_query_dir()
4427 ksmbd_debug(SMB, "Search pattern is %s\n", srch_ptr); in smb2_query_dir()
4431 ksmbd_debug(SMB, "Restart directory scan\n"); in smb2_query_dir()
4639 ksmbd_debug(SMB, "FileInfoClass %u, FileId 0x%llx\n", in smb2_get_info_file_pipe()
4654 ksmbd_debug(SMB, "smb2_info_file_pipe for %u not supported\n", in smb2_get_info_file_pipe()
4663 * @work: smb work containing query info command buffer
4701 ksmbd_debug(SMB, in smb2_get_ea()
4717 ksmbd_debug(SMB, "no ea data in the file\n"); in smb2_get_ea()
4731 ksmbd_debug(SMB, "%s, len %d\n", name, name_len); in smb2_get_ea()
4808 ksmbd_debug(SMB, "single entry requested\n"); in smb2_get_ea()
4928 ksmbd_debug(SMB, "no right to read the attributes : 0x%x\n", in get_file_all_info()
4942 ksmbd_debug(SMB, "filename = %s\n", filename); in get_file_all_info()
5041 ksmbd_debug(SMB, "empty xattr in the file\n"); in get_file_stream_info()
5050 ksmbd_debug(SMB, "%s, len %d\n", stream_name, streamlen); in get_file_stream_info()
5348 ksmbd_debug(SMB, "Compound request set FID = %llu\n", in smb2_get_info_file()
5435 ksmbd_debug(SMB, "fileinfoclass %d not supported yet\n", in smb2_get_info_file()
5682 ksmbd_debug(SMB, "Unsupported addition info: 0x%x)\n", in smb2_get_info_sec()
5700 ksmbd_debug(SMB, "Compound request set FID = %llu\n", in smb2_get_info_sec()
5743 * @work: smb work containing query info request buffer
5753 ksmbd_debug(SMB, "Received request smb2 query info request\n"); in smb2_query_info()
5764 ksmbd_debug(SMB, "GOT SMB2_O_INFO_FILE\n"); in smb2_query_info()
5768 ksmbd_debug(SMB, "GOT SMB2_O_INFO_FILESYSTEM\n"); in smb2_query_info()
5772 ksmbd_debug(SMB, "GOT SMB2_O_INFO_SECURITY\n"); in smb2_query_info()
5776 ksmbd_debug(SMB, "InfoType %d not supported yet\n", in smb2_query_info()
5804 ksmbd_debug(SMB, "error while processing smb2 query rc = %d\n", in smb2_query_info()
5813 * @work: smb work containing close request buffer
5845 * @work: smb work containing close request buffer
5860 ksmbd_debug(SMB, "Received smb2 close request\n"); in smb2_close()
5866 ksmbd_debug(SMB, "IPC pipe close request\n"); in smb2_close()
5889 ksmbd_debug(SMB, "file already closed\n"); in smb2_close()
5894 ksmbd_debug(SMB, in smb2_close()
5907 ksmbd_debug(SMB, "volatile_id = %llu\n", volatile_id); in smb2_close()
5970 * @work: smb work containing echo request buffer
5978 ksmbd_debug(SMB, "Received smb2 echo request\n"); in smb2_echo()
5997 ksmbd_debug(SMB, "setting FILE_RENAME_INFO\n"); in smb2_rename()
6042 ksmbd_debug(SMB, "new name %s\n", new_name); in smb2_rename()
6045 ksmbd_debug(SMB, "Can't rename vetoed file: %s\n", new_name); in smb2_rename()
6074 ksmbd_debug(SMB, "setting FILE_LINK_INFORMATION\n"); in smb2_create_link()
6087 ksmbd_debug(SMB, "link name is %s\n", link_name); in smb2_create_link()
6094 ksmbd_debug(SMB, "target name is %s\n", target_name); in smb2_create_link()
6105 ksmbd_debug(SMB, "cannot delete %s\n", in smb2_create_link()
6111 ksmbd_debug(SMB, "link already exists\n"); in smb2_create_link()
6188 ksmbd_debug(SMB, in set_file_basic_info()
6214 * properly with any smb.conf option in set_file_allocation_info()
6288 ksmbd_debug(SMB, "truncated to newsize %lld\n", newsize); in set_end_of_file_info()
6291 ksmbd_debug(SMB, "truncate failed!, err %d\n", rc); in set_end_of_file_info()
6393 * @work: smb work containing set info command buffer
6506 * @work: smb work containing set info request buffer
6518 ksmbd_debug(SMB, "Received smb2 set info request\n"); in smb2_set_info()
6524 ksmbd_debug(SMB, "Compound request set FID = %llu\n", in smb2_set_info()
6535 ksmbd_debug(SMB, "User does not have write permission\n"); in smb2_set_info()
6548 ksmbd_debug(SMB, "Invalid id for close: %u\n", id); in smb2_set_info()
6555 ksmbd_debug(SMB, "GOT SMB2_O_INFO_FILE\n"); in smb2_set_info()
6559 ksmbd_debug(SMB, "GOT SMB2_O_INFO_SECURITY\n"); in smb2_set_info()
6606 ksmbd_debug(SMB, "error while processing smb2 query rc = %d\n", rc); in smb2_set_info()
6612 * @work: smb work containing read IPC pipe command buffer
6725 * @work: smb work containing read command buffer
6744 ksmbd_debug(SMB, "Received smb2 read request\n"); in smb2_read()
6748 ksmbd_debug(SMB, "IPC pipe read request\n"); in smb2_read()
6756 ksmbd_debug(SMB, "Compound request set FID = %llu\n", in smb2_read()
6818 ksmbd_debug(SMB, "limiting read size to max size(%u)\n", in smb2_read()
6824 ksmbd_debug(SMB, "filename %pD, offset %lld, len %zu\n", in smb2_read()
6848 ksmbd_debug(SMB, "nbytes %zu, offset %lld mincount %zu\n", in smb2_read()
6906 * @work: smb work containing write IPC pipe command buffer
7003 * @work: smb work containing write command buffer
7020 ksmbd_debug(SMB, "Received smb2 write request\n"); in smb2_write()
7025 ksmbd_debug(SMB, "IPC pipe write request\n"); in smb2_write()
7063 ksmbd_debug(SMB, "User does not have write permission\n"); in smb2_write()
7081 ksmbd_debug(SMB, "limiting write size to max size(%u)\n", in smb2_write()
7087 ksmbd_debug(SMB, "flags %u\n", le32_to_cpu(req->Flags)); in smb2_write()
7101 ksmbd_debug(SMB, "filename %pD, offset %lld, len %zu\n", in smb2_write()
7154 * @work: smb work containing flush command buffer
7166 ksmbd_debug(SMB, "Received smb2 flush request(fid : %llu)\n", req->VolatileFileId); in smb2_flush()
7184 * @work: smb work containing cancel command buffer
7199 ksmbd_debug(SMB, "smb2 cancel called on mid %llu, async flags 0x%x\n", in smb2_cancel()
7214 ksmbd_debug(SMB, in smb2_cancel()
7235 ksmbd_debug(SMB, in smb2_cancel()
7278 ksmbd_debug(SMB, "received shared request\n"); in smb2_set_flock_flags()
7284 ksmbd_debug(SMB, "received exclusive request\n"); in smb2_set_flock_flags()
7290 ksmbd_debug(SMB, in smb2_set_flock_flags()
7296 ksmbd_debug(SMB, in smb2_set_flock_flags()
7302 ksmbd_debug(SMB, "received unlock request\n"); in smb2_set_flock_flags()
7352 * @work: smb work containing lock command buffer
7378 ksmbd_debug(SMB, "Received smb2 lock request\n"); in smb2_lock()
7381 ksmbd_debug(SMB, "Invalid file id for lock : %llu\n", req->VolatileFileId); in smb2_lock()
7390 ksmbd_debug(SMB, "lock count is %d\n", lock_count); in smb2_lock()
7426 ksmbd_debug(SMB, in smb2_lock()
7570 ksmbd_debug(SMB, "File unlocked\n"); in smb2_lock()
7581 ksmbd_debug(SMB, in smb2_lock()
7643 ksmbd_debug(SMB, "successful in taking lock\n"); in smb2_lock()
7654 ksmbd_debug(SMB, "successful in taking lock\n"); in smb2_lock()
7695 ksmbd_debug(SMB, "failed in taking lock(flags : %x), err : %d\n", flags, err); in smb2_lock()
7892 ksmbd_debug(SMB, "%s %s\n", netdev->name, in fsctl_query_iface_info_ioctl()
8134 * @work: smb work containing ioctl command buffer
8148 ksmbd_debug(SMB, "Received smb2 ioctl request\n"); in smb2_ioctl()
8154 ksmbd_debug(SMB, "Compound request set FID = %llu\n", in smb2_ioctl()
8263 ksmbd_debug(SMB, in smb2_ioctl()
8307 ksmbd_debug(SMB, in smb2_ioctl()
8417 * beneficial when re-exporting nfs/smb mount, but note that in smb2_ioctl()
8448 ksmbd_debug(SMB, "not implemented yet ioctl command 0x%x\n", in smb2_ioctl()
8484 * @work: smb work containing oplock break command buffer
8530 ksmbd_debug(SMB, "unexpected oplock state 0x%x\n", opinfo->op_state); in smb20_oplock_break_ack()
8624 * @work: smb work containing lease break command buffer
8756 * @work: smb work containing oplock/lease break command buffer
8765 ksmbd_debug(SMB, "Received smb2 oplock break acknowledgment request\n"); in smb2_oplock_break()
8788 * @work: smb work containing notify command buffer
8797 ksmbd_debug(SMB, "Received smb2 notify\n"); in smb2_notify()
8814 * @work: smb work containing notify command buffer
8834 * @work: smb work containing notify command buffer
8878 * @work: smb work containing notify command buffer
8906 * @work: smb work containing notify command buffer
8966 * @work: smb work containing notify command buffer
9012 * @work: smb work containing response buffer