Lines Matching full:smb
57 * check_session_id() - check for valid session id in smb header
59 * @id: session id from smb header
86 * @work: smb work
100 ksmbd_debug(SMB, "skip to check tree connect request\n"); in smb2_get_ksmbd_tcon()
105 ksmbd_debug(SMB, "NO tree connected\n"); in smb2_get_ksmbd_tcon()
138 * smb2_set_err_rsp() - set error response code on smb response
139 * @work: smb work containing response buffer
168 * @work: smb work containing smb header
192 * @work: smb work containing smb response buffer
212 * get_smb2_cmd_val() - get smb command code from smb header
213 * @work: smb work containing smb request buffer
230 * @work: smb work containing response buffer
248 * @work: smb work containing smb request buffer
279 ksmbd_debug(SMB, "conn->dialect 0x%x\n", conn->dialect); in init_smb2_neg_rsp()
312 * @work: smb work containing smb response buffer
336 ksmbd_debug(SMB, "Insufficient credits granted, given: %u, granted: %u\n", in smb2_set_rsp_credits()
365 ksmbd_debug(SMB, in smb2_set_rsp_credits()
374 * @work: smb work containing smb response buffer
409 ksmbd_debug(SMB, in init_chained_smb2_rsp()
418 ksmbd_debug(SMB, "related flag should be set\n"); in init_chained_smb2_rsp()
442 * @work: smb work containing smb request buffer
460 pr_err("next command(%u) offset exceeds smb msg size\n", in is_chained_smb2_message()
471 ksmbd_debug(SMB, "got SMB2 chained command\n"); in is_chained_smb2_message()
482 ksmbd_debug(SMB, "padding len %u\n", len); in is_chained_smb2_message()
493 * @work: smb work containing smb request buffer
523 * @work: smb work containing smb request buffer
567 * @work: smb work containing smb request buffer
613 ksmbd_debug(SMB, "Invalid user session, Uid %llu\n", sess_id); in smb2_check_user_session()
618 * smb2_get_name() - get filename string from on the wire smb format
665 ksmbd_debug(SMB, in setup_async_work()
839 ksmbd_debug(SMB, in assemble_neg_contexts()
848 ksmbd_debug(SMB, in assemble_neg_contexts()
862 ksmbd_debug(SMB, in assemble_neg_contexts()
872 ksmbd_debug(SMB, in assemble_neg_contexts()
935 ksmbd_debug(SMB, "Cipher ID = 0x%x\n", in decode_encrypt_ctxt()
945 * @conn: smb connection
955 * SMB 3.0 and 3.0.2 dialects use the SMB2_GLOBAL_CAP_ENCRYPTION flag. in smb3_encryption_negotiated()
956 * SMB 3.1.1 uses the cipher_type field. in smb3_encryption_negotiated()
993 ksmbd_debug(SMB, "Signing Algorithm ID = 0x%x\n", in decode_sign_cap_ctxt()
1014 ksmbd_debug(SMB, "decoding %d negotiate contexts\n", neg_ctxt_cnt); in deassemble_neg_contexts()
1016 ksmbd_debug(SMB, "Invalid response: negotiate context offset\n"); in deassemble_neg_contexts()
1036 ksmbd_debug(SMB, in deassemble_neg_contexts()
1047 ksmbd_debug(SMB, in deassemble_neg_contexts()
1056 ksmbd_debug(SMB, in deassemble_neg_contexts()
1064 ksmbd_debug(SMB, in deassemble_neg_contexts()
1067 ksmbd_debug(SMB, in deassemble_neg_contexts()
1071 ksmbd_debug(SMB, in deassemble_neg_contexts()
1088 * @work: smb work containing smb request buffer
1101 ksmbd_debug(SMB, "Received negotiate request\n"); in smb2_handle_negotiate()
1206 ksmbd_debug(SMB, "Server dialect :0x%x not supported\n", in smb2_handle_negotiate()
1234 ksmbd_debug(SMB, "negotiate context offset %d, count %d\n", in smb2_handle_negotiate()
1348 ksmbd_debug(SMB, "negotiate phase\n"); in ntlm_negotiate()
1422 ksmbd_debug(SMB, "blob len %d too small\n", secbuf_len); in session_user()
1441 ksmbd_debug(SMB, "session setup request for user %s\n", name); in session_user()
1458 ksmbd_debug(SMB, "authenticate phase\n"); in ntlm_authenticate()
1476 ksmbd_debug(SMB, "Unknown user name or an error\n"); in ntlm_authenticate()
1517 ksmbd_debug(SMB, "authentication failed\n"); in ntlm_authenticate()
1542 ksmbd_debug(SMB, in ntlm_authenticate()
1577 ksmbd_debug(SMB, "SMB3 signing key generation failed\n"); in ntlm_authenticate()
1618 ksmbd_debug(SMB, "krb5 authentication failed\n"); in krb5_authenticate()
1630 ksmbd_debug(SMB, in krb5_authenticate()
1655 ksmbd_debug(SMB, "SMB3 signing key generation failed\n"); in krb5_authenticate()
1685 ksmbd_debug(SMB, "Received smb2 session setup request\n"); in smb2_sess_setup()
1950 * @work: smb work containing smb request buffer
1965 ksmbd_debug(SMB, "Received smb2 tree connect request\n"); in smb2_tree_connect()
1984 ksmbd_debug(SMB, "tree connect request for tree %s treename %s\n", in smb2_tree_connect()
1995 ksmbd_debug(SMB, "IPC share path request\n"); in smb2_tree_connect()
2078 * smb2_create_open_flags() - convert smb open flags to unix open flags
2098 ksmbd_debug(SMB, "Discard write access to a directory\n"); in smb2_create_open_flags()
2150 * smb2_tree_disconnect() - handler for smb tree connect request
2151 * @work: smb work containing request buffer
2163 ksmbd_debug(SMB, "Received smb2 tree disconnect request\n"); in smb2_tree_disconnect()
2168 ksmbd_debug(SMB, "Invalid tid %d\n", req->hdr.Id.SyncId.TreeId); in smb2_tree_disconnect()
2215 * @work: smb work containing request buffer
2230 ksmbd_debug(SMB, "Received smb2 session logoff request\n"); in smb2_session_logoff()
2247 ksmbd_debug(SMB, "Invalid tid %d\n", req->hdr.Id.SyncId.TreeId); in smb2_session_logoff()
2271 * @work: smb work containing request buffer
2373 ksmbd_debug(SMB, in smb2_set_ea()
2406 ksmbd_debug(SMB, in smb2_set_ea()
2420 ksmbd_debug(SMB, in smb2_set_ea()
2477 ksmbd_debug(SMB, "XATTR stream name lookup failed: %d\n", rc); in smb2_set_stream_name_xattr()
2498 ksmbd_debug(SMB, "empty xattr in the file\n"); in smb2_remove_smb_xattrs()
2504 ksmbd_debug(SMB, "%s, len %zd\n", name, strlen(name)); in smb2_remove_smb_xattrs()
2512 ksmbd_debug(SMB, "remove xattr failed : %s\n", in smb2_remove_smb_xattrs()
2534 ksmbd_debug(SMB, in smb2_create_truncate()
2558 ksmbd_debug(SMB, "failed to store file attribute into xattr\n"); in smb2_new_xattrs()
2595 ksmbd_debug(SMB, "file does not exist, so creating\n"); in smb2_creat()
2597 ksmbd_debug(SMB, "creating directory\n"); in smb2_creat()
2604 ksmbd_debug(SMB, "creating regular file\n"); in smb2_creat()
2638 ksmbd_debug(SMB, in smb2_create_sd_buffer()
2730 ksmbd_debug(SMB, "Failed to get durable handle state\n"); in parse_durable_handle_context()
2744 ksmbd_debug(SMB, in parse_durable_handle_context()
2770 ksmbd_debug(SMB, "Failed to get durable handle state\n"); in parse_durable_handle_context()
2777 ksmbd_debug(SMB, "reconnect Persistent-id from reconnect = %llu\n", in parse_durable_handle_context()
2800 ksmbd_debug(SMB, "Request for durable v2 open\n"); in parse_durable_handle_context()
2839 ksmbd_debug(SMB, "Request for durable open\n"); in parse_durable_handle_context()
2850 * smb2_open() - handler for smb file open request
2851 * @work: smb work containing request buffer
2889 ksmbd_debug(SMB, "Received smb2 create request\n"); in smb2_open()
2895 ksmbd_debug(SMB, "invalid flag in chained command\n"); in smb2_open()
2902 ksmbd_debug(SMB, "IPC pipe create request\n"); in smb2_open()
2916 ksmbd_debug(SMB, "converted name = %s\n", name); in smb2_open()
2934 ksmbd_debug(SMB, "Reject open(), vetoed file: %s\n", in smb2_open()
2953 ksmbd_debug(SMB, "error parsing durable handle context\n"); in smb2_open()
3073 ksmbd_debug(SMB, in smb2_open()
3084 ksmbd_debug(SMB, "get timewarp context\n"); in smb2_open()
3104 ksmbd_debug(SMB, "get posix context\n"); in smb2_open()
3134 ksmbd_debug(SMB, in smb2_open()
3148 ksmbd_debug(SMB, "can not get linux path for %s, rc = %d\n", in smb2_open()
3180 ksmbd_debug(SMB, "open() argument is a directory: %s, %x\n", in smb2_open()
3230 ksmbd_debug(SMB, in smb2_open()
3349 ksmbd_debug(SMB, "inherit posix acl failed : %d\n", posix_acl_rc); in smb2_open()
3475 ksmbd_debug(SMB, in smb2_open()
3522 ksmbd_debug(SMB, in smb2_open()
3529 ksmbd_debug(SMB, in smb2_open()
3539 ksmbd_debug(SMB, "get query on disk id context\n"); in smb2_open()
3616 ksmbd_debug(SMB, "lease granted on(%s) lease state 0x%x\n", in smb2_open()
3755 ksmbd_debug(SMB, "Error response: %x\n", rsp->hdr.Status); in smb2_open()
3868 * @info_level: smb information level
4075 ksmbd_debug(SMB, in smb2_populate_readdir_entry()
4129 ksmbd_debug(SMB, "Cannot lookup `%s' [%ld]\n", in process_query_dir_entries()
4136 ksmbd_debug(SMB, "Negative dentry `%s'\n", in process_query_dir_entries()
4359 ksmbd_debug(SMB, "Received smb2 query directory request\n"); in smb2_query_dir()
4401 ksmbd_debug(SMB, "Search Pattern not found\n"); in smb2_query_dir()
4405 ksmbd_debug(SMB, "Search pattern is %s\n", srch_ptr); in smb2_query_dir()
4409 ksmbd_debug(SMB, "Restart directory scan\n"); in smb2_query_dir()
4610 ksmbd_debug(SMB, "FileInfoClass %u, FileId 0x%llx\n", in smb2_get_info_file_pipe()
4625 ksmbd_debug(SMB, "smb2_info_file_pipe for %u not supported\n", in smb2_get_info_file_pipe()
4634 * @work: smb work containing query info command buffer
4672 ksmbd_debug(SMB, in smb2_get_ea()
4688 ksmbd_debug(SMB, "no ea data in the file\n"); in smb2_get_ea()
4702 ksmbd_debug(SMB, "%s, len %d\n", name, name_len); in smb2_get_ea()
4779 ksmbd_debug(SMB, "single entry requested\n"); in smb2_get_ea()
4894 ksmbd_debug(SMB, "no right to read the attributes : 0x%x\n", in get_file_all_info()
4908 ksmbd_debug(SMB, "filename = %s\n", filename); in get_file_all_info()
4999 ksmbd_debug(SMB, "empty xattr in the file\n"); in get_file_stream_info()
5008 ksmbd_debug(SMB, "%s, len %d\n", stream_name, streamlen); in get_file_stream_info()
5292 ksmbd_debug(SMB, "Compound request set FID = %llu\n", in smb2_get_info_file()
5379 ksmbd_debug(SMB, "fileinfoclass %d not supported yet\n", in smb2_get_info_file()
5625 ksmbd_debug(SMB, "Unsupported addition info: 0x%x)\n", in smb2_get_info_sec()
5643 ksmbd_debug(SMB, "Compound request set FID = %llu\n", in smb2_get_info_sec()
5686 * @work: smb work containing query info request buffer
5696 ksmbd_debug(SMB, "Received request smb2 query info request\n"); in smb2_query_info()
5707 ksmbd_debug(SMB, "GOT SMB2_O_INFO_FILE\n"); in smb2_query_info()
5711 ksmbd_debug(SMB, "GOT SMB2_O_INFO_FILESYSTEM\n"); in smb2_query_info()
5715 ksmbd_debug(SMB, "GOT SMB2_O_INFO_SECURITY\n"); in smb2_query_info()
5719 ksmbd_debug(SMB, "InfoType %d not supported yet\n", in smb2_query_info()
5747 ksmbd_debug(SMB, "error while processing smb2 query rc = %d\n", in smb2_query_info()
5756 * @work: smb work containing close request buffer
5788 * @work: smb work containing close request buffer
5803 ksmbd_debug(SMB, "Received smb2 close request\n"); in smb2_close()
5809 ksmbd_debug(SMB, "IPC pipe close request\n"); in smb2_close()
5832 ksmbd_debug(SMB, "file already closed\n"); in smb2_close()
5837 ksmbd_debug(SMB, in smb2_close()
5850 ksmbd_debug(SMB, "volatile_id = %llu\n", volatile_id); in smb2_close()
5913 * @work: smb work containing echo request buffer
5921 ksmbd_debug(SMB, "Received smb2 echo request\n"); in smb2_echo()
5940 ksmbd_debug(SMB, "setting FILE_RENAME_INFO\n"); in smb2_rename()
5985 ksmbd_debug(SMB, "new name %s\n", new_name); in smb2_rename()
5988 ksmbd_debug(SMB, "Can't rename vetoed file: %s\n", new_name); in smb2_rename()
6018 ksmbd_debug(SMB, "setting FILE_LINK_INFORMATION\n"); in smb2_create_link()
6031 ksmbd_debug(SMB, "link name is %s\n", link_name); in smb2_create_link()
6038 ksmbd_debug(SMB, "target name is %s\n", target_name); in smb2_create_link()
6052 ksmbd_debug(SMB, "cannot delete %s\n", in smb2_create_link()
6060 ksmbd_debug(SMB, "link already exists\n"); in smb2_create_link()
6139 ksmbd_debug(SMB, in set_file_basic_info()
6165 * properly with any smb.conf option in set_file_allocation_info()
6235 ksmbd_debug(SMB, "truncated to newsize %lld\n", newsize); in set_end_of_file_info()
6238 ksmbd_debug(SMB, "truncate failed!, err %d\n", rc); in set_end_of_file_info()
6334 * @work: smb work containing set info command buffer
6447 * @work: smb work containing set info request buffer
6459 ksmbd_debug(SMB, "Received smb2 set info request\n"); in smb2_set_info()
6465 ksmbd_debug(SMB, "Compound request set FID = %llu\n", in smb2_set_info()
6476 ksmbd_debug(SMB, "User does not have write permission\n"); in smb2_set_info()
6489 ksmbd_debug(SMB, "Invalid id for close: %u\n", id); in smb2_set_info()
6496 ksmbd_debug(SMB, "GOT SMB2_O_INFO_FILE\n"); in smb2_set_info()
6500 ksmbd_debug(SMB, "GOT SMB2_O_INFO_SECURITY\n"); in smb2_set_info()
6547 ksmbd_debug(SMB, "error while processing smb2 query rc = %d\n", rc); in smb2_set_info()
6553 * @work: smb work containing read IPC pipe command buffer
6666 * @work: smb work containing read command buffer
6685 ksmbd_debug(SMB, "Received smb2 read request\n"); in smb2_read()
6689 ksmbd_debug(SMB, "IPC pipe read request\n"); in smb2_read()
6697 ksmbd_debug(SMB, "Compound request set FID = %llu\n", in smb2_read()
6755 ksmbd_debug(SMB, "limiting read size to max size(%u)\n", in smb2_read()
6761 ksmbd_debug(SMB, "filename %pD, offset %lld, len %zu\n", in smb2_read()
6784 ksmbd_debug(SMB, "nbytes %zu, offset %lld mincount %zu\n", in smb2_read()
6842 * @work: smb work containing write IPC pipe command buffer
6939 * @work: smb work containing write command buffer
6956 ksmbd_debug(SMB, "Received smb2 write request\n"); in smb2_write()
6961 ksmbd_debug(SMB, "IPC pipe write request\n"); in smb2_write()
6995 ksmbd_debug(SMB, "User does not have write permission\n"); in smb2_write()
7013 ksmbd_debug(SMB, "limiting write size to max size(%u)\n", in smb2_write()
7019 ksmbd_debug(SMB, "flags %u\n", le32_to_cpu(req->Flags)); in smb2_write()
7033 ksmbd_debug(SMB, "filename %pD, offset %lld, len %zu\n", in smb2_write()
7086 * @work: smb work containing flush command buffer
7098 ksmbd_debug(SMB, "Received smb2 flush request(fid : %llu)\n", req->VolatileFileId); in smb2_flush()
7116 * @work: smb work containing cancel command buffer
7131 ksmbd_debug(SMB, "smb2 cancel called on mid %llu, async flags 0x%x\n", in smb2_cancel()
7146 ksmbd_debug(SMB, in smb2_cancel()
7167 ksmbd_debug(SMB, in smb2_cancel()
7210 ksmbd_debug(SMB, "received shared request\n"); in smb2_set_flock_flags()
7216 ksmbd_debug(SMB, "received exclusive request\n"); in smb2_set_flock_flags()
7222 ksmbd_debug(SMB, in smb2_set_flock_flags()
7228 ksmbd_debug(SMB, in smb2_set_flock_flags()
7234 ksmbd_debug(SMB, "received unlock request\n"); in smb2_set_flock_flags()
7284 * @work: smb work containing lock command buffer
7310 ksmbd_debug(SMB, "Received smb2 lock request\n"); in smb2_lock()
7313 ksmbd_debug(SMB, "Invalid file id for lock : %llu\n", req->VolatileFileId); in smb2_lock()
7322 ksmbd_debug(SMB, "lock count is %d\n", lock_count); in smb2_lock()
7358 ksmbd_debug(SMB, in smb2_lock()
7502 ksmbd_debug(SMB, "File unlocked\n"); in smb2_lock()
7513 ksmbd_debug(SMB, in smb2_lock()
7575 ksmbd_debug(SMB, "successful in taking lock\n"); in smb2_lock()
7586 ksmbd_debug(SMB, "successful in taking lock\n"); in smb2_lock()
7627 ksmbd_debug(SMB, "failed in taking lock(flags : %x), err : %d\n", flags, err); in smb2_lock()
7824 ksmbd_debug(SMB, "%s %s\n", netdev->name, in fsctl_query_iface_info_ioctl()
8066 * @work: smb work containing ioctl command buffer
8080 ksmbd_debug(SMB, "Received smb2 ioctl request\n"); in smb2_ioctl()
8086 ksmbd_debug(SMB, "Compound request set FID = %llu\n", in smb2_ioctl()
8195 ksmbd_debug(SMB, in smb2_ioctl()
8239 ksmbd_debug(SMB, in smb2_ioctl()
8349 * beneficial when re-exporting nfs/smb mount, but note that in smb2_ioctl()
8380 ksmbd_debug(SMB, "not implemented yet ioctl command 0x%x\n", in smb2_ioctl()
8416 * @work: smb work containing oplock break command buffer
8462 ksmbd_debug(SMB, "unexpected oplock state 0x%x\n", opinfo->op_state); in smb20_oplock_break_ack()
8562 * @work: smb work containing lease break command buffer
8699 * @work: smb work containing oplock/lease break command buffer
8708 ksmbd_debug(SMB, "Received smb2 oplock break acknowledgment request\n"); in smb2_oplock_break()
8731 * @work: smb work containing notify command buffer
8740 ksmbd_debug(SMB, "Received smb2 notify\n"); in smb2_notify()
8757 * @work: smb work containing notify command buffer
8777 * @work: smb work containing notify command buffer
8821 * @work: smb work containing notify command buffer
8849 * @work: smb work containing notify command buffer
8909 * @work: smb work containing notify command buffer
8955 * @work: smb work containing response buffer