[v5.15] WARNING in iomap_page_mkwrite

0 views
Skip to first unread message

syzbot

unread,
Sep 26, 2023, 4:47:51 AM9/26/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: b911329317b4 Linux 5.15.133
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12b6f012680000
kernel config: https://syzkaller.appspot.com/x/.config?x=c21a1ede2e21ef2f
dashboard link: https://syzkaller.appspot.com/bug?extid=f0d3c64639470e88aa68
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
userspace arch: arm64

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/0d67112bfdd3/disk-b9113293.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/54ed715e08ee/vmlinux-b9113293.xz
kernel image: https://storage.googleapis.com/syzbot-assets/cec49685c149/Image-b9113293.gz.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+f0d3c6...@syzkaller.appspotmail.com

------------[ cut here ]------------
WARNING: CPU: 1 PID: 19890 at fs/iomap/buffered-io.c:975 iomap_page_mkwrite+0x538/0x764 fs/iomap/buffered-io.c:998
Modules linked in:
CPU: 1 PID: 19890 Comm: syz-executor.2 Not tainted 5.15.133-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : iomap_page_mkwrite+0x538/0x764 fs/iomap/buffered-io.c:998
lr : iomap_page_mkwrite+0x538/0x764 fs/iomap/buffered-io.c:998
sp : ffff80001e7476c0
x29: ffff80001e7478a0 x28: 1ffff00003ce8ef3 x27: dfff800000000000
x26: 1ffff00003ce8f01 x25: fffffc000445cc80 x24: ffff80001e747800
x23: 0000000000000001 x22: 05ffc00000000013 x21: fffffc000445cc80
x20: 1ffff00003ce8ef8 x19: ffff80001e7477f8 x18: 0000000000000000
x17: ff80800009b038c0 x16: ffff800011963fa4 x15: ffff800009b038c0
x14: ffffffffffffffff x13: ffffffffffffffff x12: 0000000000000000
x11: ff80800008b3cb54 x10: 0000000000000000 x9 : ffff800008b3cb54
x8 : ffff000137488000 x7 : 0000000000000000 x6 : 000000000000003f
x5 : 0000000000000040 x4 : ffff80001e7474c0 x3 : ffff800009b03b70
x2 : 0000000000000000 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
iomap_page_mkwrite+0x538/0x764 fs/iomap/buffered-io.c:998
__xfs_filemap_fault+0x58c/0xeb4 fs/xfs/xfs_file.c:1338
xfs_filemap_page_mkwrite+0x28/0x38 fs/xfs/xfs_file.c:1386
do_page_mkwrite+0x144/0x37c mm/memory.c:2892
wp_page_shared+0x14c/0x398 mm/memory.c:3229
do_wp_page+0x7cc/0x9c4 mm/memory.c:3330
handle_pte_fault mm/memory.c:4639 [inline]
__handle_mm_fault mm/memory.c:4756 [inline]
handle_mm_fault+0x1ce4/0x33c4 mm/memory.c:4854
__do_page_fault arch/arm64/mm/fault.c:505 [inline]
do_page_fault+0x700/0xb60 arch/arm64/mm/fault.c:605
do_mem_abort+0x70/0x1d8 arch/arm64/mm/fault.c:819
el0_da+0x94/0x20c arch/arm64/kernel/entry-common.c:482
el0t_64_sync_handler+0xc0/0xe4 arch/arm64/kernel/entry-common.c:617
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 2236
hardirqs last enabled at (2235): [<ffff800011a39c50>] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline]
hardirqs last enabled at (2235): [<ffff800011a39c50>] _raw_spin_unlock_irqrestore+0xac/0x158 kernel/locking/spinlock.c:194
hardirqs last disabled at (2236): [<ffff80001195f638>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387
softirqs last enabled at (2202): [<ffff8000080300b4>] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31
softirqs last disabled at (2200): [<ffff800008030080>] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:18
---[ end trace 3a8cb063cd660dbd ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 19890 at mm/page-writeback.c:2499 __set_page_dirty+0xdc/0xc7c
Modules linked in:
CPU: 0 PID: 19890 Comm: syz-executor.2 Tainted: G W 5.15.133-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
pstate: 804000c5 (Nzcv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __set_page_dirty+0xdc/0xc7c
lr : __set_page_dirty+0xdc/0xc7c
sp : ffff80001e7475c0
x29: ffff80001e7475d0 x28: 0000000000000000 x27: dfff800000000000
x26: dfff800000000000 x25: 1fffff800088b991 x24: fffffc000445cc98
x23: ffff000129565658 x22: fffffc000445cc80 x21: 05ffc0000000001b
x20: ffff000129565660 x19: fffffc000445cc80 x18: 0000000000000000
x17: ff80800009b038c0 x16: ffff800008302ff4 x15: ffff800009b038c0
x14: 1ffff0000292006a x13: ffffffffffffffff x12: 0000000000000000
x11: ff808000086feabc x10: 0000000000000000 x9 : ffff8000086feabc
x8 : ffff000137488000 x7 : ffff8000086fea28 x6 : 0000000000000000
x5 : 0000000000000080 x4 : 0000000000000001 x3 : ffff800008303124
x2 : 0000000000000001 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
__set_page_dirty+0xdc/0xc7c
__set_page_dirty_nobuffers+0x154/0x258 mm/page-writeback.c:2529
set_page_dirty+0x23c/0x544 mm/page-writeback.c:2609
iomap_page_mkwrite_iter fs/iomap/buffered-io.c:976 [inline]
iomap_page_mkwrite+0x58c/0x764 fs/iomap/buffered-io.c:998
__xfs_filemap_fault+0x58c/0xeb4 fs/xfs/xfs_file.c:1338
xfs_filemap_page_mkwrite+0x28/0x38 fs/xfs/xfs_file.c:1386
do_page_mkwrite+0x144/0x37c mm/memory.c:2892
wp_page_shared+0x14c/0x398 mm/memory.c:3229
do_wp_page+0x7cc/0x9c4 mm/memory.c:3330
handle_pte_fault mm/memory.c:4639 [inline]
__handle_mm_fault mm/memory.c:4756 [inline]
handle_mm_fault+0x1ce4/0x33c4 mm/memory.c:4854
__do_page_fault arch/arm64/mm/fault.c:505 [inline]
do_page_fault+0x700/0xb60 arch/arm64/mm/fault.c:605
do_mem_abort+0x70/0x1d8 arch/arm64/mm/fault.c:819
el0_da+0x94/0x20c arch/arm64/kernel/entry-common.c:482
el0t_64_sync_handler+0xc0/0xe4 arch/arm64/kernel/entry-common.c:617
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 2562
hardirqs last enabled at (2561): [<ffff80000890d7bc>] lock_page_memcg+0x11c/0x244 mm/memcontrol.c:2056
hardirqs last disabled at (2562): [<ffff800011a3972c>] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline]
hardirqs last disabled at (2562): [<ffff800011a3972c>] _raw_spin_lock_irqsave+0xfc/0x14c kernel/locking/spinlock.c:162
softirqs last enabled at (2554): [<ffff800008020ccc>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last enabled at (2554): [<ffff800008020ccc>] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587
softirqs last disabled at (2241): [<ffff8000081b56d4>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (2241): [<ffff8000081b56d4>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (2241): [<ffff8000081b56d4>] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:637
---[ end trace 3a8cb063cd660dbe ]---


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the bug is already fixed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite bug's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the bug is a duplicate of another bug, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Oct 6, 2023, 5:39:53 PM10/6/23
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 1edcec18cfb7 Linux 5.15.134
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1252d6ee680000
kernel config: https://syzkaller.appspot.com/x/.config?x=307e255fc1f90f62
dashboard link: https://syzkaller.appspot.com/bug?extid=f0d3c64639470e88aa68
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
userspace arch: arm64
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1752de79680000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=121f640e680000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/6ac27b2e493b/disk-1edcec18.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/090267cb6a2a/vmlinux-1edcec18.xz
kernel image: https://storage.googleapis.com/syzbot-assets/aec98b8f8ab7/Image-1edcec18.gz.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/3d46388289db/mount_0.gz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+f0d3c6...@syzkaller.appspotmail.com

------------[ cut here ]------------
WARNING: CPU: 0 PID: 3979 at fs/iomap/buffered-io.c:975 iomap_page_mkwrite+0x538/0x764 fs/iomap/buffered-io.c:998
Modules linked in:
CPU: 0 PID: 3979 Comm: syz-executor333 Not tainted 5.15.134-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : iomap_page_mkwrite+0x538/0x764 fs/iomap/buffered-io.c:998
lr : iomap_page_mkwrite+0x538/0x764 fs/iomap/buffered-io.c:998
sp : ffff80001ccc76c0
x29: ffff80001ccc78a0
x28: 1ffff00003998ef3
x27: dfff800000000000

x26: 1ffff00003998f01
x25: fffffc00037c14c0
x24: ffff80001ccc7800

x23: 0000000000001000
x22: 05ffc00000000013
x21: fffffc00037c14c0
x20: 1ffff00003998ef8 x19: ffff80001ccc77f8 x18: 0000000000000000
x17: ff80800009b043e8 x16: ffff800011963b4c x15: ffff800009b043e8
x14: ffffffffffffffff x13: ffffffffffffffff x12: 0000000000000000

x11: ff80800008b3d670
x10: 0000000000000000
x9 : ffff800008b3d670
x8 : ffff0000d95151c0 x7 : 0000000000000000
x6 : ffff0000c0ab9d00

x5 : ffff80001ccc7150
x4 : ffff80001ccc74c0
x3 : ffff800009b04698

x2 : 0000000000000000
x1 : 0000000000000000
x0 : 0000000000000000

Call trace:
iomap_page_mkwrite+0x538/0x764 fs/iomap/buffered-io.c:998
__xfs_filemap_fault+0x58c/0xeb4 fs/xfs/xfs_file.c:1338
xfs_filemap_page_mkwrite+0x28/0x38 fs/xfs/xfs_file.c:1386
do_page_mkwrite+0x144/0x37c mm/memory.c:2892
wp_page_shared+0x14c/0x398 mm/memory.c:3229
do_wp_page+0x7cc/0x9c4 mm/memory.c:3330
handle_pte_fault mm/memory.c:4639 [inline]
__handle_mm_fault mm/memory.c:4756 [inline]
handle_mm_fault+0x1ce4/0x33c4 mm/memory.c:4854
__do_page_fault arch/arm64/mm/fault.c:505 [inline]
do_page_fault+0x700/0xb60 arch/arm64/mm/fault.c:605
do_mem_abort+0x70/0x1d8 arch/arm64/mm/fault.c:819
el0_da+0x94/0x20c arch/arm64/kernel/entry-common.c:482
el0t_64_sync_handler+0xc0/0xe4 arch/arm64/kernel/entry-common.c:617
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 2788
hardirqs last enabled at (2787): [<ffff800011a397c0>] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline]
hardirqs last enabled at (2787): [<ffff800011a397c0>] _raw_spin_unlock_irqrestore+0xac/0x158 kernel/locking/spinlock.c:194
hardirqs last disabled at (2788): [<ffff80001195f1e0>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387
softirqs last enabled at (2752): [<ffff800008020ccc>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last enabled at (2752): [<ffff800008020ccc>] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587
softirqs last disabled at (2747): [<ffff8000081b5750>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (2747): [<ffff8000081b5750>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (2747): [<ffff8000081b5750>] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:637
---[ end trace 1884aac44be7017c ]---
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3979 at mm/page-writeback.c:2499 __set_page_dirty+0xdc/0xc7c
Modules linked in:
CPU: 0 PID: 3979 Comm: syz-executor333 Tainted: G W 5.15.134-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
pstate: 804000c5 (Nzcv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __set_page_dirty+0xdc/0xc7c
lr : __set_page_dirty+0xdc/0xc7c
sp : ffff80001ccc75c0
x29: ffff80001ccc75d0
x28: 0000000000000000
x27: dfff800000000000

x26: dfff800000000000 x25: 1fffff80006f8299 x24: fffffc00037c14d8
x23: ffff0000dbda9a58 x22: fffffc00037c14c0 x21: 05ffc0000000001b
x20: ffff0000dbda9a60 x19: fffffc00037c14c0
x18: ffff80001ccc72a0

x17: ff80800009b043e8
x16: ffff800008303eb4
x15: 000000000000c002

x14: 00000000831339d7 x13: ffffffffffffffff x12: 0000000000000000
x11: ff808000086ff570 x10: 0000000000000000 x9 : ffff8000086ff570
x8 : ffff0000d95151c0
x7 : 0000000000000000
x6 : 0000000000000000
x5 : ffff8000175856c8 x4 : 0000000000000002 x3 : ffff800008303fe4
x2 : 0000000000000001 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
__set_page_dirty+0xdc/0xc7c
__set_page_dirty_nobuffers+0x154/0x258 mm/page-writeback.c:2529
set_page_dirty+0x23c/0x544 mm/page-writeback.c:2609
iomap_page_mkwrite_iter fs/iomap/buffered-io.c:976 [inline]
iomap_page_mkwrite+0x58c/0x764 fs/iomap/buffered-io.c:998
__xfs_filemap_fault+0x58c/0xeb4 fs/xfs/xfs_file.c:1338
xfs_filemap_page_mkwrite+0x28/0x38 fs/xfs/xfs_file.c:1386
do_page_mkwrite+0x144/0x37c mm/memory.c:2892
wp_page_shared+0x14c/0x398 mm/memory.c:3229
do_wp_page+0x7cc/0x9c4 mm/memory.c:3330
handle_pte_fault mm/memory.c:4639 [inline]
__handle_mm_fault mm/memory.c:4756 [inline]
handle_mm_fault+0x1ce4/0x33c4 mm/memory.c:4854
__do_page_fault arch/arm64/mm/fault.c:505 [inline]
do_page_fault+0x700/0xb60 arch/arm64/mm/fault.c:605
do_mem_abort+0x70/0x1d8 arch/arm64/mm/fault.c:819
el0_da+0x94/0x20c arch/arm64/kernel/entry-common.c:482
el0t_64_sync_handler+0xc0/0xe4 arch/arm64/kernel/entry-common.c:617
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 2824
hardirqs last enabled at (2823): [<ffff80000890f2e0>] lock_page_memcg+0x11c/0x244 mm/memcontrol.c:2056
hardirqs last disabled at (2824): [<ffff800011a3929c>] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline]
hardirqs last disabled at (2824): [<ffff800011a3929c>] _raw_spin_lock_irqsave+0xfc/0x14c kernel/locking/spinlock.c:162
softirqs last enabled at (2816): [<ffff800008020ccc>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last enabled at (2816): [<ffff800008020ccc>] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587
softirqs last disabled at (2791): [<ffff8000081b5750>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (2791): [<ffff8000081b5750>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (2791): [<ffff8000081b5750>] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:637
---[ end trace 1884aac44be7017d ]---


---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
Reply all
Reply to author
Forward
0 new messages