Skip to content

Pseudo C missing the name of the member in structure dereference #6045

@bb33bb

Description

@bb33bb

Version and Platform (required):

Bug Description:
reverse code on vmlinux, we get the following code

ffffff800834dc58    int oom_kill_process(struct oom_control* oc, char const* message)

ffffff800834dc58    {
ffffff800834dc58        int64_t* x18;
ffffff800834dc5c        int64_t x30;
ffffff800834dc5c        *(uint64_t*)x18 = x30;
ffffff800834dc78        int64_t __saved_x29;
ffffff800834dc78        int64_t* x29 = &__saved_x29;
ffffff800834dc84        int0_t sp_el0;
ffffff800834dc84        uint64_t t_1 = _ReadStatusReg(sp_el0);
ffffff800834dc8c        struct oom_control* zonelist = oc;
ffffff800834dc90        int64_t var_68 = 0;
ffffff800834dc94        struct task_struct* chosen = oc->chosen;
ffffff800834dc98        uint64_t mm_1 = (uint64_t)oc->chosen_points;
ffffff800834dca4        struct spinlock* t = &chosen->alloc_lock;
ffffff800834dcb0        *(uint32_t*)(t_1 + 0x48) += 1;
ffffff800834dcb4        __prefetch(t->); ////////////////////  is this right or designed purposed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Effort: HighIssue should take > 1 monthImpact: MediumIssue is impactful with a bad, or no, workaround

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions