Linux filesystem development
 help / color / mirror / Atom feed
* Hang in generic/648 on zoned btrfs after aa35dd5cbc06 ("iomap: fix invalid folio access after folio_end_read()")
@ 2026-03-09 16:37 Johannes Thumshirn
  2026-03-09 20:56 ` Joanne Koong
  0 siblings, 1 reply; 9+ messages in thread
From: Johannes Thumshirn @ 2026-03-09 16:37 UTC (permalink / raw)
  To: Joanne Koong; +Cc: linux-fsdevel@vger.kernel.org

Hi Joanne,

After commit aa35dd5cbc06 ("iomap: fix invalid folio access after 
folio_end_read()") my zoned btrfs test setup hangs. I've bisected it to 
this commit and reverting fixes my problem. The last thing I see in 
dmesg is:

[    9.387175] ------------[ cut here ]------------
[    9.387320] WARNING: fs/iomap/buffered-io.c:487 at 
iomap_read_end+0x11c/0x140, CPU#5: (udev-worker)/463
[    9.387431] Modules linked in:
[    9.387502] CPU: 5 UID: 0 PID: 463 Comm: (udev-worker) Not tainted 
6.19.0-rc1+ #385 PREEMPT(full)
[    9.387626] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), 
BIOS 1.17.0-9.fc43 06/10/2025
[    9.387810] RIP: 0010:iomap_read_end+0x11c/0x140
[    9.387886] Code: 00 48 89 ef 48 3b 04 24 0f 94 04 24 44 0f b6 34 24 
e8 b8 88 69 00 48 89 df 48 83 c4 08 41 0f b6 f6 5b 5d 41 5e e9 54 e7 e8 
ff <0f> 0b e9 48 ff ff ff ba 00 10 00 00 eb 9d 0f 0b e9 53 ff ff ff 0f
[    9.388096] RSP: 0018:ffffc90000e279c0 EFLAGS: 00010206
[    9.388178] RAX: ffff888111c6b800 RBX: ffffea0004363900 RCX: 
0000000000000000
[    9.388281] RDX: 0000000000000000 RSI: 0000000000000400 RDI: 
ffffea0004363900
[    9.388386] RBP: 0000000000000000 R08: 0000000000000000 R09: 
0000000000000001
[    9.388491] R10: ffffc90000e279a0 R11: ffff888111c6c168 R12: 
ffffffff81e5cdb0
[    9.388585] R13: ffffc90000e27c58 R14: ffffea0004363900 R15: 
ffffc90000e27c58
[    9.388690] FS:  00007f6e03fdfc00(0000) GS:ffff8882b4c13000(0000) 
knlGS:0000000000000000
[    9.388793] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    9.388873] CR2: 00007f6e03280000 CR3: 00000001106d7006 CR4: 
0000000000770eb0
[    9.388967] PKRU: 55555554
[    9.389006] Call Trace:
[    9.389044]  <TASK>
[    9.389087]  iomap_readahead+0x23c/0x2e0
[    9.389167]  blkdev_readahead+0x3d/0x50
[    9.389222]  read_pages+0x56/0x200
[    9.389277]  ? __folio_batch_add_and_move+0x1cf/0x2d0
[    9.389354]  page_cache_ra_unbounded+0x1db/0x2c0
[    9.389423]  force_page_cache_ra+0x96/0xb0
[    9.389470]  filemap_get_pages+0x12f/0x490
[    9.389532]  filemap_read+0xed/0x400
[    9.389590]  ? lock_acquire+0xd5/0x2b0
[    9.389633]  ? blkdev_read_iter+0x6b/0x180
[    9.389678]  ? lock_acquire+0xe5/0x2b0
[    9.389720]  ? lock_is_held_type+0xcd/0x130
[    9.389761]  ? find_held_lock+0x2b/0x80
[    9.389813]  ? lock_acquired+0x1e9/0x3c0
[    9.389864]  blkdev_read_iter+0x79/0x180
[    9.389911]  ? local_clock_noinstr+0x17/0x110
[    9.389975]  vfs_read+0x240/0x340
[    9.390033]  ksys_read+0x61/0xd0
[    9.390083]  do_syscall_64+0x74/0x3a0
[    9.390143]  entry_SYSCALL_64_after_hwframe+0x76/0x7e
[    9.390204] RIP: 0033:0x7f6e048c5c5e
[    9.390255] Code: 4d 89 d8 e8 34 bd 00 00 4c 8b 5d f8 41 8b 93 08 03 
00 00 59 5e 48 83 f8 fc 74 11 c9 c3 0f 1f 80 00 00 00 00 48 8b 45 10 0f 
05 <c9> c3 83 e2 39 83 fa 08 75 e7 e8 13 ff ff ff 0f 1f 00 f3 0f 1e fa
[    9.390447] RSP: 002b:00007ffdf50cded0 EFLAGS: 00000202 ORIG_RAX: 
0000000000000000
[    9.390529] RAX: ffffffffffffffda RBX: 000000013aa55200 RCX: 
00007f6e048c5c5e
[    9.390619] RDX: 0000000000000200 RSI: 00007f6e0327f000 RDI: 
0000000000000014
[    9.390704] RBP: 00007ffdf50cdee0 R08: 0000000000000000 R09: 
0000000000000000
[    9.390789] R10: 0000000000000000 R11: 0000000000000202 R12: 
0000000000000000
[    9.390866] R13: 000055d5f99fa270 R14: 000055d5f96e5cb0 R15: 
000055d5f96e5cc8
[    9.390967]  </TASK>
[    9.390997] irq event stamp: 54269
[    9.391044] hardirqs last  enabled at (54279): [<ffffffff8138ac02>] 
__up_console_sem+0x52/0x60
[    9.391141] hardirqs last disabled at (54288): [<ffffffff8138abe7>] 
__up_console_sem+0x37/0x60
[    9.391240] softirqs last  enabled at (53796): [<ffffffff81304768>] 
irq_exit_rcu+0x78/0x110
[    9.391327] softirqs last disabled at (53787): [<ffffffff81304768>] 
irq_exit_rcu+0x78/0x110
[    9.391420] ---[ end trace 0000000000000000 ]---

I haven't debugged this further yet, maybe you have an idea what 
could've caused it. On my side it's trivial to reproduce, so if you 
can't reproduce it just yell.

Byte,

     Johannes


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-03-17 19:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-09 16:37 Hang in generic/648 on zoned btrfs after aa35dd5cbc06 ("iomap: fix invalid folio access after folio_end_read()") Johannes Thumshirn
2026-03-09 20:56 ` Joanne Koong
2026-03-10 11:44   ` Johannes Thumshirn
2026-03-10 21:08     ` Joanne Koong
2026-03-10 21:55       ` Joanne Koong
2026-03-17  9:34         ` Johannes Thumshirn
2026-03-17 19:48           ` Joanne Koong
2026-03-10 21:59       ` Darrick J. Wong
2026-03-17 19:47         ` Joanne Koong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox