Re: Making kernel problem

2020-01-06 Thread Greg KH
On Tue, Jan 07, 2020 at 08:31:36AM +0800, c4droid wrote: > Even I extract source from docker container, the Documentation directory > just exist kbuild, not Kbuild. > And, in the extracted source tree, the top-level Kbuild file named > Kbuild not kbuild, only Documentation/kbuild is named >

Re: Update: I2C bus driver TIMEDOUT because of PM autosuspend

2019-11-28 Thread Greg KH
On Thu, Nov 28, 2019 at 10:32:42AM +0100, Primoz Beltram wrote: > I must update my report. It is not PM autosuspend (void calls do nothing, no > miracle here). > > This morning I reproduced the I2C timeout error also with > XIIC_PM_TIMEOUT=1 delay. For several days some other change was >

Re: Question regarding kernel?

2019-11-16 Thread Greg KH
On Fri, Nov 15, 2019 at 08:40:41AM +0100, Strahinja Mitrovic wrote: > Hi, > I'm a new subscriber, and i have a question regarding the uart driver and > kernel. > How does uart driver reset the counter of input serial line interrupts? It does not. > I'm currently using ioct with TIOCGICOUNT on

Re: How to log USB modem data for a specific device?

2019-11-11 Thread Greg KH
On Mon, Nov 11, 2019 at 05:57:24PM -0500, Jeffrey Walton wrote: > On Mon, Nov 11, 2019 at 12:24 PM Greg KH wrote: > > > > On Mon, Nov 11, 2019 at 11:40:51AM -0500, Jeffrey Walton wrote: > > > On Mon, Nov 11, 2019 at 11:31 AM Greg KH wrote: > > > > > > &g

Re: How to log USB modem data for a specific device?

2019-11-11 Thread Greg KH
On Mon, Nov 11, 2019 at 11:40:51AM -0500, Jeffrey Walton wrote: > On Mon, Nov 11, 2019 at 11:31 AM Greg KH wrote: > > > > On Mon, Nov 11, 2019 at 11:11:06AM -0500, Jeffrey Walton wrote: > > > Hi Everyone, > > > > > > I'm having trouble w

Re: How to log USB modem data for a specific device?

2019-11-11 Thread Greg KH
On Mon, Nov 11, 2019 at 11:11:06AM -0500, Jeffrey Walton wrote: > Hi Everyone, > > I'm having trouble with a C application that opens a USB modem. The > application is not receiving some data from a USR modem. Conexant > modems are OK. > > I'm working through >

Re: Netlink socket returns NULL in vmx.c kernel file

2019-11-04 Thread Greg KH
On Tue, Nov 05, 2019 at 12:29:56PM +0900, Irfan Ullah (울라 이르판) wrote: > I have tested code from different aspects. I have searched a lot in two > weeks, but still I am facing the same problem. Can you please check out > what is the problem with my code. Code is in the attached zipped file. Random

Re: Simple system stats.

2019-11-02 Thread Greg KH
On Sat, Nov 02, 2019 at 02:05:19PM +0100, Andre Schmidt wrote: > On Sat, 2 Nov 2019 13:07:00 +0100 > Greg KH wrote: > > > On Sat, Nov 02, 2019 at 12:51:05PM +0100, Andre Schmidt wrote: > > > Hello kernel space, > > > > > > user space webmonke

Re: Simple system stats.

2019-11-02 Thread Greg KH
On Sat, Nov 02, 2019 at 12:51:05PM +0100, Andre Schmidt wrote: > Hello kernel space, > > user space webmonkey here, tinkering on my home desktop setup and spelunking > way too many rabbit holes... damn you source code! ;P > > The other day i got frustrated with re-implementing parsing and

Re: Kernel Panic

2019-10-22 Thread Greg KH
On Tue, Oct 22, 2019 at 09:38:59AM +, Christophe DUMONT wrote: > Hello, > > > > We downgraded to older kernel. We still facing the same Kernel Panic with > different Kernel. Please contact your vendor for support, they are the only ones that can support you as it's a very odd and old

Re: Can't seem to find a maintainer for init/* files

2019-10-18 Thread Greg KH
On Sat, Oct 19, 2019 at 10:33:00AM +1300, Paulo Almeida wrote: > Hi all, > > I was reading the KernelJanitor/Todo webpage and found the printk-related > task that had to be done. > > I eventually came across this piece of code that led me to 2 questions that > I couldn't answer myself >

Re: Try/catch for modules?

2019-10-18 Thread Greg KH
On Fri, Oct 18, 2019 at 07:09:54PM -0300, Martin Galvan wrote: > Hi Valdis, thanks for the thorough response. > > El vie., 18 oct. 2019 a las 18:53, Valdis Klētnieks > () escribió: > > Well..here's the thing. Unless you have "panic_on_oops" set, hitting a null > > pointer will usually *NOT*

Re: Predicting Process crash / Memory utlization using machine learning

2019-10-10 Thread Greg KH
On Wed, Oct 09, 2019 at 04:40:45PM -0700, prathamesh naik wrote: > Thanks a lot for sharing. > One of the problem I am facing is not having enough actual data. I can > create simulated data but it is overfitting my algorithm. > Second problem is I am not sure what all factors (called features in

Re: Kernel development tools (was Re: Software Prefetching using Machine learning)

2019-10-10 Thread Greg KH
On Thu, Oct 10, 2019 at 03:21:46PM +0900, Irfan Ullah (울라 이르판) wrote: > Thank you. > You are absolutely right. As a freshman in the kernel development, and > having experience in high level languages, things look complicated :(. > Can you please suggest me what is the efficient and easy way to

Re: Software Prefetching using Machine learning

2019-10-09 Thread Greg KH
On Wed, Oct 09, 2019 at 12:37:51PM +0900, Irfan Ullah (울라 이르판) wrote: > Dear All, > Thanks in advance. I am a PhD candidate, and currently I have started > working on kernel development. My professor told me to implement this paper > . In this paper authors have

Re: Remote I/O bus

2019-10-06 Thread Greg KH
On Sun, Oct 06, 2019 at 12:29:18AM +0200, Luca Ceresoli wrote: > BTW I guess having an FPGA external to the SoC connected via SPI or I2C > is not uncommon. Am I wrong? Not uncommon at all, look at the drivers/fpga/ subsystem for a standard way to access those types of chips with a standard api.

Re: Remote I/O bus

2019-10-04 Thread Greg KH
On Fri, Oct 04, 2019 at 04:08:06PM +0200, Luca Ceresoli wrote: > Hi Greg, > > On 04/10/19 15:22, Greg KH wrote: > > On Fri, Oct 04, 2019 at 01:04:56PM +0200, Luca Ceresoli wrote: > >> Hi, > >> > >> on an embedded system I currently have a standar

Re: Remote I/O bus

2019-10-04 Thread Greg KH
On Fri, Oct 04, 2019 at 01:04:56PM +0200, Luca Ceresoli wrote: > Hi, > > on an embedded system I currently have a standard platform device: > > .-. data .. > | CPU || DEVICE | > '-' bus '' > > The driver is a standard platform driver that uses ioread32() and

Re: Do I need strong mathematical bases to work in the memory subsystem?

2019-10-03 Thread Greg KH
On Wed, Oct 02, 2019 at 11:42:04PM -0400, Ruben Safir wrote: > On 10/2/19 11:35 PM, Valdis Klētnieks wrote: > >> If you hope to do anything that is not elementry, you need serious math > >> for the algorithms, not to mention to complete the jobs being done. > >> > >> Knowing math is the real key

Re: Hello, does anyone know any university that has lines of research on the linux kernel

2019-09-29 Thread Greg KH
On Sat, Sep 28, 2019 at 04:16:46PM -0400, Valdis Klētnieks wrote: > On Sat, 28 Sep 2019 12:45:11 -0600, Manuel Quintero Fonseca said: > > Hello, does anyone know any university that has lines of research on > > the linux kernel > > Well.. most of the actual code development is being done out in

Re: Generating Log of Guest Physical Addresses from a Kernel Function and Perform Analysis at Runtime

2019-09-25 Thread Greg KH
On Wed, Sep 25, 2019 at 10:21:18AM -0400, Ruben Safir wrote: > On 9/25/19 5:38 AM, Greg KH wrote: > > On Wed, Sep 25, 2019 at 04:00:08PM +0900, Sahibzada Irfanullah wrote: > >> I am sorry if I am bothering you. > >> I have read this article > >> <http://a

Re: Generating Log of Guest Physical Addresses from a Kernel Function and Perform Analysis at Runtime

2019-09-25 Thread Greg KH
On Wed, Sep 25, 2019 at 04:00:08PM +0900, Sahibzada Irfanullah wrote: > I am sorry if I am bothering you. > I have read this article > , > I have to ask that will Netlink socket work for my task; Storing the >

Re: Fwd: Need Help regarding Reading and Writting to a file from kernel function file

2019-09-24 Thread Greg KH
On Tue, Sep 24, 2019 at 11:51:57AM +0200, Saket Sinha wrote: > Hi, > > I am sorry but I am really tempted to share - > https://www.linuxjournal.com/article/8110 That's out of date, and the stack overflow link points to it. Maybe someday I'll update that article somewhere else, as it's actually

Re: Generating Log of Guest Physical Addresses from a Kernel Function and Perform Analysis at Runtime

2019-09-24 Thread Greg KH
On Tue, Sep 24, 2019 at 07:10:59PM +0900, Sahibzada Irfanullah wrote: > Dear All, > > I have asked this question previously, but some people told me to explain > what I really want to do. First of all, I am completely naïve andnewbie in > the kernel development. > > I am trying to develop my own

Re: Fwd: Need Help regarding Reading and Writting to a file from kernel function file

2019-09-24 Thread Greg KH
On Tue, Sep 24, 2019 at 04:10:07PM +0900, Sahibzada Irfanullah wrote: > Dear Sir, > Hope you are doing well. Actually, I have one problem metioned in the > subject line. The problem is: I am trying to write/read page faulted > physical addresses to a file in a kernel (v5.3-1) function, i.e., >

Re: Setting CPU affinity for current process on kernel module?

2019-09-13 Thread Greg KH
On Fri, Sep 13, 2019 at 09:56:24AM -0300, Martin Galvan wrote: > El vie., 13 sept. 2019 a las 9:55, Greg KH () escribió: > > And doing what with that information? We have a msr driver for > > userspace access to those values, does that not work correctly for you? > >

Re: Setting CPU affinity for current process on kernel module?

2019-09-13 Thread Greg KH
On Fri, Sep 13, 2019 at 09:43:33AM -0300, Martin Galvan wrote: > El vie., 13 sept. 2019 a las 1:50, Greg KH () escribió: > > I really hate to ask, but _why_ do you feel that this is the correct > > solution to your problem? What is the problem you are attempting to >

Re: Setting CPU affinity for current process on kernel module?

2019-09-12 Thread Greg KH
On Thu, Sep 12, 2019 at 11:03:20AM -0300, Martin Galvan wrote: > El jue., 12 sept. 2019 a las 6:26, Bharath Vedartham > () escribió: > > Just to be clear, What do you mean by current process. Is it the process > > which is executing the kernel module? That would be a kernel thread I > > believe or

Re: is there a macro symbol for strlen($LINUX_SOURCE_PATH)

2019-09-04 Thread Greg KH
On Wed, Sep 04, 2019 at 03:42:01PM -0600, jim.cro...@gmail.com wrote: > in the kernel, there are a lot of usages of __FILE__ And almost all of them should go away, I think checkpatch.pl will mention something like that. I know I will gladly take patches that fix up printk messages that have

Re: Staging/netlogic coding style issues with struct

2019-09-03 Thread Greg KH
On Tue, Sep 03, 2019 at 01:26:17AM -0300, Pablo Pellecchia wrote: > Greetings, > > I'm fixing some issues on the staging/netlogic directory and I see that > checkpatch.pl is throwing the following warnings on some files: > > > > *WARNING: struct should normally be const#9: FILE: >

Re: KernelProjects still alive?

2019-08-22 Thread Greg KH
On Thu, Aug 22, 2019 at 05:59:45PM +0300, Ivan D wrote: > Hi all, > > I'd like to do some kernel development (driver, non-trivial feature, > etc.). I'm fairly experienced overall and wrote proprietary kernel > modules at my job, so not interested in newbie/janitor stuff. > KernelProjects looked

Re: wait_event()\ wait_event_interruptible()\ wait_event_interruptible_timeout() and wake_up()

2019-08-06 Thread Greg KH
On Tue, Aug 06, 2019 at 05:30:43PM +0530, Muni Sekhar wrote: > On Tue, Aug 6, 2019 at 5:12 PM Valdis Klētnieks > wrote: > > > > On Tue, 06 Aug 2019 14:15:53 +0530, Muni Sekhar said: > > > > > If they do different things, does the waiting threads wakeup order is > > > the same in which they were

Re: Linux driver for the tplink archer t2uh using kernel 5.2.5

2019-08-04 Thread Greg KH
On Sun, Aug 04, 2019 at 01:46:23PM -0400, Pastor Frank Ernesto Ramírez Torres wrote: > This is dmesg output: > New high-speed USB device number 4 using xhci_hcd > New USB device found, idVendor=148f, idProduct=761a, bcdDevice = 1.00 > New USB device strings: Mfr=1, Product=2, SerialNumber=3 >

Re: wait_event()\ wait_event_interruptible()\ wait_event_interruptible_timeout() and wake_up()

2019-07-29 Thread Greg KH
On Mon, Jul 29, 2019 at 10:48:57PM +0530, Muni Sekhar wrote: > Hi All, > > Let us assume that multiple processes are waiting on wait_event()\ > wait_event_interruptible()\ wait_event_interruptible_timeout(), which > process gets woken up on calling wake_up()?? > > I presume wake_up() picks one

Re: internal / external include files

2019-07-24 Thread Greg KH
On Wed, Jul 24, 2019 at 11:11:00AM +0200, Martin Kaiser wrote: > Dear all, > > is it correct that the files under include/uapi/ can be included by a > user space application? Yes. > I just ran into an error where my application ended up including > include/uapi/linux/stddef.h (with a number of

Re: CONFIG_CC_STACKPROTECTOR_STRONG

2019-07-09 Thread Greg KH
On Tue, Jul 09, 2019 at 10:54:27PM +0530, Muni Sekhar wrote: > We use out-of-tree kernel modules in our project and I need to measure the > performance of it by using a bit older gcc version 4.8.5. You are really on your own here, sorry. Please use a modern version of gcc, and then go complain

Re: TODO list form for Arm platform

2019-06-20 Thread Greg KH
On Thu, Jun 20, 2019 at 06:08:37PM +0200, tommaso merciai wrote: > Hello to everyone, > Where can I find a TODO list to contribute in Kernel development? drivers/staging/*/TODO ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: [IMX] [DRM]: suspend/resume support

2019-06-19 Thread Greg KH
On Wed, Jun 19, 2019 at 07:03:39PM +0530, Pintu Agarwal wrote: > You can think that the version I am using right now is almost 4.9 itself. > Upgrading again to higher kernel version is again difficult, also > customer does not want it. They don't want a secure and supported kernel over the

Re: GPIO Driver for Skylake-Y PCH

2019-06-15 Thread Greg KH
On Sat, Jun 15, 2019 at 12:38:34PM -0700, Alexander Ivanov wrote: > > > On Sat, 15 Jun 2019 12:31 -07:00, Valdis Klētnieks > wrote: > > On Fri, 14 Jun 2019 15:40:59 -0700, "Alexander Ivanov" said: > > > > (Adding likely knowledgeable people to the recipients) > > > > Jean, Andy, Linus: The

Re: fs.quota.warnings sysctl parameter usage

2019-05-15 Thread Greg KH
On Wed, May 15, 2019 at 03:41:30PM +0530, Ravi Prakash Putchala wrote: > On Wed, May 15, 2019 at 1:46 PM Greg KH wrote: > > > On Wed, May 15, 2019 at 01:14:24PM +0530, Ravi Prakash Putchala wrote: > > > Hi, > > > > > > I am exploring fs sysctl para

Re: fs.quota.warnings sysctl parameter usage

2019-05-15 Thread Greg KH
On Wed, May 15, 2019 at 01:14:24PM +0530, Ravi Prakash Putchala wrote: > Hi, > > I am exploring fs sysctl parameters and unable to find the reference to > fs.quota.warnings parameter in the kernel source code. I tried searching > with fs.quota.warnings (ignoring case) and also

Re: how to collect information regarding function calls in run time?

2019-05-14 Thread Greg KH
On Tue, May 14, 2019 at 10:55:40AM -0300, Pedro Terra Delboni wrote: > Sorry to revive this old thread, and thank you for the suggestions given, > but I've been trying to make these work for my case with little success and > I need a hand to understand what I'm doing wrong. Given that this is a

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

2019-05-09 Thread Greg KH
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 the answer vi Bing or Google. > > > > How to generate > > Fixes: ("") > > E.g. > > Fixes:

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

2019-05-08 Thread greg kh
On Wed, May 08, 2019 at 05:43:02PM +0800, wuzhouhui wrote: > > -Original Messages- > > From: "Greg KH" > > Sent Time: 2019-05-08 17:25:54 (Wednesday) > > To: wuzhouhui > > Cc: kernelnewbies@kernelnewbies.org > > Subject: Re: how to determi

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

2019-05-08 Thread Greg KH
On Wed, May 08, 2019 at 04:52:46PM +0800, wuzhouhui wrote: > 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

Re: ULIMIT: limiting user virtual address space (stack inluded)

2019-05-02 Thread Greg KH
On Thu, May 02, 2019 at 09:06:09AM -0400, Karaoui mohamed lamine wrote: > Hi all, > > According to the man page of "ulimit", it is possible to limit the virtual > address space of a user process: https://ss64.com/bash/ulimit.html > To limit the virtual address space to 2 GB: > $ ulimit -SH -v

Re: debugfs question ...

2019-05-01 Thread 'Greg KH'
On Wed, May 01, 2019 at 03:18:51PM +0100, r...@metamail.co wrote: > Hello and thanks, > > > > > > > The pattern for the implementation is (AFAICT) right out of the book > > > > > > > You are returning a "short" read, and then disallowing ppos to be set to a > > non-zero value? That's a recipie

Re: debugfs question ...

2019-04-30 Thread Greg KH
On Tue, Apr 30, 2019 at 12:45:08PM +0100, r...@metamail.co wrote: > Greetings, > > My I2C sensor driver has a debugfs entry for development purposes. > Everything works fine with the exception of the read operation. When 'cat' > is used, the read operation is called repeatedly and indefinitely.

Re: Best practice to upgrade kernel

2019-04-26 Thread Greg KH
On Fri, Apr 26, 2019 at 11:17:24AM -0700, Xiaolong Wang wrote: > Hi all, > > I have a newbie question. I’m using a 3.18.66 kernel branch from Qualcomm. > Over the year I’ve applied some of patched here and there manually. > > But It seems Qualcomm does not patch lot of newly released

Re: Partition linux page cache for each VM

2019-04-26 Thread Greg KH
On Fri, Apr 26, 2019 at 03:01:52AM +0530, Chirag Chauhan wrote: > On Thu, Apr 25, 2019 at 10:57 PM Greg KH wrote: > > > On Thu, Apr 25, 2019 at 07:06:54PM +0530, Chirag Chauhan wrote: > > > Hey, > > > > > > I need to modify pagecache such that each VM get

Re: Partition linux page cache for each VM

2019-04-25 Thread Greg KH
On Thu, Apr 25, 2019 at 07:06:54PM +0530, Chirag Chauhan wrote: > Hey, > > I need to modify pagecache such that each VM gets their own LRU list and > eviction is done from that list. Odd, please step back, why have you determined that this is something that you have to do? Were you told to do

Re: Unexpected scheduling with mutexes

2019-04-03 Thread Greg KH
On Wed, Apr 03, 2019 at 11:33:56AM +0200, Martin Christian wrote: > >> For certain values of `X` there is a significant difference in size > >> between the two files, which I don't expect. > >> > >> A read call to the driver does the following: > >> 1. `mutex_lock_interruptible(iolock)` > >> 2.

Re: Questions about my idea (for gsoc)

2019-04-01 Thread Greg KH
On Mon, Apr 01, 2019 at 06:19:12PM +0200, Andrea Laisa wrote: > Hi! > > I'm a student that want to do a google summer of code with you during this > summer. Who is "you" here? What project specifically are you looking to apply to that asked you to post on the kernelnewbies list? > My idea is

Re: Unexpected scheduling with mutexes

2019-03-30 Thread Greg KH
On Sat, Mar 30, 2019 at 08:25:57AM -0400, Ruben Safir wrote: > On 3/29/19 4:01 PM, Greg KH wrote: > > As an example of this, serial ports are not "exclusively owned", right? > > > they are not? What handles the interupt? Context is everything, and you cut out a

Re: Unexpected scheduling with mutexes

2019-03-29 Thread Greg KH
On Wed, Mar 27, 2019 at 11:56:51AM +0100, Martin Christian wrote: > Hi, > > I've written a linux kernel module for an USB device. The USB driver > provides 2 read-only character devices, which can be opened only > exclusively by one process: > - `/dev/cdev_a` > - `/dev/cdev_b` "exclusive"

Re: Sparse errors

2019-03-28 Thread Greg KH
On Fri, Mar 29, 2019 at 12:04:17AM +0530, Bharath Vedartham wrote: > Hey all, > > When I run sparse, I get sparse errors. Sparse says "too many errors". > For example when I run: make C=2 fs/ext4/ > This is the error messages I get for one of the files. > CHECK fs/ext4/ioctl.c >

Re: problem about subscribe linux-kernel

2019-03-23 Thread Greg KH
On Sun, Mar 24, 2019 at 10:52:43AM +0800, kmaillists wrote: > hi guys! > > i want to subscribe linux-kernel from majord...@vger.kernel.org,i tried to > use this account and a hotmail account to do that. > This account recevied nothing and the hotmial account received the answer: > Hello

Re: Overwriting copy functionality in filesystem

2019-03-23 Thread Greg KH
On Sat, Mar 23, 2019 at 10:29:45PM +0530, Bharath Vedartham wrote: > Hey everyone, > > I was wondering how we can overwrite the copy functionality while > writing our own filesystem in linux. > VFS does not offer any sort of API for copy. I think it calls create and > write when we execute the

Re: HID Driver

2019-03-15 Thread Greg KH
On Fri, Mar 15, 2019 at 06:23:37PM +0530, Pratyush Das wrote: > Hi, > > I want the device operated by the Arduino Uno board to be recognised as a > mouse by my Linux OS. To control the cursor I am using the X11 API. Ok, and what does not work for you with the Linux side of this? Linux obviously

Re: HID Driver

2019-03-14 Thread Greg KH
On Thu, Mar 14, 2019 at 11:18:34PM +0530, Pratyush Das wrote: > Hi, > > I have a device operated via an Arduino UNO board. I would like to write a > driver for it so that my computer running linux recognises it natively. > > I have no experience writing drivers. Where should I start to

Re: Using binary attributes for configuration sysfs entries

2019-03-14 Thread Greg KH
On Thu, Mar 14, 2019 at 04:17:13PM +0530, Jay Aurabind wrote: > On Wed, 13 Mar 2019 at 19:55, Greg KH wrote: > > > > On Wed, Mar 13, 2019 at 12:02:02PM +0530, Jay Aurabind wrote: > > > Hi, > > > > > > Before I send this patch to actual mailing list, I'd

Re: Using binary attributes for configuration sysfs entries

2019-03-13 Thread Greg KH
On Wed, Mar 13, 2019 at 12:02:02PM +0530, Jay Aurabind wrote: > Hi, > > Before I send this patch to actual mailing list, I'd appreciate if > someone could tell me if this is a bad idea! > > The driver in staging for pi433 (a wireless transceiver) uses IOCTLs > at the moment. I wish to add a

Re: [PATCH 1/1] staging: erofs: Add function comment for erofs/super.c

2019-03-12 Thread Greg KH
On Tue, Mar 12, 2019 at 11:33:47PM +0530, arshad hussain wrote: > Re-sending. Previous patch I put in very old kernel-newbies address. > > Subject: [PATCH 1/1] staging: erofs: Add function comment for > erofs/super.c You can't have a "Subject" line in the middle of the changelog :( Please fix

Re: Finding all modules which consume kernel lib?

2019-03-09 Thread Greg KH
On Sat, Mar 09, 2019 at 12:07:00AM -0800, Andy Nicholas wrote: > Hello, > > Is there a website or service or tool or package or script or something > which allows me to determine which pieces of the compiled kernel > (especially modules) contained the source-code changes I might make to any >

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

2019-03-07 Thread greg kh
On Fri, Mar 08, 2019 at 03:34:18PM +0800, wuzhouhui wrote: > > -Original Messages- > > From: "Greg KH" > > Sent Time: 2019-03-08 15:21:52 (Friday) > > To: wuzhouhui > > Cc: kernelnewbies@kernelnewbies.org > > Subject: Re: How t

Re: How to avoid or reduce GFP_ATOMIC allocation failed

2019-03-07 Thread Greg KH
On Fri, Mar 08, 2019 at 01:37:26PM +0800, wuzhouhui wrote: > 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

Re: Using EHSET module

2019-03-07 Thread Greg KH
On Thu, Mar 07, 2019 at 11:41:58AM +, CHMIELARZ Radoslaw wrote: > Hi, > > I'm trying to certify USB on our device that is running Linux 4.14. > For windows systems we were using https://www.usb.org/usb2tools. For > linux the only option I have found is a kernel module called EHSET. >

Re: tty: uart: custom speed

2019-03-04 Thread Greg KH
On Mon, Mar 04, 2019 at 08:19:44PM +0530, Subhashini Rao Beerisetty wrote: > On Mon, Mar 4, 2019 at 6:53 PM Greg KH wrote: > > > > On Mon, Mar 04, 2019 at 05:46:54PM +0530, Subhashini Rao Beerisetty wrote: > > > Hi All, > > > > > > > > >

Re: How to make /dev/ttyACM0 (and friends) exclusive?

2019-03-04 Thread Greg KH
On Mon, Mar 04, 2019 at 08:04:23AM -0500, Jeffrey Walton wrote: > On Sun, Mar 3, 2019 at 6:00 AM Greg KH wrote: > > > > On Sun, Mar 03, 2019 at 03:55:44AM -0500, Jeffrey Walton wrote: > > > ... > > > > Again, go delete modem manager off of your system, it

Re: How to make /dev/ttyACM0 (and friends) exclusive?

2019-03-03 Thread Greg KH
On Sun, Mar 03, 2019 at 03:55:44AM -0500, Jeffrey Walton wrote: > On Sun, Mar 3, 2019 at 12:55 AM wrote: > > > > On Sat, 02 Mar 2019 14:36:12 -0500, Jeffrey Walton said: > > > > > I feel like I am missing something... Does Linux consider the modem a > > > shared resource instead of an exclusive

Re: How to make /dev/ttyACM0 (and friends) exclusive?

2019-03-01 Thread Greg KH
On Fri, Mar 01, 2019 at 11:29:53PM -0500, Jeffrey Walton wrote: > Hi Everyone, > > I'm trying to trackdown a problem using my dialup modem. I have a > program that opens the modem and watches caller id's. It flashes the > hook when a telemarketer calls. It works well until... > > When another

Re: Fwd: Later Kernel versions break some games in wine

2019-01-27 Thread Greg KH
On Fri, Jan 25, 2019 at 11:38:51AM -0500, Anthony Jagers wrote: > -- Forwarded message - > From: Anthony Jagers > Date: Fri, Jan 25, 2019 at 11:35 AM > Subject: Later Kernel versions break some games in wine > To: That ^, is not a valid mailing list address. > Changes in

Re: drivers/char/efirtc.c - efi_rtc_open\ efi_rtc_close

2019-01-21 Thread Greg KH
On Mon, Jan 21, 2019 at 03:40:31PM +0530, Muni Sekhar wrote: > Hello All, > > The drivers/char/efirtc.c file has ‘struct file_operations.open’ & ‘struct > file_operations.close’ functions efi_rtc_open()\ efi_rtc_close() does > nothing, just returns ‘0’. > > So it accept multiple open files at

Re: mount /proc at boot as read-only

2019-01-07 Thread Greg KH
On Sun, Jan 06, 2019 at 09:13:26PM +0300, Lev Olshvang wrote: > > Hello all, > > I am trying to harden the embedded system. Please define exactly what you mean by "harden". > Is it possible and safe to mount /proc file system in a read-only mode and > how to do this? Why would you want /proc

Re: The Kernel knows. But how ? Did the acpi make a secret dead drop ?

2019-01-06 Thread Greg KH
On Sun, Jan 06, 2019 at 02:22:34PM +0530, Jay Aurabind wrote: > Hi, > > The subject line might be a bit dramatic, but I assure you my question is > isn't. > > I have a 3-axis accelerometer (LIS3LV02DL) in my laptop which shows up as > an input device. Since its x86, I am assuming the necessary

Re: How to signal kernel that shared library is not in use by any process anymore ?

2018-12-27 Thread Greg KH
On Thu, Dec 27, 2018 at 10:47:42AM +0300, Lev Olshvang wrote: > Hello Greg, > > Thanks for you your reply. > It help me to better express my question > > >From the application I can access /proc/self/maps and see which memory is > >mapped for my library I do not intend to use after

Re: How to signal kernel that shared library is not in use by any process anymore ?

2018-12-21 Thread Greg KH
On Fri, Dec 21, 2018 at 05:20:36PM +0300, Lev Olshvang wrote: > > Hi All, > > I have an executable (C++) which is the exclusive user of the some shared > library that it uses only during the initialization phase. > > I would like to free memory used by this shared library, because I am

Re: In a process context kernel_read returns -EINTR, how to proceed?

2018-12-21 Thread Greg KH
On Fri, Dec 21, 2018 at 04:51:29PM +0300, Lev Olshvang wrote: > Hi Valdis, > > I need to read file inside LSM hook and I can not do it in user space > I forgot o mention that same error occurried both in 4.4 and 4.13 kernels > What alternative you can recommend to read file in kernel and avoid

Re: /proc/modules not showing any output

2018-12-19 Thread Greg KH
On Wed, Dec 19, 2018 at 06:52:39PM +0530, Praveen Kumar wrote: > Hi All, > > Compiled the vanila kernel 4.20.0-rc6 build, and was trying to get > module information, but /proc/modules is not showing any output ( both > on arm64 and x86_64 ) > > root@ubuntu:~# uname -a > Linux ubuntu

Re: Backporting stacked security patch

2018-10-31 Thread Greg KH
On Tue, Oct 30, 2018 at 09:19:08PM +0300, Lev Olshvang wrote: > Hi Greg, > > Thanks for a reply. > > While diff between two kernels is indeed tremendous, the commits which were > done in security subsystem do not look too bid,. > There are 7 commits, and 2 of them is about comments and one

Re: Backporting stacked security patch

2018-10-30 Thread Greg KH
On Tue, Oct 30, 2018 at 02:43:12PM +0300, Lev Olshvang wrote: > Hi All, > > I week ago I asked the list about kernel 4.2 stacked security patch location > , but > Greg strongly advised me against, without going into details. > I highly appreciate Greg advice, and I know he is a very busy

Re: Boot all yes config kernel with QEMU

2018-10-23 Thread Greg KH
On Tue, Oct 23, 2018 at 05:16:42PM +1100, Tobin C. Harding wrote: > On Tue, Oct 23, 2018 at 12:22:44AM -0400, valdis.kletni...@vt.edu wrote: > > On Tue, 23 Oct 2018 13:56:42 +1100, "Tobin C. Harding" said: > > > > > I'd like to build and boot an allyesconfig kernel with QEMU. Building > > > is

Re: changing parameters in build

2018-10-17 Thread Greg KH
On Wed, Oct 17, 2018 at 08:02:46PM +0800, Carter Cheng wrote: > The problem is I have to do something special with the clang options. I > have to add an interprocedural link time optimization pass spitting out > bitcode files and tying them together using llvm-link. Then add those options to the

Re: changing parameters in build

2018-10-17 Thread Greg KH
On Wed, Oct 17, 2018 at 04:24:13PM +0800, Carter Cheng wrote: > Hi, > > I am having exploring how much work it would be to do whole kernel > optimization using clang on the current kernel. My understanding is the > kernel uses a recursive make file system. I am curious if there are any > easy

Re: How to see the accepted in baseline patch content

2018-10-14 Thread Greg KH
On Sun, Oct 14, 2018 at 06:14:53PM +0300, Lev Olshvang wrote: >   >   > I know that LSM stacking was introduced in kernel version 4.2 >   > I need to backport this to 3.18 Ick, no, you really do not want to do that. Seriously, just use a newer kernel version. Or go force who ever is making you

Re: 4.19-rc3 incompatible with nvidia driver

2018-09-20 Thread Greg KH
On Sun, Sep 16, 2018 at 08:47:41PM +0200, Daan Wendelen wrote: > Hi, > > The latest nvidia driver is incompatible with 4.19-rc3 because > "drm_mode_connector_update_edid_property" got renamed to > "drm_connector_update_edid_property" and > "drm_mode_connector_attach_encoder" to

Re: regarding const variables/structures

2018-09-12 Thread Greg KH
On Wed, Sep 12, 2018 at 11:50:35AM +0530, inventsekar wrote: > the question is that, how these many const variable issues are left/missed > by the previous developers?!?! Because we never realized the benifit of doing so when we created the code to start with. And then others copied previous

Re: Implementing tight time constraints for read/write with USB serial (ftdi_sio)

2018-09-05 Thread Greg KH
On Wed, Sep 05, 2018 at 12:25:47PM +0200, Thomas Bracht Laumann Jespersen wrote: > We need to find a solution somehow, so thanks for the suggestion. I'll keep > digging for solutions, but if you have any good resources I should look at, > I'm > all ears. Do not use USB for anything that you have

Re: Implementing tight time constraints for read/write with USB serial (ftdi_sio)

2018-09-03 Thread Greg KH
On Mon, Sep 03, 2018 at 09:12:35PM +0200, Thomas Bracht Laumann Jespersen wrote: > Hello all! > > I'm working on a project where we want to integrate into a production line and > listen on connected devices, and the challenge is that our setup needs to be > fast enough. First off, "tight time

Re: Queries on bottom halves

2018-09-02 Thread Greg KH
On Sun, Sep 02, 2018 at 01:39:07PM -0400, valdis.kletni...@vt.edu wrote: > On Sun, 02 Sep 2018 20:58:14 +0530, Abhinav Misra said: > > > But if in new kernel this implementation is changed then why we need so > > many options to defer the work as all of them are basically getting > > executed in

Re: How to assess how much stack space kernel function may use?

2018-08-16 Thread Greg KH
On Thu, Aug 16, 2018 at 04:24:33PM +0300, Lev Olshvang wrote: > Hello all > > I am writing kernel module function that calls for vfs function , so I am not > aware how deep kernel stack can grow due to my calls > > I need to take 512 bytes for some processing, and I know kernel stack is 4K >

Re: Proxy filesystems

2018-08-12 Thread Greg KH
On Sat, Aug 11, 2018 at 10:31:17PM -0400, Demi Obenour wrote: > How difficult would it be in the kernel? > > I am not particularly interested in getting this upstreamed, but I do want > to at least try to make a kernel module that does something useful. Try it and see!

Re: Proxy filesystems

2018-08-12 Thread Greg KH
On Sun, Aug 12, 2018 at 01:01:59AM -0400, Ruben Safir wrote: > On 08/11/2018 03:11 PM, Richard Weinberger wrote: > > Using FUSE this is easy. > > FUSE is not part of the kernel and it is a PIA FWIW. It goes crazy all > the time. Not true, a portion is part of the kernel, and you need to be a

Re: Virtual console devices

2018-08-06 Thread Greg KH
On Mon, Aug 06, 2018 at 11:15:00AM +0530, Tushar Dave wrote: > Hello, > > I am trying to optimize boot up time for my board. > > I ran bootchart and observed that virtual console devices are being created > in very high number which finally cause the boot up time to increase by 1.5 > seconds. >

Re: Kernel API's for ADC

2018-07-26 Thread 'Greg KH'
On Thu, Jul 26, 2018 at 02:43:07PM +0530, chandrasekhar wrote: > I am using freescale IMX6UL processor. I have to do it in kernel space, I > have a thermal printer attached to the processor and I have to continuously > monitor temperature of the printer head inorder to change he printing time >

Re: Kernel API's for ADC

2018-07-25 Thread Greg KH
On Wed, Jul 25, 2018 at 04:47:29PM +0530, chandrasekhar wrote: > Not on the sysfs interface. I want to read the ADC using kernel API's in > kernel space. For your specific driver and device, or for "any" driver/device? And why do you need this, what are you going to do with that information?

Re: link_path_walk/dentry_path_raw TOCTTOU race question

2018-07-25 Thread Greg KH
On Tue, Jul 24, 2018 at 07:42:08PM -0400, riya khanna wrote: > Thanks Valdis! > > I'm trying to enforce path-based access policies inside a file system Look at how the apparmor code does it, that's the best solution here. thanks, greg k-h ___

Re: Unable to view patches in https://patchwork.kernel.org/project/LKML/list/

2018-07-22 Thread Greg KH
On Sun, Jul 22, 2018 at 12:22:30PM +0530, nishad kamdar wrote: > Hello all, > > I created a patch and submitted it to the following e-mail addresses. > > Lidza Louina ,Mark Hounschell ,Greg > Kroah-Hartman ,driverdev- > > de...@linuxdriverproject.org,de...@driverdev.osuosl.org, >

Re: Question about memcpy

2018-07-12 Thread Greg KH
A: http://en.wikipedia.org/wiki/Top_post Q: Were do I find info about this thing called top-posting? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? A: No. Q: Should I

Re: Question about memcpy

2018-07-11 Thread Greg KH
On Thu, Jul 12, 2018 at 12:47:12PM +0800, bing zhu wrote: > agree! a simple rename would survice.results are the same .kernel is faster > could anyone help fix this ? Fix what exactly? ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

<    1   2   3   4   5   6   7   8   9   10   >