Re: Question about watchdog

2018-07-09 Thread valdis . kletnieks
On Mon, 09 Jul 2018 09:30:51 -0400, Ruben Safir said: > On 07/08/2018 04:44 PM, valdis.kletni...@vt.edu wrote: > > Error while parsing statement., What is a "filesystem bus" and when does it > > issue a HW interrupt? > You have a hard drive on the system bus and it sends interupts... That's prob

Re: Question about memcpy

2018-07-09 Thread valdis . kletnieks
On Mon, 09 Jul 2018 19:34:44 +0530, Himanshu Jha said: > I think for these benchmarking stuff, to evaluate the cycles and time > correctly you should use the __rdtscp(more info at "AMD64 Architecture > Programmer’s Manual Volume 3: General-Purpose and System Instructions" > Pg 401) Just beware

Re: Question about watchdog

2018-07-08 Thread valdis . kletnieks
On Sun, 08 Jul 2018 15:46:32 -0400, Ruben Safir said: > What are you saying? That is the filesystem bus sends a HW interupt on Error while parsing statement., What is a "filesystem bus" and when does it issue a HW interrupt? pgpAXjJvARBym.pgp Description: PGP signature ___

Re: Regarding Signing Linux kernel with Microsoft secure boot keys for UEFI

2018-07-08 Thread valdis . kletnieks
On Sun, 08 Jul 2018 11:21:08 +0530, inventsekar said: > I read this page few times but I am unable to understand what's Linus's > idea..Why he disagree ... > whether the Linux kernel should include code that makes it easier to boot > Linux on Windows PCs. The issue is "trusted boot", and it doesn

Re: Question about memcpy

2018-07-07 Thread valdis . kletnieks
On Sat, 07 Jul 2018 19:36:47 +0800, bing zhu said: > and in user space i do the same thing,I noticed that kernel is faster than > user , How did you measure the times? Doing this right is actually harder than it looks... pgpT3oFpml7qt.pgp Description: PGP signature

Re: Fwd: How to change page permission from inside the kernel?

2018-07-06 Thread valdis . kletnieks
On Sat, 07 Jul 2018 01:31:45 +0200, Ahmed Soliman said: > > You missed the point - your protection can be bypassed without manipulating > > a ROE page. > Changing the virtual memory pointer table is ok but again these memory > mappings will never > make it to the TLB and will be caught during by K

Re: Fwd: How to change page permission from inside the kernel?

2018-07-06 Thread valdis . kletnieks
On Fri, 06 Jul 2018 23:59:30 +0200, Ahmed Soliman said: > ROE can be enabled by the guest kernel and once enabled the hypervisor > will make sure it never gets disabled again, so if even if the kernel > decided to modify a paged that has ROE, it can't without a reboot. So in essence, you're willi

Re: How to change page permission from inside the kernel?

2018-07-06 Thread valdis . kletnieks
On Fri, 06 Jul 2018 21:29:40 +0200, you said: > Implementing some kernel protection against subset of rootkits that > manipulates kernel static data (memory pages as well as their > mappings) by having them enforced by hypervisor which is KVM in our Can you give an actual example of a case where

Re: How to change page permission from inside the kernel?

2018-07-06 Thread valdis . kletnieks
On Fri, 06 Jul 2018 20:06:29 +0200, Ahmed Soliman said: > I have a memory page allocated with mmap() from user space, This > address is passed to some kernel module (kvm_intel to be specific) and > i want to know how can I change the page permission from inside there > My goal is to achieve somethi

Re: Leaving I/O pressure with memory!? How to do it?

2018-07-06 Thread valdis . kletnieks
On Fri, 06 Jul 2018 08:26:52 -0300, "Daniel." said: > I'll try using a disk on memory (residing on a tmpfs mount) for improving > this. Good idea! Of course, actually getting the data *onto* the tmpfs will involve a lot of I/O, and it doesn't really fix the problem (just moves it around) unless

Re: Leaving I/O pressure with memory!? How to do it?

2018-07-05 Thread valdis . kletnieks
On Thu, 05 Jul 2018 19:30:22 -0300, "Daniel." said: > Sometime we have a machine that we work on and that is really really slow > when doing I/O. I know that kernel will use memory to avoid doing I/O, and > that it would be a kind of conservative in avoiding keep to much data on > volatile memory

Re: Question about watchdog

2018-07-03 Thread valdis . kletnieks
On Tue, 03 Jul 2018 10:28:48 +0800, you said: > yes ! but there are days when people have to do a real-time work with no > delay in kernel space ,i think i can feed the dog > a percpu variable "nmi_touch" looks suspicious,thanks! 1) The Linux kernel community convention is t use 'reply all' s

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 d

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

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 >= KERNEL_VERSION(x,y

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 stac

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 p

Re: Main Linux kernel vs Ubuntu kernel

2018-06-08 Thread valdis . kletnieks
On Sat, 09 Jun 2018 00:57:19 +0530, Shyam Saini said: > You always have option to test your hardware and report issues if any. > If mainline breaks for your hardware then you can choose any known > stable kernel version. > You can patch and test it as per your needs. If mainline breaks, you shoul

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 d

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 w

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 want

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 fre

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: [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 (retval)

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 L

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 ;) pgpnEulCY

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 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 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. Wh

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. I

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

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 late

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 ___ Kernelnewbies

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 c

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:

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

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.. Sto

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) y

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

2018-04-21 Thread valdis . kletnieks
On Sat, 21 Apr 2018 21:15:10 +0800, Yubin Ruan said: > From this, I have a related question, can I treat __builtin_return_address() > as a "builtin" stack unwinder (but only check for return addresses, or, where > a function is called). It would seem possible, but it doesn't actually work that wa

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

2018-04-20 Thread valdis . kletnieks
On Fri, 20 Apr 2018 23:39:10 +0800, Yubin Ruan said: > 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 of the ker

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

2018-04-19 Thread valdis . kletnieks
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 of the kernel that *WILL* explode if you try to build with -O0 - in particular, any code that expects static inlines to be treated as pa

Re: Softlockup and Hardlockup sample test module

2018-04-15 Thread valdis . kletnieks
On Sun, 15 Apr 2018 13:17:27 +0530, Ivid Suvarna said: > I had tried with the module where I put a busy loop inside spinlock > but was not able to cause any lockups. Maybe this is because of SMP > which schedule the job to other CPU. "How do I make a task to run on > single CPU only?" So you get

Re: Block device handling from other module

2018-04-06 Thread valdis . kletnieks
On Fri, 06 Apr 2018 12:12:31 +0530, Rupesh Kumar said: > My question is : Can STANDBY IMMEDIATE command be issued directly to > SSD device ? How can I achieve it in most efficient way ? In the source tree, see tools/laptop/freefall/freefall.c for how to do the daemon. The sample code does a read()

Re: Building separate files for a kernel module

2018-04-04 Thread valdis . kletnieks
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 to have those files as a > separate library. What's driving the requirement for a separate library? __

Re: specifying in the kernel command line

2018-04-04 Thread valdis . kletnieks
On Wed, 04 Apr 2018 11:46:01 +0300, Kevin Wilson said: > Hello, > I have an x86_64 host with 4GB of Physical RAM running Fedora 25. > > I have a question about hugepages allocation on this host. > In: > https://www.kernel.org/doc/Documentation/vm/hugetlbpage.txt > > I see that you can use "hugepage

Re: Difference between atomic context and interrupt context.

2018-04-02 Thread valdis . kletnieks
On Mon, 02 Apr 2018 13:00:32 +0530, Madhu K said: > what is the difference between atomic context and interrupt context. > are they both same? Interrupt context means we're dealing with an interrupt. Atomic context means we're doing something that *itself* should not be interrupted. ___

Re: V4l2 Sensor driver and V4l2 ctrls

2018-03-30 Thread valdis . kletnieks
On Fri, 30 Mar 2018 11:38:07 +0530, MUHAMMED ASAD P T said: > In reference sensor drivers, they used the V4L2_CID_DV_RX_POWER_PRESENT v4l2 > ctrl. > It is a standard ctrl and created using v4l2_ctrl_new_std(). > 1. Whether in our sensor driver, we need to create this Control Id or not. > How to

Re: Why are the PAGE_SIZE and the physical page frame size different in x86_64 kernel?

2018-03-29 Thread valdis . kletnieks
On Thu, 29 Mar 2018 22:48:24 +0800, Hao Lee said: > I'm confused about the meaning of the PAGE_SIZE macro in x86_64 > kernel. Its value is 4KB and I once thought it was the size of a > physical page frame, but now I think I'm wrong. I find that most of > the physical address space is mapped by PMD

Re: A question about function split_mem_range

2018-03-25 Thread valdis . kletnieks
On Sun, 25 Mar 2018 22:32:42 +0800, Hao Lee said: > In arch/x86/mm/init.c, there is a function called split_mem_range[0]. > Its logic is very complicated and I can't figure out what it does. I > have added some debug statements in this function to print all > variable, but I still can't understand

Re: Hang in FUTEX_WAKE_PRIVATE after clock_gettime

2018-03-24 Thread valdis . kletnieks
On Sat, 24 Mar 2018 04:43:42 -0400, Jeffrey Walton said: > My question is, is a futex with a 2147483647 or -1 expected? Where > should I be looking to begin to narrow the problem down? 'man 7 futex' says: Semantics Any futex operation starts in user space, but it may be necessary to

Re: probe gets called without i2c device

2018-03-23 Thread valdis . kletnieks
On Fri, 23 Mar 2018 19:07:41 +0530, MUHAMMED ASAD P T said: > We have the device tree information and wrote in the board. In this device > tree, we specify our I2c device details. So you told the kernel the device is there. > In usual, if the device is there, then driver probe gets called. This i

Re: sysfs unbind, miscdev

2018-03-21 Thread valdis . kletnieks
On Wed, 21 Mar 2018 17:26:57 +0100, Martin Kaiser said: > I have a driver that is an spi device on one side and a miscdevice on > the other. This way usually leads to either madness or heavy drinking. > Surprisingly to me, I can unbind the driver from the spi device on the > bus while there's a u

Re: LKCAMP - Linux Kernel study group - volunteers

2018-03-20 Thread valdis . kletnieks
On Tue, 20 Mar 2018 09:14:30 -, Lucas Tanure said: > > We are starting meetings every Tuesday night (starting on 20th March > > at 3pm PST) and we will probably have lots of questions in the > > #kernelnewbies IRC channel coming from the students during the > > workshops. Umm.. What GMT offse

Re: Why do some config options return limited info from a search?

2018-03-18 Thread valdis . kletnieks
On Mon, 19 Mar 2018 00:08:10 -, John Whitmore said: > Sometimes however you get a module which don't give this information. Is this > intentional, signify something, or just an oversight for that config option? > For example SND_HDA_CORE: > Symbol: SND_HDA_CORE [=m] > Type : tristate > D

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

2018-03-14 Thread valdis . kletnieks
On Wed, 14 Mar 2018 17:46:16 +0100, Greg KH said: > On Wed, Mar 14, 2018 at 12:32:21PM -0400, valdis.kletni...@vt.edu wrote: > > That's *totally* device dependent. The things a driver needs to do to > > ensure > > consistency for a 40Gbit ethernet adapter are *totally* different from that > > U

Re: During shutdown/reboot Network Subsystem v/s Storage Subsystem

2018-03-14 Thread valdis . kletnieks
On Wed, 14 Mar 2018 11:53:33 +0530, jitendra kumar khasdev said: > eg. when we do shutdown, which (network or storage)stack goes down first? Hint: What order do these *have* to happen in? What happens if you shut down the network before unmounting an NFS share, or if you pixie-booted onto an is

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

2018-03-14 Thread valdis . kletnieks
On Wed, 14 Mar 2018 11:27:41 +0800, Larry Chen said: > > 3. If ioctl() still running even after we terminate this process, where doe s the return value ioctl() will return to? > That sounds insane. That's because it *is* insane. The ioctl() *can't* "still be running" after the kill -9, because s

Re: Guidelines for Submitting an RFC PATCH

2018-03-13 Thread valdis . kletnieks
On Tue, 13 Mar 2018 08:52:01 -0700, Joe Smith said: > 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 opinion.

Re: Guidelines for Submitting an RFC PATCH

2018-03-12 Thread valdis . kletnieks
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 to make sure that each patch in the RFC compiles or > is it OK if all patches tog

Re: [PATCH] scsi: eata: drop VLA in reorder()

2018-03-11 Thread valdis . kletnieks
On Mon, 12 Mar 2018 14:08:34 +1100, "Tobin C. Harding" said: > removal patch that 768 was a lot of stack space. That comment did, > however say 'deep in some transfer call chain'. I don't know what a > 'transfer call chain' (the transfer bit) is but is there some heuristic > we can use to know h

Re: Year 2038 time set problem

2018-03-05 Thread valdis . kletnieks
On Mon, 05 Mar 2018 07:20:35 -0500, Ruben Safir said: > So any system where you need to, or want to install it and forget about > it for a long period of time, the Linux kernel can not be considered a > choice for that usage because it needs contact oversite and upgrades. That's true for *any* sof

Re: Year 2038 time set problem

2018-03-05 Thread valdis . kletnieks
On Sun, 04 Mar 2018 23:50:32 -0500, Ruben Safir said: > Don't pretend to understand what I can and can not afford. Your not > picking security policy for Google. What your failing to address, > because you are so blinded to your own frame of reference, is that your > solution leaves out well ove

Re: Year 2038 time set problem

2018-03-04 Thread valdis . kletnieks
On Sun, 04 Mar 2018 21:21:13 -0500, Ruben Safir said: > I am not setting up a high availability cluster in my house, thank you. > And fwiw, I've run systems for 6-8 years without rebooting on pc > hardware. My little fanless fit/pc service running an intel atom had at > one time run 5 years witho

Re: Year 2038 time set problem

2018-03-04 Thread valdis . kletnieks
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 your > systems up to date, all should be fine. So the next one will be the "So long, and thanks for al

Re: Year 2038 time set problem

2018-03-04 Thread valdis . kletnieks
On Sun, 04 Mar 2018 20:47:15 +, Alex Arvelaez said: > You can kexec into the newer kernel to avoid rebooting if you absolutely must > but yeah the best practice is to keep your system up to date and that requires > some disruption of service. If you can't afford the disruption of service a reb

Re: Year 2038 time set problem

2018-03-04 Thread valdis . kletnieks
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 Meltdown/Spectre, therefor the 4.1 kernel is OK" is *incredibly* wrong. For the record, since 4

Re: Year 2038 time set problem

2018-02-26 Thread valdis . kletnieks
On Mon, 26 Feb 2018 14:15:53 +0100, Piotr Figiel said: > According to kernel.org website 4.1 has projected EOL in May 2018. Is > the information about kernel releases on kernel.org irrelevant/ > shouldn't be trusted? Or my understanding of longterm kernel trees is > incorrect? Do you *really* wan

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 m

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 scre

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

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 v5.9

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

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

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 do,

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 d

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

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: 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. What's

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 o

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 work

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 ne

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 cal

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 EP

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 oper

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 dma_spin

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 f

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? 3

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 utiliti

Re: [tools/perf] perf test LLVM failure on 4.9

2018-01-23 Thread valdis . kletnieks
On Tue, 23 Jan 2018 18:07:25 +0530, Pintu Kumar said: > My uname says: > 4.9--amd-x86-64 Literally 4.9-? No 3rd number? And why ''? (Hint - obfuscating doesn't help here, it's hard to debug when we don't see the *actual* string.) Some unames from my various machines: 4.15.0-rc7-nex

Re: Jbd2 async problem

2018-01-22 Thread valdis . kletnieks
On Mon, 22 Jan 2018 20:18:47 +0800, Rock Lee said: > I think in order to keep the consistency, the whole transaction should > be discarded, as long as not all the metadata blocks have the right > crc value in the transaction. But why jbd2 still copies the metadata > block(with the right crc) to fi

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 are

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 of

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

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