Re: thread polling for timestamp on socket's error queue doesn't wake up

2017-11-10 Thread valdis . kletnieks
On Fri, 10 Nov 2017 14:39:00 -0200, Ricardo Biehl said: > I've notice that polling for timestamp in socket's error queue from a thread > that hasn't sended the packet results in not waking the polling thread when an > event arrives. That seems reasonable. Under what conditions would you want to

Re: Why replacing running executable file is forbidden, but overwriting of memory mapped shared object is allowed ?

2017-11-10 Thread valdis . kletnieks
On Fri, 10 Nov 2017 16:30:17 +0300, Lev Olshvang said: > But the attempt to replace shared object library succeeded, and I do not > understand the logic of this decision You might want to do an lsof after such an upgrade, and ponder what *really* happened. Hint 1: How do you do this in a way

Re: Why replacing running executable file is forbidden, but overwriting of memory mapped shared object is allowed ?

2017-11-10 Thread valdis . kletnieks
On Fri, 10 Nov 2017 21:04:22 +0300, Lev Olshvang said: > I am going to patch inode reference count of mapped shared libs Congrats. You just corrupted your file system. Hint 1: What happens if you decrement the count by one unnecessarily, and later on, probably during system shutdown, the

Re: Why replacing running executable file is forbidden, but overwriting of memory mapped shared object is allowed ?

2017-11-10 Thread valdis . kletnieks
On Fri, 10 Nov 2017 17:43:37 -0500, Ruben Safir said: > On 11/10/2017 12:49 PM, Jeffrey Walton wrote: > > Microsoft technology > > That is an oxymoron Given the number of systems running Microsoft products, it doesn't seem to be quite as much of an oxymoron as you think. Might want to spend

Re: Invoking a system call from within the kernel

2017-11-18 Thread valdis . kletnieks
On Sat, 18 Nov 2017 13:15:27 -0500, Demi Marie Obenour said: > However, the ioctl I actually want to implement (see above) does the > system call asynchronously. That isn’t possible using the existing > APIs. Ever consider that it's because there's no clear semantics to what executing an

Re: Invoking a system call from within the kernel

2017-11-18 Thread valdis . kletnieks
On Sat, 18 Nov 2017 14:09:31 -0500, Demi Marie Obenour said: > Only whitelisted system calls would be allowed, such as open(), read(), > and write(). Async getuid() would not be allowed. Nor would async > exit() or exit_group(). You missed the point - If you allow async calls, you need to deal

Re: mmap patch works in Virtualbox, not in QEMU

2017-11-19 Thread valdis . kletnieks
On Sun, 19 Nov 2017 11:25:57 +0300, Lev Olshvang said: > I downloaded Buidroot and buil QEMU x86_64 environment with kernel 4.9 > I applied my patch to mmap (added MAP_DENYWRITE for shared libraries) before > building kernel. Did you test to make sure that it doesn't apply that flag to mmap for

Re: kernel development cycle

2017-11-21 Thread valdis . kletnieks
On Wed, 22 Nov 2017 11:07:09 +1100, "Tobin C. Harding" said: > Hi, > > Would someone please be able to expound on the stages of the kernel > development cycle. > > In particular I would like to learn what a hobbyist kernel developer > should be focusing their attention on during different stages

Re: memory usage between kernel versions

2017-11-14 Thread valdis . kletnieks
On Tue, 14 Nov 2017 09:42:33 -0800, Mike Harless said: > 3.14 kernel: > 4c01-4c0d r-xp 00:0e 1177 /lib/libc-2.20-2014.11.so > Size:768 kB > Rss: 416 kB > Pss: 12 kB > > 4.9 kernel: > 4c01-4c0d r-xp 00:0e 1177

Re: Ask for the linux memory managment mailing list

2017-11-05 Thread valdis . kletnieks
On Sun, 05 Nov 2017 16:04:48 +0800, VOID 001 said: > Hi, > > I am looking for the way to subscribe to linux-mm mailing list, but > when I refer to http://vger.kernel.org/vger-lists.html I can not found > the mailing list named linux-mm, could anyone please point it out for > me? Thanks in advance.

Re: What's the exact difference between make silentoldconfig and oldconfig?

2017-11-09 Thread valdis . kletnieks
On Fri, 10 Nov 2017 09:26:52 +0800, Shiyao MA said: > Hi, > > The man help says, silentoldconfig is like oldconfig, but quietly and > additionally updates dependencies. > > 1. What does it mean by "quietly"? Basically, it will auto-select the "default" answer to any question (it's the one that's

Re: How inode of /proc. /sys keep the same number on a given system

2017-11-08 Thread valdis . kletnieks
On Wed, 08 Nov 2017 21:22:47 +0300, Lev Olshvang said: > Hello all, > > I observe that between reboot inode of files in /proc and /sys filesystem > keep the same number. > > I need to know whether I can rely on this in my program, and under what > conditions this assumption became incorrect? If

Re: how to hard hang the kernel from userspace?

2017-12-07 Thread valdis . kletnieks
On Thu, 07 Dec 2017 15:12:15 -0800, Daniel Walker said: > So typically you have a process which updates the watchdog periodically > which I call a petting process. As I said the purpose is to trigger the > watchdog by starving the petting process (i.e. kick process) , then the > watchdog reboots

Re: how to hard hang the kernel from userspace?

2017-12-07 Thread valdis . kletnieks
On Wed, 06 Dec 2017 16:32:26 -0800, Daniel Walker said: > and it works sometimes on UP, but it doesn't work on SMP. I also tried Thinking about *why* that hangs a UP should explain why it doesn't work on SMP. > adding in "taskset" to pin multiple version of the "yes" command to each > cpu in

Re: Any trick to remove a D-state dead process without rebooting?

2017-12-06 Thread valdis . kletnieks
On Wed, 06 Dec 2017 10:07:44 +0700, Mulyadi Santosa said: > If it is indeed coming from nfs mount, check if it is mounted in > synchronous mode, and try to switch to async. See if it made any differences Do note that async mode, due to how it works, *does* open a possibility of data loss - on a

Re: sched_child_runs_first doesn't work

2017-12-09 Thread valdis . kletnieks
On Sat, 09 Dec 2017 11:04:09 +0330, alireza sanaee said: > I think if it works in that way, it doesn't make sense at all Parent > and child ordering rules should preserve even on different cores! Find where in kernel/sched.c there's specific code to guarantee that if the child/parent is

Re: Public Kernel Development

2017-12-01 Thread valdis . kletnieks
On Fri, 01 Dec 2017 20:21:36 +, Chris Obbard said: > The drivers I’m releasing probably don’t belong in the kernel Again: Why are you saying that? It wouldn't be the first time we carried a driver for an uncommon device (heck, we carried an entire *architecture* for several years for a

Re: kernel image path

2018-05-08 Thread valdis . kletnieks
On Wed, 09 May 2018 00:37:42 +0530, Sumit Kumar said: > Thanks Valdis. I checked /lib/modules directory. It had a lot of > subdirectories - one for each kernel build I guess, each one around 4GB. > I have removed some of the older one's with "rm" cmd. I hope it doesn't > break grub. Grub doesn't

Re: Is this maintainers list up to date ?

2018-05-08 Thread valdis . kletnieks
On Wed, 09 May 2018 00:31:45 +0530, Sumit Kumar said: > Can someone please confirm if this maintainer's list if up to date : > https://github.com/torvalds/linux/blob/master/MAINTAINERS It's only as up to date as github's copy of the tree. (in other words, everything in that tree will be the same

Re: kernel image path

2018-05-07 Thread valdis . kletnieks
On Tue, 08 May 2018 00:45:25 +0530, Sumit Kumar said: > Sorry, there is a typo : I meant make -jX in a kernel sandbox. The same place it puts it if you don't use -jX. The exact answer will depend on what sort of sandbox you're using, and how exactly you're setting things up, and what system(s)

Re: Compiler lacks asm go-to support

2018-05-07 Thread valdis . kletnieks
On Tue, 08 May 2018 01:11:51 +0530, Bhanusree Pola said: > I have cloned kernel from > git clone -b staging-testing > git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging > while configuring the following error is shown > > arch/x86/Makefile:184: *** Compiler lacks asm-goto support..

Re: kernel image path

2018-05-07 Thread valdis . kletnieks
On Tue, 08 May 2018 03:12:31 +0530, Sumit Kumar said: > My local kernel repository size has inflated to around 14 GB after > building kernel a few times. I was wondering if it keeps previous images > as well which could be taking a lot of disk space. Not sure what you mean by "local kernel

Re:

2018-05-08 Thread valdis . kletnieks
On Tue, 08 May 2018 06:10:08 -, Vishnu Gopinath said: > new in the field of linux kernal... how to start..from where to start https://lists.kernelnewbies.org/pipermail/kernelnewbies/2017-April/017765.html pgp5TA46ArD7a.pgp Description: PGP signature

Re: Fwd: New to the Kernel Newbie

2018-05-21 Thread valdis . kletnieks
On Mon, 21 May 2018 14:54:20 +0530, Janakiramireddy Tamma said: > I am completely new to the kernel newbie, can some one help me where can I > get started. https://lists.kernelnewbies.org/pipermail/kernelnewbies/2017-April/017765.html ___

Re: Userspace starving kernel threads for CPU cycle.

2018-06-08 Thread valdis . kletnieks
On Fri, 08 Jun 2018 16:49:48 -0500, Àbéjídé Àyodélé said: > I have a machine with 80 cores and I had a burst of requesting more cpu > period than the available number of CPUs, my guess was that this resulted > in starvation for the kernel threads, is my guess plausible or do kernel > threads get

Re: Main Linux kernel vs Ubuntu kernel

2018-06-10 Thread valdis . kletnieks
On Sat, 09 Jun 2018 17:17:45 +0530, Subhashini Rao Beerisetty said: > 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: Userspace starving kernel threads for CPU cycle.

2018-06-08 Thread valdis . kletnieks
On Fri, 08 Jun 2018 23:05:33 -0500, Àbéjídé Àyodélé said: > rcu_sched detected stalls on CPUs > Sending NMI from CPU 43 to CPUs 14 > watchdog: BUG: soft lockup - CPU#26 stuck for 22s [migration/54:335] > ixgbe :19:00.1 eno2: initiating reset due to tx timeout The BUG should have caused a

Re: Will RT patches be merged in main line?

2018-05-28 Thread valdis . kletnieks
On Mon, 28 May 2018 15:04:41 -0300, "Daniel." said: > Does the RT patches have been merged in the main line? or, They will > be merged at all? Much of it has already been merged, the patchset used to be like 3-4 times the size it is now. > The main benefit of RT kernel is that decreases the

Re: Will RT patches be merged in main line?

2018-05-28 Thread valdis . kletnieks
On Mon, 28 May 2018 21:09:34 -0400, Demi Obenour said: > Could the patch be enabled by a kconfig option? Something like > CONFIG_PREEMPT? The first question to be asked *should* be: Do I actually need this, or am I just trying it because somebody said it's the cool thing to do?

Re: develoment workflow: how to avoid duplicate work ?

2018-05-28 Thread valdis . kletnieks
On Mon, 28 May 2018 23:07:06 -0400, Hugo Lefeuvre said: > Did I miss something ? Is there a specific place where I can coordinate > with the rest of the kernel dev community and make people aware I'm > working on this particular issue ? (apart from the bug tracker, which > doesn't seem to be very

Re: Is there mailist about LSM

2018-05-30 Thread valdis . kletnieks
On Wed, 30 May 2018 19:35:45 +0200, Greg KH said: > Really? I just got email from it a few minutes ago: Gaah. Last in my mail folder is from then, and then I hit the archive listed on vger (pointing at spinics) *also* popped up stuff from 2015... pgpcinmiOiI34.pgp Description: PGP signature

Re: Is there mailist about LSM

2018-05-30 Thread valdis . kletnieks
On Wed, 30 May 2018 11:13:31 -0700, Alexander Ivanov said: > > There's some support for one "large" LSM and a "trivial" one like yama. > > What this some support would be then? Basically, there's a pointer for an LSM-private blob, and no support for a chain of blobs. > Suppose I have stateless

Re: Is there mailist about LSM

2018-05-30 Thread valdis . kletnieks
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 that implies the system was up without the LSM loaded - at which point somebody can have tampered with whatever labelling the LSM uses.

Re: Is there mailist about LSM

2018-05-30 Thread valdis . kletnieks
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 active in May 2016 or so. linux-ker...@vger.kernel.org would be another place to try.

Re: develoment workflow: how to avoid duplicate work ?

2018-05-30 Thread valdis . kletnieks
On Tue, 29 May 2018 22:56:57 -0400, Hugo Lefeuvre said: > For example the TODO entry at line 876: If pi433_release() is > called while pi433_ioctl() is executing between lines 879 and > 880, we might perform a NULL pointer dereference, right ? Yes, no, maybe. That's what kernel locks are for.

Re: Is there mailist about LSM

2018-05-30 Thread valdis . kletnieks
On Wed, 30 May 2018 21:09:59 +0300, Ozgur Kara said: > I think the list is active but the archive has not been kept since 2015. > Please visit: > > https://www.mail-archive.com/linux-security-module@vger.kernel.org/ Somebody needs to fix the info on vger that points to spinics then ;)

Re: [PATCH] staging: pi433: add rw semaphore fixing concurrency issues

2018-06-01 Thread valdis . kletnieks
On Fri, 01 Jun 2018 08:50:37 -0400, Hugo Lefeuvre said: > @@ -805,9 +809,11 @@ pi433_read(struct file *filp, char __user *buf, size_t > size, loff_t *f_pos) > if (bytes_received > 0) { > retval = copy_to_user(buf, device->rx_buffer, bytes_received); > if

Re: a Linux device driver

2018-06-04 Thread valdis . kletnieks
On Mon, 04 Jun 2018 15:49:37 -0700, Abu Rasheda said: > Any recommendations what device driver is missing and open source > community could benefit from a new driver or enhance some existing driver? Short answer: One that you have the hardware for so you can actually test your code. Nobody

Re: develoment workflow: how to avoid duplicate work ?

2018-06-04 Thread valdis . kletnieks
On Mon, 04 Jun 2018 18:31:31 -0400, Hugo Lefeuvre said: > Do you mean that the ioctl/read/write call increments the reference > count in this case ? It would mean that these syscalls aren't really > using passed FD but instead create duplicates to make sure the open > file description won't be

Re: develoment workflow: how to avoid duplicate work ?

2018-06-05 Thread valdis . kletnieks
On Tue, 05 Jun 2018 10:20:16 -0400, Hugo Lefeuvre said: > Thanks. I think I'll have to read the source code to fully understand > what happens. Do you know what piece of code handles this reference > duplication ? It's not duplication, it's increment/decrement of a counter. Look for functions

Re: a Linux device driver

2018-06-05 Thread valdis . kletnieks
On Tue, 05 Jun 2018 13:51:54 -0700, Abu Rasheda said: > right now, I am in a mood to write a driver, not testing :) Can you, in a few sentences, explain why the Linux community wants a driver written by somebody who wanted to write a driver but didn't want to do the testing needed to ensure it

Re: develoment workflow: how to avoid duplicate work ?

2018-06-04 Thread valdis . kletnieks
On Mon, 04 Jun 2018 05:33:03 +0200, Valentin Vidic said: > On Sun, Jun 03, 2018 at 06:25:56PM -0400, Hugo Lefeuvre wrote: > > The vfs documentation states: release() is "called when the last > > reference to an open file is closed". > > > > Let's say we have a program with threads T1 and T2. > >

Re: clk: timestamps

2018-06-27 Thread valdis . kletnieks
On Tue, 26 Jun 2018 19:44:21 +0530, Subhashini Rao Beerisetty said: > I’ve N number of Linux machines in the network with the same software > running. Basically I need to collect the timestamps in kernel mode in all > the machines and then compare, which(either CLOCK_REALTIME or >

Re: Question about watchdog

2018-07-02 Thread valdis . kletnieks
On Sun, 01 Jul 2018 20:44:29 +0800, bing zhu said: > say use kthread_create func ,my question is :how can i make this thread to > run on a cpu and never get switched or scheduled , there is a > while(1).structure in that thread i need it to do work That's almost certainly a result of a poor

Re: is there any more to having a single interrupt drive multiple handlers than IRQF_SHARED?

2017-10-26 Thread valdis . kletnieks
On Thu, 26 Oct 2017 16:32:42 -0400, "Robert P. J. Day" said: > now, i do realize that it can be used along with a unique dev_id > values to isolate a *particular* handler amongst a group of handlers, > but if one simply wants to trigger *all* handlers registered for that > interrupt, is there

Re: building debug version of klibc

2017-12-30 Thread valdis . kletnieks
On Sat, 30 Dec 2017 15:27:17 +0300, Anatoly Pugachev said: > I'm using / testing a git kernel upstream on my hardware (sparc64 / > ppc64 / ia64 ). > Only this time, installing latest git kernel, I get a sigserv on > sparc64 from klibc utility (fstype), and posted about it to mailing > list. > So,

Re: building debug version of klibc

2017-12-30 Thread valdis . kletnieks
On Sat, 30 Dec 2017 15:05:46 +0300, Anatoly Pugachev said: > On Sat, Dec 30, 2017 at 3:00 PM, wrote: > > On Sat, 30 Dec 2017 13:54:05 +0300, Anatoly Pugachev said: > >> Hello! > >> > >> Can someone please help me in building debug version of klibc ? > >> > >> I've cloned

Re: building debug version of klibc

2017-12-30 Thread valdis . kletnieks
On Sat, 30 Dec 2017 13:54:05 +0300, Anatoly Pugachev said: > Hello! > > Can someone please help me in building debug version of klibc ? > > I've cloned git://git.kernel.org/pub/scm/libs/klibc/klibc.git , but > failed to build it with debug info > > added "-g" to HOSTCFLAGS in Makefile, but Hint:

Re: Help

2018-01-06 Thread valdis . kletnieks
On Sat, 06 Jan 2018 17:44:46 +0100, Farouk Maâboudallah said: > I'm new here with you guys. I have been using Linux for 6 months ... And > now I'm looking forward to develop and improve my skills. > I'm a student in digital mechanics which means developing, programming and > simulating in

Re: Help! Can't subscribe kernel mail list

2018-01-10 Thread valdis . kletnieks
On Wed, 10 Jan 2018 09:57:06 +0100, Greg KH said: > 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

Gmail and mailing list (was Re: Regarding Linux kernel vs Android

2018-01-16 Thread valdis . kletnieks
On Tue, 16 Jan 2018 22:15:39 +0530, inventsekar said: > PS - when I send mail to this DL, I thought I would receive my own > mail(similar to Google groups DL), as I am already member of the DL, but I > am not getting my own mail, so I get confusion whether my mail was sent or > not. On the

Re: About File systems magic numbers

2018-01-17 Thread valdis . kletnieks
On Wed, 17 Jan 2018 21:35:13 +0530, inventsekar said: > On the header file, it defines the fs magic number as > #define UX_MAGIC 0x58494e55 > > 1. which means, will it assign this magic number to ALL files created on > this sample fs? That can't be so. Otherwise, why we need to define a magic >

Re: Efficient management of emails

2018-01-15 Thread valdis . kletnieks
On Mon, 15 Jan 2018 14:49:46 +0100, Greg KH said: > So find the workflow that works best for you, the one that works best > for me, probably doesn't work for anyone else :) Amen. I'm probably the only person who manages linux-kernel mail with fetchmail/procmail/exmh. ;) pgp91sBPSx_ex.pgp

Re: migrate_pages internals: lazy copy

2018-01-19 Thread valdis . kletnieks
On Fri, 19 Jan 2018 13:57:18 -0500, Karaoui mohamed lamine said: > > Does the "migrate_pages" syscall migrate memory pages in a *lazy* manner? > if not, is there another syscall or patch that does it? man 2 migrate_pages says: RETURN VALUE On success migrate_pages() returns the number

Re: list of all subsystems (swap space)

2018-01-19 Thread valdis . kletnieks
On Fri, 19 Jan 2018 21:04:32 +0530, inventsekar said: > 1. so I tried to find out which subsystem the swap space comes under.. There's nothing for swap in particular. The decision of what pages to move out of memory is in the code under mm/ (memory management). The actual I/O to/from a swap

Re: Linux Kernel contains only C code?

2018-01-25 Thread valdis . kletnieks
On Fri, 26 Jan 2018 12:28:38 +0530, inventsekar said: > 1. May i know, other than C language, is there any other programming > language is/are used inside Linux Kernel?!?! > is there any c++, Perl, python programs are used for peculiar tasks inside > Linux Kernel?!?! Some of the userspace

Re: Linux Kernel contains only C code?

2018-01-26 Thread valdis . kletnieks
On Fri, 26 Jan 2018 05:53:20 -0500, Ruben Safir said: > On 01/26/2018 02:20 AM, Larry Chen wrote: > > I have never seen c++, perl or python code in kernel source tree. > > Imagine that, if kernel relies on perl, python or other 3rd-party code, > > will it cause nested or mutual dependency issues?

Re: Kernelupdate

2018-01-26 Thread valdis . kletnieks
On Fri, 26 Jan 2018 14:07:08 +0100, "Frank Smith" said: > 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 available like 4.14.15. > > I

Re: Mark dma buffer readonly

2018-01-31 Thread valdis . kletnieks
On Wed, 31 Jan 2018 19:49:29 +0530, Saket Sinha said: > As per ldd3 , Chapter 15 - "The DMA controller is a shared resource, > and confusion could arise if more than one > processor attempts to program it simultaneously. For that reason, the > controller is protected by a spinlock, called

Re: Linux Kernel contains only C code?

2018-02-01 Thread valdis . kletnieks
On Thu, 01 Feb 2018 11:37:26 -0500, Aruna Hewapathirane said: > Somethings are not so obvious like what could possibly be a *.y file or > *.tc file ? If you type in find -name "*.y" in my case i see: > > aruna@debian:~/linux-4.15$ find -name "*.y" > Now if I pass that to the 'file' command ... >

Re: Mark dma buffer readonly

2018-01-31 Thread valdis . kletnieks
On Thu, 01 Feb 2018 00:15:03 +0530, Rohan Puri said: > See basic difference between mutex and spinlock is, the former puts the > thread waiting on the lock to sleep and later does a busy wait. > Since the nth bit is set every X ms, I think sleeping and waking up would > turn out to be costly

Re: map DMA buffer with dma engine in another device ?

2018-02-07 Thread valdis . kletnieks
On Wed, 07 Feb 2018 16:15:12 +0200, Ran Shalit said: > On viewing PCI driver, I see that dma buffer are allocated even while > the dma engine is actually in the EP device. > Is there any sense in doing this ? If the buffers weren't allocated by the PCI driver, where would the dma engine in the

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

2018-02-08 Thread valdis . kletnieks
On Thu, 08 Feb 2018 23:38:01 +0530, Neil Thomas said: > I am just a beginner. I have tried procfs, Netlink socket to communicate > between user space and kernel space and it works fine. > > I am developing a monitoring utility to trace the VFS operation and find > the frequency of VFS function

Re: newbie

2018-02-09 Thread valdis . kletnieks
On Fri, 09 Feb 2018 23:01:52 +0530, yash omer said: > Hello, > Please guide me how to follow with mailing list Well, hopefully you managed to get subscribed to the list. After that, following the list is just that - read the emails as they come in. If your *actual* question is "what do I do

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

2018-02-12 Thread valdis . kletnieks
On Mon, 12 Feb 2018 12:48:11 -0500, Demi Obenour said: > 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. It helps if you help identify things for those who haven't been deeply involved. Are these IP

Re: newbie

2018-02-09 Thread valdis . kletnieks
On Fri, 09 Feb 2018 21:01:10 +0300, Ozgur said: > I want to get rid of maintainer, mail directly Linus or Greg. I don't > recommend > at all, it's dangerous area :) It's also not scalable. 16,223 commits between v4.14 and v4.15. 50 weekdays (assuming a week off at Christmas). With 8 hour

Re: Decoding Stack from kernel OOPS message

2018-02-13 Thread valdis . kletnieks
On Tue, 13 Feb 2018 14:47:32 +0300, "Matwey V. Kornilov" said: > Well, It is not clear to me. First, what is the purpose to dump the > stack? Second, when I use gdb with ordinary user-space applications, > then for every execution step I can do commands to print variables or > expressions. It is

Re: ftrace events: parameter tracing

2018-02-14 Thread valdis . kletnieks
On Wed, 14 Feb 2018 19:39:31 +0100, Christof Warlich said: > program. E.g., recording the the start and the end of any open* system > call while running ls /: > > # trace-cmd record --stderr  -e syscalls:sys_enter_open* -e > syscalls:sys_exit_open* -c -F ls / 2>/dev/null Bonus hint: ls

Re: ftrace events: parameter tracing

2018-02-14 Thread valdis . kletnieks
On Wed, 14 Feb 2018 19:39:31 +0100, Christof Warlich said: > Unfortunately, although ftrace prints the filename's address for each > file being opened, I could not seen any way to obtain the filenames > themselves. > > Any ideas on how to get hold of the filenames would be great, thanks.

Re: ftrace events: parameter tracing

2018-02-14 Thread valdis . kletnieks
On Wed, 14 Feb 2018 20:26:01 +0100, Christof Warlich said: > record the build's dependencies. On subsequent runs of the build, these > depencencies could then be used to decide which compoments must be > rebuilt due to changed dependencies. Doesn't "make" already do what you want? Oh, wait...

Re: I'd like to contribute but I don't know how...

2018-02-21 Thread valdis . kletnieks
On Thu, 22 Feb 2018 02:33:08 +, Alex Arvelaez said: > Hello, > > I'd like to contribute to the linux kernel eventually but I'm not sure https://lists.kernelnewbies.org/pipermail/kernelnewbies/2017-April/017765.html > how, I grabbed a copy of the source code and I found a FIXME that looks >

Re: Kconfig in external modules

2018-02-22 Thread valdis . kletnieks
On Thu, 22 Feb 2018 10:06:43 -0300, Gustavo Leite said: > when I run the usual command to build external module > > $ make -C /lib/modules/`uname -r`/build M=/path/to/module modules > > the options present in the local .config file would be exported by kbuild as C > #define's and make

Re: Invalid module format

2018-02-23 Thread valdis . kletnieks
On Sat, 24 Feb 2018 10:29:33 +1100, "Tobin C. Harding" said: > (For the record I happened to be trying to learn about linux-next myself > this morning and built a kernel that just goes into a reboot loop > without even getting to the grub menu. OK, I'll bite - how can the kernel go into a reboot

Re: Block packets from other device connected to wifi

2018-02-16 Thread valdis . kletnieks
On Fri, 16 Feb 2018 23:09:19 +0530, Tarun Batra said: > I have a device A and device B and both are connected to router R. > I have a driver code running on router R, what I want is as of now, I don't > want device A to be able to ping device B. Is it 'ping' specifically? Or any packets? Does

Re: Block packets from other device connected to wifi

2018-02-16 Thread valdis . kletnieks
On Fri, 16 Feb 2018 22:08:10 +0530, Tarun Batra said: > i have a device connected to wifi, what i want is to block packets from a > mac address of other device, i have to write driver for same, should i use > netfilter for same. Not sure why this is a kernel issue. iptables -A input -m mac

Re: sound driver reference

2018-02-23 Thread valdis . kletnieks
On Fri, 23 Feb 2018 21:11:37 +0530, Muni Sekhar said: > I’ve an audio hardware with eight audio engines and it supports > “PCM/I2S Inputs , PCM/I2S Outputs, ADC (Analogue Line Inputs), DAC > (Analogue Line Outputs), Digital Microphone” interfaces. All these > interfaces are implemented on

Re: Invalid module format

2018-02-21 Thread valdis . kletnieks
On Thu, 22 Feb 2018 02:42:23 +0530, Srishti Sharma said: > When I try to boot into the same kernel, my system reboots. What should I do > so that I am able to boot into it everytime ? Boot into *which* "same kernel"? The linux-next kernel or the one you had originally? As to what you should

Re: Kconfig in external modules

2018-02-22 Thread valdis . kletnieks
On Thu, 22 Feb 2018 11:13:09 -0300, Gustavo Leite said: > Well, I'm new to module programming and I'm interested in academic research on > NUMA balancing techniques. This module is where I intend to test new ideas and > it is definitely not ready for merging upstream. This is the reason it will >

Re: Year 2038 time set problem

2018-02-23 Thread valdis . kletnieks
On Fri, 23 Feb 2018 15:13:30 +0530, techi eth said: > Which Linux kernel version have Year 2038 problem solved for Linux running > on 32 Bit system. > > https://en.wikipedia.org/wiki/Year_2038_problem Did you read references 15 through 17 on that page? Also, the answer isn't a strict "Linux

Re: Year 2038 time set problem

2018-02-24 Thread valdis . kletnieks
On Sat, 24 Feb 2018 19:29:35 +0530, techi eth said: > I am trying on 32 Bit micro board with ubifs file system with Linux Kernel > 4.1. Is this board something that has a realistic expectation of still being in use in 2038? What's making you worry about 2038 issues? I'm willing to bet that the

Re: Invalid module format

2018-02-24 Thread valdis . kletnieks
On Sun, 25 Feb 2018 13:34:41 +1100, "Tobin C. Harding" said: > On Fri, Feb 23, 2018 at 10:06:14PM -0500, valdis.kletni...@vt.edu wrote: > > OK, I'll bite - how can the kernel go into a reboot loop that doesn't get > > to the > > grub menu? (Hint: How does your system get from the BIOS splash

Re: Sharing memory between two kernel module - Better approach

2018-08-02 Thread valdis . kletnieks
On Thu, 02 Aug 2018 23:12:23 +0530, Abhinav Misra said: > I want to know is there any alternative for sharing the memory between two > modules. Why are two modules trying to share memory? In general, each module should be managing its own data objects. If two modules need to share, maybe it

Re: First patch

2018-08-03 Thread valdis . kletnieks
On Thu, 02 Aug 2018 23:49:03 +0200, Arkadiusz Lis said: > From 231fa77d595536cdaacf364b02dd64fd45a6adc4 Mon Sep 17 00:00:00 2001 > From: Arkadiusz Lis > Date: Thu, 2 Aug 2018 23:38:17 +0200 > Subject: [PATCH] Staging: One Laptop Per Child: fix coding style and license > issues One thing per

Re: How to unwind stack to seek for specific caller?

2018-08-03 Thread valdis . kletnieks
On Fri, 03 Aug 2018 15:14:45 +0300, Lev Olshvang said: > But I need to find out whether my function y() was called from linux kernel > function x().\ What problem are you trying to solve? If it's your function, don't you already *know* which functions call it? And if being called from code A

Re: Need Suggestions

2018-07-25 Thread valdis . kletnieks
On Thu, 26 Jul 2018 03:07:27 +0530, Himanshu Jha said: > Now, this part of section is really important and somehow if you think > you really learnt C well in the course offered at University. Then > please take a look at implicit conversions: > https://en.cppreference.com/w/c/language/conversion

Re: Problem of compiling linux2.6.11.12 kernel

2018-08-05 Thread valdis . kletnieks
On Mon, 06 Aug 2018 01:10:40 +0800, "He Huanyu" said: > linux 4.16.9-1-ARCH > gcc (GCC) 8.1.1 20180531 > GNU ld (GNU Binutils) 2.30 > And I get a problem like this, don't know if it is because of the version of > gcc or ld: The problem is the version of Linux. 2.6.11 probably won't build with

Re: virtual address space allocation

2018-08-01 Thread valdis . kletnieks
On Tue, 31 Jul 2018 15:41:28 +0200, Babis Chalios said: > I am working on the runtime system of a distributed memory programming > language. For some reason we need to create a big hole on the address space of > the application. We are trying to do so by using an mmap during the > initialization

Re: A question on the function clean_bdev_bh_alias

2018-08-10 Thread valdis . kletnieks
On Fri, 10 Aug 2018 22:48:43 +0800, "Larry" said: > Does it intend to remove existent pages in block device's page cache > if some new page cache of a vfs file was created whose block number > range has overlaps with its block device page cache? That's a situation you *really* hope doesn't

Re: System call vs POSIX call

2018-08-16 Thread valdis . kletnieks
On Thu, 16 Aug 2018 16:29:29 -, Nicholas Mc Guire said: > Note that you can do system calls directly with system() but that is > generaly not how you do it - you to through the glibc calls > which do some checks before invoking the actual system call. system() does a fork/exec of a process.

Re: Need Suggestions

2018-07-18 Thread valdis . kletnieks
On Wed, 18 Jul 2018 14:29:41 -0700, Dave Stevens said: > On Wed, 18 Jul 2018 18:19:05 -0300 "Daniel." wrote: > > > > Hi Athul... > > > This is my collegemate's writing, ... This will solve all your > > > confusions > > > > > is it the policy on this list to trim? Only the irrelevant parts,

Re: Need Suggestions

2018-07-18 Thread valdis . kletnieks
On Wed, 18 Jul 2018 22:16:07 -0300, "Daniel." said: > Sorry. Do I did something bad? I wasn't intended to.. I didn't think that > trimming was a bad idea, I just want to reinforce the book suggestion ... > Sorry It's OK.. just remember to trim out the non-important stuff next time. :)

Re: Netpoll APIs

2018-07-17 Thread valdis . kletnieks
On Tue, 17 Jul 2018 18:35:15 +0530, jitendra kumar khasdev said: > Can netpoll apis send data over the internet. It worked for me in local > network but when I try to send data over server which is in cloud not able > to send it. > > Can anybody help me out ? If it works over the local net, time

Re: Need Suggestions

2018-07-17 Thread valdis . kletnieks
On Tue, 17 Jul 2018 21:10:05 -0700, Dave Stevens said: > $ make help > make: *** No rule to make target 'help'. Stop. Were you cd'ed into the directory that had the base of the kernel source tree? Hint: the directory should look something like this: [/usr/src/linux-next] ls COPYING

Re: Need Suggestions

2018-07-15 Thread valdis . kletnieks
On Sat, 14 Jul 2018 22:07:12 +0400, oz...@goosey.org said: > LFS is a good places to prepare a new linux distribution and have fun as you > talk about :) Note that *building* a LFS system is a bit of work. Properly *maintaining* an LFS system is an ongoing *ton* of work. Basically, you end up

Re: newly add MAP_SYNC flag to mmap

2018-07-16 Thread valdis . kletnieks
On Tue, 17 Jul 2018 00:57:31 -, David Frank said: > I installed LTS 18.04 with headers.  I'm trying to use the new flag MAP_SYNC > with mmap call, but it complained MAP_SYNC undefined.What #define do I need to > enable this? You need more than a #define. You need a 4.15 kernel and matching

Re: undefined reference to `__divdi3'

2018-07-23 Thread valdis . kletnieks
On Sun, 22 Jul 2018 17:48:21 +0530, Himanshu Jha said: > I am currently working on my GSoC project and while testing through > 0-day test service, I hit the following error: >424 static u32 bme680_compensate_gas(struct bme680_data *data, u16 > gas_res_adc, >425

Re: Synaptics Driver Problem

2018-07-23 Thread valdis . kletnieks
On Mon, 23 Jul 2018 19:29:17 +0400, o...@goosey.org said: > So synaptics is not working, I want to write a driver for synaptics. > Can I modify a generic synaptics driver? Step 0 should be to figure out *why* the generic driver isn't working, because you'll need that information to fix the

Re: link_path_walk/dentry_path_raw TOCTTOU race question

2018-07-24 Thread valdis . kletnieks
On Tue, 24 Jul 2018 16:59:27 -0400, riya khanna said: > I'm trying to understand what prevents TOCTTOU race conditions in > dentry_path_raw > and link_path_walk? What happens when somebody points a symlink path > component from a dir that has the attacker is allowed to read to a dir that > they

Re: newly add MAP_SYNC flag to mmap

2018-07-16 Thread valdis . kletnieks
On Tue, 17 Jul 2018 02:15:17 -, David Frank said: > inking. I'm checking out if the flag does what is is said to do-- I don't > have > to call msync function, which would boost performance. Note that this can actually *kill* performance, because this means that the kernel has to flush to

Re: suggestions for good in-kernel examples of simple ethernet/PHY drivers?

2018-08-30 Thread valdis . kletnieks
On Thu, 30 Aug 2018 13:27:13 -0400, "Robert P. J. Day" said: > i'm already looking at that, but what i wanted was an example of an > existing, physical driver that shows how simple the design can be (if > such a thing exists). For some reason, engineers building network devices almost never

<    4   5   6   7   8   9   10   11   >