[PATCH 1/6] selftests/damon/huge_count_read_write: provide sufficiently large buffer for DEPRECATED file read

2024-10-28 Thread SeongJae Park
From: Andrew Paniakin 'huge_count_read_write' crashes with segmentation fault when reading DEPRECATED file of DAMON debugfs interface. This is not causing any problem for users or other tests because the purpose of the test is just ensuring the read is not causing kernel warning messages. Nonet

[PATCH 0/3] fs: add partial file read support

2019-05-22 Thread Scott Branden
This patch series adds partial file read support to the kernel via kernel_pread_file functions. request_firmware_into_buf function enhanced to allow partial file read support and single qcom driver using existing function updated. Change to core kernel file support allows new drivers to read

[PATCH 3.16 289/366] cachefiles: Fix refcounting bug in backing-file read monitoring

2018-11-11 Thread Ben Hutchings
3.16.61-rc1 review patch. If anyone has any objections, please let me know. -- From: Kiran Kumar Modukuri commit 934140ab028713a61de8bca58c05332416d037d1 upstream. cachefiles_read_waiter() has the right to access a 'monitor' object by virtue of being called under the waitqueue

[PATCH 4.14 052/165] cachefiles: Fix refcounting bug in backing-file read monitoring

2018-09-03 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Kiran Kumar Modukuri [ Upstream commit 934140ab028713a61de8bca58c05332416d037d1 ] cachefiles_read_waiter() has the right to access a 'monitor' object by virtue of being called under the waitqu

[PATCH 4.9 031/107] cachefiles: Fix refcounting bug in backing-file read monitoring

2018-09-03 Thread Greg Kroah-Hartman
4.9-stable review patch. If anyone has any objections, please let me know. -- From: Kiran Kumar Modukuri [ Upstream commit 934140ab028713a61de8bca58c05332416d037d1 ] cachefiles_read_waiter() has the right to access a 'monitor' object by virtue of being called under the waitque

[PATCH 4.4 28/80] cachefiles: Fix refcounting bug in backing-file read monitoring

2018-09-03 Thread Greg Kroah-Hartman
4.4-stable review patch. If anyone has any objections, please let me know. -- From: Kiran Kumar Modukuri [ Upstream commit 934140ab028713a61de8bca58c05332416d037d1 ] cachefiles_read_waiter() has the right to access a 'monitor' object by virtue of being called under the waitque

[PATCH 3.18 23/56] cachefiles: Fix refcounting bug in backing-file read monitoring

2018-09-03 Thread Greg Kroah-Hartman
3.18-stable review patch. If anyone has any objections, please let me know. -- From: Kiran Kumar Modukuri [ Upstream commit 934140ab028713a61de8bca58c05332416d037d1 ] cachefiles_read_waiter() has the right to access a 'monitor' object by virtue of being called under the waitqu

[PATCH v2 02/12] coresight: tmc: Hide trace buffer handling for file read

2018-05-29 Thread Suzuki K Poulose
At the moment we adjust the buffer pointers for reading the trace data via misc device in the common code for ETF/ETB and ETR. Since we are going to change how we manage the buffer for ETR, let us move the buffer manipulation to the respective driver files, hiding it from the common code. We do so

[PATCH 02/11] coresight: tmc: Hide trace buffer handling for file read

2018-05-18 Thread Suzuki K Poulose
At the moment we adjust the buffer pointers for reading the trace data via misc device in the common code for ETF/ETB and ETR. Since we are going to change how we manage the buffer for ETR, let us move the buffer manipulation to the respective driver files, hiding it from the common code. We do so

Re: [PATCH v2 07/27] coresight: tmc: Hide trace buffer handling for file read

2018-05-03 Thread Mathieu Poirier
On Tue, May 01, 2018 at 10:10:37AM +0100, Suzuki K Poulose wrote: > At the moment we adjust the buffer pointers for reading the trace > data via misc device in the common code for ETF/ETB and ETR. Since > we are going to change how we manage the buffer for ETR, let us > move the buffer manipulation

[PATCH v2 07/27] coresight: tmc: Hide trace buffer handling for file read

2018-05-01 Thread Suzuki K Poulose
At the moment we adjust the buffer pointers for reading the trace data via misc device in the common code for ETF/ETB and ETR. Since we are going to change how we manage the buffer for ETR, let us move the buffer manipulation to the respective driver files, hiding it from the common code. We do so

[PATCH v2 8/8] scripts/leaking_addresses: add timeout on file read

2017-11-08 Thread Tobin C. Harding
Currently script can stall if we read certain files (like /proc/kmsg). While we have a mechanism to skip these files once they are discovered it would be nice to not stall on as yet undiscovered files of this kind. Set a timer before each file is parsed, warn user if timer expires. Suggested-by:

Re: [PATCH 02/17] coresight tmc: Hide trace buffer handling for file read

2017-11-01 Thread Suzuki K Poulose
On 20/10/17 13:34, Julien Thierry wrote: Hi Suzuki, On 19/10/17 18:15, Suzuki K Poulose wrote: At the moment we adjust the buffer pointers for reading the trace data via misc device in the common code for ETF/ETB and ETR. Since we are going to change how we manage the buffer for ETR, let us mov

Re: [PATCH 02/17] coresight tmc: Hide trace buffer handling for file read

2017-10-20 Thread Julien Thierry
Hi Suzuki, On 19/10/17 18:15, Suzuki K Poulose wrote: At the moment we adjust the buffer pointers for reading the trace data via misc device in the common code for ETF/ETB and ETR. Since we are going to change how we manage the buffer for ETR, let us move the buffer manipulation to the respectiv

[PATCH 02/17] coresight tmc: Hide trace buffer handling for file read

2017-10-19 Thread Suzuki K Poulose
At the moment we adjust the buffer pointers for reading the trace data via misc device in the common code for ETF/ETB and ETR. Since we are going to change how we manage the buffer for ETR, let us move the buffer manipulation to the respective driver files, hiding it from the common code. We do so

[PATCH 3.13.y-ckt 33/96] arm64: readahead: fault retry breaks mmap file read random detection

2015-11-13 Thread Kamal Mostafa
3.13.11-ckt30 -stable review patch. If anyone has any objections, please let me know. -- From: Mark Salyzyn commit 569ba74a7ba69f46ce2950bf085b37fea2408385 upstream. This is the arm64 portion of commit 45cac65b0fcd ("readahead: fault retry breaks mmap file read r

[PATCH 3.16.y-ckt 17/94] arm64: readahead: fault retry breaks mmap file read random detection

2015-11-13 Thread Luis Henriques
3.16.7-ckt20 -stable review patch. If anyone has any objections, please let me know. -- From: Mark Salyzyn commit 569ba74a7ba69f46ce2950bf085b37fea2408385 upstream. This is the arm64 portion of commit 45cac65b0fcd ("readahead: fault retry breaks mmap file read r

[PATCH 3.19.y-ckt 061/155] arm64: readahead: fault retry breaks mmap file read random detection

2015-11-12 Thread Kamal Mostafa
3.19.8-ckt10 -stable review patch. If anyone has any objections, please let me know. -- From: Mark Salyzyn commit 569ba74a7ba69f46ce2950bf085b37fea2408385 upstream. This is the arm64 portion of commit 45cac65b0fcd ("readahead: fault retry breaks mmap file read r

[PATCH 3.12 074/123] arm64: readahead: fault retry breaks mmap file read random detection

2015-10-28 Thread Jiri Slaby
From: Mark Salyzyn 3.12-stable review patch. If anyone has any objections, please let me know. === commit 569ba74a7ba69f46ce2950bf085b37fea2408385 upstream. This is the arm64 portion of commit 45cac65b0fcd ("readahead: fault retry breaks mmap file read random detection&quo

[PATCH 4.1 180/202] arm64: readahead: fault retry breaks mmap file read random detection

2015-10-17 Thread Greg Kroah-Hartman
4.1-stable review patch. If anyone has any objections, please let me know. -- From: Mark Salyzyn commit 569ba74a7ba69f46ce2950bf085b37fea2408385 upstream. This is the arm64 portion of commit 45cac65b0fcd ("readahead: fault retry breaks mmap file read random detection&quo

[PATCH 4.2 230/258] arm64: readahead: fault retry breaks mmap file read random detection

2015-10-17 Thread Greg Kroah-Hartman
4.2-stable review patch. If anyone has any objections, please let me know. -- From: Mark Salyzyn commit 569ba74a7ba69f46ce2950bf085b37fea2408385 upstream. This is the arm64 portion of commit 45cac65b0fcd ("readahead: fault retry breaks mmap file read random detection&quo

[PATCH 3.14 70/79] arm64: readahead: fault retry breaks mmap file read random detection

2015-10-17 Thread Greg Kroah-Hartman
3.14-stable review patch. If anyone has any objections, please let me know. -- From: Mark Salyzyn commit 569ba74a7ba69f46ce2950bf085b37fea2408385 upstream. This is the arm64 portion of commit 45cac65b0fcd ("readahead: fault retry breaks mmap file read random dete

[PATCH 3.10 46/54] arm64: readahead: fault retry breaks mmap file read random detection

2015-10-17 Thread Greg Kroah-Hartman
3.10-stable review patch. If anyone has any objections, please let me know. -- From: Mark Salyzyn commit 569ba74a7ba69f46ce2950bf085b37fea2408385 upstream. This is the arm64 portion of commit 45cac65b0fcd ("readahead: fault retry breaks mmap file read random dete

Re: ARM64 readahead: fault retry breaks mmap file read random detection

2015-09-22 Thread Mark Salyzyn
mmap file read random detection") . . . Yup, arm64 needs this too! Random read improves by 250%, sequential read improves by 40%, and random write by 400% to an eMMC device with dm crypto wrapped around it. Thanks for this. This must've gone in whilst we were developing the initial versi

Re: ARM64 readahead: fault retry breaks mmap file read random detection

2015-09-21 Thread Will Deacon
On Mon, Sep 21, 2015 at 10:36:40PM +0100, Mark Salyzyn wrote: > On 09/21/2015 02:09 PM, Will Deacon wrote: > > On Mon, Sep 21, 2015 at 09:39:50PM +0100, Mark Salyzyn wrote: > >> Description from commit 45cac65b0fcd > >> ("readahead: fault retry breaks

Re: ARM64 readahead: fault retry breaks mmap file read random detection

2015-09-21 Thread Mark Salyzyn
On 09/21/2015 02:09 PM, Will Deacon wrote: On Mon, Sep 21, 2015 at 09:39:50PM +0100, Mark Salyzyn wrote: Description from commit 45cac65b0fcd ("readahead: fault retry breaks mmap file read random detection") . . . Yup, arm64 needs this too! Random read improves by 250%, seque

Re: ARM64 readahead: fault retry breaks mmap file read random detection

2015-09-21 Thread Will Deacon
On Mon, Sep 21, 2015 at 09:39:50PM +0100, Mark Salyzyn wrote: > Description from commit 45cac65b0fcd > ("readahead: fault retry breaks mmap file read random detection") > > .fault now can retry. The retry can break state machine of .fault. In > filemap_fault, if pa

ARM64 readahead: fault retry breaks mmap file read random detection

2015-09-21 Thread Mark Salyzyn
Description from commit 45cac65b0fcd ("readahead: fault retry breaks mmap file read random detection") .fault now can retry. The retry can break state machine of .fault. In filemap_fault, if page is miss, ra->mmap_miss is increased. In the second try, since the page is in p

Re: [PATCH 0/2] staging: comedi: per-file read/write subdevice choice

2014-11-05 Thread Ian Abbott
e "comedi_test" application (part of the "comedilib" installation) modified to use the new ioctls. There isn't any support in comedilib itself yet. 1) staging: comedi: prepare support for per-file read and write subdevices 2) staging: comedi: add ioctls to set per-file read

RE: [PATCH 0/2] staging: comedi: per-file read/write subdevice choice

2014-11-04 Thread Hartley Sweeten
ion of the "comedi_test" application > (part of the "comedilib" installation) modified to use the new ioctls. > There isn't any support in comedilib itself yet. > > 1) staging: comedi: prepare support for per-file read and write >subdevices > 2) stag

[PATCH 2/2] staging: comedi: add ioctls to set per-file read and write subdevice

2014-11-04 Thread Ian Abbott
Now that Comedi has the structures in place to support setting the current "read" and/or "write" subdevice on a per-file object basis, add new ioctls to set them. The newly chosen "read" ("write") subdevice needs to support "read" ("write") commands, and the file cannot be busy handling a "read" (

[PATCH 1/2] staging: comedi: prepare support for per-file read and write subdevices

2014-11-04 Thread Ian Abbott
Comedi devices may have several subdevices that support "read" and/or "write" asynchronous commands that use the "read" or "write" file operations for data transfer. The low-level Comedi drivers may nominate a default "read" subdevice and/or a default "write" subdevice, but it may have other subde

[PATCH 0/2] staging: comedi: per-file read/write subdevice choice

2014-11-04 Thread Ian Abbott
the new ioctls. There isn't any support in comedilib itself yet. 1) staging: comedi: prepare support for per-file read and write subdevices 2) staging: comedi: add ioctls to set per-file read and write subdevice drivers/staging/comedi/comedi.h | 2 + driver

[PATCH 17/32] nohz/cpuset: Flush cputimes on procfs stat file read

2012-10-29 Thread Steven Rostedt
From: Frederic Weisbecker When we read a process's procfs stat file, we need to flush the cputimes of the tasks running in nohz cpusets in case some childs in the thread group are running there. Signed-off-by: Frederic Weisbecker Cc: Alessio Igor Bogani Cc: Andrew Morton Cc: Avi Kivity Cc: C

Re: [PATCH] w1_ds2760: Fix binary file read callback signature

2007-07-13 Thread Jean Delvare
Hi Evgeniy, On Fri, 13 Jul 2007 13:38:51 +0400, Evgeniy Polyakov wrote: > On Fri, Jul 13, 2007 at 11:26:43AM +0200, Jean Delvare ([EMAIL PROTECTED]) > wrote: > > Commit 91a6902958f052358899f58683d44e36228d85c2 changed the binary > > sysfs file signatures at the same time the w1_ds2760 driver was

Re: [PATCH] w1_ds2760: Fix binary file read callback signature

2007-07-13 Thread Evgeniy Polyakov
On Fri, Jul 13, 2007 at 11:26:43AM +0200, Jean Delvare ([EMAIL PROTECTED]) wrote: > Commit 91a6902958f052358899f58683d44e36228d85c2 changed the binary > sysfs file signatures at the same time the w1_ds2760 driver was added. > > Signed-off-by: Jean Delvare <[EMAIL PROTECTED]> I have no problem wi

[PATCH] w1_ds2760: Fix binary file read callback signature

2007-07-13 Thread Jean Delvare
Commit 91a6902958f052358899f58683d44e36228d85c2 changed the binary sysfs file signatures at the same time the w1_ds2760 driver was added. Signed-off-by: Jean Delvare <[EMAIL PROTECTED]> --- drivers/w1/slaves/w1_ds2760.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- linux-2.6.

Re: [PATCH] relay-file-read-start-pos-fix.patch

2007-06-21 Thread David Wilder
Ack Works for me. Thanks. Note: Both Masami's patch and the relay-file-read-start-pos-fix.patch I posted earlier are required. Masami Hiramatsu wrote: Hi Tom, Tom Zanussi wrote: Could you send more info on how to reproduce the problem you're seeing? And does this pa

Re: [PATCH] relay-file-read-start-pos-fix.patch

2007-06-20 Thread Tom Zanussi
On Wed, 2007-06-20 at 17:31 +0900, Masami Hiramatsu wrote: [...] > P.S. > I attached my patch (relay-file-read-overwrite-mode-fix.patch) > which fixed the problem pointed in previous mail. > > Signed-off-by: Masami Hiramatsu <[EMAIL PROTECTED]> > Hi, Thanks for s

Re: [PATCH] relay-file-read-start-pos-fix.patch

2007-06-20 Thread Masami Hiramatsu
1 9818 9817 9819 13912 0 0 780 1625 5723 5721 And, with my patch; 15742 13273 14901 12430 14056 15682 13215 14840 12370 13996 15624 13154 So, I think my patch (which )fixes the problem. Thanks, P.S. I attached my patch (relay-file-read-overwrite-mode-fix.patch) which fixed the problem pointed

Re: [PATCH] relay-file-read-start-pos-fix.patch

2007-06-19 Thread Masami Hiramatsu
Tom Zanussi wrote: > Hi, > > I haven't had a chance to test it myself yet, but it looks ok to me, > except for one problem noted below... Hi, Thank you so much! I'm preparing how it can reproduce. I'll send it as soon as possible. > Thanks for fixing it. > >> Signed-off-by: Masami Hiramatsu <[

Re: [PATCH] relay-file-read-start-pos-fix.patch

2007-06-19 Thread Tom Zanussi
On Tue, 2007-06-19 at 12:43 +0900, Masami Hiramatsu wrote: > Hi David and Tom, > > David Wilder wrote: > > This patch fixes a bug in the relay read interface causing the number > > of consumed bytes to be set incorrectly. > > Thank you. Your patch fixes one of my concerns. > However there is ano

Re: [PATCH] relay-file-read-start-pos-fix.patch

2007-06-18 Thread Tom Zanussi
On Tue, 2007-06-19 at 12:43 +0900, Masami Hiramatsu wrote: > Hi David and Tom, > > David Wilder wrote: > > This patch fixes a bug in the relay read interface causing the number > > of consumed bytes to be set incorrectly. > > Thank you. Your patch fixes one of my concerns. > However there is ano

Re: [PATCH] relay-file-read-start-pos-fix.patch

2007-06-18 Thread Masami Hiramatsu
Hi David and Tom, David Wilder wrote: > This patch fixes a bug in the relay read interface causing the number > of consumed bytes to be set incorrectly. Thank you. Your patch fixes one of my concerns. However there is another bug I found. When I use relayfs with "overwrite" mode, read() still se

[PATCH] relay-file-read-start-pos-fix.patch

2007-06-17 Thread David Wilder
-- David Wilder IBM Linux Technology Center Beaverton, Oregon, USA [EMAIL PROTECTED] (503)578-3789 This patch fixes a bug in the relay read interface causing the number of consumed bytes to be set incorrectly. Signed-off-by: Tom Zanussi <[EMAIL PROTECTED]> Signed-off-by: David Wilder <[EMAIL

Re: File read

2001-05-31 Thread Lee Ho
I wrote some functions for file handling in kernel module. Check the source : http://linuxkernel.to/klib/klib/src/fileio.c (The basic idea is from khttpd) This is part of my personal klib (kernel library) project. You can download the full source : http://klib.sourceforge.net/download/klib.tar

Re: File read.

2001-05-28 Thread Davide Libenzi
On 28-May-2001 Mike Castle wrote: > On Mon, May 28, 2001 at 11:26:31AM -0700, Davide Libenzi wrote: >> >> On 28-Jun-2001 Anil Kumar wrote: >> > hi, >> > How do i read file within the kernel modules. I hope we can't use the FS >> > open... calls within kernel. >> >> You can access fs methods dir

Re: File read.

2001-05-28 Thread Mike Castle
On Mon, May 28, 2001 at 11:26:31AM -0700, Davide Libenzi wrote: > > On 28-Jun-2001 Anil Kumar wrote: > > hi, > > How do i read file within the kernel modules. I hope we can't use the FS > > open... calls within kernel. > > You can access fs methods directly. But generally you don't want to. Us

RE: File read.

2001-05-28 Thread Davide Libenzi
On 28-Jun-2001 Anil Kumar wrote: > hi, > How do i read file within the kernel modules. I hope we can't use the FS > open... calls within kernel. You can access fs methods directly. Look at this newbie article : http://www.linux-mag.com/2000-11/gear_01.html - Davide - To unsubscribe from th

File read.

2001-05-27 Thread Anil Kumar
hi, How do i read file within the kernel modules. I hope we can't use the FS open... calls within kernel. thanks - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.h