Re: hi Questiion about Eudyptula Challenge Task 05

2014-09-09 Thread Valdis . Kletnieks
On Tue, 09 Sep 2014 17:46:33 +0530, Sudip Mukherjee said: No new udev rule is needed. If you truly understood the point of task 5, this is all the clue you need to fix it. And that's all the hint I'm giving on this one. :) pgpBCBf2npxdK.pgp Description: PGP signature

Re: x86_64_defconfig and i386_defconfig: What is the difference?

2014-09-09 Thread Valdis . Kletnieks
On Tue, 09 Sep 2014 07:58:49 -, Rajat Jain said: Can someone tell me if the i386 one is to be used when we want to build for a 32bit machine and the x86_64 is to be used for 64 bit machine? I wouldn't run either one on an actual machine. Defconfigs are *example* configs, only useful as a

Re: Trial Patch

2014-09-09 Thread Valdis . Kletnieks
On Tue, 09 Sep 2014 08:22:59 -0400, nick said: This patch is wrong, checkpatch errors. I am attaching another fixed version. *yawn* You still didn't even fix the typos in comments. Not Worth The Effort To Review. pgpOHhaJ8TGxQ.pgp Description: PGP signature

Re: x86_64_defconfig and i386_defconfig: What is the difference?

2014-09-09 Thread Valdis . Kletnieks
On Tue, 09 Sep 2014 16:19:54 +0200, Paul Bolle said: (I remember seeing tutorials that show you how to generate a .config from scratch. I wonder whether anyone actually does that. Distros did that originally. Now they just keep delta'ing their known-working config. The pain involved was part

Re: x86_64_defconfig and i386_defconfig: What is the difference?

2014-09-09 Thread Valdis . Kletnieks
On Tue, 09 Sep 2014 16:06:07 +0200, Matthias Brugger said: Can someone tell me if the i386 one is to be used when we want to build for a 32bit machine and the x86_64 is to be used for 64 bit machine? You can build the kernel with any architecture for any architecture. This is called

Re: hi Questiion about Eudyptula Challenge Task 05

2014-09-09 Thread Valdis . Kletnieks
On Tue, 09 Sep 2014 20:14:48 +0530, Jeshwanth Kumar N K said: If you have any doubt please ask little only, he will reply for sure. Better not to ask questions in public mailing list. Which is why I gave a cryptic answer that's totally correct, and yet makes no sense unless you already

Re: Page fault in kernel code

2014-09-09 Thread Valdis . Kletnieks
On Tue, 09 Sep 2014 18:53:55 +0530, Manavendra Nath Manav said: Why is it so? Why can't kernel mode code handle the page fault and reload the page from swap? Also, can page fault occur when kernel is executing in process context and/or interrupt context? There's no inherent chiseled-in-stone

Re: Trial Patch

2014-09-09 Thread Valdis . Kletnieks
On Tue, 09 Sep 2014 11:52:20 -0400, Nick Krause said: I understand that , sorry Guys. I am going to fix this later including my spell checks. Don't bother. pgpcXduwFWoHJ.pgp Description: PGP signature ___ Kernelnewbies mailing list

Re: Trial Patch

2014-09-09 Thread Valdis . Kletnieks
On Tue, 09 Sep 2014 17:16:19 -0400, nick said: I am sending this in again fixed and working. Typos are still there, and zero explanation of how you verified fixed and working, which given your track record of failing to even compile test your code is a *big* show-stopper. If you don't care

Re: Trial Patch

2014-09-09 Thread Valdis . Kletnieks
On Tue, 09 Sep 2014 21:21:18 -0400, nick said: Not going to execute, I wasn't sure if that statement needs to be executed. skb = dev_alloc_skb(frag_length + 4); + if (skb == NULL) { + skb_queue_purge(priv-rtllib-skbwaitQ[TXCMD_QUEUE]; +

Re: Trial Patch

2014-09-09 Thread Valdis . Kletnieks
On Tue, 09 Sep 2014 22:56:10 -0400, nick said: OK. It's official. I see *zero* possibility that you'll ever manage to write an acceptable patch. This is *still* wrong. Care to explain. No. Please go figure it out for yourself. pgpIluHFvWDJG.pgp Description: PGP signature

Re: Trial Patch

2014-09-09 Thread Valdis . Kletnieks
On Tue, 09 Sep 2014 23:53:50 -0400, nick said: Build Error. Fixed it. I need to really check my patches first :(. How many times have you done that now? In addition, I want you to forget about and not reply to any patches you known I haven't build tested. No, it doesn't work like that. Each

Re: Page fault in kernel code

2014-09-10 Thread Valdis . Kletnieks
On Wed, 10 Sep 2014 14:45:23 +0530, Manavendra Nath Manav said: But if the total RAM is limited (less than 896MB LOWMEM), for example as in embedded devices how the kernel code be kept in RAM all the time. Am I correct to assume that the kernel pre-fetches all pages when entering kernel mode

Re: suspend/resume PM criterion for application

2014-09-10 Thread Valdis . Kletnieks
On Wed, 10 Sep 2014 20:26:48 +0300, Ran Shalit said: What is usually the criterion for PM (power management) suspending that application shall use ? Is it according to minimum threshold for cpu load (as indication for no process) ? That will be highly application dependent. Something that

Re: suspend/resume PM criterion for application

2014-09-10 Thread Valdis . Kletnieks
On Wed, 10 Sep 2014 21:23:28 +0300, Ran Shalit said: As far as I understand, suspend/respond PM is not per device, but for all system, and wakeup source will resume again the whole system. I think you mean runtime suspend/resume in the answer. The original question didn't specify. You said

Re: suspend/resume PM criterion for application

2014-09-10 Thread Valdis . Kletnieks
On Wed, 10 Sep 2014 21:58:48 +0300, Ran Shalit said: 1. How can I make a process to notice this inactivity ? Do you think it can be implemented by some periodic process who check if there is activity ? It returns to the original question I raised, that I will use some periodic process who

Re: My simple kernel module wont compile

2014-09-11 Thread Valdis . Kletnieks
On Thu, 11 Sep 2014 16:13:58 +0200, testlaster said: The first line didn't work because I seem to not have a build directory there. Hopefully, that /usr/src/linux-headers directory is an exact match for the kernel you're planning to use the module in. make[2]: *** No rule to make target

Re: Improve my Rep

2014-09-15 Thread Valdis . Kletnieks
On Mon, 15 Sep 2014 10:38:58 -0400, Nick Krause said: After issues with the community I am wondering how to improve my rep and help out more. Quite frankly, I'd suggest going and spending a year or two helping another open source project. I will start out with check patch but if there is

Re: Improve my Rep

2014-09-15 Thread Valdis . Kletnieks
On Mon, 15 Sep 2014 11:22:52 -0400, Nick Krause said: I am sure I can help. Seems I need to be more careful with my patches. It also seems you are *unable* to be more careful with your patches, because you've been told to do so on multiple occasions by multiple people. Nick - face it. You've

Re: Improve my Rep

2014-09-15 Thread Valdis . Kletnieks
On Mon, 15 Sep 2014 15:13:42 -0600, Jake Campbell said: Is there any other challenges out there similar to Eudyptula that Nick could follow instead since he was kicked out? The vast majority of such things have a must be able to follow the rules and guidelines requirement, so I fear Nick may

Re: Checkpatch Patches

2014-09-16 Thread Valdis . Kletnieks
On Tue, 16 Sep 2014 08:44:27 -0400, nick said: I am attaching two check patch patches I wrote in the last few days as I am unable to get a reply from the maintainers. Would someone please send them off for me. I am attaching. Fail 3 words in. That's why you aren't getting a reply from the

Re: Checkpatch Patches

2014-09-16 Thread Valdis . Kletnieks
On Tue, 16 Sep 2014 11:57:35 -0400, Lidza Louina said: Use this guide: http://kernelnewbies.org/OPWfirstpatch It's a tutorial that shows you how to setup and send patches. Don't bother. He's been pointed at that at least once a week for the past two months, and everybody from me to Greg KH

Re: Checkpatch Patches

2014-09-16 Thread Valdis . Kletnieks
On Tue, 16 Sep 2014 13:12:32 -0400, Nick Krause said: I am going to resend my patch and see if it's good Why bother? We already *know* it won't be. You could amaze and astound us all by seeing if it's good *before* you hit send. But I'm not holding my breath. and if not I am going to leave

Re: Checkpatch Patches

2014-09-16 Thread Valdis . Kletnieks
On Tue, 16 Sep 2014 13:28:06 -0400, Rik van Riel said: -BEGIN PGP SIGNED MESSAGE- On 09/16/2014 01:12 PM, Nick Krause wrote: I am going to resend my patch and see if it's good and if not I am going to leave for a while. You may want to consider fixing them, by applying the advice

Re: [PATCH] staging wlan-ng: Add missing a blank line after declarations

2014-09-16 Thread Valdis . Kletnieks
On Tue, 16 Sep 2014 17:23:05 -0400, nick said: I checked this patch and there seems to be issues that any of you have stated before after not applying or grammar e.t.c. If there seem to be issues, why did you bother posting it? pgpf6oJH5i0Dq.pgp Description: PGP signature

A quick guide to why stand-alone checkpatch patches suck...

2014-09-16 Thread Valdis Kletnieks
In general, stand-alone patches to fix checkpatch whining are a Bad Idea(TM). Here's why... First off, the type of programmer who is tempted to do checkpatch cleanup as My First Kernel Patch are, by and large, novices. The code in the kernel falls into one of several states of use and

Re: A quick guide to why stand-alone checkpatch patches suck...

2014-09-16 Thread Valdis . Kletnieks
On Tue, 16 Sep 2014 20:35:35 -0500, Greg Donald said: fs/* currently contains 96,375 errors and 22,555 warnings. [/usr/src/linux-next] find fs -type f -name '*.[ch]' | xargs cat | wc -l 1138557 96K errors seemed to be a tad high. So.. doublechecking.. [/usr/src/linux-next] for i in `find

Re: A quick guide to why stand-alone checkpatch patches suck...

2014-09-17 Thread Valdis . Kletnieks
On Wed, 17 Sep 2014 08:09:36 -0400, nick said: On 14-09-17 08:05 AM, Greg Freemyer wrote: I don't know that chunk of code, but error messages that go to the kernel log exist for a specific reason. Taking them out requires a specific reason. Ie. This would make a good commit message

Re: A quick guide to why stand-alone checkpatch patches suck...

2014-09-17 Thread Valdis . Kletnieks
On Wed, 17 Sep 2014 08:02:01 -0400, nick said: it off , if not I would like to known exactly where I am wrong so I can learn. Somebody wake me up when he actually *means* that. pgpep_zcvBkMR.pgp Description: PGP signature ___ Kernelnewbies mailing

Re: Help with XfsTests

2014-09-18 Thread Valdis . Kletnieks
On Thu, 18 Sep 2014 06:39:01 -0400, nick said: I am trying to run xfs tests on a partion at /dev/sdc1 but the scripts state that the drive is not at $TEST_DIR and if ' it's on that directory they abort after fsck. Does anybody known how to fix this please. It can probably be fixed by

Re: linux master cannot compile successfully

2014-09-18 Thread Valdis . Kletnieks
On Thu, 18 Sep 2014 22:19:40 +0800, Kinka Huang said: In file included from drivers/gpu/drm/nouveau/core/core/client.c:29:0: drivers/gpu/drm/nouveau/core/include/nvif/unpack.h:1:1: error: expected identifier or ‘(’ before ‘.’ token ../../../nvif/unpack.h Your tree is somehow corrupted.

Re: linux master cannot compile successfully

2014-09-18 Thread Valdis . Kletnieks
On Fri, 19 Sep 2014 09:28:03 +0800, Kinka Huang said: @valdis, I am doing that on a laptop. I try to get back the file by deleting unpack.h and checkout, but the same content remains. And `git That's weird indeed. status` or `git log` doesn't show any changes of file unpack.h . One

Re: How do we determine IP Address of interface the packet arrived on

2014-09-24 Thread Valdis . Kletnieks
On Wed, 24 Sep 2014 21:03:01 +0900, 정현 said: And you should be careful about obtained IP address, because it is made by IP spoofing attack or some sort of IP camo technique. He's looking at the IP address of the interface, not the source IP address of the packet. pgpeylxs2Gzvn.pgp

Re: PROBLEM: JFFS2 deadlock on Linux 3.14.19

2014-09-24 Thread Valdis . Kletnieks
On Wed, 24 Sep 2014 10:26:13 +0200, Ivan Grimaldi said: I have a custom board based on Freescale i.MX6DL, and at start time i received a JFFS2 deadlock. My kernel version is v3.14.19 Looks like this one has been around for a while - it was reported against 3.10 and 3.0.18:

Re: How do we determine IP Address of interface the packet arrived on

2014-09-24 Thread Valdis . Kletnieks
On Wed, 24 Sep 2014 10:19:34 +0530, Maninder Singh said: Hi, Each time a packet arrives at a router in a subnet during transit, I need to determine the IP address of the incoming interface of the router for that packet. What problem are you trying to solve using the IP address of the

Re: A Course Project

2014-09-24 Thread Valdis . Kletnieks
On Wed, 24 Sep 2014 11:12:55 -0400, El Mouatez Billah Karbab said: I am student in Concordia university Montreal, and I have a course about network security. The professor of this course wants us to do a project in both the field of security research with some practical application, and I

Re: How do we determine IP Address of interface the packet arrived on

2014-09-24 Thread Valdis . Kletnieks
On Wed, 24 Sep 2014 10:08:29 -0400, John de la Garza said: why not look at the destination ip of the ip header? It's possible to receive a packet on the wrong interface. For instance, we have a software package installed here that insists on talking on one IP address, so we end up with this

Re: Compile external module against linux source and use functionality in linux source

2014-09-25 Thread Valdis . Kletnieks
On Thu, 25 Sep 2014 10:49:33 +0530, Arjun Pandey said: Step 1 goes through fine. The module gets compiled fine. However now when i try to compile the kernel i get linker error of undefined reference to the function exported from the kernel module. I can't find any documentation on this

Re: Git create patch series for multipe commits.

2014-09-26 Thread Valdis . Kletnieks
On Fri, 26 Sep 2014 10:35:57 -0700, Anand Moon said: One more question, if the change belong to single file and we are fixing multiple issue we need to different commit for each changes. And then club them into patch series. Each patch should do exactly one thing. So if you find 3 different

Re: Doubt in USB Drivers

2014-09-28 Thread Valdis . Kletnieks
On Sun, 28 Sep 2014 16:27:06 +0530, me storage said: I am new to Linux Kernel Programming .I want to develop usb drivers so i read LDD3 Chapter 14. i didn't find /sbin/hotplug in Ubuntu 12.04.And my LDD3 is about a 2.6.10 kernel. Ubuntu 12.04 shipped a 3.2.14 kernel. % git diff --shortstat

Re: Test RAM read/write speed

2014-09-29 Thread Valdis . Kletnieks
On Tue, 30 Sep 2014 02:53:05 +0530, Ssagarr Patil said: Is there any benchmarking tool to test read/write speed on Linux and which works on ARM ? This is always a hairy problem. Do you care about the memory speed of the DIMM, or the actual *effective* memory speed? They can be very

Re: Test RAM read/write speed

2014-09-30 Thread Valdis . Kletnieks
On Wed, 01 Oct 2014 01:32:19 +0530, Ssagarr Patil said: May be a tool is needed at uboot level to test the speeds. What will that actually *tell* you though? Or more to the point, what *actionable* information will that give you? The cache speeds and memory speeds are something you're stuck

Re: cpuidle - minimum time for sleep

2014-10-09 Thread Valdis . Kletnieks
On Thu, 09 Oct 2014 21:28:23 +0300, Ran Shalit said: Does anybody know what is the minimum expected time for sleep period with the cpuidle ? Both processor dependent and sleep level dependent. There's a certain amount of latency induced by the hardware waking up. Look at

Re: [PATCH] staging: Fix spacing between function name and parentheses

2014-10-12 Thread Valdis . Kletnieks
On Sat, 11 Oct 2014 14:52:40 +0100, Hugo Mills said: On Sat, Oct 11, 2014 at 09:44:05AM -0400, nick wrote: Thank you for your help, I'll study the code and see what I can do about it. Do you have any suggestions of how to fix this checkpatch warning? Ignore it. The checker has clearly

Re: [PATCH] staging: Fix spacing between function name and parentheses

2014-10-12 Thread Valdis . Kletnieks
On Sun, 12 Oct 2014 22:31:12 -0400, nick said: Valdis, I do understand your concern with me finding one of the few false positives, due to my issues already with the community. I am trying my best now to improve and work toward good,solid work that is of actual use to the community and

Re: I remove the audit and selinux from kernel and start the new kernel in Centos, but i can't bring up the network device, Why?

2014-10-13 Thread Valdis . Kletnieks
On Mon, 13 Oct 2014 13:04:08 +0800, sizel said: I remove the audit and selinux from kernel and start the new kernel in Centos, but i can't bring up the network device, Why? This would be a lot easier to answer if you gave us some actual details: 1) Why did you think audit and selinux were the

Re: Socket receive, send

2014-10-13 Thread Valdis . Kletnieks
On Tue, 14 Oct 2014 04:12:47 +0200, Grzegorz Dwornicki said: Is there a good documentation on how messages are taking the tour from User calling read/write on socket fd, to kernel handling the actual send/receive functions? I wish to write code to capture the messages (no netfilter - I wish

Re: epoll improvements

2014-10-16 Thread Valdis . Kletnieks
On Thu, 16 Oct 2014 14:09:05 +0200, Nev Ikte said: I've tried to reproduce it with a single client and basically, if ep_poll() is able to find an event or the timeout is 0, the latency is down to 5usec, otherwise if it enters the waitqueue the latency goes up to 10-25usec, which impact the

Re: Non-maskable interrupt

2014-10-22 Thread Valdis . Kletnieks
On Thu, 23 Oct 2014 00:26:32 +0900, J.Hwan Kim said: Hi, everyone In my system, NMI intrrupt counter is increased continuously, which I found in /proc/interrupts. How can I find the reasons of NMI interrupts? How fast are they increasing? A few an hour? A few a minute? 50 or 60 a second?

Re: Non-maskable interrupt

2014-10-22 Thread Valdis . Kletnieks
On Thu, 23 Oct 2014 10:47:57 +0900, J.Hwan Kim said: How fast are they increasing? A few an hour? A few a minute? once per second... I bet 'cat /proc/sys/kernel/nmi_watchdog' returns '1'. See Documentation/lockup-watchdogs.txt pgpuTsUvENLGd.pgp Description: PGP signature

Re: sendmmsg() Expected Behavior?

2014-10-23 Thread Valdis . Kletnieks
On Thu, 23 Oct 2014 19:43:07 -0700, Hei Chan said: Then, I found that recvmmsg() doesn't return all the packets that queued in 1 single call. You want to receive *all* of them? Call recv() with a *buf and a len big enough to get a *lot* of msgs, and pass MSG_ALL in the flags. Why were you

Re: Documentation/DMA-API-HOWTO.txt 2

2014-10-24 Thread Valdis . Kletnieks
On Fri, 24 Oct 2014 15:09:45 +0200, Peter Senna Tschudin said: This was edited in 2010, but the original is more than 9 years old, and still there are some drivers using virt_to_bus() and bus_to_virt(). -- // -- All drivers should be using these interfaces with no exceptions. It is planned

Re: sendmmsg() Expected Behavior?

2014-10-24 Thread Valdis . Kletnieks
On Thu, 23 Oct 2014 23:41:41 -0400, valdis.kletni...@vt.edu said: Why were you expecting recvmsg() to return more than one message? Bah. Ignore that. you said recvmmsg() with *two* m's. pgpYuxOQ9HTPG.pgp Description: PGP signature ___ Kernelnewbies

Re: Kconfig options and make command line

2014-10-26 Thread Valdis . Kletnieks
On Sun, 26 Oct 2014 12:01:05 -0400, John de la Garza said: On Sun, Oct 26, 2014 at 09:25:01AM +0100, Peter Senna Tschudin wrote: Sorry for the noise. $ make allyesconfig drivers/staging/rtl8723au/ does the trick. that seems like overkill, why not just enable the

Re: Some Kernel Questions/Confusions [Pls help]

2014-10-27 Thread Valdis . Kletnieks
On Mon, 27 Oct 2014 18:15:15 +0530, Er Krishna said: 1. In case of Paging and discontiguous memory allocation for a particular process, is it possible that all the segments say DS, SS, CS, Heap and all can be in different page frames. I am asking this for a particular segment (I know all the

Re: [PATCH] staging: rtl8723au: Fix brace coding style issues reported by checkpatch

2014-10-28 Thread Valdis . Kletnieks
On Tue, 28 Oct 2014 12:39:17 -0500, Greg Donald said: The WARNING line over 80 characters currently accounts for 216K of the total violations. IMHO checkpatch should just stop complaining about the 80 char limit since that's the main offender causing new On the other hand, there's very good

Re: Network subsystem and suggestions

2014-10-29 Thread Valdis . Kletnieks
On Wed, 29 Oct 2014 12:16:57 -0500, Jaime Arrocha said: Lastly, what about this other book? The Design of the UNIX Operating System by Maurice Bach That book is about the SYSV kernel. However, both it, and McKusic's book on the BSD kernel, are good because they demonstrate different

Re: [PATCH] staging: Fix spacing between function name and parentheses

2014-11-01 Thread Valdis . Kletnieks
On Mon, 20 Oct 2014 09:17:50 -, el_es said: Maybe better to introduce a standard clear marker that able people just respond with, to alikes of nick: REJECTED-by: Name address@email.server We already do something like this. You'll on occasion see 'Nacked-By: ...' go by when a kernel

Re: copy_from_user user space address mapping in the kernel page table.

2014-11-02 Thread Valdis . Kletnieks
On Sun, 02 Nov 2014 19:57:44 +0530, mind entropy said: In the copy_from_user when the user passes the virtual address is the address mapped in the kernel page tables? Actually, a large part of the reason for copy_from_user()'s existence is to deal with the possibility that the page is *not*

Re: build a kernel over a mounted NFS partition

2014-11-03 Thread Valdis . Kletnieks
On Mon, 03 Nov 2014 21:00:13 +0200, Kevin Wilson said: The strong server, on which I intend to build, has about 4 time more CPU power than the NFS server. Actually, CPU doesn't matter as much as I/O capability. You don't believe me, try building a kernel with a cache-cold source tree, and

Re: RT Kernel compile and install help needed.

2014-11-04 Thread Valdis . Kletnieks
On Tue, 04 Nov 2014 13:07:47 +0530, Chanchal Paul said: I am fairly new to kernel compilation and installation process, still i managed to learn from Kernelnewbies and RT-wiki and managed to patch 3.12.14 vanilla kernel with rt patch 3.14.12. You *really* want to get the correct patch on the

Re: lots of connections in SYN_RECV state

2014-11-07 Thread Valdis . Kletnieks
On Fri, 07 Nov 2014 23:49:35 +0800, Dave Tian said: Latest kernel provides a TCP SYN Cookie feature to defense from SYN flooding. If by latest you mean since Andi Kleen submitted a patch for 2.1.44, back in July 1997 pgp9qqVpije_e.pgp Description: PGP signature

Re: lots of connections in SYN_RECV state

2014-11-07 Thread Valdis . Kletnieks
On Fri, 07 Nov 2014 23:11:26 +0530, Puneet Agarwal said: I use linux kernel 2.6. I have enabled SYN cookies already. But that does not seem to solve the problem. Overall request latency is very high with these many half open connections. So, out of curiosity, where are all these half open

Re: Kernelnewbies Digest, Vol 48, Issue 10

2014-11-10 Thread Valdis . Kletnieks
On Mon, 10 Nov 2014 19:24:59 +0530, mohanty bhagaban said: How to get access to mainn kenel code repository through git as I need to add some patches for reviews.Where can i get the bramch to submit my code for review. git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

hijacking threads (was Re: How to disable fault-around by debugfs?)

2014-11-12 Thread Valdis . Kletnieks
On Wed, 12 Nov 2014 18:39:08 +0530, lokesh kumar said: Hi, Sorry i forgot to change subject line :( Note that for people that use mail software that supports threading, even changing the subject line may not be sufficient - there's another E_mail header. For this note, it says: References:

Re: Re Start Fresh

2014-11-13 Thread Valdis . Kletnieks
On Thu, 13 Nov 2014 10:02:42 -0500, Nick Krause said: I am willing to start out completely fresh and willing to learn how to do this correctly now and hopefully improve my rep ... slowly. This is not another email for me trying to state again I am willing to change, That's odd, that's what

Re: Choosing the right environment

2014-11-18 Thread Valdis . Kletnieks
On Tue, 18 Nov 2014 20:54:05 +0530, somebody said: - I could go with a virtual machine on one of my main machines – But I'm not quite sure whether the hardware-abstraction will give me troubles when hacking on hardware drivers (which I want to start with) If you're hacking at hardware

Re: skb headroom and tailroom

2014-11-19 Thread Valdis . Kletnieks
On Wed, 19 Nov 2014 09:43:54 +0530, Varun Sharma said: 1. At time of skb allocation sk-sk_prot-max_header value is 272 . If we add tcp header+ip header+mac header outcome will always less than 272 .Then why allocate more ? Is it for future case ? Did you remember to do the calculation for

Re: Why each time of kernel compilation must be done completely?

2014-11-19 Thread Valdis . Kletnieks
On Wed, 19 Nov 2014 18:43:26 -0800, Greg KH said: I think you are doing something wrong, unless you are changing a configuration option, version of gcc, or are changing a .h file that all files include. Actually, that reminds me of a patch I probably need to polish up and make git bisect a

Re: the file with the same name

2014-11-23 Thread Valdis . Kletnieks
On Sun, 23 Nov 2014 16:25:11 +0800, 孙建希 said: I found there's many files with same name in kernel. e.g: include/asm/linkage.h arch/x86/include/asm/linkage.h I know when compile for x86, kbuild will use x86 linkage.h. The secret is in the -I include directives - it will search for

Re: Split RAID: Proposal for archival RAID using incremental batch checksum

2014-11-24 Thread Valdis . Kletnieks
On Mon, 24 Nov 2014 22:58:08 +0530, Anshuman Aggarwal said: prevents it from directly recognized by file system code . I was wondering if Split RAID block devices can be made to be unaware to the RAID scheme on top and be fully mountable and usable without the raid drivers (of course

Re: x86/kernel/head_32.S

2014-12-05 Thread Valdis . Kletnieks
On Fri, 05 Dec 2014 17:50:40 +0800, 孙建希 said: I am confused by `leal -__PAGE_OFFSET(%ecx),%esp`. `pa(stack_start)` have convert `stack_start` to physicall address. why we need `-__PAGE_OFFSET(%ecx)` instead of `%ecx`? From the commit message: This retains start_stack as a virtual

Re: Remove Ban?

2014-12-08 Thread Valdis . Kletnieks
On Sun, 07 Dec 2014 22:15:13 -0500, nick said: Greetings Fellow Developers, I have finally learned my lesson as you can tell from my newest patches being accepted or considered in good form. Right now,all I'm seeing in linux-next from you is 2 patches that remove FIXME comments. Given your

Re: Submitting patches question

2014-12-08 Thread Valdis . Kletnieks
On Mon, 08 Dec 2014 14:05:45 -0700, Dean Michael Ancajas said: Hi, I have submitted single line patches. I was wondering what is the policy on the # of changes per patch? For instance the code below: if (Index) { data = ft1000_read_reg(dev, FT1000_REG_MAG_DPDATAL);

Re: Filtering noise is about protecting resourses

2014-12-09 Thread Valdis . Kletnieks
On Tue, 09 Dec 2014 06:33:07 -0500, nick said: I understand that now after reading your message. Sorry Nick. You might believe that, but nobody else does at this point. We've heard that over and over for the last six months, and then you follow up with behavior that indisputably proves that you

Re: List my Staging Drivers

2014-12-09 Thread Valdis . Kletnieks
On Tue, 09 Dec 2014 22:18:48 -0200, Lucas Tanure said: This command: $ lsmod | grep -Eo '^[^ ]+' | sed 1d | xargs modinfo | grep filename Note that only finds stuff that's been built with CONFIG_FOOMOD=m, Modules that were built into the kernel with =y won't show on an lsmod. On my laptop

Re: Bad Commit for Current Lockups

2014-12-11 Thread Valdis . Kletnieks
On Thu, 11 Dec 2014 09:37:26 -0500, nick said: I send Dave, what I feel is the bad commit for the current lockups found in kernel 3.18 r4. The bad commit I believe is 4995ab9cf512e9a6cc07dfd6b1d4e2fc48ce7fef as it does touch the TLB code in the function that is most likely causing issues.

Re: kernel version

2014-12-11 Thread Valdis . Kletnieks
On Thu, 11 Dec 2014 20:48:38 +0530, p.rameshb...@globaledgesoft.com said: How can I change the kernel version from 3.12 to 3.5.0.45-generic? First, figure out *why* you need to do that. There's probably a better solution. Whether I need to download the source code for 3.5.0.45-generic and I

Re: module for particular device

2014-12-11 Thread Valdis . Kletnieks
On Thu, 11 Dec 2014 15:33:40 -0500, Andrej Manduch said: It looks like `lspci -k` is what you want. Which only works for PCI cards, not for USB, I2C, SPI, or other bus devices that you may have... pgpEwxVpWeGrL.pgp Description: PGP signature ___

Re: kernel: [154858.820009] [drm:i915_hangcheck_elapsed] *ERROR* Hangcheck timer elapsed.

2014-12-15 Thread Valdis . Kletnieks
On Mon, 15 Dec 2014 10:01:54 -0800, Greg KH said: On Mon, Dec 15, 2014 at 11:59:27AM -0600, Chris wrote: That's what I thought Greg but wanted to make sure. AFAIK I'm not having any hardware related issues but I would like to know what the 'Hangcheck timer' is. Possibly you can enlighten

Re: kernel: [154858.820009] [drm:i915_hangcheck_elapsed] *ERROR* Hangcheck timer elapsed.

2014-12-15 Thread Valdis . Kletnieks
On Mon, 15 Dec 2014 14:19:32 -0600, Chris said: On Mon, 2014-12-15 at 13:43 -0500, valdis.kletni...@vt.edu wrote: I'm pretty sure that's a timer for the i915 driver that detects if the GPU has gone into an infinite loop due to (usually) buggy programming from the operating system

Re: kernel: [154858.820009] [drm:i915_hangcheck_elapsed] *ERROR* Hangcheck timer elapsed.

2014-12-15 Thread Valdis . Kletnieks
On Mon, 15 Dec 2014 15:17:32 -0600, Chris said: I believe I understand Valdis, what kind of actions would need to be taken to track this down, if it's possible, or to simply fix the problem once and for all? The assumption is this problem is only one problem. At last count, there's been like

Re: Proprietary drivers

2014-12-16 Thread Valdis . Kletnieks
On Wed, 17 Dec 2014 00:39:40 +0330, Ali Aminian said: I am wondering how should i install proprietary drivers on mainline kernel. I have NVIDIA Corporation G98M [GeForce 9300M GS] graphic chipset and Broadcom Corporation BCM4312 network adapter. in Broadcom case the driver source is available

Re: Solving checkpatch error with lex

2014-12-17 Thread Valdis . Kletnieks
On Thu, 18 Dec 2014 00:04:48 +0530, karthik nayak said: //.* {fprintf(yyout, /*%s*/, yytext + 2);} This fails to fix block comments: // this is line one // this is line two // this is line three to /* * THis is line one * This is line two * this is line three */ pgpbndK6Nz20x.pgp

Re: Solving checkpatch error with lex

2014-12-17 Thread Valdis . Kletnieks
On Wed, 17 Dec 2014 19:10:24 +, karthik nayak said: The only reason I didn't do that is cause the file is too large to manually have a look at, even the diff tends to be very huge. [/usr/src/linux-next] grep '//' drivers/staging/rtl8192u/r8192U_dm.c | wc -l 373 And why use lex when sed is

Re: Problem in loading Nouveau driver

2014-12-21 Thread Valdis . Kletnieks
On Sat, 20 Dec 2014 20:57:40 +0100, Paul Bolle said: On Sat, 2014-12-20 at 20:47 +0330, Ali Aminian wrote: it worked. Good. I just insmod modules you listed and it worked. It's odd that modprobe failed here. Not really. Most likely cause - failure to run depmod after putting new

Re: delete NIC from poll list in process_backlog()

2014-12-23 Thread Valdis . Kletnieks
On Tue, 23 Dec 2014 16:59:05 +0800, lx said: I think we should delete the NIC from the poll list by: list_del(napi-poll_list); Why? pgpwyCIMkmywA.pgp Description: PGP signature ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: question about pr_info (newbie)

2014-12-29 Thread Valdis . Kletnieks
On Mon, 29 Dec 2014 11:32:22 +0200, Kevin Wilson said: The module_init() method has one call to pr_info(Hello world!\n). However, when I run insmod helloWorld.ko I get TWO messages in the kernel log and not one, as I expected: .. Dec 29 11:24:40 kv kernel: [67479.245642] Hello world! Dec

Re: Understanding of write file operation in char driver

2015-01-02 Thread Valdis . Kletnieks
On Fri, 02 Jan 2015 07:50:55 +0530, me storage said: Can any one please tell me difference between kernal space user space in code perspective Two biggies: 1) Kernel space pages are usually nailed down and not paging in and out, this is *not* true for userspace pages (so special tap-dancing

Re: wrapper device driver

2015-02-02 Thread Valdis . Kletnieks
On Mon, 02 Feb 2015 15:24:37 -0600, riya khanna said: Hi, I'm writing a device driver to to provide a wrapper device around a real device. Is it acceptable to do the following: wrapper_dev_open(flags) { // do additional bookkeeping real_dev_filp = filp_open(real_device_node_path,

Re: FW: wrapper device driver

2015-02-02 Thread Valdis . Kletnieks
On Mon, 02 Feb 2015 17:50:43 -0600, riya khanna said: The purpose of multiplexing is to either block undesired events/operations on devices (e.g. input, graphics) or respond to the applications based on the in-memory state of device instances. Those who don't remember the history of filtering

Re: Getting path in inode_permission

2015-02-06 Thread Valdis . Kletnieks
On Sat, 07 Feb 2015 01:57:44 +0530, noyb noybee said: I need the path lookup data as I need to specifically block inode loopkups originating from a certain path Then just make sure the inodes you don't want accessed aren't in the namespace. Hint: from a certain path is almost guaranteed to be

Re: Fwd: Getting path in inode_permission

2015-02-06 Thread Valdis . Kletnieks
On Sat, 07 Feb 2015 07:27:13 +0530, noyb noybee said: I am trying to enhance the security features of the chroot jail(I know it wasn't built for the purpose). I am trying to prevent access to files outside the jail unless they specify a specific The right thing to do is design the jail so it

Re: FW: wrapper device driver

2015-02-03 Thread Valdis . Kletnieks
On Tue, 03 Feb 2015 09:34:31 -0600, riya khanna said: (e.g. evdev) and mediate accesses in user space through ioctl. For example, if a container is in the background (i.e. user not interacting with it), then all inputs should be blocked to it, but if it becomes active again inputs must be

Re: Get Mount target from path

2015-02-05 Thread Valdis . Kletnieks
On Wed, 04 Feb 2015 16:23:26 +0900, manty kuma said: I would like to know the mount target for a given directory. In kernel, is there an API to get the information? Explain what problem you're trying to solve. Your example: /system/bin is a directory its mount partition is /system. isn't very

Re: Prompt the account Scheduling O(1)

2015-01-15 Thread Valdis . Kletnieks
On Thu, 15 Jan 2015 18:57:20 +0300, Meyer Lansky said: if (hardirq_count())                 per_cpu(cpu_hardirq_time, cpu) +Þlta; else if (in_serving_softirq() !(curr-flags PF_KSOFTIRQD))                 per_cpu(cpu_softirq_time, cpu) +Þlta; question: tell me

Re: Building Hello World LSM

2015-01-18 Thread Valdis . Kletnieks
On Sun, 18 Jan 2015 23:49:31 +, Thomas F. J.-M. Pasquier said: I am trying to build a skeleton LSM module, but I am not having much luck so far. The problem seems to be that the LSM init function is never called. What does 'modprobe' report? Anything in dmesg? pgpnfYCRtihDf.pgp

Re: Question about kernel interfaces

2015-01-18 Thread Valdis . Kletnieks
On Sun, 18 Jan 2015 15:03:55 +0530, Siddhartha De said: Let's say you need to call an ioctl from a shell script ( I know its a very rare use case but please bear with me ... :) ) There's a *reason* it's very rare... So the current way of doing it is probably to write a C program which

Re: Make cscope fails for me now as of lastest commits on Linus's tree

2015-01-18 Thread Valdis . Kletnieks
On Sat, 17 Jan 2015 23:28:18 -0500, nick said: Greetings Kernel Developers, After pulling the latest kernel commits for Linus’s tree, I am getting a build failure with make cscope. Below is the error messages. find: unknown predicate `--cc' I am unsure of why I am getting this and if this

Re: Fwd: Fwd: Getting path in inode_permission

2015-02-11 Thread Valdis . Kletnieks
On Thu, 12 Feb 2015 00:31:45 +0530, noyb noybee said: I was planning that the calling process would call the new system call which would return a pseudo-random key that is used as the pass-phrase. So what prevents malicious code from doing a fork and then calling the new syscall to get its

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