Benign repos Download

file_load_64.c

Assigns a negative errno constantELF program-header file-offset field access
SHA-2568a1c4a5ac94506ec77952a1faf8211ebdccd3b473dcd27f0317f00b6fcc33763

Evidence

Kernel error code return lines 123–130
123
124 if (add) {
125 if (!check_realloc_usable_mem(um_info, 2))
126 return -ENOMEM;
127
128 um_info->buf[um_info->idx++] = cpu_to_be64(loc_base);
129 um_info->buf[um_info->idx++] =
130 cpu_to_be64(loc_end - loc_bas …
C declares a character or byte buffer lines 194–205
194:55… evice_node *dn,
195 struct umem_info *um_info)
196{
197 int node;
198 char path[NODE_PATH_LEN];
199 int i, ret;
200 u64 base, size;
⋯5 lines
Assigns a negative errno constant lines 213–234
213:15… {
214 pr_err("Malformed device tree: error reading %s\n", path);
215 ret = -EINVAL;
216 goto out;
217 }
218
219 um_info->idx = 0;
220 if (!check_realloc_usable_mem(um_info, 2)) {
221 ret = -ENOMEM;
222 goto out;
223 }
⋯11 lines
ELF program-header file-offset field access lines 387–399
387 */
388static void update_backup_region_phdr(struct kimage *image, Elf64_Ehdr *ehdr)
389{
390 Elf64_Phdr *phdr;
391 unsigned int i;
392
393 phdr = (Elf64_Phdr *)(ehdr + 1);
394 for (i = 0; i < ehdr->e_phnum; i++) {
395 if (phdr->p_paddr == BACKUP_SRC_START) {
396 phdr->p_offset = image->arch.backup_start;
397 kexec_dprintk("Backup region offset updated to 0x%lx\n",
398 image->arch.backup_start);
399 …
Password buffer pointer or length lines 681–689
681:4… (plpks_is_available())
682 extra_size += (unsigned int)plpks_get_passwordlen();
683
684 /* Get the number of CPU nodes in the current device tree */
⋯5 lines

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.