WARNING in mark_buffer_dirty

6 views
Skip to first unread message

syzbot

unread,
Jan 20, 2022, 5:23:21 PM1/20/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=141683ffb00000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=12dcc27187a73642a1db
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

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

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

audit: type=1804 audit(1642717355.281:1242): pid=20306 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.1" name="/root/syzkaller-testdir187526774/syzkaller.QwiBIn/892/file0/bus" dev="loop1" ino=3 res=1
WARNING: CPU: 0 PID: 20306 at fs/buffer.c:1087 mark_buffer_dirty+0x464/0x5c0 fs/buffer.c:1087
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 20306 Comm: syz-executor.1 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
panic+0x26a/0x50e kernel/panic.c:186
__warn.cold+0x20/0x5a kernel/panic.c:541
report_bug+0x262/0x2b0 lib/bug.c:183
fixup_bug arch/x86/kernel/traps.c:178 [inline]
fixup_bug arch/x86/kernel/traps.c:173 [inline]
do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:mark_buffer_dirty+0x464/0x5c0 fs/buffer.c:1087
Code: c1 ea 03 80 3c 02 00 0f 85 6c 01 00 00 48 8b 3b be 04 00 00 00 e8 3c 7b fd ff 5b 5d 41 5c 41 5d e9 c1 34 b2 ff e8 bc 34 b2 ff <0f> 0b e9 d6 fb ff ff e8 b0 34 b2 ff 0f 0b e9 fa fb ff ff e8 a4 34
RSP: 0018:ffff88804e60f338 EFLAGS: 00010246
RAX: 0000000000040000 RBX: ffff888051a14bd0 RCX: ffffc90009f47000
RDX: 0000000000040000 RSI: ffffffff81b050b4 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffff888098202d00
R13: ffffed10130405c5 R14: ffff888051a14bd0 R15: 0000000000000013
bfs_move_block fs/bfs/file.c:43 [inline]
bfs_move_blocks fs/bfs/file.c:56 [inline]
bfs_get_block+0x3b6/0xd00 fs/bfs/file.c:125
__block_write_begin_int+0x46c/0x17b0 fs/buffer.c:1978
__block_write_begin fs/buffer.c:2028 [inline]
block_write_begin+0x58/0x2e0 fs/buffer.c:2087
bfs_write_begin+0x35/0xd0 fs/bfs/file.c:177
generic_perform_write+0x1f8/0x4d0 mm/filemap.c:3170
__generic_file_write_iter+0x24b/0x610 mm/filemap.c:3295
generic_file_write_iter+0x3f8/0x730 mm/filemap.c:3323
call_write_iter include/linux/fs.h:1821 [inline]
new_sync_write fs/read_write.c:474 [inline]
__vfs_write+0x51b/0x770 fs/read_write.c:487
__kernel_write+0x109/0x370 fs/read_write.c:506
write_pipe_buf+0x153/0x1f0 fs/splice.c:798
splice_from_pipe_feed fs/splice.c:503 [inline]
__splice_from_pipe+0x389/0x800 fs/splice.c:627
splice_from_pipe fs/splice.c:662 [inline]
default_file_splice_write+0xd8/0x180 fs/splice.c:810
do_splice_from fs/splice.c:852 [inline]
direct_splice_actor+0x115/0x160 fs/splice.c:1025
splice_direct_to_actor+0x33f/0x8d0 fs/splice.c:980
do_splice_direct+0x1a7/0x270 fs/splice.c:1068
do_sendfile+0x550/0xc30 fs/read_write.c:1447
__do_sys_sendfile64 fs/read_write.c:1508 [inline]
__se_sys_sendfile64+0x147/0x160 fs/read_write.c:1494
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fecda116fe9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fecd8a6b168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007fecda22a030 RCX: 00007fecda116fe9
RDX: 0000000000000000 RSI: 000000000000000b RDI: 0000000000000006
RBP: 00007fecda17108d R08: 0000000000000000 R09: 0000000000000000
R10: 00008400fffffffa R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff3fd4b39f R14: 00007fecd8a6b300 R15: 0000000000022000
Kernel Offset: disabled
Rebooting in 86400 seconds..


---
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.

syzbot

unread,
Jan 20, 2022, 5:51:18 PM1/20/22
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=115f3a0fb00000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=12dcc27187a73642a1db
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12471e37b00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1343a0e0700000

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

audit: type=1804 audit(1642718928.295:3): pid=8102 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor897" name="/root/file0/bus" dev="loop5" ino=3 res=1
BFS-fs: bfs_fill_super(): loop2 is unclean, continuing
WARNING: CPU: 1 PID: 8103 at fs/buffer.c:1087 mark_buffer_dirty+0x464/0x5c0 fs/buffer.c:1087
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 8103 Comm: syz-executor897 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
panic+0x26a/0x50e kernel/panic.c:186
__warn.cold+0x20/0x5a kernel/panic.c:541
report_bug+0x262/0x2b0 lib/bug.c:183
fixup_bug arch/x86/kernel/traps.c:178 [inline]
fixup_bug arch/x86/kernel/traps.c:173 [inline]
do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:mark_buffer_dirty+0x464/0x5c0 fs/buffer.c:1087
Code: c1 ea 03 80 3c 02 00 0f 85 6c 01 00 00 48 8b 3b be 04 00 00 00 e8 3c 7b fd ff 5b 5d 41 5c 41 5d e9 c1 34 b2 ff e8 bc 34 b2 ff <0f> 0b e9 d6 fb ff ff e8 b0 34 b2 ff 0f 0b e9 fa fb ff ff e8 a4 34
RSP: 0018:ffff888091f2f338 EFLAGS: 00010293
audit: type=1804 audit(1642718928.375:4): pid=8128 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor897" name="/root/file0/bus" dev="loop2" ino=3 res=1
RAX: ffff8880953c6600 RBX: ffff88808b424930 RCX: ffffffff81b04c88
RDX: 0000000000000000 RSI: ffffffff81b050b4 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffff8880b01ac400
R13: ffffed10160358a5 R14: ffff88808b424930 R15: 0000000000000018
audit: type=1804 audit(1642718928.375:5): pid=8111 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=ToMToU comm="syz-executor897" name="/root/file0/bus" dev="loop2" ino=3 res=1
bfs_move_block fs/bfs/file.c:43 [inline]
bfs_move_blocks fs/bfs/file.c:56 [inline]
bfs_get_block+0x3b6/0xd00 fs/bfs/file.c:125
__block_write_begin_int+0x46c/0x17b0 fs/buffer.c:1978
BFS-fs: bfs_fill_super(): loop4 is unclean, continuing
__block_write_begin fs/buffer.c:2028 [inline]
block_write_begin+0x58/0x2e0 fs/buffer.c:2087
bfs_write_begin+0x35/0xd0 fs/bfs/file.c:177
generic_perform_write+0x1f8/0x4d0 mm/filemap.c:3170
__generic_file_write_iter+0x24b/0x610 mm/filemap.c:3295
generic_file_write_iter+0x3f8/0x730 mm/filemap.c:3323
call_write_iter include/linux/fs.h:1821 [inline]
new_sync_write fs/read_write.c:474 [inline]
__vfs_write+0x51b/0x770 fs/read_write.c:487
__kernel_write+0x109/0x370 fs/read_write.c:506
write_pipe_buf+0x153/0x1f0 fs/splice.c:798
splice_from_pipe_feed fs/splice.c:503 [inline]
__splice_from_pipe+0x389/0x800 fs/splice.c:627
splice_from_pipe fs/splice.c:662 [inline]
default_file_splice_write+0xd8/0x180 fs/splice.c:810
audit: type=1804 audit(1642718928.375:6): pid=8111 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor897" name="/root/file0/bus" dev="loop2" ino=3 res=1
do_splice_from fs/splice.c:852 [inline]
direct_splice_actor+0x115/0x160 fs/splice.c:1025
splice_direct_to_actor+0x33f/0x8d0 fs/splice.c:980
do_splice_direct+0x1a7/0x270 fs/splice.c:1068
do_sendfile+0x550/0xc30 fs/read_write.c:1447
__do_sys_sendfile64 fs/read_write.c:1508 [inline]
__se_sys_sendfile64+0x147/0x160 fs/read_write.c:1494
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f259a475639
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f259a4222f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
audit: type=1804 audit(1642718928.375:7): pid=8116 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor897" name="/root/file0/bus" dev="loop4" ino=3 res=1
RAX: ffffffffffffffda RBX: 00007f259a4fa420 RCX: 00007f259a475639
RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000003
RBP: 00007f259a4c70bc R08: 0000000000000000 R09: 0000000000000000
R10: 00008400fffffffa R11: 0000000000000246 R12: 0030656c69662f2e
R13: 000010011badface R14: 75ca34411a118209 R15: 00007f259a4fa428
Reply all
Reply to author
Forward
0 new messages