Re: How to choose format specifier for boolean variables in Linux kernel?

2021-05-24 Thread
On Mon, May 24, 2021 at 10:39 PM Fox Chen wrote: > > On Mon, May 24, 2021 at 10:27 PM 慕冬亮 wrote: > > > > On Mon, May 24, 2021 at 10:22 PM Fox Chen wrote: > > > > > > On Mon, May 24, 2021 at 6:51 PM 慕冬亮 wrote: > > > > > > > > Hi all,

Re: How to choose format specifier for boolean variables in Linux kernel?

2021-05-24 Thread
On Mon, May 24, 2021 at 10:27 PM 慕冬亮 wrote: > > On Mon, May 24, 2021 at 10:22 PM Fox Chen wrote: > > > > On Mon, May 24, 2021 at 6:51 PM 慕冬亮 wrote: > > > > > > Hi all, > > > > > > how do I choose format specifier for boolean variables in

Re: How to choose format specifier for boolean variables in Linux kernel?

2021-05-24 Thread
On Mon, May 24, 2021 at 10:22 PM Fox Chen wrote: > > On Mon, May 24, 2021 at 6:51 PM 慕冬亮 wrote: > > > > Hi all, > > > > how do I choose format specifier for boolean variables in Linux > > kernel? For example, > > > > bool bup; > > pr_alert(&

How to choose format specifier for boolean variables in Linux kernel?

2021-05-24 Thread
Hi all, how do I choose format specifier for boolean variables in Linux kernel? For example, bool bup; pr_alert("%XXX", bup); What should "XXX" be in the Linux kernel? -- My best regards to you. No System Is Safe! Dongliang Mu ___

Re: Crash dump?

2020-05-15 Thread
> On May 15, 2020, at 12:47 PM, Subhashini Rao Beerisetty > wrote: > > Hi all, > > In Kernel, what needs to be configured to get the crash dump? > Can someone clarify me with the sequence of steps to get the crash dump.. > Some materials for specific Linux distributions(e.g., Redhat,

Re: Any successful story of debugging linux 4.13 with qemu 2.10 and gdb 8.01?

2017-09-21 Thread
2017-09-20 15:29 GMT-04:00 jjDaNiMoTh <jjdanim...@gmail.com>: > On 20/09/17 at 11:20am, 慕冬亮 wrote: >> 2017-09-20 4:18 GMT-04:00 jjDaNiMoTh <jjdanim...@gmail.com>: >> > Hello all, >> > >> > As the title says, any of you have successfully tried to deb

Re: Any successful story of debugging linux 4.13 with qemu 2.10 and gdb 8.01?

2017-09-20 Thread
2017-09-20 4:18 GMT-04:00 jjDaNiMoTh : > Hello all, > > As the title says, any of you have successfully tried to debug Linux > 4.13 with QEMU? My problem is that it is not possible to break (even > with hbreak) in any function of the kernel, from the most used > (schedule or

Re: How do you generate the config file?

2017-01-29 Thread
Hello, If you want to reuse the config of current kernel, you can use `make oldconfig` to generate config file. -- My best regards to you. No System Is Safe! Dongliang Mu 2017-01-29 18:24 GMT-05:00 Ozgur Karatas : > > Hello, > > you can get .config files in two

opinion about fs and gs in linux

2016-10-03 Thread
Dear all, When I analyzed one coredump and read some assembly code, I encounter one specific segment register : gs. I googled it and found the following links: [1] http://stackoverflow.com/questions/10810203/what-is-the-fs-gs-register-intended-for [2]

Re: free(), the size to free?

2016-05-25 Thread
2016-05-25 14:17 GMT-04:00 Greg KH : > On Wed, May 25, 2016 at 02:00:41PM -0400, Wenda Ni wrote: >> The prototype is void kfree(const void *). >> >> As the input pointer is void *, how does the kernel know the size of memory >> to >> be freed? There should be some metadata

Re: Interesting link on linux kernel

2016-04-06 Thread
It's very useful and interesting. And the author of this repo is a linux kernel developer. My best regards to you. No System Is Safe! mudongliang 2016-04-06 15:06 GMT-04:00 Arun Sudhilal : > https://0xax.gitbooks.io/linux-insides/content/ > > Hope you guys might

Re: Regarding Linux Kernel Upgradation

2016-03-01 Thread
2016-03-01 20:05 GMT+08:00 Anil Nair : > Hi All, > > A little confusion, I have existing Linux kernel version 4.5rc4 I > wanted to upgrade my Linux kernel 4.5rc6, The preferred method is step > by step patch,first apply patch-4.5rc5 and then patch-4.5rc6, Then > recompile

Re: Help about Ctrl-Z and Ctrl-Y(urgent)

2016-02-18 Thread
t;g...@kroah.com>: > On Wed, Feb 17, 2016 at 03:52:45PM +0800, 慕冬亮 wrote: >> Hi everyone, >> Unix systems support a large number of special characters that >> receive special processing by the OS. One such character is the >> “suspend” character (ctrl-Z by defau

Help about Ctrl-Z and Ctrl-Y(urgent)

2016-02-16 Thread
Hi everyone, Unix systems support a large number of special characters that receive special processing by the OS. One such character is the “suspend” character (ctrl-Z by default), that causes a SIGTSTP signal to be sent to the application process. The default action for the signal is to

Re: Memory Management

2016-02-08 Thread
I think "Understanding The Linux Virtual Memory Manager" is a good choice. [1] Understanding The Linux Virtual Memory Manager: https://www.kernel.org/doc/gorman/pdf/understand.pdf 2016-02-06 2:49 GMT+08:00 masoud hematpour : > Hi, > > I am beginner to kernel source. I decide

Re: hi, i want to use a script in kernel

2015-11-16 Thread
checkpatch.pl is script to check your patch, not C file I think. 2015-11-17 13:01 GMT+08:00 Naver : > hi, > i want to use a script in kernel, but i can't use this. > in my terminal. > yoon@pc:~/project/aosp/kernel/linux/scripts$ ./checkpatch.pl sortextable.c > Must be run from

strange comment in load_elf_binary

2015-10-26 Thread
I see something strange in the load_elf_binary. /* This is the program interpreter used for * shared libraries - for now assume that this * is an a.out format binary */ This comment is in the load_elf_binary. I don't know why it "assume that this is an a.out format binary". a.out and elf are two

get all the file_system_type registered in linux kernel

2015-10-24 Thread
Recently I am learning vfs in kernel. I want to write a kernel module, which can show all the file_system_type registered in linux kernel. But the list head of all the file_system_type - file_systems can't be got through some API! So I check all the file systems in the /proc/filesystems. And use

how to expand linux kernel macro in kernel source code/kernel module(outside)

2015-10-06 Thread
Recently I was learning doubly linked list in kernel, there are many macro in linux/fs.h, like list_add, list_del,list_for_each,list_entry, container_of. I know we can use "gcc -E" to expand the macro, but how do we expand the macro in kernel source code / kernel module? - mudongliang

error when make pdfdocs

2015-09-18 Thread
I git clone and git pull the latest linux kernel. When I make pdfdocs, it reports the following error to me. But I checked the filesystems.xml:14946, no error found. --- PDF

linux aslr entropy bits

2015-09-08 Thread
Rs: number of bits randomized in the stack area, Rm: number of bits randomized in the mmap() area, Rx: number of bits randomized in the main executable area What's those three parameters? And how to calculate the aslr entropy bits? - mudongliang

detailed process from malloc to memory management

2015-08-22 Thread
I want to ask about the detailed process from malloc/alloca library function to memory management. 1. malloc/alloca/realloc and so on 2. heap management in library 3. memory management in linux kernel I only know those simple steps. How do I get the details of each step? The source code of glibc

Re: Could I search mails in lkml.org by date?

2015-08-18 Thread
The lkml.org provide method to check mails in some day. For example , 2013 May 5th, you can get the mails according to the tips in the webpage, the final url is https://lkml.org/lkml/2013/5/5. There are no much mails in one day. So you can check the mails by search box in webpage or Ctrl+F

Re: Safety in Kernel Development

2015-08-18 Thread
Since I knew that Linux kernel didn't accept the pax/grsecurity , but wrote its own implement, and some linux developers do not have sense of security, I think linux security will be a problem in the future. - mudongliang 2015-08-18 21:45 GMT+08:00 Kenneth Adam Miller

Re: how to delete kernels cleanly

2015-07-22 Thread
The kernel shipped by ubuntu can be purged by apt-get. It's easy. The kernel you build can be cleaned in this way : 1. clean the corresponding kernel file in /usr/src/ 2. clean the corresponding file in /lib/modules/ 3. update your grub by grub-mkconfig -o /boot/grub/grub.cfg

spell problem in faq website

2015-07-07 Thread
http://kernelnewbies.org/FAQ/current In this website , there are only one accross which is badly spelled. It should be across. ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

How to handle float-point operations

2015-06-22 Thread
I know there are rarely float-point operations! What's the exception? In the linux kernel, how does it handle the float-point operations in the userland? - mudongliang ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

why use while(0) to write set_current_state

2015-06-16 Thread
I see the macro in the include/linux/sched.h #define __set_current_state(state_value) \ do { current-state = (state_value); } while (0) Why define it like this? What's the meaning of while? mudongliang ___ Kernelnewbies mailing list

memory addressing

2015-05-19 Thread
In Understanding the Linux kernel book, it says that linux kernel of x86 uses the segmentation and paging unit to transform logistic address to physical address! Up to now , kernel has gone to linux kernel 4.0 , does the segmentation exist in the x86? Is it only using the paging ? And in x86_64?

vulnerability use-after-free

2015-05-13 Thread
Use-after-free is a important vulnerability ! As far as we know , Linux kernel is mostly using C and there may exist this vulnerability! I think in the kernel there are much allocator and reallocator , how do the kernel manage these things? mudongliang

Basic question about malloc

2015-04-22 Thread
Hi, I'm looking for that whether the object allocated by malloc is the multiple of certain bytes! Or how does the malloc allocate dynamic memory ?? I does an experiment in my computer! #includestdio.h #includestdlib.h #define NUM 33 int main(int argc,const char *argv[]) { char *a,

Heap Management Problem

2015-04-14 Thread
Hello Everyone: What's the rule about heap management? Especially what's the function of do_brk? mudongliang ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Heap Management Problem

2015-04-14 Thread
Can you give a detail of what you want to prove? I am not familiar with heap management , so I ask for the details! mudongliang 2015-04-15 0:00 GMT+08:00 valdis.kletni...@vt.edu: On Tue, 14 Apr 2015 23:01:58 +0800, 慕冬亮 said: Hello Everyone: What's the rule about heap management