* Re: [syzbot] [jfs?] WARNING in dbAdjTree
2024-01-18 7:38 [syzbot] [jfs?] WARNING in dbAdjTree syzbot
@ 2024-01-24 1:38 ` Edward Adam Davis
2024-01-24 1:38 ` syzbot
2024-01-24 1:43 ` Edward Adam Davis
2024-01-24 1:45 ` Edward Adam Davis
2 siblings, 1 reply; 7+ messages in thread
From: Edward Adam Davis @ 2024-01-24 1:38 UTC (permalink / raw)
To: syzbot+ab18fa9c959320611727; +Cc: linux-kernel, syzkaller-bugs
please test WARNING in dbAdjTree
#syz test upstream
diff --git a/fs/jfs/jfs_dmap.c b/fs/jfs/jfs_dmap.c
index 8eec84c651bf..bed14d5169f8 100644
--- a/fs/jfs/jfs_dmap.c
+++ b/fs/jfs/jfs_dmap.c
@@ -2294,6 +2294,7 @@ static int dbFreeBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
*/
dbitno = blkno & (BPERDMAP - 1);
word = dbitno >> L2DBWORD;
+ printk("dbitno: %d, blkno: %ld, word: %d, %s\n", dbitno, blkno, word, __func__);
/* block range better be within the dmap.
*/
@@ -2875,8 +2876,9 @@ static void dbAdjTree(dmtree_t *tp, int leafno, int newval, bool is_ctl)
/* pick up the index of the leaf for this leafno.
*/
lp = leafno + le32_to_cpu(tp->dmt_leafidx);
+ printk("lp: %d, leafno: %d, tp: %p, %s\n", lp, leafno, tp, __func__);
- if (WARN_ON_ONCE(lp >= size || lp < 0))
+ if (lp >= size || lp < 0)
return;
/* is the current value the same as the old value ? if so,
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [syzbot] [jfs?] WARNING in dbAdjTree
2024-01-24 1:38 ` Edward Adam Davis
@ 2024-01-24 1:38 ` syzbot
0 siblings, 0 replies; 7+ messages in thread
From: syzbot @ 2024-01-24 1:38 UTC (permalink / raw)
To: eadavis; +Cc: eadavis, linux-kernel, syzkaller-bugs
> please test WARNING in dbAdjTree
>
> #syz test upstream
want either no args or 2 args (repo, branch), got 1
>
> diff --git a/fs/jfs/jfs_dmap.c b/fs/jfs/jfs_dmap.c
> index 8eec84c651bf..bed14d5169f8 100644
> --- a/fs/jfs/jfs_dmap.c
> +++ b/fs/jfs/jfs_dmap.c
> @@ -2294,6 +2294,7 @@ static int dbFreeBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
> */
> dbitno = blkno & (BPERDMAP - 1);
> word = dbitno >> L2DBWORD;
> + printk("dbitno: %d, blkno: %ld, word: %d, %s\n", dbitno, blkno, word, __func__);
>
> /* block range better be within the dmap.
> */
> @@ -2875,8 +2876,9 @@ static void dbAdjTree(dmtree_t *tp, int leafno, int newval, bool is_ctl)
> /* pick up the index of the leaf for this leafno.
> */
> lp = leafno + le32_to_cpu(tp->dmt_leafidx);
> + printk("lp: %d, leafno: %d, tp: %p, %s\n", lp, leafno, tp, __func__);
>
> - if (WARN_ON_ONCE(lp >= size || lp < 0))
> + if (lp >= size || lp < 0)
> return;
>
> /* is the current value the same as the old value ? if so,
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [syzbot] [jfs?] WARNING in dbAdjTree
2024-01-18 7:38 [syzbot] [jfs?] WARNING in dbAdjTree syzbot
2024-01-24 1:38 ` Edward Adam Davis
@ 2024-01-24 1:43 ` Edward Adam Davis
2024-01-24 1:43 ` syzbot
2024-01-24 1:45 ` Edward Adam Davis
2 siblings, 1 reply; 7+ messages in thread
From: Edward Adam Davis @ 2024-01-24 1:43 UTC (permalink / raw)
To: syzbot+ab18fa9c959320611727; +Cc: linux-kernel, syzkaller-bugs
please test WARNING in dbAdjTree
#syz test upstream master
diff --git a/fs/jfs/jfs_dmap.c b/fs/jfs/jfs_dmap.c
index 8eec84c651bf..bed14d5169f8 100644
--- a/fs/jfs/jfs_dmap.c
+++ b/fs/jfs/jfs_dmap.c
@@ -2294,6 +2294,7 @@ static int dbFreeBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
*/
dbitno = blkno & (BPERDMAP - 1);
word = dbitno >> L2DBWORD;
+ printk("dbitno: %d, blkno: %ld, word: %d, %s\n", dbitno, blkno, word, __func__);
/* block range better be within the dmap.
*/
@@ -2875,8 +2876,9 @@ static void dbAdjTree(dmtree_t *tp, int leafno, int newval, bool is_ctl)
/* pick up the index of the leaf for this leafno.
*/
lp = leafno + le32_to_cpu(tp->dmt_leafidx);
+ printk("lp: %d, leafno: %d, tp: %p, %s\n", lp, leafno, tp, __func__);
- if (WARN_ON_ONCE(lp >= size || lp < 0))
+ if (lp >= size || lp < 0)
return;
/* is the current value the same as the old value ? if so,
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [syzbot] [jfs?] WARNING in dbAdjTree
2024-01-24 1:43 ` Edward Adam Davis
@ 2024-01-24 1:43 ` syzbot
0 siblings, 0 replies; 7+ messages in thread
From: syzbot @ 2024-01-24 1:43 UTC (permalink / raw)
To: eadavis; +Cc: eadavis, linux-kernel, syzkaller-bugs
> please test WARNING in dbAdjTree
>
> #syz test upstream master
"upstream" does not look like a valid git repo address.
>
> diff --git a/fs/jfs/jfs_dmap.c b/fs/jfs/jfs_dmap.c
> index 8eec84c651bf..bed14d5169f8 100644
> --- a/fs/jfs/jfs_dmap.c
> +++ b/fs/jfs/jfs_dmap.c
> @@ -2294,6 +2294,7 @@ static int dbFreeBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
> */
> dbitno = blkno & (BPERDMAP - 1);
> word = dbitno >> L2DBWORD;
> + printk("dbitno: %d, blkno: %ld, word: %d, %s\n", dbitno, blkno, word, __func__);
>
> /* block range better be within the dmap.
> */
> @@ -2875,8 +2876,9 @@ static void dbAdjTree(dmtree_t *tp, int leafno, int newval, bool is_ctl)
> /* pick up the index of the leaf for this leafno.
> */
> lp = leafno + le32_to_cpu(tp->dmt_leafidx);
> + printk("lp: %d, leafno: %d, tp: %p, %s\n", lp, leafno, tp, __func__);
>
> - if (WARN_ON_ONCE(lp >= size || lp < 0))
> + if (lp >= size || lp < 0)
> return;
>
> /* is the current value the same as the old value ? if so,
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [syzbot] [jfs?] WARNING in dbAdjTree
2024-01-18 7:38 [syzbot] [jfs?] WARNING in dbAdjTree syzbot
2024-01-24 1:38 ` Edward Adam Davis
2024-01-24 1:43 ` Edward Adam Davis
@ 2024-01-24 1:45 ` Edward Adam Davis
2024-01-24 3:13 ` syzbot
2 siblings, 1 reply; 7+ messages in thread
From: Edward Adam Davis @ 2024-01-24 1:45 UTC (permalink / raw)
To: syzbot+ab18fa9c959320611727; +Cc: linux-kernel, syzkaller-bugs
please test WARNING in dbAdjTree
#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
diff --git a/fs/jfs/jfs_dmap.c b/fs/jfs/jfs_dmap.c
index 8eec84c651bf..bed14d5169f8 100644
--- a/fs/jfs/jfs_dmap.c
+++ b/fs/jfs/jfs_dmap.c
@@ -2294,6 +2294,7 @@ static int dbFreeBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
*/
dbitno = blkno & (BPERDMAP - 1);
word = dbitno >> L2DBWORD;
+ printk("dbitno: %d, blkno: %ld, word: %d, %s\n", dbitno, blkno, word, __func__);
/* block range better be within the dmap.
*/
@@ -2875,8 +2876,9 @@ static void dbAdjTree(dmtree_t *tp, int leafno, int newval, bool is_ctl)
/* pick up the index of the leaf for this leafno.
*/
lp = leafno + le32_to_cpu(tp->dmt_leafidx);
+ printk("lp: %d, leafno: %d, tp: %p, %s\n", lp, leafno, tp, __func__);
- if (WARN_ON_ONCE(lp >= size || lp < 0))
+ if (lp >= size || lp < 0)
return;
/* is the current value the same as the old value ? if so,
^ permalink raw reply related [flat|nested] 7+ messages in thread