diff --git a/Documentation/compel.txt b/Documentation/compel.txt index 6ccd20861..a44ca22c6 100644 --- a/Documentation/compel.txt +++ b/Documentation/compel.txt @@ -90,7 +90,7 @@ The parasitic code is compiled and converted to a header using *compel*, and inc *#include "parasite.h"* -Following steps are perfomed to infect the victim process: +Following steps are performed to infect the victim process: - stop the task: *int compel_stop_task(int pid);* - prepare infection handler: *struct parasite_ctl *compel_prepare(int pid);* diff --git a/Documentation/criu.txt b/Documentation/criu.txt index 57b791138..8b128f63e 100644 --- a/Documentation/criu.txt +++ b/Documentation/criu.txt @@ -106,7 +106,7 @@ be restored with *mount(src, mountpoint, flags, options)*. When used, *dump* is expected to always succeed if a mountpoint is to be auto-detected, however *restore* may fail (or do something wrong) if the assumption for restore logic is incorrect. This option is -not compatable with *--external* *dev*. +not compatible with *--external* *dev*. *--action-script* 'script':: Add an external action script to be executed at certain stages. diff --git a/MAINTAINERS_GUIDE.md b/MAINTAINERS_GUIDE.md index 2830a3caa..5de8e6cb6 100644 --- a/MAINTAINERS_GUIDE.md +++ b/MAINTAINERS_GUIDE.md @@ -103,7 +103,7 @@ architecture changes should be reviewed by the chief maintainer. Also the chief maintainer has the veto power on any change submitted to any branch. Naturally, a change in the criu-dev branch can be reverted after a chief maintainer veto, a change in the master branch must be -carefully reviwed by the chief maintainer and vetoed in advance. +carefully reviewed by the chief maintainer and vetoed in advance. ### How are maintainers added (and removed)? diff --git a/compel/arch/x86/src/lib/cpu.c b/compel/arch/x86/src/lib/cpu.c index 5ca794ea0..f57fb3152 100644 --- a/compel/arch/x86/src/lib/cpu.c +++ b/compel/arch/x86/src/lib/cpu.c @@ -140,7 +140,7 @@ static int compel_fpuid(compel_cpuinfo_t *c) memset(c->xstate_comp_offsets, 0xff, sizeof(c->xstate_comp_offsets)); memset(c->xstate_comp_sizes, 0xff, sizeof(c->xstate_comp_sizes)); - /* start at the beginnning of the "extended state" */ + /* start at the beginning of the "extended state" */ last_good_offset = offsetof(struct xsave_struct, extended_state_area); /* diff --git a/compel/arch/x86/src/lib/include/uapi/asm/fpu.h b/compel/arch/x86/src/lib/include/uapi/asm/fpu.h index c8ebda097..bd3b0cbd5 100644 --- a/compel/arch/x86/src/lib/include/uapi/asm/fpu.h +++ b/compel/arch/x86/src/lib/include/uapi/asm/fpu.h @@ -269,7 +269,7 @@ struct xsave_struct_ia32 { typedef struct { /* - * The FPU xsave area must be continious and FP_MIN_ALIGN_BYTES + * The FPU xsave area must be continuous and FP_MIN_ALIGN_BYTES * aligned, thus make sure the compiler won't insert any hole here. */ diff --git a/compel/arch/x86/src/lib/infect.c b/compel/arch/x86/src/lib/infect.c index 0d3e9e9a0..d7865796e 100644 --- a/compel/arch/x86/src/lib/infect.c +++ b/compel/arch/x86/src/lib/infect.c @@ -360,7 +360,7 @@ int compel_get_task_regs(pid_t pid, user_regs_struct_t *regs, user_fpregs_struct /* * FPU fetched either via fxsave or via xsave, - * thus decode it accrodingly. + * thus decode it accordingly. */ pr_info("Dumping GP/FPU registers for %d\n", pid); diff --git a/compel/include/uapi/infect.h b/compel/include/uapi/infect.h index 7fa0bd8a0..1e1fa66a3 100644 --- a/compel/include/uapi/infect.h +++ b/compel/include/uapi/infect.h @@ -108,7 +108,7 @@ struct infect_ctx { unsigned long syscall_ip; /* entry point of infection */ unsigned long flags; /* fine-tune (e.g. faults) */ - void (*child_handler)(int, siginfo_t *, void *); /* hander for SIGCHLD deaths */ + void (*child_handler)(int, siginfo_t *, void *); /* handler for SIGCHLD deaths */ struct sigaction orig_handler; open_proc_fn open_proc; diff --git a/compel/src/lib/handle-elf.c b/compel/src/lib/handle-elf.c index 22c8f2978..e4b8728ce 100644 --- a/compel/src/lib/handle-elf.c +++ b/compel/src/lib/handle-elf.c @@ -614,7 +614,7 @@ int __handle_elf(void *mem, size_t size) #ifdef ELF_S390 /* * See also arch/s390/kernel/module.c/apply_rela(): - * A PLT reads the GOT (global offest table). We can handle it like + * A PLT reads the GOT (global offset table). We can handle it like * R_390_PC32DBL because we have linked statically. */ case R_390_PLT32DBL: /* PC relative on a PLT (predure link table) */ diff --git a/compel/src/lib/infect.c b/compel/src/lib/infect.c index 78e4d7e0e..9552a7186 100644 --- a/compel/src/lib/infect.c +++ b/compel/src/lib/infect.c @@ -456,8 +456,8 @@ static int parasite_run(pid_t pid, int cmd, unsigned long ip, void *stack, user_ ksigfillset(&block); /* - * FIXME(issues/1429): SIGTRAP can't be blocked, otherwice its hanlder - * will be reseted to the default one. + * FIXME(issues/1429): SIGTRAP can't be blocked, otherwise its handler + * will be reset to the default one. */ ksigdelset(&block, SIGTRAP); if (ptrace(PTRACE_SETSIGMASK, pid, sizeof(k_rtsigset_t), &block)) { @@ -956,7 +956,7 @@ int compel_infect(struct parasite_ctl *ctl, unsigned long nr_threads, unsigned l ctl->args_size = args_size; parasite_size += ctl->args_size; - /* RESTORE_STACK_SIGFRAME needs a 64 bytes alignement */ + /* RESTORE_STACK_SIGFRAME needs a 64 bytes alignment */ parasite_size = round_up(parasite_size, 64); map_exchange_size = parasite_size; @@ -1476,7 +1476,7 @@ int compel_run_in_thread(struct parasite_thread_ctl *tctl, unsigned int cmd) /* * compel_unmap() is used for unmapping parasite and restorer blobs. - * A blob can contain code for unmapping itself, so the porcess is + * A blob can contain code for unmapping itself, so the process is * trapped on the exit from the munmap syscall. */ int compel_unmap(struct parasite_ctl *ctl, unsigned long addr) diff --git a/coredump/criu_coredump/coredump.py b/coredump/criu_coredump/coredump.py index 881c40b0a..53b143ec0 100644 --- a/coredump/criu_coredump/coredump.py +++ b/coredump/criu_coredump/coredump.py @@ -728,7 +728,7 @@ class coredump_generator: if page_mem is not None: # Page from pages.img has higher priority - # than one from maped file on disk. + # than one from mapped file on disk. page = page_mem if page is None: diff --git a/criu/apparmor.c b/criu/apparmor.c index cc9e7ac2a..67553c8f1 100644 --- a/criu/apparmor.c +++ b/criu/apparmor.c @@ -35,7 +35,7 @@ * Thus, the old code that saves and restores AA profiles is still relevant, we * just need to add the new code in this file to walk the namespace and dump * any blobs in that AA namespace, and then restore these blobs on restore so - * that the profiles the old code tries to use are actualy present. + * that the profiles the old code tries to use are actually present. */ static AaNamespace **namespaces = NULL; diff --git a/criu/arch/s390/crtools.c b/criu/arch/s390/crtools.c index b22b64e2b..5cf160d82 100644 --- a/criu/arch/s390/crtools.c +++ b/criu/arch/s390/crtools.c @@ -234,7 +234,7 @@ fail_free_gs_cb: } /* - * Free Guareded Storage control blocks + * Free Guarded Storage control blocks */ static void free_gs_cb(UserS390GsCbEntry *gs_cb) { diff --git a/criu/config.c b/criu/config.c index 28641cf0c..14a11f9c3 100644 --- a/criu/config.c +++ b/criu/config.c @@ -1073,7 +1073,7 @@ int check_options(void) if (opts.link_remap_ok) pr_info("Will allow link remaps on FS\n"); if (opts.weak_sysctls) - pr_info("Will skip non-existant sysctls on restore\n"); + pr_info("Will skip non-existent sysctls on restore\n"); if (opts.deprecated_ok) pr_info("Turn deprecated stuff ON\n"); diff --git a/criu/cr-dump.c b/criu/cr-dump.c index eb1fb5e9a..c6678b450 100644 --- a/criu/cr-dump.c +++ b/criu/cr-dump.c @@ -1026,7 +1026,7 @@ static int dump_task_threads(struct parasite_ctl *parasite_ctl, const struct pst * What this routine does is just reads pid-s of dead * tasks in item's children list from item's ns proc. * - * It does *not* find wihch real pid corresponds to + * It does *not* find which real pid corresponds to * which virtual one, but it's not required -- all we * need to dump for zombie can be found in the same * ns proc. @@ -1472,7 +1472,7 @@ static void alarm_handler(int signo) pr_err("Timeout reached. Try to interrupt: %d\n", alarm_attempts); if (alarm_attempts++ < 5) { alarm(1); - /* A curren syscall will be exited with EINTR */ + /* A current syscall will be exited with EINTR */ return; } pr_err("FATAL: Unable to interrupt the current operation\n"); diff --git a/criu/cr-restore.c b/criu/cr-restore.c index 95fe96152..a398927ad 100644 --- a/criu/cr-restore.c +++ b/criu/cr-restore.c @@ -2061,7 +2061,7 @@ static int finalize_restore_detach(void) for (i = 0; i < item->nr_threads; i++) { pid = item->threads[i].real; if (pid < 0) { - pr_err("pstree item has unvalid pid %d\n", pid); + pr_err("pstree item has invalid pid %d\n", pid); continue; } diff --git a/criu/eventpoll.c b/criu/eventpoll.c index 978dca5be..ca5ee9c59 100644 --- a/criu/eventpoll.c +++ b/criu/eventpoll.c @@ -308,7 +308,7 @@ static int dump_one_eventpoll(int lfd, u32 id, const struct fd_parms *p) * files is tricky: we need to use kcmp * to find out where file came from. Until * it's implemented lets use simpler approach - * just check the targets are blonging to the + * just check the targets are belonging to the * pid's file set. */ if (p->dfds) { diff --git a/criu/files-reg.c b/criu/files-reg.c index 6aaa4c9aa..0249063c2 100644 --- a/criu/files-reg.c +++ b/criu/files-reg.c @@ -1400,7 +1400,7 @@ static int get_build_id_32(Elf32_Ehdr *file_header, unsigned char **build_id, co return -1; /* - * If the file doesn't have atleast 1 program header entry, it definitely can't + * If the file doesn't have at least 1 program header entry, it definitely can't * have a build-id. */ if (!file_header->e_phnum) { @@ -1490,7 +1490,7 @@ static int get_build_id_64(Elf64_Ehdr *file_header, unsigned char **build_id, co return -1; /* - * If the file doesn't have atleast 1 program header entry, it definitely can't + * If the file doesn't have at least 1 program header entry, it definitely can't * have a build-id. */ if (!file_header->e_phnum) { @@ -1621,7 +1621,7 @@ static int store_validation_data_build_id(RegFileEntry *rfe, int lfd, const stru int fd; /* - * Checks whether the file is atleast big enough to try and read the first + * Checks whether the file is at least big enough to try and read the first * four (SELFMAG) bytes which should correspond to the ELF magic number * and the next byte which indicates whether the file is 32-bit or 64-bit. */ @@ -1659,7 +1659,7 @@ static int store_validation_data_build_id(RegFileEntry *rfe, int lfd, const stru * This routine stores metadata about the open file (File size, build-id, CRC32C checksum) * so that validation can be done while restoring to make sure that the right file is * being restored. - * Returns true if atleast some metadata was stored, if there was an error it returns false. + * Returns true if at least some metadata was stored, if there was an error it returns false. */ static bool store_validation_data(RegFileEntry *rfe, const struct fd_parms *p, int lfd) { @@ -2008,7 +2008,7 @@ static int rfi_remap(struct reg_file_info *rfi, int *level) BUG_ON(tmi->s_dev != rmi->s_dev); BUG_ON(tmi->s_dev != mi->s_dev); - /* Calcalate paths on the device (root mount) */ + /* Calculate paths on the device (root mount) */ convert_path_from_another_mp(rfi->path, path, sizeof(_path), mi, tmi); convert_path_from_another_mp(rfi->remap->rpath, rpath, sizeof(_rpath), rmi, tmi); diff --git a/criu/fsnotify.c b/criu/fsnotify.c index fd2e8d84e..03711f0b2 100644 --- a/criu/fsnotify.c +++ b/criu/fsnotify.c @@ -514,7 +514,7 @@ static char *get_mark_path(const char *who, struct file_remap *remap, FhEntry *f /* * fanotify/inotify open syscalls want path to attach * watch to. But the only thing we have is an FD obtained - * via fhandle. Fortunatelly, when trying to attach the + * via fhandle. Fortunately, when trying to attach the * /proc/pid/fd/ link, we will watch the inode the link * points to, i.e. -- just what we want. */ diff --git a/criu/include/mount-v2.h b/criu/include/mount-v2.h index 2f2812221..096f08f3b 100644 --- a/criu/include/mount-v2.h +++ b/criu/include/mount-v2.h @@ -71,7 +71,7 @@ struct sharing_group { struct list_head mnt_list; /* - * List of dependant shared groups: + * List of dependent shared groups: * - all siblings have equal master_id * - the parent has shared_id equal to children's master_id * @@ -79,7 +79,7 @@ struct sharing_group { * parent sharing_group in list or only siblings. * So for traversal if parent pointer is set we can do: * list_for_each_entry(t, &sg->parent->children, siblings) - * and overvise we can do: + * and otherwise we can do: * list_for_each_entry(t, &sg->siblings, siblings) */ struct list_head children; diff --git a/criu/include/mount.h b/criu/include/mount.h index 4d2d64470..6587c63b2 100644 --- a/criu/include/mount.h +++ b/criu/include/mount.h @@ -15,7 +15,7 @@ struct ns_id; /* * Here are a set of flags which we know how to handle for the one mount call. * All of them except MS_RDONLY are set only as mnt flags. - * MS_RDONLY is set for both mnt ans sb flags, so we can restore it for one + * MS_RDONLY is set for both mnt and sb flags, so we can restore it for one * mount call only if it set for both masks. */ #define MS_MNT_KNOWN_FLAGS (MS_NOSUID | MS_NOEXEC | MS_NODEV | MS_NOATIME | MS_NODIRATIME | MS_RELATIME | MS_RDONLY) diff --git a/criu/kerndat.c b/criu/kerndat.c index 93617012a..ec2d62ab0 100644 --- a/criu/kerndat.c +++ b/criu/kerndat.c @@ -756,14 +756,14 @@ static int kerndat_detect_stack_guard_gap(void) /* * When reading /proc/$pid/[s]maps the - * start/end addresses might be cutted off + * start/end addresses might be cut off * with PAGE_SIZE on kernels prior 4.12 * (see kernel commit 1be7107fbe18ee). * * Same time there was semi-complete * patch released which hitted a number * of repos (Ubuntu, Fedora) where instead - * of PAGE_SIZE the 1M gap is cutted off. + * of PAGE_SIZE the 1M gap is cut off. */ if (start == (unsigned long)mem) { kdat.stack_guard_gap_hidden = false; @@ -1111,7 +1111,7 @@ static int kerndat_uffd(void) if (err == ENOSYS) return 0; if (err == EPERM) { - pr_info("Lazy pages are not permited\n"); + pr_info("Lazy pages are not permitted\n"); return 0; } pr_err("Lazy pages are not available\n"); diff --git a/criu/libnetlink.c b/criu/libnetlink.c index 6dad7551a..f0304b0db 100644 --- a/criu/libnetlink.c +++ b/criu/libnetlink.c @@ -45,7 +45,7 @@ static int nlmsg_receive(char *buf, int len, int (*cb)(struct nlmsghdr *, struct } /* - * Default errror handler: just point our an error + * Default error handler: just point our an error * and pass up to caller. */ static int rtnl_return_err(int err, struct ns_id *ns, void *arg) diff --git a/criu/mount-v2.c b/criu/mount-v2.c index 6772072de..570f78570 100644 --- a/criu/mount-v2.c +++ b/criu/mount-v2.c @@ -108,7 +108,7 @@ int resolve_shared_mounts_v2(void) /* * Collect sharing groups tree. Mount propagation between sharing * groups only goes down this tree, meaning that only mounts of same or - * descendant sharing groups recieve mount propagation. + * descendant sharing groups receive mount propagation. */ list_for_each_entry(sg, &sharing_groups, list) { if (sg->master_id) { @@ -270,7 +270,7 @@ static int do_new_mount_v2(struct mount_info *mi) * Mount-v2 relies that before mount tree is constructed all mounts * should remain private. Newly created mounts can become non-private * initially depending on parent/source sharing, let's be as explicit - * as posible here and make it obvious that mount becomes private. + * as possible here and make it obvious that mount becomes private. */ if (mount(NULL, mi->plain_mountpoint, NULL, MS_PRIVATE, NULL)) { pr_perror("Can't remount %s with MS_PRIVATE", mi->plain_mountpoint); @@ -407,7 +407,7 @@ do_bind: * Mount-v2 relies that before mount tree is constructed all mounts * should remain private. Newly created mounts can become non-private * initially depending on parent/source sharing, let's be as explicit - * as posible here and make it obvious that mount becomes private. + * as possible here and make it obvious that mount becomes private. */ if (mount(NULL, mi->plain_mountpoint, NULL, MS_PRIVATE, NULL)) { pr_perror("Can't remount %s with MS_PRIVATE", mi->plain_mountpoint); @@ -470,7 +470,7 @@ static int do_mount_root_v2(struct mount_info *mi) * Mount-v2 relies that before mount tree is constructed all mounts * should remain private. Newly created mounts can become non-private * initially depending on parent/source sharing, let's be as explicit - * as posible here and make it obvious that mount becomes private. + * as possible here and make it obvious that mount becomes private. */ if (mount(NULL, mi->plain_mountpoint, NULL, MS_PRIVATE, NULL)) { pr_perror("Can't remount %s with MS_PRIVATE", mi->plain_mountpoint); @@ -617,7 +617,7 @@ static int detect_is_dir(struct mount_info *mi) rel_path = get_relative_path(mi->ns_mountpoint, mi->parent->ns_mountpoint); if (!rel_path) { - pr_err("Child-parent mountpoint missmatch %d:%s %d:%s\n", mi->mnt_id, mi->ns_mountpoint, + pr_err("Child-parent mountpoint mismatch %d:%s %d:%s\n", mi->mnt_id, mi->ns_mountpoint, mi->parent->mnt_id, mi->parent->ns_mountpoint); return -1; } @@ -952,7 +952,7 @@ static int restore_one_sharing_group(struct sharing_group *sg) /* * External slavery. We rely on the user to give us the * right source for external mount with all proper - * sharing optioins setup (it should be either shared + * sharing options setup (it should be either shared * or non-shared slave). If source is a private mount * we would fail. */ @@ -1020,7 +1020,7 @@ static int restore_mount_sharing_options(void) if (sg->parent) continue; - /* Handle dependant sharing groups in tree order */ + /* Handle dependent sharing groups in tree order */ for (t = sg; t != NULL; t = sharing_group_next(t)) { if (restore_one_sharing_group(t)) return -1; diff --git a/criu/namespaces.c b/criu/namespaces.c index c36e631cf..7356fe8c2 100644 --- a/criu/namespaces.c +++ b/criu/namespaces.c @@ -891,7 +891,7 @@ int collect_user_ns(struct ns_id *ns, void *oarg) { /* * User namespace is dumped before files to get uid and gid - * mappings, which are used for convirting local id-s to + * mappings, which are used for converting local id-s to * userns id-s (userns_uid(), userns_gid()) */ if (dump_user_ns(root_item->pid->real, root_item->ids->user_ns_id)) diff --git a/criu/net.c b/criu/net.c index c82054037..550f4e2ee 100644 --- a/criu/net.c +++ b/criu/net.c @@ -2340,7 +2340,7 @@ static int prepare_xtable_lock(void) } if (mount(NULL, "/", NULL, MS_SLAVE | MS_REC, NULL)) { - pr_perror("Unable to conver mounts to slave mounts"); + pr_perror("Unable to convert mounts to slave mounts"); return -1; } /* diff --git a/criu/page-xfer.c b/criu/page-xfer.c index 60c793009..2543a462a 100644 --- a/criu/page-xfer.c +++ b/criu/page-xfer.c @@ -606,7 +606,7 @@ static inline u32 ppb_xfer_flags(struct page_xfer *xfer, struct page_pipe_buf *p * * Since, iov-C is not processed completely, we need to find * "partial_read_byte" count to place out dummy-iov for - * remainig processing of iov-C. This function is performed by + * remaining processing of iov-C. This function is performed by * analyze_iov function. * * dummy-iov will be(2): {C+3,1}. dummy-iov will be placed diff --git a/criu/path.c b/criu/path.c index 54f5483b9..f9ac6f5ae 100644 --- a/criu/path.c +++ b/criu/path.c @@ -49,7 +49,7 @@ char *mnt_get_sibling_path(struct mount_info *m, struct mount_info *p, char *buf rpath = get_relative_path(m->ns_mountpoint, pa->ns_mountpoint); if (!rpath) { - pr_warn("child - parent mountpoint missmatch %s - %s\n", m->ns_mountpoint, pa->ns_mountpoint); + pr_warn("child - parent mountpoint mismatch %s - %s\n", m->ns_mountpoint, pa->ns_mountpoint); return NULL; } diff --git a/criu/pie/parasite.c b/criu/pie/parasite.c index bc0a33cd4..f84652b8c 100644 --- a/criu/pie/parasite.c +++ b/criu/pie/parasite.c @@ -454,7 +454,7 @@ static int get_proc_fd(void) ret = sys_mount("proc", proc_mountpoint, "proc", MS_MGC_VAL, NULL); if (ret) { if (ret == -EPERM) - pr_err("can't dump unpriviliged task whose /proc doesn't belong to it\n"); + pr_err("can't dump unprivileged task whose /proc doesn't belong to it\n"); else pr_err("mount failed (%d)\n", ret); sys_rmdir(proc_mountpoint); diff --git a/criu/pie/restorer.c b/criu/pie/restorer.c index 3fd0d2c54..422a12ff8 100644 --- a/criu/pie/restorer.c +++ b/criu/pie/restorer.c @@ -720,7 +720,7 @@ static unsigned long restore_mapping(VmaEntry *vma_entry) /* * This restores aio ring header, content, head and in-kernel position * of tail. To set tail, we write to /dev/null and use the fact this - * operation is synchronious for the device. Also, we unmap temporary + * operation is synchronous for the device. Also, we unmap temporary * anonymous area, used to store content of ring buffer during restore * and mapped in premap_private_vma(). */ @@ -1329,7 +1329,7 @@ static int cleanup_inotify_events(int inotify_fd) /* * When we restore inotifies we can open and close files we create a watch - * for. So wee need to cleanup these auxiliary events which we've generated. + * for. So we need to cleanup these auxiliary events which we've generated. * * note: For now we don't have a way to c/r events in queue but we need to * at least leave the queue clean from events generated by our own. @@ -1422,7 +1422,7 @@ long __export_restore_task(struct task_restore_args *args) * mapping them with arch_prctl(). * Always preserve/map rt-vdso pair if it's possible, regardless * it's presence in original task: vdso will be used for fast - * getttimeofday() in restorer's log timings. + * gettimeofday() in restorer's log timings. */ if (!args->can_map_vdso && vdso_is_present(&args->vdso_maps_rt)) { /* It's already checked in kdat, but let's check again */ diff --git a/criu/pstree.c b/criu/pstree.c index d29de730a..0cfbfa923 100644 --- a/criu/pstree.c +++ b/criu/pstree.c @@ -867,7 +867,7 @@ static int prepare_pstree_kobj_ids(void) if (!item->ids) { if (item == root_item) { pr_err("No IDS for root task.\n"); - pr_err("Images currupted or too old criu was used for dump.\n"); + pr_err("Images corrupted or too old criu was used for dump.\n"); return -1; } diff --git a/criu/tls.c b/criu/tls.c index 4feaf613b..3d365e21d 100644 --- a/criu/tls.c +++ b/criu/tls.c @@ -8,7 +8,7 @@ #include "cr_options.h" #include "xmalloc.h" -/* Compatability with GnuTLS version < 3.5 */ +/* Compatibility with GnuTLS version < 3.5 */ #ifndef GNUTLS_E_CERTIFICATE_VERIFICATION_ERROR #define GNUTLS_E_CERTIFICATE_VERIFICATION_ERROR GNUTLS_E_CERTIFICATE_ERROR #endif diff --git a/criu/tty.c b/criu/tty.c index 0430dbff7..13f645f3a 100644 --- a/criu/tty.c +++ b/criu/tty.c @@ -560,7 +560,7 @@ static int do_open_tty_reg(int ns_root_fd, struct reg_file_info *rfi, void *arg) * them. So simply setup mode from image * the regular file engine will check * for this, so if we fail here it - * gonna be catched anyway. + * gonna be caught anyway. */ if (rfi->rfe->has_mode) fchmod(fd, rfi->rfe->mode); diff --git a/criu/tun.c b/criu/tun.c index bc84604b3..573137091 100644 --- a/criu/tun.c +++ b/criu/tun.c @@ -272,7 +272,7 @@ static struct tun_link *get_tun_link_fd(char *name, unsigned ns_id, unsigned fla */ if (!(flags & IFF_PERSIST)) { - pr_err("No fd infor for non persistent tun device %s\n", name); + pr_err("No fd info for non persistent tun device %s\n", name); return NULL; } diff --git a/criu/uffd.c b/criu/uffd.c index b551698f8..e07b21b69 100644 --- a/criu/uffd.c +++ b/criu/uffd.c @@ -59,7 +59,7 @@ #define LAZY_PAGES_RESTORE_FINISHED 0x52535446 /* ReSTore Finished */ /* - * Backround transfer parameters. + * Background transfer parameters. * The default xfer length is arbitrary set to 64Kbytes * The limit of 4Mbytes matches the maximal chunk size we can have in * a pipe in the page-server diff --git a/criu/util.c b/criu/util.c index dd1fd97f5..5c075cd15 100644 --- a/criu/util.c +++ b/criu/util.c @@ -1823,7 +1823,7 @@ void util_init() /* * This function cuts sub_path from the path. - * 1) It asumes all relative paths given are relative to "/": + * 1) It assumes all relative paths given are relative to "/": * /a/b/c is the same as a/b/c * 2) It can handle paths with multiple consequent slashes: * ///a///b///c is the same as /a/b/c diff --git a/images/core-ppc64.proto b/images/core-ppc64.proto index 6a27f9012..bb07e09e0 100644 --- a/images/core-ppc64.proto +++ b/images/core-ppc64.proto @@ -5,7 +5,7 @@ syntax = "proto2"; import "opts.proto"; message user_ppc64_regs_entry { - /* Following is the list of regiters starting at r0. */ + /* Following is the list of registers starting at r0. */ repeated uint64 gpr = 1; required uint64 nip = 2; required uint64 msr = 3; @@ -22,7 +22,7 @@ message user_ppc64_regs_entry { } message user_ppc64_fpstate_entry { - /* Following is the list of regiters starting at fpr0 */ + /* Following is the list of registers starting at fpr0 */ repeated uint64 fpregs = 1; } diff --git a/images/core-x86.proto b/images/core-x86.proto index 77932ab42..815cf21ff 100644 --- a/images/core-x86.proto +++ b/images/core-x86.proto @@ -42,7 +42,7 @@ message user_x86_regs_entry { } message user_x86_xsave_entry { - /* standart xsave features */ + /* standard xsave features */ required uint64 xstate_bv = 1; /* AVX components: 16x 256-bit ymm registers, hi 128 bits */ diff --git a/images/opts.proto b/images/opts.proto index 95304a8c6..d730673a2 100644 --- a/images/opts.proto +++ b/images/opts.proto @@ -5,7 +5,7 @@ syntax = "proto2"; import "google/protobuf/descriptor.proto"; message CRIU_Opts { - optional bool hex = 1; // Idicate that CRIT should treat this field as hex. + optional bool hex = 1; // Indicate that CRIT should treat this field as hex. optional bool ipadd = 2; // The field is IPv4/v6 address optional string flags = 3; optional bool dev = 4; // Device major:minor packed diff --git a/include/common/arch/ppc64/asm/linkage.h b/include/common/arch/ppc64/asm/linkage.h index 8e388c105..983f10071 100644 --- a/include/common/arch/ppc64/asm/linkage.h +++ b/include/common/arch/ppc64/asm/linkage.h @@ -43,7 +43,7 @@ * * The lower case r0-r31 should be used in preference to the upper * case R0-R31 as they provide more error checking in the assembler. - * Use R0-31 only when really nessesary. + * Use R0-31 only when really necessary. */ /* clang-format off */ diff --git a/include/common/lock.h b/include/common/lock.h index 4fbe42c63..ccfa468b8 100644 --- a/include/common/lock.h +++ b/include/common/lock.h @@ -9,7 +9,7 @@ #include "common/asm/atomic.h" #include "common/compiler.h" -/* scan-build complains about derefencing a NULL pointer here. */ +/* scan-build complains about dereferencing a NULL pointer here. */ #ifndef __clang_analyzer__ #define LOCK_BUG_ON(condition) \ if ((condition)) \ diff --git a/include/common/scm-code.c b/include/common/scm-code.c index d7d732587..de581846b 100644 --- a/include/common/scm-code.c +++ b/include/common/scm-code.c @@ -96,7 +96,7 @@ int __recv_fds(int sock, int *fds, int nr_fds, void *data, unsigned ch_size, int min_fd = (cmsg->cmsg_len - sizeof(struct cmsghdr)) / sizeof(int); /* * In case if kernel screwed the recipient, most probably - * the caller stack frame will be overwriten, just scream + * the caller stack frame will be overwritten, just scream * and exit. * * FIXME Need to sanitize util.h to be able to include it diff --git a/lib/c/criu.h b/lib/c/criu.h index 40e3106fc..7cc6a199c 100644 --- a/lib/c/criu.h +++ b/lib/c/criu.h @@ -187,7 +187,7 @@ int criu_dump_iters(int (*more)(criu_predump_info pi)); * As this library is just forwarding all tasks to an * independent (of this library) CRIU binary, the actual * version of the CRIU binary can be different then the - * hardcoded values in the libary (version.h). + * hardcoded values in the library (version.h). * To be able to easily check the version of the CRIU binary * the function criu_get_version() returns the version * in the following format: diff --git a/lib/py/images/images.py b/lib/py/images/images.py index 300b1cc69..eda030a5c 100644 --- a/lib/py/images/images.py +++ b/lib/py/images/images.py @@ -87,7 +87,7 @@ class entry_handler: def load(self, f, pretty=False, no_payload=False): """ Convert criu image entries from binary format to dict(json). - Takes a file-like object and returnes a list with entries in + Takes a file-like object and returns a list with entries in dict(json) format. """ entries = [] diff --git a/lib/py/images/pb2dict.py b/lib/py/images/pb2dict.py index cfaff6c7d..9d581c375 100644 --- a/lib/py/images/pb2dict.py +++ b/lib/py/images/pb2dict.py @@ -23,7 +23,7 @@ if "encodebytes" not in dir(base64): # here are some of them: # - both have a common bug in treating optional field with empty # repeated inside. -# - protobuf-to-json is not avalible in pip or in any other python +# - protobuf-to-json is not available in pip or in any other python # repo, so it is hard to distribute and we can't rely on it. # - both do not treat enums in a way we would like to. They convert # protobuf enum to int, but we need a string here, because it is diff --git a/plugins/amdgpu/README.md b/plugins/amdgpu/README.md index 030029e7a..6809ec8b9 100644 --- a/plugins/amdgpu/README.md +++ b/plugins/amdgpu/README.md @@ -266,7 +266,7 @@ Mesa | Open source OpenGL implementation GTT | Graphis Translation Table, also used to denote kernel-managed system memory for GPU access VRAM | Video RAM BO | Buffer Object -HMM | Heterogenous Memory Management +HMM | Heterogeneous Memory Management AQL | Architected Queueing Language EOP | End of pipe (event indicating shader dispatch completion) MQD | Memory Queue Descriptors diff --git a/plugins/amdgpu/amdgpu_plugin_topology.c b/plugins/amdgpu/amdgpu_plugin_topology.c index 1a6ed059f..42689933e 100644 --- a/plugins/amdgpu/amdgpu_plugin_topology.c +++ b/plugins/amdgpu/amdgpu_plugin_topology.c @@ -64,7 +64,7 @@ bool kfd_capability_check = true; /* * During dump, we can use any fd value so fd_next is always -1. * During restore, we have to use a fd value that does not conflict with fd values in use by the target restore process. - * fd_next is initialized as 1 greather than the highest-numbered file descriptor used by the target restore process. + * fd_next is initialized as 1 greater than the highest-numbered file descriptor used by the target restore process. */ int fd_next = -1; diff --git a/scripts/ci/run-ci-tests.sh b/scripts/ci/run-ci-tests.sh index 14e6b1224..0eb065143 100755 --- a/scripts/ci/run-ci-tests.sh +++ b/scripts/ci/run-ci-tests.sh @@ -19,7 +19,7 @@ if [ "$UNAME_M" != "x86_64" ]; then # But with the introduction of baremetal aarch64 systems in # Travis (arch: arm64-graviton2) we can override this using - # an evironment variable + # an environment variable [ -n "$RUN_TESTS" ] || SKIP_CI_TEST=1 fi diff --git a/scripts/nmk/scripts/macro.mk b/scripts/nmk/scripts/macro.mk index b36d5b26a..1dcbbd6ec 100644 --- a/scripts/nmk/scripts/macro.mk +++ b/scripts/nmk/scripts/macro.mk @@ -10,7 +10,7 @@ define include-once endef # Helper to build built-in target in directory. -# $(eval $(call gen-built-in,