* Re: [syzbot] [ext4?] KASAN: use-after-free Read in ext4_find_extent (4)
2024-12-30 20:06 [syzbot] [ext4?] KASAN: use-after-free Read in ext4_find_extent (4) syzbot
@ 2025-03-27 23:44 ` syzbot
2025-03-28 17:10 ` Ojaswin Mujoo
2025-11-19 7:50 ` Forwarded: " syzbot
` (9 subsequent siblings)
10 siblings, 1 reply; 13+ messages in thread
From: syzbot @ 2025-03-27 23:44 UTC (permalink / raw)
To: adilger.kernel, jack, linux-ext4, linux-kernel, ojaswin,
ritesh.list, syzkaller-bugs, tytso
syzbot has bisected this issue to:
commit 93cdf49f6eca5e23f6546b8f28457b2e6a6961d9
Author: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Date: Sat Mar 25 08:13:39 2023 +0000
ext4: Fix best extent lstart adjustment logic in ext4_mb_new_inode_pa()
bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1566b43f980000
start commit: 1e1ba8d23dae Merge tag 'timers-clocksource-2025-03-26' of ..
git tree: upstream
final oops: https://syzkaller.appspot.com/x/report.txt?x=1766b43f980000
console output: https://syzkaller.appspot.com/x/log.txt?x=1366b43f980000
kernel config: https://syzkaller.appspot.com/x/.config?x=2edddb53537e0320
dashboard link: https://syzkaller.appspot.com/bug?extid=ee60e584b5c6bb229126
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1623343f980000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1123343f980000
Reported-by: syzbot+ee60e584b5c6bb229126@syzkaller.appspotmail.com
Fixes: 93cdf49f6eca ("ext4: Fix best extent lstart adjustment logic in ext4_mb_new_inode_pa()")
For information about bisection process see: https://goo.gl/tpsmEJ#bisection
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: [syzbot] [ext4?] KASAN: use-after-free Read in ext4_find_extent (4)
2025-03-27 23:44 ` syzbot
@ 2025-03-28 17:10 ` Ojaswin Mujoo
0 siblings, 0 replies; 13+ messages in thread
From: Ojaswin Mujoo @ 2025-03-28 17:10 UTC (permalink / raw)
To: syzbot
Cc: adilger.kernel, jack, linux-ext4, linux-kernel, ritesh.list,
syzkaller-bugs, tytso
On Thu, Mar 27, 2025 at 04:44:03PM -0700, syzbot wrote:
> syzbot has bisected this issue to:
>
> commit 93cdf49f6eca5e23f6546b8f28457b2e6a6961d9
> Author: Ojaswin Mujoo <ojaswin@linux.ibm.com>
> Date: Sat Mar 25 08:13:39 2023 +0000
>
> ext4: Fix best extent lstart adjustment logic in ext4_mb_new_inode_pa()
>
> bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1566b43f980000
> start commit: 1e1ba8d23dae Merge tag 'timers-clocksource-2025-03-26' of ..
> git tree: upstream
> final oops: https://syzkaller.appspot.com/x/report.txt?x=1766b43f980000
> console output: https://syzkaller.appspot.com/x/log.txt?x=1366b43f980000
> kernel config: https://syzkaller.appspot.com/x/.config?x=2edddb53537e0320
> dashboard link: https://syzkaller.appspot.com/bug?extid=ee60e584b5c6bb229126
> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1623343f980000
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1123343f980000
>
> Reported-by: syzbot+ee60e584b5c6bb229126@syzkaller.appspotmail.com
> Fixes: 93cdf49f6eca ("ext4: Fix best extent lstart adjustment logic in ext4_mb_new_inode_pa()")
>
> For information about bisection process see: https://goo.gl/tpsmEJ#bisection
Okay, so I'm able to replicate this with the patch whereas it does not
hit without it, so the bisect seems right.
In my environment, at the time UAF hits, I also see the following logs:
[ 139.893083][ T9] EXT4-fs error (device loop0): ext4_ext_split:1078: inode #15: comm kworker/u8:0: !
[ 139.894260][ T9] EXT4-fs (loop0): Delayed block allocation failed for inode 15 at logical offset 17
[ 139.894278][ T9] EXT4-fs (loop0): This should not happen!! Data will be lost
[ 139.894278][ T9]
[ 139.897505][ T1098] EXT4-fs error (device loop4): ext4_map_blocks:730: inode #15: block 131075: comm )
[ 139.897607][ T1098] EXT4-fs (loop4): Delayed block allocation failed for inode 15 at logical offset 17
[ 139.897624][ T1098] EXT4-fs (loop4): This should not happen!! Data will be lost
ext4_ext4_split:1078 is
if (unlikely(path[depth].p_ext > EXT_MAX_EXTENT(path[depth].p_hdr))) {
and ext4_map_blocks:730 is check_block_validity failure in map blocks.
I'm still trying to make sense of the logs and the UAF and will update
when I have more information.
Regards,
ojaswin
^ permalink raw reply [flat|nested] 13+ messages in thread
* Forwarded: KASAN: use-after-free Read in ext4_find_extent (4)
2024-12-30 20:06 [syzbot] [ext4?] KASAN: use-after-free Read in ext4_find_extent (4) syzbot
2025-03-27 23:44 ` syzbot
@ 2025-11-19 7:50 ` syzbot
2025-11-19 16:32 ` Forwarded: " syzbot
` (8 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: syzbot @ 2025-11-19 7:50 UTC (permalink / raw)
To: linux-kernel
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.
***
Subject: KASAN: use-after-free Read in ext4_find_extent (4)
Author: albinbabuvarghese20@gmail.com
#syz test
^ permalink raw reply [flat|nested] 13+ messages in thread* Forwarded: Re: KASAN: use-after-free Read in ext4_find_extent (4)
2024-12-30 20:06 [syzbot] [ext4?] KASAN: use-after-free Read in ext4_find_extent (4) syzbot
2025-03-27 23:44 ` syzbot
2025-11-19 7:50 ` Forwarded: " syzbot
@ 2025-11-19 16:32 ` syzbot
2025-11-20 0:57 ` Forwarded: " syzbot
` (7 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: syzbot @ 2025-11-19 16:32 UTC (permalink / raw)
To: linux-kernel, syzkaller-bugs
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com.
***
Subject: Re: KASAN: use-after-free Read in ext4_find_extent (4)
Author: albinbabuvarghese20@gmail.com
#syz test
^ permalink raw reply [flat|nested] 13+ messages in thread* Forwarded: KASAN: use-after-free Read in ext4_find_extent (4)
2024-12-30 20:06 [syzbot] [ext4?] KASAN: use-after-free Read in ext4_find_extent (4) syzbot
` (2 preceding siblings ...)
2025-11-19 16:32 ` Forwarded: " syzbot
@ 2025-11-20 0:57 ` syzbot
2025-11-20 1:39 ` syzbot
` (6 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: syzbot @ 2025-11-20 0:57 UTC (permalink / raw)
To: linux-kernel, syzkaller-bugs
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com.
***
Subject: KASAN: use-after-free Read in ext4_find_extent (4)
Author: eraykrdg1@gmail.com
#syz test
^ permalink raw reply [flat|nested] 13+ messages in thread* Forwarded: KASAN: use-after-free Read in ext4_find_extent (4)
2024-12-30 20:06 [syzbot] [ext4?] KASAN: use-after-free Read in ext4_find_extent (4) syzbot
` (3 preceding siblings ...)
2025-11-20 0:57 ` Forwarded: " syzbot
@ 2025-11-20 1:39 ` syzbot
2025-11-20 10:37 ` syzbot
` (5 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: syzbot @ 2025-11-20 1:39 UTC (permalink / raw)
To: linux-kernel, syzkaller-bugs
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com.
***
Subject: KASAN: use-after-free Read in ext4_find_extent (4)
Author: eraykrdg1@gmail.com
#syz test
^ permalink raw reply [flat|nested] 13+ messages in thread* Forwarded: KASAN: use-after-free Read in ext4_find_extent (4)
2024-12-30 20:06 [syzbot] [ext4?] KASAN: use-after-free Read in ext4_find_extent (4) syzbot
` (4 preceding siblings ...)
2025-11-20 1:39 ` syzbot
@ 2025-11-20 10:37 ` syzbot
2025-11-20 13:12 ` syzbot
` (4 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: syzbot @ 2025-11-20 10:37 UTC (permalink / raw)
To: linux-kernel, syzkaller-bugs
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com.
***
Subject: KASAN: use-after-free Read in ext4_find_extent (4)
Author: eraykrdg1@gmail.com
#syz test
^ permalink raw reply [flat|nested] 13+ messages in thread* Forwarded: KASAN: use-after-free Read in ext4_find_extent (4)
2024-12-30 20:06 [syzbot] [ext4?] KASAN: use-after-free Read in ext4_find_extent (4) syzbot
` (5 preceding siblings ...)
2025-11-20 10:37 ` syzbot
@ 2025-11-20 13:12 ` syzbot
2025-11-20 15:46 ` syzbot
` (3 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: syzbot @ 2025-11-20 13:12 UTC (permalink / raw)
To: linux-kernel, syzkaller-bugs
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com.
***
Subject: KASAN: use-after-free Read in ext4_find_extent (4)
Author: eraykrdg1@gmail.com
#syz test
^ permalink raw reply [flat|nested] 13+ messages in thread* Forwarded: KASAN: use-after-free Read in ext4_find_extent (4)
2024-12-30 20:06 [syzbot] [ext4?] KASAN: use-after-free Read in ext4_find_extent (4) syzbot
` (6 preceding siblings ...)
2025-11-20 13:12 ` syzbot
@ 2025-11-20 15:46 ` syzbot
2025-11-20 17:36 ` syzbot
` (2 subsequent siblings)
10 siblings, 0 replies; 13+ messages in thread
From: syzbot @ 2025-11-20 15:46 UTC (permalink / raw)
To: linux-kernel, syzkaller-bugs
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com.
***
Subject: KASAN: use-after-free Read in ext4_find_extent (4)
Author: eraykrdg1@gmail.com
#syz test
^ permalink raw reply [flat|nested] 13+ messages in thread* Forwarded: KASAN: use-after-free Read in ext4_find_extent (4)
2024-12-30 20:06 [syzbot] [ext4?] KASAN: use-after-free Read in ext4_find_extent (4) syzbot
` (7 preceding siblings ...)
2025-11-20 15:46 ` syzbot
@ 2025-11-20 17:36 ` syzbot
2025-11-20 18:35 ` syzbot
2025-11-21 21:19 ` syzbot
10 siblings, 0 replies; 13+ messages in thread
From: syzbot @ 2025-11-20 17:36 UTC (permalink / raw)
To: linux-kernel, syzkaller-bugs
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com.
***
Subject: KASAN: use-after-free Read in ext4_find_extent (4)
Author: eraykrdg1@gmail.com
#syz test
^ permalink raw reply [flat|nested] 13+ messages in thread* Forwarded: KASAN: use-after-free Read in ext4_find_extent (4)
2024-12-30 20:06 [syzbot] [ext4?] KASAN: use-after-free Read in ext4_find_extent (4) syzbot
` (8 preceding siblings ...)
2025-11-20 17:36 ` syzbot
@ 2025-11-20 18:35 ` syzbot
2025-11-21 21:19 ` syzbot
10 siblings, 0 replies; 13+ messages in thread
From: syzbot @ 2025-11-20 18:35 UTC (permalink / raw)
To: linux-kernel, syzkaller-bugs
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com.
***
Subject: KASAN: use-after-free Read in ext4_find_extent (4)
Author: eraykrdg1@gmail.com
#syz test
^ permalink raw reply [flat|nested] 13+ messages in thread* Forwarded: KASAN: use-after-free Read in ext4_find_extent (4)
2024-12-30 20:06 [syzbot] [ext4?] KASAN: use-after-free Read in ext4_find_extent (4) syzbot
` (9 preceding siblings ...)
2025-11-20 18:35 ` syzbot
@ 2025-11-21 21:19 ` syzbot
10 siblings, 0 replies; 13+ messages in thread
From: syzbot @ 2025-11-21 21:19 UTC (permalink / raw)
To: linux-kernel, syzkaller-bugs
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com.
***
Subject: KASAN: use-after-free Read in ext4_find_extent (4)
Author: eraykrdg1@gmail.com
#syz test
^ permalink raw reply [flat|nested] 13+ messages in thread