cregit-Linux how code gets into the kernel

Release 4.14 arch/x86/boot/compressed/cmdline.c

// SPDX-License-Identifier: GPL-2.0
#include "misc.h"

#if CONFIG_EARLY_PRINTK || CONFIG_RANDOMIZE_BASE


static unsigned long fs;

static inline void set_fs(unsigned long seg) { fs = seg << 4; /* shift it back */ }

Contributors

PersonTokensPropCommitsCommitProp
Yinghai Lu18100.00%1100.00%
Total18100.00%1100.00%

typedef unsigned long addr_t;
static inline char rdfs8(addr_t addr) { return *((char *)(fs + addr)); }

Contributors

PersonTokensPropCommitsCommitProp
Yinghai Lu24100.00%1100.00%
Total24100.00%1100.00%

#include "../cmdline.c"
unsigned long get_cmd_line_ptr(void) { unsigned long cmd_line_ptr = boot_params->hdr.cmd_line_ptr; cmd_line_ptr |= (u64)boot_params->ext_cmd_line_ptr << 32; return cmd_line_ptr; }

Contributors

PersonTokensPropCommitsCommitProp
Yinghai Lu3093.75%266.67%
Kees Cook26.25%133.33%
Total32100.00%3100.00%


int cmdline_find_option(const char *option, char *buffer, int bufsize) { return __cmdline_find_option(get_cmd_line_ptr(), option, buffer, bufsize); }

Contributors

PersonTokensPropCommitsCommitProp
Yinghai Lu30100.00%2100.00%
Total30100.00%2100.00%


int cmdline_find_option_bool(const char *option) { return __cmdline_find_option_bool(get_cmd_line_ptr(), option); }

Contributors

PersonTokensPropCommitsCommitProp
Yinghai Lu19100.00%2100.00%
Total19100.00%2100.00%

#endif

Overall Contributors

PersonTokensPropCommitsCommitProp
Yinghai Lu13793.20%342.86%
Kees Cook64.08%228.57%
Gokul Caushik32.04%114.29%
Greg Kroah-Hartman10.68%114.29%
Total147100.00%7100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.