Re: kmalloc - Address is not consecutive

2021-08-19 Thread wuzhouhui
On 8/19/21 6:54 PM, Lloyd wrote: Hi, I am trying to print the address of consecutive locations in a memory allocated using kmalloc. It prints non contiguous addresses! I tried with kmalloc_array, and  normal array on stack, I got the same  result. May I know the reason? The code fragment

Re: Fwd: Re: [GIT PULL] PCI changes for v5.12

2021-02-26 Thread wuzhouhui
On 2/26/21 3:07 PM, Greg KH wrote: On Fri, Feb 26, 2021 at 12:54:16PM +0800, wuzhouhui wrote: I'm confused about what the Linus said. It seemed that the branch cannot be rebased after merged into linux-next under normal circumstances, why? You should never rebase a public-facing branch

Fwd: Re: [GIT PULL] PCI changes for v5.12

2021-02-25 Thread wuzhouhui
I'm confused about what the Linus said. It seemed that the branch cannot be rebased after merged into linux-next under normal circumstances, why? Linus found this issue by check commit time of commits, but I also found so many commit in mainline are too young to be merged into linux-next before

What's the relationship between linux-next and mainline

2020-10-14 Thread wuzhouhui
Hi, Frequently, I found Stephen Rothwell send email about he have created today's linux-next tree. On the other hand, the maintainer sometimes write their pull request like "these changes have been sitting in linux-next for a while". So, what's the relationship between linux-next and

Why linux kernel mailing list stop send email to me

2019-10-16 Thread wuzhouhui
Hi, Few days ago, I subscribe linux kernel mailing list (linux-ker...@vger.kernel.org). Subscription succeed and I got a lot of email from linux kernel. However, I don't get any new email since yesterday and it is impossible for linux kernel mailing list. So the reason should be that I have

Re: How to generate Fixes: ("") things

2019-05-09 Thread wuzhouhui
> On May 9, 2019, at 7:41 PM, Greg KH wrote: > > On Thu, May 09, 2019 at 12:38:01PM +0200, Nicholas Mc Guire wrote: >> On Thu, May 09, 2019 at 06:28:39PM +0800, wuzhouhui wrote: >>> Hi, >>> >>> Stupid question, maybe. But I just could find

How to generate Fixes: ("") things

2019-05-09 Thread wuzhouhui
Hi, Stupid question, maybe. But I just could find the answer vi Bing or Google. How to generate Fixes: ("") E.g. Fixes: 298a32b13208 ("kmemleak: powerpc: skip scanning holes in the .bss section") Or they just write it manually? Thanks. ___

Re: Re: how to determine whether the source code is same between two kernels

2019-05-08 Thread wuzhouhui
> -Original Messages- > From: "Greg KH" > Sent Time: 2019-05-08 17:25:54 (Wednesday) > To: wuzhouhui > Cc: kernelnewbies@kernelnewbies.org > Subject: Re: how to determine whether the source code is same between two > kernels > > On Wed, May 08, 2019

how to determine whether the source code is same between two kernels

2019-05-08 Thread wuzhouhui
Hi, Suppose I have two kernels, one is A.B.C build by people Tom. And the other is A.B.C build by Jerry. The source code have been deleted after kernel is build and installed. Now I want to know whether the source code of these two kernel is the same (even if they have the same name). All I have

Re: Re: How to avoid or reduce GFP_ATOMIC allocation failed

2019-03-07 Thread wuzhouhui
> -Original Messages- > From: "Greg KH" > Sent Time: 2019-03-08 15:21:52 (Friday) > To: wuzhouhui > Cc: kernelnewbies@kernelnewbies.org > Subject: Re: How to avoid or reduce GFP_ATOMIC allocation failed > > On Fri, Mar 08, 2019 at 01:37:26PM +0800, w

How to avoid or reduce GFP_ATOMIC allocation failed

2019-03-07 Thread wuzhouhui
Hi, I check kernel code and found that GFP_ATOMIC allocation will use emergency pool and maybe failed if emergency pool is not enough. And GFP_ATOMIC doesn't trigger reclaim (because of ATOMIC) even if there are a lot of page caches. So my question is how to avoid or reduce GFP_ATOMIC allocation

Could we use jprobe to skip kprboed function

2019-02-26 Thread wuzhouhui
Hi, The documentation of jprobe says that we must call jprobe_return() before return. I'm wondering what if we don't call jprobe_return, and could we use it to skip probed function? Thanks. ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org