[PATCH] selftests/vm/pkeys: fix assert when DEBUG_LEVEL is set to 2

2021-04-12 Thread Dave Kleikamp
to make sure that shadow_pkey_reg is properly set? Signed-off-by: Dave Kleikamp Cc: Ram Pai --- tools/testing/selftests/vm/protection_keys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/vm/protection_keys.c b/tools/testing/selftests/vm

Re: [PATCH] fs: Fix typo issue

2021-03-17 Thread Dave Kleikamp
Thanks, applied. Shaggy On 3/17/21 2:10 AM, zuoqil...@163.com wrote: From: zuoqilin Change 'inacitve' to 'inactive'. Signed-off-by: zuoqilin --- fs/jfs/jfs_dmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/jfs/jfs_dmap.c b/fs/jfs/jfs_dmap.c index

[GIT PULL] jfs updates for 5.12

2021-02-15 Thread Dave Kleikamp
The following changes since commit a0b96314870f7eff6d15a242cb162dfc46b3c284: Merge tag 'xfs-5.11-merge-4' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux (2020-12-18 12:50:18 -0800) are available in the Git repository at: git://github.com/kleikamp/linux-shaggy.git tags/jfs-5.12 for you

Re: [PATCH][next][V2] fs/jfs: fix potential integer overflow on shift of a int

2021-02-11 Thread Dave Kleikamp
L macro as suggested by Dave Kleikamp. --- fs/jfs/jfs_dmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/jfs/jfs_dmap.c b/fs/jfs/jfs_dmap.c index 94b7c1cb5ceb..7aee15608619 100644 --- a/fs/jfs/jfs_dmap.c +++ b/fs/jfs/jfs_dmap.c @@ -1656,7 +1656,7 @@ s64 dbDiscardAG(s

Re: [PATCH] fs/jfs: fix potential integer overflow on shift of a int

2021-02-09 Thread Dave Kleikamp
On 2/5/21 11:11 AM, Colin King wrote: From: Colin Ian King The left shift of int 32 bit integer constant 1 is evaluated using 32 bit arithmetic and then assigned to a signed 64 bit integer. In the case where l2nb is 32 or more this can lead to an overflow. Avoid this by shifting using the

[PATCH v3] jfs: turn diLog(), dataLog() and txLog() into void functions

2021-02-08 Thread Dave Kleikamp
7: Unneeded variable: "rc". Return "0" on line 1527 Reported-by: Abaci Robot Signed-off-by: Yang Li Signed-off-by: Dave Kleikamp --- Changes in v3 - don't check return value of txLog() in txCommit() (Dave Kleikamp) Changes in v2 -turn functions forward references

Re: [Jfs-discussion] [PATCH v2] jfs: turn diLog(), dataLog() and txLog() into void functions

2021-02-08 Thread Dave Kleikamp
I just realized I mangled some whitespace trying to mail this through Thunderbird. I'll repost it the right way. Shaggy On 2/8/21 9:05 AM, Dave Kleikamp wrote: On 2/7/21 2:32 AM, Yang Li wrote: These functions always return '0' and no callers use the return value. So make it a void function

Re: [PATCH v2] jfs: turn diLog(), dataLog() and txLog() into void functions

2021-02-08 Thread Dave Kleikamp
function. This eliminates the following coccicheck warning: ./fs/jfs/jfs_txnmgr.c:1365:5-7: Unneeded variable: "rc". Return "0" on line 1414 ./fs/jfs/jfs_txnmgr.c:1422:5-7: Unneeded variable: "rc". Return "0" on line 1527 Reported-by: Abaci Robot Sig

Re: [PATCH] jfs: Remove unneeded return variable

2021-02-04 Thread Dave Kleikamp
On 2/3/21 9:39 PM, Yang Li wrote: This patch removes unneeded return variables, using only '0' instead. It fixes the following warning detected by coccinelle: ./fs/jfs/jfs_txnmgr.c:1370:5-7: Unneeded variable: "rc". Return "0" on line 1417 Looks good. I wonder if we should take it a step

Re: [RFC PATCH 19/34] fs/jfs/jfs_logmgr.c: use bio_new in lbmRead

2021-01-28 Thread Dave Kleikamp
You probably don't need 4 patches to fs/jfs/. These can be combined into a single patch. Dave On 1/28/21 1:11 AM, Chaitanya Kulkarni wrote: Signed-off-by: Chaitanya Kulkarni --- fs/jfs/jfs_logmgr.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git

Re: UBSAN: shift-out-of-bounds in diReadSpecial

2021-01-05 Thread Dave Kleikamp
I suspect Randy Dunlap's fix for https://syzkaller.appspot.com/bug?extid=36315852ece4132ec193 will take care of this one as well: https://github.com/kleikamp/linux-shaggy/commit/3bef198f1b17d1bb89260bad947ef084c0a2d1a6 sbi->l2nbperpage is derived from sbi->l2bsize, which is sanity checked by

Re: [PATCH v2] JFS: more checks for invalid superblock

2020-12-18 Thread Dave Kleikamp
, this making this like a game of whack-a-mole. syzkaller link: https://syzkaller.appspot.com/bug?extid=36315852ece4132ec193 Reported-by: syzbot+36315852ece4132ec...@syzkaller.appspotmail.com Reported-by: kernel test robot # v2 Signed-off-by: Randy Dunlap Cc: Dave Kleikamp Cc: jfs-discuss

[GIT PULL] jfs updates for 5.11

2020-12-14 Thread Dave Kleikamp
for you to fetch changes up to c61b3e4839007668360ed8b87d7da96d2e59fc6c: jfs: Fix array index bounds check in dbAdjTree (2020-11-13 16:03:07 -0600) A few jfs fixes Dave

Re: UBSAN: array-index-out-of-bounds in dbAdjTree

2020-11-20 Thread Dave Kleikamp
> On Sun, Nov 15, 2020 at 12:17 AM Dave Kleikamp > wrote: >> >> Thanks for reporting and testing this! >> >> Shaggy >> >> On 11/14/20 7:55 AM, butt3rflyh4ck wrote: >>> Yes, I have tested the patch, it seem to fix the problem. >>> >>

Re: UBSAN: array-index-out-of-bounds in dbAdjTree

2020-11-14 Thread Dave Kleikamp
Thanks for reporting and testing this! Shaggy On 11/14/20 7:55 AM, butt3rflyh4ck wrote: > Yes, I have tested the patch, it seem to fix the problem. > > Regard, > butt3rflyh4ck. > > On Sat, Nov 14, 2020 at 5:16 AM Dave Kleikamp > wrote: >> >> On 10/8/20 12:

Re: UBSAN: array-index-out-of-bounds in dbAdjTree

2020-11-13 Thread Dave Kleikamp
this patch fix the problem? jfs: Fix array index bounds check in dbAdjTree Bounds checking tools can flag a bug in dbAdjTree() for an array index out of bounds in dmt_stree. Since dmt_stree can refer to the stree in both structures dmaptree and dmapctl, use the larger array to eliminate the fals

Re: [PATCH] arm64: NUMA: Kconfig: Increase max number of nodes

2020-10-27 Thread Dave Kleikamp
On 10/22/20 11:25 AM, Vanshi Konda wrote: > On Thu, Oct 22, 2020 at 12:21:27PM +0100, Robin Murphy wrote: >> On 2020-10-22 02:07, Vanshi Konda wrote: >>> On Thu, Oct 22, 2020 at 12:44:15AM +0100, Robin Murphy wrote: On 2020-10-21 12:02, Jonathan Cameron wrote: > On Wed, 21 Oct 2020

Re: [PATCH] jfs: delete duplicated words in header files

2020-10-14 Thread Dave Kleikamp
;if" in comments. >> >> Signed-off-by: Randy Dunlap >> Cc: Dave Kleikamp >> Cc: jfs-discuss...@lists.sourceforge.net >> --- >> fs/jfs/jfs_extent.h |2 +- >> fs/jfs/jfs_logmgr.h |2 +- >> 2 files changed, 2 insertions(+), 2 deletions(-) &

Re: [PATCH v2 2/9] fs: Introduce i_blocks_per_page

2020-09-15 Thread Dave Kleikamp
off-by: Matthew Wilcox (Oracle) > Reviewed-by: Christoph Hellwig > Reviewed-by: Dave Chinner > Reviewed-by: Darrick J. Wong For jfs: Acked-by: Dave Kleikamp > --- > fs/iomap/buffered-io.c | 8 > fs/jfs/jfs_metapage.c | 2 +- > fs/xfs/xfs_aops.c |

[GIT PULL] JFS fix for v5.8

2020-06-02 Thread Dave Kleikamp
The following changes since commit 2c523b344dfa65a3738e7039832044aa133c75fb: Linux 5.6-rc5 (2020-03-08 17:44:44 -0700) are available in the Git repository at: git://github.com/kleikamp/linux-shaggy.git tags/jfs-5.8 for you to fetch changes up to 7aba5dcc234635b44b2781dbc268048cfba388ad:

Re: [Jfs-discussion] [PATCH] JFS: Replace zero-length array with flexible-array

2020-05-08 Thread Dave Kleikamp
Thanks Gustavo. I have already merged this into jfs-next. It was all I had queued up and I failed to push it in the last merge window to Linus. I'll make sure I get it in the next one. https://github.com/kleikamp/linux-shaggy/commits/jfs-next Shaggy On 5/7/20 1:55 PM, Gustavo A. R. Silva

Re: [PATCH v2] fs: jfs: fix a possible data race in metapage_writepage()

2020-05-05 Thread Dave Kleikamp
On 5/5/20 9:15 AM, Markus Elfring wrote: >> This data race is found by our concurrency fuzzer. > > * How do you think about to replace the word “is” by “was”? > > * Is this analysis tool publicly available? > > > … >> --- >> fs/jfs/jfs_metapage.c | 11 +-- > > I suggest to omit the

Re: fs: jfs: fix a possible data race in txBegin()

2020-05-05 Thread Dave Kleikamp
On 5/5/20 12:12 AM, Markus Elfring wrote: >> I am not sure how to add the tag "Fixes"... > > How helpful do you find the available software documentation? >

Re: [Jfs-discussion] [PATCH 1/4] vfs: create a generic checking function for FS_IOC_SETFLAGS

2019-06-11 Thread Dave Kleikamp
On 6/10/19 11:45 PM, Darrick J. Wong wrote: > From: Darrick J. Wong > > Create a generic checking function for the incoming FS_IOC_SETFLAGS flag > values so that we can standardize the implementations that follow ext4's > flag values. > > Signed-off-by: Darrick J. Wong -- clip -- > diff

[GIT PULL] jfs updates for 5.2

2019-05-06 Thread Dave Kleikamp
: Switch to use new generic UUID API Arnd Bergmann (1): jfs: fix bogus variable self-initialization Chengguang Xu (1): jfs: compare old and new mode before setting update_mode flag Colin Ian King (1): jfs: fix spelling mistake, EACCESS -> EACCES Dave Kleikamp (1):

Re: [PATCH] jfs: fix bogus variable self-initialization

2019-03-22 Thread Dave Kleikamp
d. Will push it upstream. Shaggy > > Fixes: c9e3ad6021e5 ("JFS: Get rid of "may be used uninitialized" warnings") > Signed-off-by: Arnd Bergmann Signed-off-by: Dave Kleikamp > --- > fs/jfs/jfs_txnmgr.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions

Re: [PATCH v1] fs/jfs: Switch to use new generic UUID API

2019-01-21 Thread Dave Kleikamp
On 1/21/19 10:23 AM, Christoph Hellwig wrote: > On Mon, Jan 21, 2019 at 10:19:15AM -0600, Dave Kleikamp wrote: >> diff --git a/fs/jfs/super.c b/fs/jfs/super.c >> index 65d8fc87ab11..c15ff56a8516 100644 >> --- a/fs/jfs/super.c >> +++ b/fs/jfs/super.c >> @@ -174,9

Re: [PATCH v1] fs/jfs: Switch to use new generic UUID API

2019-01-21 Thread Dave Kleikamp
On 1/21/19 2:49 AM, Christoph Hellwig wrote: >> +buf->f_fsid.val[1] = (u32)crc32_le(0, (char *)>uuid + >> sizeof(sbi->uuid)/2, > > This adds an overly long line, and has weird operator spacing. > > In fact given how much deep magic it does it should probably be moved > into a helper and

Re: [PATCH v1] fs/jfs: Switch to use new generic UUID API

2019-01-10 Thread Dave Kleikamp
On 1/10/19 7:41 AM, Andy Shevchenko wrote: > There are new types and helpers that are supposed to be used in new code. > > As a preparation to get rid of legacy types and API functions do > the conversion here. Looks good to me. I tweaked it slightly to keep checkpatch from complaining about

Re: [PATCH] jfs: fix spelling mistake, EACCESS -> EACCES

2018-10-26 Thread Dave Kleikamp
On 10/26/18 1:09 PM, Colin King wrote: > From: Colin Ian King > > Trivial fix to a spelling mistake of the error access name EACCESS, > rename to EACCES > > Signed-off-by: Colin Ian King Thanks. Pulled into the jfs tree. Shaggy > --- > fs/jfs/namei.c | 2 +- > 1 file changed, 1

Re: [PATCH] jfs: fix spelling mistake, EACCESS -> EACCES

2018-10-26 Thread Dave Kleikamp
On 10/26/18 1:09 PM, Colin King wrote: > From: Colin Ian King > > Trivial fix to a spelling mistake of the error access name EACCESS, > rename to EACCES > > Signed-off-by: Colin Ian King Thanks. Pulled into the jfs tree. Shaggy > --- > fs/jfs/namei.c | 2 +- > 1 file changed, 1

[GIT PULL] jfs fixes for v4.20

2018-10-23 Thread Dave Kleikamp
The following changes since commit be65e2595b4c1fbeceba336d8ee83406726b1d8d: Merge tag 'trace-v4.19-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace (2018-09-06 09:06:49 -0700) are available in the Git repository at: git://github.com/kleikamp/linux-shaggy.git

[GIT PULL] jfs fixes for v4.20

2018-10-23 Thread Dave Kleikamp
The following changes since commit be65e2595b4c1fbeceba336d8ee83406726b1d8d: Merge tag 'trace-v4.19-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace (2018-09-06 09:06:49 -0700) are available in the Git repository at: git://github.com/kleikamp/linux-shaggy.git

Re: [PATCH] jfs: remove redundant dquot_initialize() in jfs_evict_inode()

2018-09-20 Thread Dave Kleikamp
On 9/20/18 9:18 AM, Chao Yu wrote: > Ping, > > Any comments? Sorry for putting it off. It looks good to me. I'll push it upstream. Thanks, Dave > > On 2018/9/17 15:12, Chao Yu wrote: >> We don't need to call dquot_initialize() twice in jfs_evict_inode(), >> remove one of them for cleanup. >>

Re: [PATCH] jfs: remove redundant dquot_initialize() in jfs_evict_inode()

2018-09-20 Thread Dave Kleikamp
On 9/20/18 9:18 AM, Chao Yu wrote: > Ping, > > Any comments? Sorry for putting it off. It looks good to me. I'll push it upstream. Thanks, Dave > > On 2018/9/17 15:12, Chao Yu wrote: >> We don't need to call dquot_initialize() twice in jfs_evict_inode(), >> remove one of them for cleanup. >>

Re: [Jfs-discussion] [PATCH v2 4/5] jfs: cache NULL when both default_acl and acl are NULL

2018-09-05 Thread Dave Kleikamp
On 9/5/18 1:13 AM, cgxu519 wrote: > > On 09/04/2018 04:34 AM, Dave Kleikamp wrote: >> Are you pushing these as a series, or would you like this patch pushed >> through the jfs tree? > I'd hope maintainers pick individual patch to their tree. I'll take care of this

Re: [Jfs-discussion] [PATCH v2 4/5] jfs: cache NULL when both default_acl and acl are NULL

2018-09-05 Thread Dave Kleikamp
On 9/5/18 1:13 AM, cgxu519 wrote: > > On 09/04/2018 04:34 AM, Dave Kleikamp wrote: >> Are you pushing these as a series, or would you like this patch pushed >> through the jfs tree? > I'd hope maintainers pick individual patch to their tree. I'll take care of this

[GIT PULL] jfs patches for v4.19

2018-08-15 Thread Dave Kleikamp
The following changes since commit ba4dbdedd3edc2798659bcd8b1a184ea8bdd04dc: Merge tag 'jfs-4.18' of git://github.com/kleikamp/linux-shaggy (2018-06-19 07:47:32 +0900) are available in the Git repository at: git://github.com/kleikamp/linux-shaggy.git tags/jfs-4.19 for you to fetch changes

[GIT PULL] jfs patches for v4.19

2018-08-15 Thread Dave Kleikamp
The following changes since commit ba4dbdedd3edc2798659bcd8b1a184ea8bdd04dc: Merge tag 'jfs-4.18' of git://github.com/kleikamp/linux-shaggy (2018-06-19 07:47:32 +0900) are available in the Git repository at: git://github.com/kleikamp/linux-shaggy.git tags/jfs-4.19 for you to fetch changes

Re: [PATCH 1/1] arm64: kexec: machine_kexec should call __flush_icache_range

2018-07-30 Thread Dave Kleikamp
On 07/30/2018 07:28 PM, AKASHI Takahiro wrote: > On Mon, Jul 30, 2018 at 04:36:28PM -0500, Dave Kleikamp wrote: >> On 07/30/2018 11:57 AM, Will Deacon wrote: >>> On Mon, Jul 30, 2018 at 11:46:24AM -0500, Dave Kleikamp wrote: >>>> On 07/30/2018 11:22 AM, Will Deac

Re: [PATCH 1/1] arm64: kexec: machine_kexec should call __flush_icache_range

2018-07-30 Thread Dave Kleikamp
On 07/30/2018 07:28 PM, AKASHI Takahiro wrote: > On Mon, Jul 30, 2018 at 04:36:28PM -0500, Dave Kleikamp wrote: >> On 07/30/2018 11:57 AM, Will Deacon wrote: >>> On Mon, Jul 30, 2018 at 11:46:24AM -0500, Dave Kleikamp wrote: >>>> On 07/30/2018 11:22 AM, Will Deac

Re: [PATCH 1/1] arm64: kexec: machine_kexec should call __flush_icache_range

2018-07-30 Thread Dave Kleikamp
On 07/30/2018 11:57 AM, Will Deacon wrote: > On Mon, Jul 30, 2018 at 11:46:24AM -0500, Dave Kleikamp wrote: >> On 07/30/2018 11:22 AM, Will Deacon wrote: >>> On Mon, Jul 30, 2018 at 05:16:42PM +0100, Catalin Marinas wrote: >>>> On Mon, Jul 30, 2018 at 10:29:2

Re: [PATCH 1/1] arm64: kexec: machine_kexec should call __flush_icache_range

2018-07-30 Thread Dave Kleikamp
On 07/30/2018 11:57 AM, Will Deacon wrote: > On Mon, Jul 30, 2018 at 11:46:24AM -0500, Dave Kleikamp wrote: >> On 07/30/2018 11:22 AM, Will Deacon wrote: >>> On Mon, Jul 30, 2018 at 05:16:42PM +0100, Catalin Marinas wrote: >>>> On Mon, Jul 30, 2018 at 10:29:2

Re: [PATCH 1/1] arm64: kexec: machine_kexec should call __flush_icache_range

2018-07-30 Thread Dave Kleikamp
On 07/30/2018 11:57 AM, Will Deacon wrote: > On Mon, Jul 30, 2018 at 11:46:24AM -0500, Dave Kleikamp wrote: >> On 07/30/2018 11:22 AM, Will Deacon wrote: >>> On Mon, Jul 30, 2018 at 05:16:42PM +0100, Catalin Marinas wrote: >>>> On Mon, Jul 30, 2018 at 10:29:2

Re: [PATCH 1/1] arm64: kexec: machine_kexec should call __flush_icache_range

2018-07-30 Thread Dave Kleikamp
On 07/30/2018 11:57 AM, Will Deacon wrote: > On Mon, Jul 30, 2018 at 11:46:24AM -0500, Dave Kleikamp wrote: >> On 07/30/2018 11:22 AM, Will Deacon wrote: >>> On Mon, Jul 30, 2018 at 05:16:42PM +0100, Catalin Marinas wrote: >>>> On Mon, Jul 30, 2018 at 10:29:2

Re: [PATCH 1/1] arm64: kexec: machine_kexec should call __flush_icache_range

2018-07-30 Thread Dave Kleikamp
On 07/30/2018 11:22 AM, Will Deacon wrote: > On Mon, Jul 30, 2018 at 05:16:42PM +0100, Catalin Marinas wrote: >> On Mon, Jul 30, 2018 at 10:29:21AM -0500, Dave Kleikamp wrote: >>> machine_kexec flushes the reboot_code_buffer from the icache >>> after stopping the

Re: [PATCH 1/1] arm64: kexec: machine_kexec should call __flush_icache_range

2018-07-30 Thread Dave Kleikamp
On 07/30/2018 11:22 AM, Will Deacon wrote: > On Mon, Jul 30, 2018 at 05:16:42PM +0100, Catalin Marinas wrote: >> On Mon, Jul 30, 2018 at 10:29:21AM -0500, Dave Kleikamp wrote: >>> machine_kexec flushes the reboot_code_buffer from the icache >>> after stopping the

[PATCH 1/1] arm64: kexec: machine_kexec should call __flush_icache_range

2018-07-30 Thread Dave Kleikamp
e the call with __flush_icache_range Signed-off-by: Dave Kleikamp Cc: AKASHI Takahiro Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/kernel/machine_kexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/machine_kexec.c b/arch/arm64/kernel/machine_kexec.c index f62effc..e8c0

[PATCH 1/1] arm64: kexec: machine_kexec should call __flush_icache_range

2018-07-30 Thread Dave Kleikamp
e the call with __flush_icache_range Signed-off-by: Dave Kleikamp Cc: AKASHI Takahiro Cc: Catalin Marinas Cc: Will Deacon --- arch/arm64/kernel/machine_kexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/machine_kexec.c b/arch/arm64/kernel/machine_kexec.c index f62effc..e8c0

[PATCH 0/1] arm64: for-next/core: Fix hang in machine_kexec

2018-07-30 Thread Dave Kleikamp
This fixes a regression in the for-next/core branch Dave Kleikamp (1): arm64: kexec: machine_kexec should call __flush_icache_range arch/arm64/kernel/machine_kexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 0/1] arm64: for-next/core: Fix hang in machine_kexec

2018-07-30 Thread Dave Kleikamp
This fixes a regression in the for-next/core branch Dave Kleikamp (1): arm64: kexec: machine_kexec should call __flush_icache_range arch/arm64/kernel/machine_kexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH] jfs: Fix buffer overrun in ea_get

2018-06-18 Thread Dave Kleikamp
On 06/18/2018 03:38 AM, Nikolay Borisov wrote: > Currently ea_buf->xattr buffer is allocated with min(min_size, ea_size). > This is wrong since after the xattr buffer is allocated the ->max_size > variable is actually rounded up to th next ->s_blocksize size. Fix this > by using the rounded up

Re: [PATCH] jfs: Fix buffer overrun in ea_get

2018-06-18 Thread Dave Kleikamp
On 06/18/2018 03:38 AM, Nikolay Borisov wrote: > Currently ea_buf->xattr buffer is allocated with min(min_size, ea_size). > This is wrong since after the xattr buffer is allocated the ->max_size > variable is actually rounded up to th next ->s_blocksize size. Fix this > by using the rounded up

[GIT PULL] jfs fix for 4.18

2018-06-18 Thread Dave Kleikamp
The following changes since commit 716a685fdb89942a50c4138141027e38336a895f: Merge branch 'x86-hyperv-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip (2018-06-04 21:37:30 -0700) are available in the Git repository at: git://github.com/kleikamp/linux-shaggy.git

[GIT PULL] jfs fix for 4.18

2018-06-18 Thread Dave Kleikamp
The following changes since commit 716a685fdb89942a50c4138141027e38336a895f: Merge branch 'x86-hyperv-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip (2018-06-04 21:37:30 -0700) are available in the Git repository at: git://github.com/kleikamp/linux-shaggy.git

Re: Slab out of bounds in setxattr

2018-06-04 Thread Dave Kleikamp
for finding this. Shaggy > > Regards, > Shankara > > On Mon, Jun 4, 2018 at 11:24 AM, Dave Kleikamp > wrote: >> On 06/01/2018 11:06 PM, shankarapailoor wrote: >>> Hi, >>> >>> Looking at the crash some more, it seems that if value_len > PAGE_SIZE >

Re: Slab out of bounds in setxattr

2018-06-04 Thread Dave Kleikamp
for finding this. Shaggy > > Regards, > Shankara > > On Mon, Jun 4, 2018 at 11:24 AM, Dave Kleikamp > wrote: >> On 06/01/2018 11:06 PM, shankarapailoor wrote: >>> Hi, >>> >>> Looking at the crash some more, it seems that if value_len > PAGE_SIZE >

Re: Slab out of bounds in setxattr

2018-06-04 Thread Dave Kleikamp
On 06/01/2018 11:06 PM, shankarapailoor wrote: > Hi, > > Looking at the crash some more, it seems that if value_len > PAGE_SIZE > then e_buf->max_size is rounded up nearest page size [1]. If a new > attribute is added with value_len < e_buf->max_size - EA_SIZE(ea) then > no new space is allocated

Re: Slab out of bounds in setxattr

2018-06-04 Thread Dave Kleikamp
On 06/01/2018 11:06 PM, shankarapailoor wrote: > Hi, > > Looking at the crash some more, it seems that if value_len > PAGE_SIZE > then e_buf->max_size is rounded up nearest page size [1]. If a new > attribute is added with value_len < e_buf->max_size - EA_SIZE(ea) then > no new space is allocated

Re: [Jfs-discussion] [PATCH 25/42] jfs: simplify procfs code

2018-05-16 Thread Dave Kleikamp
On 05/16/2018 04:43 AM, Christoph Hellwig wrote: > Use remove_proc_subtree to remove the whole subtree on cleanup, and > unwind the registration loop into individual calls. Switch to use > proc_create_seq where applicable. > > Signed-off-by: Christoph Hellwig <h...@lst.de

Re: [Jfs-discussion] [PATCH 25/42] jfs: simplify procfs code

2018-05-16 Thread Dave Kleikamp
On 05/16/2018 04:43 AM, Christoph Hellwig wrote: > Use remove_proc_subtree to remove the whole subtree on cleanup, and > unwind the registration loop into individual calls. Switch to use > proc_create_seq where applicable. > > Signed-off-by: Christoph Hellwig Acked-by:

[GIT PULL] update jfs git tree in MAINTAINERS

2017-11-20 Thread Dave Kleikamp
The following changes since commit c8a0739b185d11d6e2ca7ad9f5835841d1cfc765: Merge tag 'ntb-4.15' of git://github.com/jonmason/ntb (2017-11-19 20:41:53 -1000) are available in the Git repository at: git://github.com/kleikamp/linux-shaggy.git tags/jfs-4.15-2 for you to fetch changes up to

[GIT PULL] update jfs git tree in MAINTAINERS

2017-11-20 Thread Dave Kleikamp
The following changes since commit c8a0739b185d11d6e2ca7ad9f5835841d1cfc765: Merge tag 'ntb-4.15' of git://github.com/jonmason/ntb (2017-11-19 20:41:53 -1000) are available in the Git repository at: git://github.com/kleikamp/linux-shaggy.git tags/jfs-4.15-2 for you to fetch changes up to

[GIT PULL] jfs updates for 4.15

2017-11-14 Thread Dave Kleikamp
The following changes since commit b39ab98e2f4728d98973fd1bc531e3c4cbccb21c: Mark 'ioremap_page_range()' as possibly sleeping (2017-10-30 10:09:56 -0700) are available in the Git repository at: git://github.com/kleikamp/linux-shaggy.git tags/jfs-4.15 for you to fetch changes up to

[GIT PULL] jfs updates for 4.15

2017-11-14 Thread Dave Kleikamp
The following changes since commit b39ab98e2f4728d98973fd1bc531e3c4cbccb21c: Mark 'ioremap_page_range()' as possibly sleeping (2017-10-30 10:09:56 -0700) are available in the Git repository at: git://github.com/kleikamp/linux-shaggy.git tags/jfs-4.15 for you to fetch changes up to

Re: [Jfs-discussion] [PATCH] jfs: Add missing NULL pointer check in __get_metapage

2017-11-02 Thread Dave Kleikamp
On 11/02/2017 08:43 AM, Juerg Haefliger wrote: Furthermore, it looks like all the callers of __get_metapage() check for a null return, so I'm not sure we need to handle the error at this point. I might have to look a bit harder at that, since there are many callers. >>> >>> I

Re: [Jfs-discussion] [PATCH] jfs: Add missing NULL pointer check in __get_metapage

2017-11-02 Thread Dave Kleikamp
On 11/02/2017 08:43 AM, Juerg Haefliger wrote: Furthermore, it looks like all the callers of __get_metapage() check for a null return, so I'm not sure we need to handle the error at this point. I might have to look a bit harder at that, since there are many callers. >>> >>> I

Re: [Jfs-discussion] [PATCH] jfs: Add missing NULL pointer check in __get_metapage

2017-11-02 Thread Dave Kleikamp
On 11/02/2017 01:59 AM, Juerg Haefliger wrote: > > > On 10/30/2017 11:13 PM, Dave Kleikamp wrote: >> On 10/25/2017 02:50 AM, Juerg Haefliger wrote: >>> Is this a patch you might consider? >> >> Sorry it's taken me so long to respond. >> >> I don't

Re: [Jfs-discussion] [PATCH] jfs: Add missing NULL pointer check in __get_metapage

2017-11-02 Thread Dave Kleikamp
On 11/02/2017 01:59 AM, Juerg Haefliger wrote: > > > On 10/30/2017 11:13 PM, Dave Kleikamp wrote: >> On 10/25/2017 02:50 AM, Juerg Haefliger wrote: >>> Is this a patch you might consider? >> >> Sorry it's taken me so long to respond. >> >> I don't

Re: [Jfs-discussion] [PATCH] jfs: remove increment of i_version counter

2017-10-30 Thread Dave Kleikamp
On 10/30/2017 10:16 AM, Jeff Layton wrote: > From: Jeff Layton > > JFS does not set SB_I_VERSION and doesn't use the i_version counter > internally. Just remove this increment. Looks good. I'll push it upstream. Thanks, Shaggy > > Signed-off-by: Jeff Layton

Re: [Jfs-discussion] [PATCH] jfs: remove increment of i_version counter

2017-10-30 Thread Dave Kleikamp
On 10/30/2017 10:16 AM, Jeff Layton wrote: > From: Jeff Layton > > JFS does not set SB_I_VERSION and doesn't use the i_version counter > internally. Just remove this increment. Looks good. I'll push it upstream. Thanks, Shaggy > > Signed-off-by: Jeff Layton > --- > fs/jfs/super.c | 1 - >

Re: [Jfs-discussion] [PATCH] jfs: Add missing NULL pointer check in __get_metapage

2017-10-30 Thread Dave Kleikamp
On 10/25/2017 02:50 AM, Juerg Haefliger wrote: > Is this a patch you might consider? Sorry it's taken me so long to respond. I don't think this is the right fix. A failed allocation will still result in a null pointer dereference by the caller, __get_metapage(). I think the check needs to be put

Re: [Jfs-discussion] [PATCH] jfs: Add missing NULL pointer check in __get_metapage

2017-10-30 Thread Dave Kleikamp
On 10/25/2017 02:50 AM, Juerg Haefliger wrote: > Is this a patch you might consider? Sorry it's taken me so long to respond. I don't think this is the right fix. A failed allocation will still result in a null pointer dereference by the caller, __get_metapage(). I think the check needs to be put

Re: [PATCH v3 09/31] jfs: Define usercopy region in jfs_ip slab cache

2017-09-21 Thread Dave Kleikamp
Acked-by: Dave Kleikamp <dave.kleik...@oracle.com> On 09/20/2017 03:45 PM, Kees Cook wrote: > From: David Windsor <d...@nullcore.net> > > The jfs symlink pathnames, stored in struct jfs_inode_info.i_inline and > therefore contained in the jfs_ip slab cache, need to be co

Re: [PATCH v3 09/31] jfs: Define usercopy region in jfs_ip slab cache

2017-09-21 Thread Dave Kleikamp
Acked-by: Dave Kleikamp On 09/20/2017 03:45 PM, Kees Cook wrote: > From: David Windsor > > The jfs symlink pathnames, stored in struct jfs_inode_info.i_inline and > therefore contained in the jfs_ip slab cache, need to be copied to/from > userspace. > > cache object all

[PATCH] jfs should use MAX_LFS_FILESIZE when calculating s_maxbytes

2017-08-31 Thread Dave Kleikamp
jfs had previously avoided the use of MAX_LFS_FILESIZE because it hadn't accounted for the whole 32-bit index range on 32-bit systems. That has been fixed, so we can simplify the code now. Suggested by Andreas Dilger. Signed-off-by: Dave Kleikamp <dave.kleik...@oracle.com> Cc: Andreas

[PATCH] jfs should use MAX_LFS_FILESIZE when calculating s_maxbytes

2017-08-31 Thread Dave Kleikamp
jfs had previously avoided the use of MAX_LFS_FILESIZE because it hadn't accounted for the whole 32-bit index range on 32-bit systems. That has been fixed, so we can simplify the code now. Suggested by Andreas Dilger. Signed-off-by: Dave Kleikamp Cc: Andreas Dilger Cc: jfs-discuss

Re: Kernels v4.9+ cause short reads of block devices

2017-08-27 Thread Dave Kleikamp
On 08/27/2017 02:47 PM, Linus Torvalds wrote: > On Wed, Aug 23, 2017 at 2:01 PM, Andreas Dilger wrote: >> >> Doug, >> I noticed while checking for other implications of changing MAX_LFS_FILESIZE >> that fs/jfs/super.c is also working around this limit. > > Note to people: I

Re: Kernels v4.9+ cause short reads of block devices

2017-08-27 Thread Dave Kleikamp
On 08/27/2017 02:47 PM, Linus Torvalds wrote: > On Wed, Aug 23, 2017 at 2:01 PM, Andreas Dilger wrote: >> >> Doug, >> I noticed while checking for other implications of changing MAX_LFS_FILESIZE >> that fs/jfs/super.c is also working around this limit. > > Note to people: I just committed the

Re: Kernels v4.9+ cause short reads of block devices

2017-08-24 Thread Dave Kleikamp
On 08/24/2017 05:20 AM, Doug Nazar wrote: > On 8/23/17 5:01 PM, Andreas Dilger wrote: >> Doug, >> I noticed while checking for other implications of changing >> MAX_LFS_FILESIZE >> that fs/jfs/super.c is also working around this limit.  If you are going >> to submit a patch for this, it also makes

Re: Kernels v4.9+ cause short reads of block devices

2017-08-24 Thread Dave Kleikamp
On 08/24/2017 05:20 AM, Doug Nazar wrote: > On 8/23/17 5:01 PM, Andreas Dilger wrote: >> Doug, >> I noticed while checking for other implications of changing >> MAX_LFS_FILESIZE >> that fs/jfs/super.c is also working around this limit.  If you are going >> to submit a patch for this, it also makes

Re: [Jfs-discussion] [PATCH] fs: convert a pile of fsync routines to errseq_t based reporting

2017-07-31 Thread Dave Kleikamp
hose filesystems this is a straightforward conversion from calling > filemap_write_and_wait_range in their fsync operation to calling > file_write_and_wait_range. > > Signed-off-by: Jeff Layton <jlay...@redhat.com> Acked-by: Dave Kleikamp <dave.kleik...@oracle.com>

Re: [Jfs-discussion] [PATCH] fs: convert a pile of fsync routines to errseq_t based reporting

2017-07-31 Thread Dave Kleikamp
is a straightforward conversion from calling > filemap_write_and_wait_range in their fsync operation to calling > file_write_and_wait_range. > > Signed-off-by: Jeff Layton Acked-by: Dave Kleikamp (for jfs) > --- > arch/powerpc/platforms/cell/spufs/file.c | 2 +- > drivers/s

[GIT PULL] jfs fixes for 4.13-rc2

2017-07-25 Thread Dave Kleikamp
The following changes since commit d966564fcdc19e13eb6ba1fbe6b8101070339c3d: Revert "x86/ioapic: Restore IO-APIC irq_chip retrigger callback" (2017-02-08 18:08:29 -0800) are available in the git repository at: git://github.com/kleikamp/linux-shaggy.git tags/jfs-4.13 for you to fetch

[GIT PULL] jfs fixes for 4.13-rc2

2017-07-25 Thread Dave Kleikamp
The following changes since commit d966564fcdc19e13eb6ba1fbe6b8101070339c3d: Revert "x86/ioapic: Restore IO-APIC irq_chip retrigger callback" (2017-02-08 18:08:29 -0800) are available in the git repository at: git://github.com/kleikamp/linux-shaggy.git tags/jfs-4.13 for you to fetch

[PATCH] JFS: do not ignore return code from write_one_page()

2017-05-26 Thread Dave Kleikamp
There are a couple places where jfs calls write_one_page() where clean recovery is not possible. In these cases, the file system should be marked dirty. To do this, it is now necessary to store the superblock in the metapage structure. Signed-off-by: Dave Kleikamp <dave.kleik...@oracle.

[PATCH] JFS: do not ignore return code from write_one_page()

2017-05-26 Thread Dave Kleikamp
There are a couple places where jfs calls write_one_page() where clean recovery is not possible. In these cases, the file system should be marked dirty. To do this, it is now necessary to store the superblock in the metapage structure. Signed-off-by: Dave Kleikamp --- fs/jfs/jfs_metapage.c | 7

Re: [PATCH] JFS: do not ignore return code from write_one_page()

2017-05-26 Thread Dave Kleikamp
Andrew, Do you want to pick this up into akpm-current? I could push it through the jfs tree, but without the change to write_one_page(), my version of the patch would need a manual merge. It'd be a simple one, so maybe that's not a big deal. Thanks, Shaggy On 05/26/2017 03:45 PM, Dave Kleikamp

Re: [PATCH] JFS: do not ignore return code from write_one_page()

2017-05-26 Thread Dave Kleikamp
Andrew, Do you want to pick this up into akpm-current? I could push it through the jfs tree, but without the change to write_one_page(), my version of the patch would need a manual merge. It'd be a simple one, so maybe that's not a big deal. Thanks, Shaggy On 05/26/2017 03:45 PM, Dave Kleikamp

Re: linux-next: build warning after merge of the akpm-current tree

2017-05-26 Thread Dave Kleikamp
On 05/26/2017 05:16 AM, Jeff Layton wrote: > On Fri, 2017-05-26 at 12:43 +1000, Stephen Rothwell wrote: >> Hi Andrew, >> >> After merging the akpm-current tree, today's linux-next build (powerpc >> ppc64_defconfig) produced this warning: >> >> fs/jfs/jfs_metapage.c: In function 'force_metapage':

Re: linux-next: build warning after merge of the akpm-current tree

2017-05-26 Thread Dave Kleikamp
On 05/26/2017 05:16 AM, Jeff Layton wrote: > On Fri, 2017-05-26 at 12:43 +1000, Stephen Rothwell wrote: >> Hi Andrew, >> >> After merging the akpm-current tree, today's linux-next build (powerpc >> ppc64_defconfig) produced this warning: >> >> fs/jfs/jfs_metapage.c: In function 'force_metapage':

[tip:sched/core] sched/rt: Minimize rq->lock contention in do_sched_rt_period_timer()

2017-05-23 Thread tip-bot for Dave Kleikamp
Commit-ID: c249f255aab86b9b187ba319b9d2684841ac7c8d Gitweb: http://git.kernel.org/tip/c249f255aab86b9b187ba319b9d2684841ac7c8d Author: Dave Kleikamp <dave.kleik...@oracle.com> AuthorDate: Mon, 15 May 2017 14:14:13 -0500 Committer: Ingo Molnar <mi...@kernel.org> CommitDate:

[tip:sched/core] sched/rt: Minimize rq->lock contention in do_sched_rt_period_timer()

2017-05-23 Thread tip-bot for Dave Kleikamp
Commit-ID: c249f255aab86b9b187ba319b9d2684841ac7c8d Gitweb: http://git.kernel.org/tip/c249f255aab86b9b187ba319b9d2684841ac7c8d Author: Dave Kleikamp AuthorDate: Mon, 15 May 2017 14:14:13 -0500 Committer: Ingo Molnar CommitDate: Tue, 23 May 2017 10:01:34 +0200 sched/rt: Minimize rq

Re: [Jfs-discussion] [PATCH 06/11 linux-next] jfs: use magic.h

2017-05-21 Thread Dave Kleikamp
On 05/21/2017 10:41 AM, Fabian Frederick wrote: > Filesystems generally use SUPER_MAGIC values from magic.h > instead of a local definition. > > Signed-off-by: Fabian Frederick <f...@skynet.be> Acked-by: Dave Kleikamp <dave.kleik...@oracle.com> > --- >

Re: [Jfs-discussion] [PATCH 06/11 linux-next] jfs: use magic.h

2017-05-21 Thread Dave Kleikamp
On 05/21/2017 10:41 AM, Fabian Frederick wrote: > Filesystems generally use SUPER_MAGIC values from magic.h > instead of a local definition. > > Signed-off-by: Fabian Frederick Acked-by: Dave Kleikamp > --- > fs/jfs/jfs_incore.h| 6 +- > include/uapi/lin

[PATCH RESEND 1/1] sched/rt: minimize rq->lock contention in, do_sched_rt_period_timer()

2017-05-15 Thread Dave Kleikamp
h zero, this function does nothing while holding the lock, so don't bother taking it at all. Orabug: 25491970 Signed-off-by: Dave Kleikamp <dave.kleik...@oracle.com> Cc: Ingo Molnar <mi...@redhat.com> Cc: Peter Zijlstra <pet...@infradead.org> --- kernel/sched/rt.c | 11 +++ 1 fil

[PATCH RESEND 1/1] sched/rt: minimize rq->lock contention in, do_sched_rt_period_timer()

2017-05-15 Thread Dave Kleikamp
h zero, this function does nothing while holding the lock, so don't bother taking it at all. Orabug: 25491970 Signed-off-by: Dave Kleikamp Cc: Ingo Molnar Cc: Peter Zijlstra --- kernel/sched/rt.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c

[PATCH RESEND 0/1] sched/rt: minimize rq->lock contention in, do_sched_rt_period_timer()

2017-05-15 Thread Dave Kleikamp
Peter, Ingo, I sent this patch about a month ago and got no response. https://patchwork.kernel.org/patch/9684545/ Does it seem reasonable? I'm not sure if taking rt_runtime_lock is strictly necessary, but it's a big improvement to taking rq->lock every pass through the loop. Is there another

[PATCH RESEND 0/1] sched/rt: minimize rq->lock contention in, do_sched_rt_period_timer()

2017-05-15 Thread Dave Kleikamp
Peter, Ingo, I sent this patch about a month ago and got no response. https://patchwork.kernel.org/patch/9684545/ Does it seem reasonable? I'm not sure if taking rt_runtime_lock is strictly necessary, but it's a big improvement to taking rq->lock every pass through the loop. Is there another

[PATCH] sched/rt: minimize rq->lock contention in do_sched_rt_period_timer()

2017-04-17 Thread Dave Kleikamp
h zero, this function does nothing while holding the lock, so don't bother taking it at all. Orabug: 25491970 Signed-off-by: Dave Kleikamp <dave.kleik...@oracle.com> Cc: Ingo Molnar <mi...@redhat.com> Cc: Peter Zijlstra <pet...@infradead.org> --- kernel/sched/rt.c | 11 +++ 1 fil

  1   2   3   4   5   6   7   8   9   10   >