lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 18 Jan 2021 19:27:09 +0800
From:   Jinyang He <hejinyang@...ngson.cn>
To:     Thomas Bogendoerfer <tsbogend@...ha.franken.de>
Cc:     linux-mips@...r.kernel.org, linux-kernel@...r.kernel.org,
        Paul Burton <paulburton@...nel.org>,
        Jun-Ru Chang <jrjang@...ltek.com>
Subject: Re: [PATCH 1/4] MIPS: process: Reorder header files

Ping?

On 01/18/2021 06:02 PM, Jinyang He wrote:
> On 01/15/2021 10:46 PM, Thomas Bogendoerfer wrote:
>
>> On Tue, Jan 12, 2021 at 08:29:14PM +0800, Jinyang He wrote:
>>> Just reorder the header files.
>> This alone isn't worth a commit, IMHO. I bet there are lots of includes
>> no longer needed, so removing and sorting them is ok for me.
>>
>> Thomas.
>>
>
> Hi, Thomas,
>
> Thanks for your advice. I analyzed majority of the symbols in this file.
> The following are examples of header file references:
>
> Space indicates that it cannot be found. (Maybe I missed it.)
>
>     Header files                                          Examples in 
> this file
>     #include <linux/completion.h>
> *   #include <linux/cpu.h> get_online_cpus
> *   #include <linux/errno.h>                    EOPNOTSUPP
>     #include <linux/export.h>
> *   #include <linux/init.h> arch_initcall
> *   #include <linux/kallsyms.h> kallsyms_lookup_name
> *   #include <linux/kernel.h> __kernel_text_address
>     #include <linux/mm.h>
>     #include <linux/mman.h>
> *   #include <linux/nmi.h> nmi_cpu_backtrace
> *   #include <linux/personality.h> ADDR_NO_RANDOMIZE
>     #include <linux/ptrace.h>
> *   #include <linux/prctl.h> PR_FP_MODE_FR
>     #include <linux/random.h>
> *   #include <linux/sched.h>                    PF_KTHREAD
> *   #include <linux/sched/debug.h>       in_sched_functions
>     #include <linux/sched/task.h>
> *   #include <linux/sched/task_stack.h> task_stack_page
>     #include <linux/stddef.h>
>     #include <linux/sys.h>
>     #include <linux/tick.h>
>     #include <linux/uaccess.h>
>     #include <linux/unistd.h>
>
> *   #include <asm/abi.h> current->thread.abi->vdso->size
> *   #include <asm/asm.h>                        ALMASK
>     #include <asm/bootinfo.h>
>     #include <asm/cpu.h>
> *   #include <asm/dsemul.h> dsemul_thread_cleanup
> *   #include <asm/dsp.h>                        init_dsp
>     #include <asm/elf.h>
>     #include <asm/exec.h>
> *   #include <asm/fpu.h>                        lose_fpu
> *   #include <asm/inst.h> mips_instruction
>     #include <asm/io.h>
> *   #include <asm/irq.h>                        on_irq_stack
> *   #include <asm/irq_regs.h> get_irq_regs
> *   #include <asm/isadep.h>                        KU_USER
>     #include <asm/mips-cps.h>
> *   #include <asm/msa.h> is_msa_enabled
> *   #include <asm/mipsregs.h>                    ST0_CU0
> *   #include <asm/processor.h> VDSO_RANDOMIZE_SIZE
> *   #include <asm/reg.h>                        MIPS32_EF_R1
>     #include <asm/stacktrace.h>
>
>
> Here about this file config is:
>
> Enable:
> CONFIG_HOTPLUG_CPU, CONFIG_MIPS_FP_SUPPORT, CONFIG_STACKPROTECTOR,
> CONFIG_CPU_LOONGSON64, CONFIG_KALLSYMS, CONFIG_64BIT
>
> Disable:
> CONFIG_CPU_R3000, CONFIG_CPU_TX39XX, CONFIG_MIPS_MT_FPAFF, 
> CONFIG_CPU_MICROMIPS
> CONFIG_MIPS_O32_FP64_SUPPORT, CONFIG_32BIT, CONFIG_MIPS32_O32
>
> By including only these header files which marked by '*', I have been 
> able
> to compile and use certain functions (unwind_stack) normally. So are 
> other
> header files no longer needed?
>
> In addition, <linux/cpu.h> includes <linux/cpumask.h>, and 
> <linux/cpumask.h>
> includes <linux/kernel.h>. What should we do?
>
> Thanks,
> Jinyang

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ