Re: Header organization/separation rule in kernel

2017-12-10 Thread Greg KH
On Sun, Dec 10, 2017 at 11:21:46PM +0800, Shiyao MA wrote: > Hi, > > I wonder the header separation rule in kernel. > To make this question concrete, for example, let's targeting genetlink.h > > It can be found in: > > http://elixir.free-electrons.com/linux/latest/source/include/net/genetlink.h

Re: Is this maintainers list up to date ?

2018-05-08 Thread Greg KH
On Wed, May 09, 2018 at 12:31:45AM +0530, Sumit Kumar wrote: > Hi, > > Can someone please confirm if this maintainer's list if up to date : > https://github.com/torvalds/linux/blob/master/MAINTAINERS Yes. But use the git.kernel.org version please, who knows what is on github :) greg k-h

Re: Regarding Audio Drivers

2018-05-12 Thread Greg KH
On Sat, May 12, 2018 at 11:14:50PM +0530, Divanshu Singh wrote: > Respected Reader > > I am a long time Linux user. I am a full-time web developer but I have some > knowledge of C, C++ and bit of x86 assembly. > > I have 4 Linux system at my home - a MacBook Air, 2 HP and 1 Dell and > recently I

Re: searching for a missing driver

2018-05-23 Thread Greg KH
On Wed, May 23, 2018 at 10:01:49AM +0300, Ozgur Kara wrote: > > > 23.05.2018, 09:48, "Greg KH" <g...@kroah.com>: > > On Wed, May 23, 2018 at 09:26:31AM +0300, Ozgur Kara wrote: > >>  I think seen the drivers/staging section in the kernel source. > &

Re: searching for a missing driver

2018-05-23 Thread Greg KH
On Tue, May 22, 2018 at 10:25:51PM -0400, Hugo Lefeuvre wrote: > Hi, > > I've been reading documentation about linux drivers development for > quite a while now, but never did anything really useful of it. Lack of > time, but most importantly lack of projects to apply this knowledge. > Now I've

Re: searching for a missing driver

2018-05-23 Thread Greg KH
On Wed, May 23, 2018 at 09:26:31AM +0300, Ozgur Kara wrote: > I think seen the drivers/staging section in the kernel source. Yes, starting out with drivers/staging/*/TODO is always a good idea. > for example, some new generation embedded modules and electronic devices > don't work on Linux.

Re: Main Linux kernel vs Ubuntu kernel

2018-06-09 Thread Greg KH
On Sat, Jun 09, 2018 at 05:17:45PM +0530, Subhashini Rao Beerisetty wrote: > My question related to backward compatibility is: If an API’s signature > changed from kernel version x.y.z onwards, does the mainline tree code uses > the below mentioned logic? > > > #if LINUX_VERSION_CODE >=

Re: develoment workflow: how to avoid duplicate work ?

2018-05-28 Thread Greg KH
On Mon, May 28, 2018 at 11:07:06PM -0400, Hugo Lefeuvre wrote: > Hi, > > I've started to take a look at TODO entries in the staging drivers > subtree and found some issues in pi433 I'd like to work on. Before > starting to prepare my patch, I tried to check the LKML and the bug > tracker to make

Re: Is there mailist about LSM

2018-05-30 Thread Greg KH
On Wed, May 30, 2018 at 01:25:20PM -0400, valdis.kletni...@vt.edu wrote: > On Wed, 30 May 2018 10:16:13 -0700, Alexander Ivanov said: > > Hi All, > > What would be right place to ask questions about LSM? > > linux-security-module > > is where that development was done, but that list was last

Re: Is there mailist about LSM

2018-05-30 Thread Greg KH
On Wed, May 30, 2018 at 09:13:46PM +0300, Ozgur Kara wrote: > > > 30.05.2018, 21:08, "valdis.kletni...@vt.edu" : > > On Wed, 30 May 2018 10:37:25 -0700, you said: > > > >>  First, theoretical, I suppose: what were the reasons to effectively > >> disable dynamic loading of LSM ? > > > > Because

Re: Is there mailist about LSM

2018-05-30 Thread Greg KH
On Wed, May 30, 2018 at 10:37:25AM -0700, Alexander Ivanov wrote: > On Wed, 30 May 2018 13:25 -0400, valdis.kletni...@vt.edu wrote: > > What question do you have about it? > > There are a couple, actually :) > First, theoretical, I suppose: what were the reasons to effectively > disable dynamic

Re: mount command stuck at synchronize_rcu on a RT patched kernel.

2018-06-04 Thread Greg KH
On Mon, Jun 04, 2018 at 03:55:34PM +0530, Mahesh Sivapuram wrote: > Hello All, > > We are facing an issue with 3.10.65 kernel + RT69 patch on a 12core xeon. First off, that is a very old and "obsolete" kernel version. As you are probably stuck at that version due to a support contract, I

Re: pcie dma transfer

2018-06-04 Thread Greg KH
On Mon, Jun 04, 2018 at 01:12:48PM +0200, Christoph Böhmwalder wrote: > Hi, > > I'm not sure how on-topic this is on this list, but I have a question > regarding a device driver design issue. > > For our Bachelor's project my team and I are tasked to optimize an > existing hardware solution. The

Re: SPDX identifier question for vboxvideo

2018-06-02 Thread Greg KH
On Fri, Jun 01, 2018 at 04:51:45PM -0300, Fabio Rafael da Rosa wrote: > Hi all, > > I was preparing patch to fix the use of load/unload drm_driver hooks and use > drm_dev_alloc and drm_register. When I was preparing the patch, I run > checkpath and got a warning regarding SPDX tag identifier for

Re: policy on externs

2018-06-02 Thread Greg KH
On Sat, Jun 02, 2018 at 05:23:20PM +0100, Justin Skists wrote: > Hi, > > What is the kernel policy on using "extern" to share variables between > source files in a module? > > I've been looking at one subsystem in staging [that shares variables quite a > bit] to becoming familar with it, and

Re: Question about watchdog

2018-07-02 Thread Greg KH
On Mon, Jul 02, 2018 at 08:58:16AM +0100, Justin Skists wrote: > > > On 01 July 2018 at 13:44 bing zhu wrote: > > > > > > Dear Sir/Ma'am > > Thank you for your time ,i'm a student new to linux kernel.at present ,i'd > > like to create a kernel thread > > say use kthread_create func ,my

Re: How kernel derive irq number for particular irq line

2018-06-24 Thread Greg KH
On Mon, Jun 25, 2018 at 12:17:06AM +0530, Abhinav Misra wrote: > Hi Guys, > > I want to know how the irq number is derived in linux kernel. It all depends on your platform. It either comes from the firmware/bios or it is in the device tree information. The kernel itself doesn't know this

Re: How to correctly load a driver without device tree?

2018-06-20 Thread Greg KH
On Wed, Jun 20, 2018 at 02:36:52PM +0800, kipade wrote: > Now, most of kernel device are initialized by its driver according by > what described within device tree block. Here, the dtb was parsed > and used during kernel booting. If so, I want to load a device driver > after kernel booting using

Re: where and when the kernel destroy devices memory if there were no matched driver for it?

2018-06-26 Thread Greg KH
On Wed, Jun 27, 2018 at 01:52:55PM +0800, kipade wrote: > Hi, all > > As my question, would kernel destroy deivces struct if there were no matched > driver attached on it? No, only when the device is removed from the system does that structure get destroyed. greg k-h

Re: where and when the kernel destroy devices memory if there were no matched driver for it?

2018-06-27 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: System call service routine and interrupt context

2018-04-30 Thread Greg KH
On Mon, Apr 30, 2018 at 08:13:11PM +0530, Pritam Bankar wrote: > Hi, > > My question is, do all the code of interrupt handler in system call > gets executed in interrupt context? No. > System calls generate software interrupts. Some do, some do not. It all depends :) > So when I do open()

Re: serial: start_tx & buffer handling

2018-05-03 Thread Greg KH
On Thu, May 03, 2018 at 08:08:48PM +0530, Muni Sekhar wrote: > Hi All, > > I’m trying to understand how user mode buffer is written to low level > serial hardware registers. > > For this I read the kernel code and I came to know that from user mode > write() API lands into kernel’s tty_write()

Re: Meltdown/spectre patches.

2018-01-07 Thread Greg KH
On Fri, Jan 05, 2018 at 07:12:04PM +, Nick Warne wrote: > Hi all, > > Rather than bother the main kernel list with what is going on, does anybody > know if the latest source code on kernel.org contains the patches, or do I > need to apply externally?

Re: Help! Can't subscribe kernel mail list

2018-01-10 Thread Greg KH
On Thu, Jan 11, 2018 at 04:53:54AM +, Douglas Su wrote: > > > Probably has something to do with the fact that vger doesn't like sources > > that send text/html. Find a provider that lets you send text/plain mail. > > Outlook permits its user to send text/plain mail. I think I should consult

Re: Efficient management of emails

2018-01-15 Thread Greg KH
On Mon, Jan 15, 2018 at 06:04:54PM +0530, Shyam Saini wrote: > Hi Everyone, > > I have subscribed multiple mailing lists. > > My question is how do kernel developers and other users manage their > emails on daily basis > considering the fact that we receive hundreds of mails everyday. > > One

Re: Regarding Linux kernel vs Android

2018-01-16 Thread Greg KH
On Tue, Jan 16, 2018 at 10:15:39PM +0530, inventsekar wrote: > Hi... > > I tried searching but no luck. > Can you please suggest how Linux kernel was modified and became Android?! It did not. Android devices use the Linux kernel, with only a very tiny set of patches on top of it, just like any

Re: Regarding Linux kernel vs Android

2018-01-16 Thread Greg KH
On Tue, Jan 16, 2018 at 11:55:45AM -0500, Ruben Safir wrote: > I doesn't matter that much when you can't root the devices... What do you mean, it's trivial to root almost any shipping Android device today given the fact that they do not run up-to-date kernel versions :) You aren't trying hard

Re: Kernelupdate

2018-01-26 Thread Greg KH
On Fri, Jan 26, 2018 at 02:07:08PM +0100, Frank Smith wrote: > Dear list, > > I am a bit confused with upgrading my kernel to a newer minor version. > > My current kernel 4.14 is from > https://git.kernel.org/pub/scm/linux/kernel/git/ > torvalds/linux.git , but there are no minor tags

Re: Testing low level UART driver

2018-01-24 Thread Greg KH
On Thu, Jan 25, 2018 at 12:46:01PM +0530, Muni Sekhar wrote: > On Wed, Jan 24, 2018 at 8:53 PM, Greg KH <g...@kroah.com> wrote: > > On Wed, Jan 24, 2018 at 08:43:56PM +0530, Muni Sekhar wrote: > >> On Wed, Jan 24, 2018 at 6:52 PM, Greg KH <g...@kroah.com> wrote: >

Re: Help! Can't subscribe kernel mail list

2018-01-10 Thread Greg KH
On Wed, Jan 10, 2018 at 08:37:42AM +, Douglas Su wrote: > vger.kernel.org gave this error: > Hello [40.92.4.67], for your MAIL FROM address policy > analysis reported: Your address is not liked source for email. > > I searched Mail list FAQ, but still have no idea.

Re: crash binary not working with latest kernel

2018-01-27 Thread Greg KH
On Fri, Jan 26, 2018 at 12:30:46PM -0800, Joe Smith wrote: > Hi, > > I am running Ubuntu 16.04. I built and booted the latest kernel. Now > the crash binary does not work, neither a panic is saved. What is the > procedure to use crash with the latest unreleased kernel. There was a recent fix for

Re: Linux Kernel contains only C code?

2018-01-29 Thread Greg KH
On Mon, Jan 29, 2018 at 01:00:10PM -0500, Jeffrey Walton wrote: > On Mon, Jan 29, 2018 at 12:33 PM, Greg KH <g...@kroah.com> wrote: > > On Mon, Jan 29, 2018 at 12:16:19PM -0500, Jeffrey Walton wrote: > >> ... > >> It would be nice if they moved away from UB and im

Re: Linux Kernel contains only C code?

2018-01-29 Thread Greg KH
On Mon, Jan 29, 2018 at 12:16:19PM -0500, Jeffrey Walton wrote: > On Mon, Jan 29, 2018 at 10:41 AM, Augusto Mecking Caringi > wrote: > > On Fri, Jan 26, 2018 at 2:12 PM, wrote: > >> On Fri, 26 Jan 2018 05:53:20 -0500, Ruben Safir said: > >>>

Re: clang warning: implicit conversion in intel_ddi.c:1481

2018-02-02 Thread Greg KH
On Fri, Feb 02, 2018 at 12:44:38PM +0200, Jani Nikula wrote: > > +Knut, Fengguang > > On Fri, 02 Feb 2018, Greg KH <gre...@linuxfoundation.org> wrote: > > - If clang now builds the kernel "cleanly", yes, I want to take > > warning fixes in the s

Re: clang warning: implicit conversion in intel_ddi.c:1481

2018-02-02 Thread Greg KH
On Fri, Feb 02, 2018 at 04:37:55PM +0200, Jani Nikula wrote: > On Fri, 02 Feb 2018, Greg KH <gre...@linuxfoundation.org> wrote: > > On Fri, Feb 02, 2018 at 12:44:38PM +0200, Jani Nikula wrote: > >> > >> +Knut, Fengguang > >> > >> On Fri, 02 F

Re: clang warning: implicit conversion in intel_ddi.c:1481

2018-02-01 Thread Greg KH
On Thu, Feb 01, 2018 at 06:33:30PM +0100, Ozan Alpay wrote: > Dear Rodrigo Vivi, Ville Syrjälä, > > My name is Ozan Alpay, and I am a student mentored by Lukas Bulwahn. We > intend to use static analysis tools on the kernel source to identify, > analyze and report issues. As a very first step,

Re: [usb-serial] Support for console read from usb serial driver

2018-02-01 Thread Greg KH
On Thu, Feb 01, 2018 at 11:52:18PM +0530, Ivid Suvarna wrote: > Hi All, > > I was going through usb serial driver console related source code > (drivers/usb/serial/console.c) in linux kernel and came across > "usb_console_write" function and was wondering if any usb serial > convertor drivers

Re: Linux Kernel contains only C code?

2018-02-01 Thread Greg KH
On Thu, Feb 01, 2018 at 05:49:13PM +0100, Augusto Mecking Caringi wrote: > On Thu, Feb 1, 2018 at 5:37 PM, Aruna Hewapathirane > wrote: > >> On Fri, Jan 26, 2018 at 1:58 AM, inventsekar > >> wrote: > >> Hi all, ... > > > >> 1. May i know,

Re: clang warning: implicit conversion in intel_ddi.c:1481

2018-02-02 Thread Greg KH
On Fri, Feb 02, 2018 at 10:56:36AM +0100, Lukas Bulwahn wrote: > On Fri, 2 Feb 2018, Jani Nikula wrote: > > > Being brutally honest, please write shorter reports and shorter emails > > to the lists. > > > > The static analysis reports are welcome, but only when 1) we didn't > > already fix it in

Re: Interface between LTE devices and Linux

2018-02-08 Thread Greg KH
On Thu, Feb 08, 2018 at 06:10:59PM +0100, jjDaNiMoTh wrote: > Hello everyone, > > There is an example of LTE netdevice in the Linux source tree? > > In particular, I would like to know if there is any device driver that > implements the layers required by the 3GPP standard. I imagine that it >

Re: Outdated URL in Documentation

2018-02-08 Thread Greg KH
On Thu, Feb 08, 2018 at 07:24:09PM -0200, Gustavo Leite wrote: > 2018-02-08 11:48 GMT-02:00 Greg KH <g...@kroah.com>: > > Sure, please feel free to send a patch to do so. > > This is my first time in the process. Please tell me if I'm > doing something wrong. > >

Re: Why haven't NetMap or MegaPipe been merged?

2018-02-12 Thread Greg KH
On Mon, Feb 12, 2018 at 12:48:11PM -0500, Demi Obenour wrote: > Why haven't NetMap or MegaPipe been merged? I am wondering because they > seem to be big wins for performance, but neither has been upstreamed. Has anyone actually submitted the patches upstream? That's usually the first step :)

Re: Why haven't NetMap or MegaPipe been merged?

2018-02-14 Thread Greg KH
On Tue, Feb 13, 2018 at 01:00:39PM -0500, Demi Obenour wrote: > Not sure. The NetMap team at least told me that upstream didn't want their > code. This might be because NetMap requires special vendor-provided (but > still open source, if I understand correctly) drivers for optimum > performance,

Re: Outdated URL in Documentation

2018-02-08 Thread Greg KH
On Thu, Feb 08, 2018 at 11:13:26AM -0200, Gustavo Leite wrote: > Hello, > > In the file Documentation/process/howto.rst there is an URL to a > mailing list called "kernel-mentors". However, when accessed, it says > that this list does not exist. Should this be removed from the > documentation?

Re: Query on mechanisms to communicate between kernel modules in Linux

2018-02-08 Thread Greg KH
On Thu, Feb 08, 2018 at 09:39:31AM +0530, Neil Thomas wrote: > Hi, > > I want to share information between two kernel modules (Kernel version 4.0 > or above). What are the ways of communication between kernel modules in > Linux. What have you tried that did not work out? > Please list out the

Re: udev rule, when RUN script is invoked?

2018-02-21 Thread Greg KH
On Wed, Feb 21, 2018 at 03:36:44PM -0800, Alexander Ivanov wrote: > Hi All, > > I have udev rule defined on a > > DEVPATH="/dev/mydev0",..., ACTION="remove", ..., RUN+="/path/to/script" > > When does /path/to/script is executed in respect to module's remove() and > exit() ? A module's

Re: Timekeeping warning during resume from suspend to disk

2018-02-19 Thread Greg KH
On Tue, Feb 20, 2018 at 12:53:26PM +0530, Ivid Suvarna wrote: > Hi All, > > Facing below warning backtrace during resume from suspend to disk. I > am using 4.1.15 freescale kernel. 4.1.15 is a kernel that is very old and obsolete (released almost 3 years ago, and tens of thousands of changes

Re: udev rule, when RUN script is invoked?

2018-02-22 Thread Greg KH
On Thu, Feb 22, 2018 at 08:44:20AM -0800, Alexander Ivanov wrote: > Greg, > > On Thu, 22 Feb 2018 08:56 +0100, Greg KH <g...@kroah.com> wrote: > > On Wed, Feb 21, 2018 at 03:36:44PM -0800, Alexander Ivanov wrote: > > > Hi All, > > > > > > I have u

Re: Year 2038 time set problem

2018-02-24 Thread Greg KH
On Sat, Feb 24, 2018 at 07:29:35PM +0530, techi eth wrote: > I am trying on 32 Bit micro board with ubifs file system with Linux Kernel > 4.1. And in your testing, did you find any problems? Also note that the 4.1 kernel is very old and obsolete and insecure, and should NOT be used for any

Re: udev rule, when RUN script is invoked?

2018-02-22 Thread Greg KH
On Thu, Feb 22, 2018 at 09:35:30AM -0800, Alexander Ivanov wrote: > > > > > On Thu, 22 Feb 2018 18:05 +0100, Greg KH <g...@kroah.com> wrote: > > On Thu, Feb 22, 2018 at 08:44:20AM -0800, Alexander Ivanov wrote: > > > Greg, > > > > > > On

Re: Security updates of Linux kernel

2018-02-26 Thread Greg KH
On Mon, Feb 26, 2018 at 05:49:42PM +0100, Bjørn Mork wrote: > Greg KH <g...@kroah.com> writes: > > > For a full description on this whole thing, please see this post where I > > describe how the kernel developers treat "security" bugs, and how to > >

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: 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: 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: 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: 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: 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: 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: 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: Question about memcpy

2018-07-10 Thread Greg KH
On Tue, Jul 10, 2018 at 12:50:21PM +0800, bing zhu wrote: > I agree !,just i think the problem is still there,memcpy is indeed faster in > kernel than in user,i've tried both ways . Make sure you are actually using the same code for memcpy in both places. Do not rely on your libc or the kernel

Re: [linux-3.12.19] - kernel panic observed

2018-07-10 Thread Greg KH
On Tue, Jul 10, 2018 at 12:08:25PM +0530, Sriram wrote: > Hi, > > I m working on linux-3.12.19 kernel. Wow that is old. And unsupported and obsolete and very very very insecure. Please work on updating to a newer kernel version that the community can help you out with (like 4.14 or 4.17). If

Re: Question about memcpy

2018-07-10 Thread Greg KH
On Tue, Jul 10, 2018 at 10:51:34PM +0800, bing zhu wrote: > Thank you ,I use this func for both kernel and user ,result are same. > void *memcpy(void *dest, const void *src, size_t n) > { > long d0, d1, d2; > asm volatile( > "rep ; movsq\n\t" > "movq %4,%%rcx\n\t" > "rep ; movsb\n\t" > : "=" (d0),

Re: Use of enums, why?

2018-07-11 Thread Greg KH
On Wed, Jul 11, 2018 at 10:30:28AM +0100, John Whitmore wrote: > I only learning the ropes, and might have missed the memo on the use of enums > so forgive me. I have looked at > https://www.kernel.org/doc/html/v4.10/process/coding-style.html#macros-enums-and-rtl > but that didn't answer my

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

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: Testing low level UART driver

2018-01-24 Thread Greg KH
On Wed, Jan 24, 2018 at 06:46:06PM +0530, Muni Sekhar wrote: > Hi All, > > Does Linux kernel tree has any standard utilities to test any low > level UART driver? What do you mean by "low level UART driver"? Have you tried one of the many different userspace serial port tools? Those are usually

Re: Testing low level UART driver

2018-01-24 Thread Greg KH
On Wed, Jan 24, 2018 at 08:43:56PM +0530, Muni Sekhar wrote: > On Wed, Jan 24, 2018 at 6:52 PM, Greg KH <g...@kroah.com> wrote: > > On Wed, Jan 24, 2018 at 06:46:06PM +0530, Muni Sekhar wrote: > >> Hi All, > >> > >> Does Linux kernel tree has any standard

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: Guidelines for Submitting an RFC PATCH

2018-03-13 Thread Greg KH
On Mon, Mar 12, 2018 at 03:48:52PM -0700, Joe Smith wrote: > Thanks, Greg and Valdis. > An RFC patch by definition is not intended for submission. In cases > where the design is involved and the developer needs early input, why > go through all the hassle. The community could say I do not like it

Re: Guidelines for Submitting an RFC PATCH

2018-03-14 Thread Greg KH
On Tue, Mar 13, 2018 at 08:52:01AM -0700, Joe Smith wrote: > By conformant I mean for example that it has to compile or if the > patch consists of a series of patches each patch applied individually > should compile. That is a lot of work for something that is just being > presented to ask for an

Re: Out-of-tree module build in a dedicated build directory.

2018-03-15 Thread Greg KH
On Thu, Mar 15, 2018 at 11:27:05AM -0400, Aruna Hewapathirane wrote: > On Thu, Mar 15, 2018 at 10:52 AM, Aruna Hewapathirane < > aruna.hewapathir...@gmail.com> wrote: > > > > > > >> > >> But the issue remain the same: > >> $ make > >> make -C /home/lexa/linux M=/home/lexa/module > >>

Re: Out-of-tree module build in a dedicated build directory.

2018-03-15 Thread Greg KH
On Thu, Mar 15, 2018 at 05:39:36PM +0100, Aleksei Fedotov wrote: > > If for some reason make modules did not create module.symvers then try: > > > > cd /home/lexa/linux > > make > > [wait a few minutes as it builds some scripts and starts building > > kernel code...] > >

Re: Driver as built-in instead of module

2018-03-16 Thread Greg KH
On Fri, Mar 16, 2018 at 01:23:38PM +0530, MUHAMMED ASAD P T wrote: > Hi, > > > > We need to add the driver as 'built in' in kernel. We had changed in kernel > configuration for our custom driver. But, when the kernel is booted up, it is > not calling the driver. what are the necessary steps

Re: What will happen if I kill a process which is waiting for the retuan ioctl() syscall?

2018-03-14 Thread Greg KH
On Wed, Mar 14, 2018 at 12:32:21PM -0400, valdis.kletni...@vt.edu wrote: > > > 4. How to keep the device's state consistent when we kill a process when > > > it > > > is invoking a system call? > > Sorry, I did not get your point. > > That's *totally* device dependent. The things a driver needs

Re: Out-of-tree module build in a dedicated build directory.

2018-03-15 Thread Greg KH
On Thu, Mar 15, 2018 at 01:14:57PM +0100, Aleksei Fedotov wrote: > Hello, > > I have a question regarding building of out-of-tree kernel modules in > separate build directory. > > I have a source tree containing two out-of-tree kernel modules which is spread > in two directories, module1 and

Re: Out-of-tree module build in a dedicated build directory.

2018-03-15 Thread Greg KH
On Thu, Mar 15, 2018 at 02:33:31PM +0100, Aleksei Fedotov wrote: > >> It looks like passing O= or KBUILD_OUTPUT= doesn't work for out of tree > >> modules. > > > It doesn't? It should, what is the result when you try to do that? > > It is trying to use path specified in O= as path to the

Re: Submitted patch, what to do next

2018-03-07 Thread Greg KH
On Thu, Mar 08, 2018 at 12:54:50AM +0800, haolee.swjtu wrote: > Hi, > > The upstream developers may reply to you in 1-3 days, so I think they have > ignored your patch. You can send it again. Please give the maintainers 1-2 weeks to get to a patch. After that it's safe to resend. Not 1-3 days,

Re: Guidelines for Submitting an RFC PATCH

2018-03-12 Thread Greg KH
On Mon, Mar 12, 2018 at 03:56:31PM -0400, valdis.kletni...@vt.edu wrote: > On Mon, 12 Mar 2018 12:26:38 -0700, Joe Smith said: > > I understand the guidelines for submitting a PATCH and they are quite > > rigorous. What about submitting an RFC, since RFC is just to get early > > comments do I have

Re: Building separate files for a kernel module

2018-04-05 Thread Greg KH
On Thu, Apr 05, 2018 at 11:49:36AM -0300, Martin Galvan wrote: > 2018-04-05 2:26 GMT-03:00 : > > On Wed, 04 Apr 2018 18:29:21 -0300, Martin Galvan said: > > > >> PS: Yes, I'm aware I could just add $(bar-objs) to mydriver-y and > >> avoid building bar.a, but I really need

Re: uart throughput

2018-04-05 Thread Greg KH
On Thu, Apr 05, 2018 at 10:08:14PM +0530, Muni Sekhar wrote: > Hi All, > > > I’ve an uart hardware implemented on Xilinx FPGA image and it connects > to host CPU(Intel based chip) on PCIe bus in Linux platform. > > > The following parameters were fixed or varied when measuring the UART >

Re: How can I disable compile optimization in kernel for friendly debugging, Thanks

2018-04-20 Thread Greg KH
On Fri, Apr 20, 2018 at 11:39:10PM +0800, Yubin Ruan wrote: > On 2018-04-19 13:28, valdis.kletni...@vt.edu wrote: > > On Thu, 19 Apr 2018 16:58:40 +0800, sizel said: > > > How can I disable compile optimization in kernel for friendly > > > debugging, Thanks > > > > First off, there are parts

Re: make olddefconfig cmd failing

2018-04-22 Thread Greg KH
On Sun, Apr 22, 2018 at 11:25:13PM +0530, Sumit Kumar wrote: > Hi Alex, > > Thanks a lot for the quick response. > > I installed flex and bison. Now the errors have gone away but there are > still some warnings: > > sumitsum@sumit-personal:~/Documents/linux_kernel/git/kernels/staging$ make >

Re: probe gets called without i2c device

2018-03-23 Thread Greg KH
On Fri, Mar 23, 2018 at 05:47:01PM +0530, MUHAMMED ASAD P T wrote: > Hi all, > > > > We didn't connect our i2c device with our board. But kernel driver > > subsystem calls the probe function from driver code. How to debug the > > issue. > > > > our observation is as follows, > > >

Re: Driver as built-in instead of module

2018-03-16 Thread Greg KH
On Fri, Mar 16, 2018 at 04:48:52PM +0530, MUHAMMED ASAD P T wrote: > Do you have a pointer to the source of your driver anywhere to see if it > even can be built into the kernel? > > > [Reply] For module, we use module_init(), I am looking for the kernel > functions for built-in driver.

Re: Year 2038 time set problem

2018-03-04 Thread Greg KH
On Sun, Mar 04, 2018 at 01:31:04PM -0500, valdis.kletni...@vt.edu wrote: > On Sun, 04 Mar 2018 06:59:46 +, tali.pe...@nuvoton.com said: > > It is not secure because it is not fixed for these issues: > > https://meltdownattack.com/ > > Note that saying "The CPU isn't vulnerable to

Re: Year 2038 time set problem

2018-03-04 Thread Greg KH
On Sun, Mar 04, 2018 at 03:20:48PM -0500, Ruben Safir wrote: > On 03/04/2018 01:31 PM, valdis.kletni...@vt.edu wrote: > > Note that saying "The CPU isn't vulnerable to Meltdown/Spectre, therefor > > the 4.1 kernel is OK" is *incredibly* wrong. > > > > For the record, since 4.1 came out, there's

Re: Year 2038 time set problem

2018-03-04 Thread Greg KH
On Sun, Mar 04, 2018 at 10:14:58PM -0500, Ruben Safir wrote: > Advice? Who am I to give advice? On the face of it, I would say they > need to harden the kernel base release. But I am not qualified to give > anyone advice. If a kernel can't be reasonably secure in a 2 year > period, as a

Re: Year 2038 time set problem

2018-03-04 Thread Greg KH
On Sun, Mar 04, 2018 at 11:16:40PM -0500, Ruben Safir wrote: > On 03/04/2018 11:07 PM, Alex Arvelaez wrote: > > easy: set up a cronjob to do it for you. > > no, it won't work. It requires supervision Then you are doing it wrong :) ___ Kernelnewbies

Re: Year 2038 time set problem

2018-03-04 Thread Greg KH
On Sun, Mar 04, 2018 at 05:25:41PM -0500, valdis.kletni...@vt.edu wrote: > On Sun, 04 Mar 2018 21:54:03 +0100, Greg KH said: > > > To be fair, the next 4.1.y release to come out in a few days should have > > almost all of these issues resolved. So as long as you are keeping y

Re: Year 2038 time set problem

2018-03-04 Thread Greg KH
On Mon, Mar 05, 2018 at 01:15:03AM -0500, Ruben Safir wrote: > On 03/05/2018 01:00 AM, Greg KH wrote: > > "How many security issues were those systems > > vulnerable to over that period of time? All of them." > > > So I'm understanding. And yet, the k

Re: Year 2038 time set problem

2018-03-05 Thread Greg KH
On Mon, Mar 05, 2018 at 03:35:24PM +, Alex Arvelaez wrote: > On Mar 5, 2018 6:30 AM, Bernd Petrovitsch wrote: > > > > On Mon, 2018-03-05 at 02:35 +, Alex Arvelaez wrote: > > [...] > > > Device makers don't love updating their devices, I don't see how you > > >

Re: Year 2038 time set problem

2018-03-05 Thread Greg KH
On Mon, Mar 05, 2018 at 07:20:35AM -0500, Ruben Safir wrote: > On 03/05/2018 06:29 AM, Bernd Petrovitsch wrote: > > And why should "we" (whoever that is) fix the problems of others? > > > > The upstream can't do anything directly if the downstream simply > > refuses to update (if there are fixes

Re: Year 2038 time set problem

2018-03-01 Thread Greg KH
On Thu, Mar 01, 2018 at 02:49:05PM +0530, techi eth wrote: > I am just trying to know why 4.1 kernel is insecure ? I have try to look > but not able to get right answer. > > Could you please give me hint or link. I only see it is going to EOL by May > 2018. > >

Re: Security updates of Linux kernel (was: Re: Year 2038 time set problem)

2018-02-26 Thread Greg KH
On Mon, Feb 26, 2018 at 04:24:34PM +0100, Piotr Figiel wrote: > Hi, > > 2018-02-26 15:16 GMT+01:00 Greg KH <g...@kroah.com>: > > On Mon, Feb 26, 2018 at 02:15:53PM +0100, Piotr Figiel wrote: > >> 2018-02-24 16:50 GMT+01:00 Greg KH <g...@kroah.com>: > >>

Re: Year 2038 time set problem

2018-02-27 Thread Greg KH
On Mon, Feb 26, 2018 at 01:19:41PM -0800, Dave Stevens wrote: > it makes me curious Greg. The little board *might* easily and lots of > other little boards *definitely will* be put into IoT gadgets for which > no updates are realistically available but whose owners will want to > use them as long

Re: Year 2038 time set problem

2018-02-26 Thread Greg KH
On Mon, Feb 26, 2018 at 02:15:53PM +0100, Piotr Figiel wrote: > Hi, > > 2018-02-24 16:50 GMT+01:00 Greg KH <g...@kroah.com>: > > Also note that the 4.1 kernel is very old and obsolete and insecure, and > > should NOT be used for any devices in the year 2038. > >

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: 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 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

<    3   4   5   6   7   8   9   10   11   12   >