Skip to content

3.5 hiding processes - logic bug while shifting #9

@kotee4ko

Description

@kotee4ko
            /* If hide_pid is contained in the first struct in the list, then we have to shift everything else up by it's size */
            if ( current_dir == dirent_ker )
            {
                ret -= current_dir->d_reclen;
                memmove(current_dir, (void *)current_dir + current_dir->d_reclen, ret);
                continue;
            }

If we try to hide first process - all linked list shifts, and kernel threads appear on bottom, while user - on top.
Don't think that this is critical bug, but, just for notice :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions