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: 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: 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: 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: Mount Compressed File like a Folder

2015-01-31 Thread Valdis . Kletnieks
On Sat, 31 Jan 2015 20:16:29 -0200, Lucas Tanure said: There is a way to mount a xz or gz file , update it, and umount ? Like, this file will be folder that is compressed and I can mount, update the files, and close ? This would probably be best done in userspace, using either fuse or a fully

Re: Intercepting memory mapped files

2015-01-30 Thread Valdis . Kletnieks
On Fri, 30 Jan 2015 17:18:21 +0530, Kunal Baweja said: void encrypt(char *data, char *encrypted, size_t size) { unsigned int i; for(i=0;i(unsigned int)size;i++) encrypted[i] = data[i] + 3; printk(KERN_INFO %s,encrypted); return; } So in the given code wherever u

Re: Intercepting memory mapped files

2015-01-30 Thread Valdis . Kletnieks
On Fri, 30 Jan 2015 06:55:53 -0500, devendra.aaru said: This is not caesar's cipher. If your buffer contains alphabets then only you can apply caesar cipher. It should be something like encrypted[i] = (data[i] - 3) % 26; Consider the sequence of 4 hex bytes 0x17314B65. Your code

Re: Intercepting memory mapped files

2015-01-30 Thread Valdis . Kletnieks
On Fri, 30 Jan 2015 13:17:10 +, Kunal Baweja said: Obviously I am writing the encrypted data :-/ Just checking. You'd be *amazed* at how many times in the last 35 years of code hacking, I've asked questions like that and there's a 10 second pause before the person goes into Emily Litella

Re: Is this a good first patch for enabling screen rotation?

2015-01-29 Thread Valdis . Kletnieks
On Fri, 30 Jan 2015 00:45:30 +0800, Brock York said: (Note, I don't have an Acer, nor am I an HID expert... so take this all with a grain of salt...) Swap the x and y values and negate the x value converting the accelerometers coordinate system into the coordinate system userspace udev

Re: Linux Kernel readlink equivalent

2015-01-29 Thread Valdis . Kletnieks
On Thu, 29 Jan 2015 13:11:13 -0500, David Legault said: I'm working on some linux kernel driver stuff and I have a fake path called /dev/blah/whatever that points to /dev/block/real_device. And *why* is kernel code trying to follow a symlink, anyhow? (Hint: there's probably (a) data you want

Re: Kernel 2.6.32.60 64bit Crash/Hung

2015-01-26 Thread Valdis . Kletnieks
On Tue, 27 Jan 2015 03:52:05 +, Giridhara RP (grp) said: Thanks for the quick turnaround. Which is the stable version? Kernel 2.6.32.60 was used in RHEL 6.2 and we thought this kernel version is stable. It's stable enough that RedHat can afford to keep supporting its paying customers. You

Re: Kernel 2.6.32.60 64bit Crash/Hung

2015-01-26 Thread Valdis . Kletnieks
On Tue, 27 Jan 2015 04:06:00 +, Giridhara RP (grp) said: Which kernel version should I use to solve this crash/panic? That will depend on exactly why you're still running a 2.6.32 kernel from 6 years ago. Remember - the fact it's all the way up to 2.6.32.65 doesn't mean you have all the

Re: New member

2015-01-25 Thread Valdis . Kletnieks
On Sun, 25 Jan 2015 10:07:44 -0800, Satwantjit Kaur said: I am a final year B.Tech (CSE) student from NIT Jalandhar. I like programming and I know C and C++ programming languages. I have worked on IPC and socket programming in C/C++. I wish to take up a project in Linux Kernel development

Re: New member

2015-01-25 Thread Valdis . Kletnieks
On Sun, 25 Jan 2015 16:29:00 -0800, Robert P. J. Day said: what's wrong with ftrace? but seriously, you know what newcomers might get some value out of doing if they want to contribute? writing some really, really good documentation or tutorials. If somebody were to do a really good Top 25

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

2015-01-12 Thread Valdis . Kletnieks
On Mon, 12 Jan 2015 07:34:41 -0600, riya khanna said: Suppose A and B have mapped the same physical memory or shmem file. I want a way to make process A forcefuly revoke/remap the existing shared memory mappings in process B, so that B sees whatever A does. Umm..B should be seeing what A does

Re: Shared mapping

2015-01-12 Thread Valdis . Kletnieks
On Mon, 12 Jan 2015 11:01:06 -0600, riya khanna said: With shared memory mappings, once A and B both map the same memory address/file they see the same contents A [0x] - maps - to - [0x] B [0x] - maps - to - [0x] However, if A changes (update) the mappings to

Re: Paging - can i know the last owner(pid) of a given page?

2015-01-09 Thread Valdis . Kletnieks
On Thu, 08 Jan 2015 18:09:19 +0900, manty kuma said: Suppose, I have a kernel virtual address. Can I know which is the process that last used this address? In general, no. First off, there's no good definition of used - if an address is pointing to (for instance) the inode for /dev/null, what

Re: Submitted a first patch and no reply

2015-01-08 Thread Valdis . Kletnieks
On Thu, 08 Jan 2015 12:37:15 -0800, shirish gajera said: That's hwy I just fix one warning. That means don't fix a warning about indentation *and* a warning about trailing blanks in the same patch. Also, if you're fixing a style issue, you should actually *review* the code, and make sure you

Re: Submitted a first patch and no reply

2015-01-08 Thread Valdis . Kletnieks
On Thu, 08 Jan 2015 12:00:07 -0800, shirish gajera said: WARNING: Single statement macros should not use a do {} while (0) loop I have added single statement in curly braces, because it was giving me WARNING: macros should not use a trailing semicolon. Signed-off-by: Shirish Gajera

Re: catch exit status of daemon

2015-01-06 Thread Valdis . Kletnieks
On Tue, 06 Jan 2015 20:52:02 +0530, Yash Jain said: Process A would call a syslog service, which would internally fork a child, daemon it and exit, so if process A wants to wait for the syslog process, is it possible. % man 2 wait pgpiz3d1k3Tld.pgp Description: PGP signature

Re: Why the Email of @yahoo.com can't subscribe majord...@vger.kernel.org ?

2015-01-06 Thread Valdis . Kletnieks
On Tue, 06 Jan 2015 23:25:18 +0530, Anand Moon said: This mails from yahoo mail server are being dropped by kernel mailing list But why such a policy ? Yahoo and AOL made a rather ill-advised change in their mail configuration, which causes issues for mailing lists. In self-defense, many

Re: ternary vs double exclamation

2015-01-04 Thread Valdis . Kletnieks
On Sun, 04 Jan 2015 18:43:22 -0500, John de la Garza said: On Sat, Jan 03, 2015 at 11:20:29PM -0500, valdis.kletni...@vt.edu wrote: On Sat, 03 Jan 2015 18:54:00 -0500, John de la Garza said: It should not be assumed that true will always be 1 as defined in include/linux/stddef.h, right?

Re: ternary vs double exclamation

2015-01-03 Thread Valdis . Kletnieks
On Sat, 03 Jan 2015 18:54:00 -0500, John de la Garza said: It should not be assumed that true will always be 1 as defined in include/linux/stddef.h, right? No, I mean use an actual 'bool' type rather than 'int'. Consider this from kernel/softirq.c: static inline bool

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

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

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

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