kernel BUG in __hfsplus_setxattr

11 views
Skip to first unread message

syzbot

unread,
Nov 26, 2022, 2:08:42 AM11/26/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=16f18103880000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=22d078493861f756caf1
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/98c0bdb4abb3/disk-3f8a27f9.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/ea228ff02669/vmlinux-3f8a27f9.xz

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

------------[ cut here ]------------
kernel BUG at fs/hfsplus/xattr.c:175!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 16016 Comm: syz-executor.2 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:hfsplus_create_attributes_file fs/hfsplus/xattr.c:175 [inline]
RIP: 0010:__hfsplus_setxattr+0x1a43/0x1cc0 fs/hfsplus/xattr.c:332
Code: 6d 9b ff e9 68 ec ff ff e8 5a 90 65 ff e8 ff 47 03 ff e9 b9 fa ff ff e8 4b 90 65 ff 4c 8d 7b ff e9 fb fa ff ff e8 3d 90 65 ff <0f> 0b 48 8b 7c 24 40 e8 21 6d 9b ff e9 99 f0 ff ff e8 17 6d 9b ff
RSP: 0018:ffff888090f0f6a8 EFLAGS: 00010212
RAX: 0000000000040000 RBX: ffff8880a2904380 RCX: ffffc9000a243000
RDX: 000000000000053c RSI: ffffffff81fcf533 RDI: 0000000000000007
RBP: ffff88809ff28f18 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000000 R12: 0000000000010000
R13: ffff8880b488a940 R14: ffff888090f0f760 R15: ffff8880aba7a000
FS: 00007fe5fd6b9700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8577200000 CR3: 00000000a9488000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
hfsplus_setxattr+0x94/0xd0 fs/hfsplus/xattr.c:435
__vfs_setxattr+0x10e/0x170 fs/xattr.c:149
__vfs_setxattr_noperm+0x11a/0x420 fs/xattr.c:180
__vfs_setxattr_locked+0x176/0x250 fs/xattr.c:238
vfs_setxattr+0xe5/0x270 fs/xattr.c:255
setxattr+0x23d/0x330 fs/xattr.c:520
__do_sys_fsetxattr fs/xattr.c:575 [inline]
__se_sys_fsetxattr+0x14d/0x1b0 fs/xattr.c:564
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fe5ff1470d9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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:00007fe5fd6b9168 EFLAGS: 00000246 ORIG_RAX: 00000000000000be
RAX: ffffffffffffffda RBX: 00007fe5ff266f80 RCX: 00007fe5ff1470d9
RDX: 0000000020000080 RSI: 0000000020000000 RDI: 0000000000000004
RBP: 00007fe5ff1a2ae9 R08: 0000000000000003 R09: 0000000000000000
R10: 000000000000000c R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd547d83ef R14: 00007fe5fd6b9300 R15: 0000000000022000
Modules linked in:
---[ end trace cd718440b2bfa3db ]---
RIP: 0010:hfsplus_create_attributes_file fs/hfsplus/xattr.c:175 [inline]
RIP: 0010:__hfsplus_setxattr+0x1a43/0x1cc0 fs/hfsplus/xattr.c:332
BTRFS info (device loop3): using free space tree
Code: 6d 9b ff e9 68 ec ff ff e8 5a 90 65 ff e8 ff 47 03 ff e9 b9 fa ff ff e8 4b 90 65 ff 4c 8d 7b ff e9 fb fa ff ff e8 3d 90 65 ff <0f> 0b 48 8b 7c 24 40 e8 21 6d 9b ff e9 99 f0 ff ff e8 17 6d 9b ff
BTRFS error (device loop3): cannot mount because of unsupported optional features (800)
BTRFS error (device loop3): open_ctree failed
RSP: 0018:ffff888090f0f6a8 EFLAGS: 00010212
RAX: 0000000000040000 RBX: ffff8880a2904380 RCX: ffffc9000a243000
RDX: 000000000000053c RSI: ffffffff81fcf533 RDI: 0000000000000007
RBP: ffff88809ff28f18 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000000 R12: 0000000000010000
R13: ffff8880b488a940 R14: ffff888090f0f760 R15: ffff8880aba7a000
FS: 00007fe5fd6b9700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000562025fe62e8 CR3: 00000000a9488000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
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,
Nov 26, 2022, 2:20:45 AM11/26/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=155f058d880000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=22d078493861f756caf1
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15d69353880000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16a3558d880000
mounted in repro: https://storage.googleapis.com/syzbot-assets/a13b9621cd4b/mount_0.gz

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

------------[ cut here ]------------
kernel BUG at fs/hfsplus/xattr.c:175!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8116 Comm: syz-executor197 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:hfsplus_create_attributes_file fs/hfsplus/xattr.c:175 [inline]
RIP: 0010:__hfsplus_setxattr+0x1a43/0x1cc0 fs/hfsplus/xattr.c:332
Code: 6d 9b ff e9 68 ec ff ff e8 5a 90 65 ff e8 ff 47 03 ff e9 b9 fa ff ff e8 4b 90 65 ff 4c 8d 7b ff e9 fb fa ff ff e8 3d 90 65 ff <0f> 0b 48 8b 7c 24 40 e8 21 6d 9b ff e9 99 f0 ff ff e8 17 6d 9b ff
RSP: 0018:ffff8880a26f76a8 EFLAGS: 00010293
RAX: ffff8880b149c080 RBX: ffff8880b0c0e340 RCX: ffffffff81fce5f0
RDX: 0000000000000000 RSI: ffffffff81fcf533 RDI: 0000000000000007
RBP: ffff8880b0ff1a18 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000000 R12: 0000000000010000
R13: ffff8880b3f40900 R14: ffff8880a26f7760 R15: ffff8880b0c76040
FS: 0000555555d03300(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7e8f173000 CR3: 00000000aaf19000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
hfsplus_setxattr+0x94/0xd0 fs/hfsplus/xattr.c:435
__vfs_setxattr+0x10e/0x170 fs/xattr.c:149
__vfs_setxattr_noperm+0x11a/0x420 fs/xattr.c:180
__vfs_setxattr_locked+0x176/0x250 fs/xattr.c:238
vfs_setxattr+0xe5/0x270 fs/xattr.c:255
setxattr+0x23d/0x330 fs/xattr.c:520
__do_sys_fsetxattr fs/xattr.c:575 [inline]
__se_sys_fsetxattr+0x14d/0x1b0 fs/xattr.c:564
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fb10be0e819
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 00 00 90 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc6307d7f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000be
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fb10be0e819
RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000004
RBP: 00007fb10bdce0b0 R08: 0000000000000003 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fb10bdce140
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 4161af0837086b55 ]---
RIP: 0010:hfsplus_create_attributes_file fs/hfsplus/xattr.c:175 [inline]
RIP: 0010:__hfsplus_setxattr+0x1a43/0x1cc0 fs/hfsplus/xattr.c:332
Code: 6d 9b ff e9 68 ec ff ff e8 5a 90 65 ff e8 ff 47 03 ff e9 b9 fa ff ff e8 4b 90 65 ff 4c 8d 7b ff e9 fb fa ff ff e8 3d 90 65 ff <0f> 0b 48 8b 7c 24 40 e8 21 6d 9b ff e9 99 f0 ff ff e8 17 6d 9b ff
RSP: 0018:ffff8880a26f76a8 EFLAGS: 00010293
RAX: ffff8880b149c080 RBX: ffff8880b0c0e340 RCX: ffffffff81fce5f0
RDX: 0000000000000000 RSI: ffffffff81fcf533 RDI: 0000000000000007
RBP: ffff8880b0ff1a18 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000000 R12: 0000000000010000
R13: ffff8880b3f40900 R14: ffff8880a26f7760 R15: ffff8880b0c76040
FS: 0000555555d03300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005651ca7314b0 CR3: 00000000aaf19000 CR4: 00000000003406f0

syzbot

unread,
Dec 3, 2022, 1:20:42 AM12/3/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 179ef7fe8677 Linux 4.14.300
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1098b38d880000
kernel config: https://syzkaller.appspot.com/x/.config?x=aa85f51ec321d5a9
dashboard link: https://syzkaller.appspot.com/bug?extid=b749da48fca936be502a
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10783abd880000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1278c55b880000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/d311ef57b59a/disk-179ef7fe.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/25bf5d729f69/vmlinux-179ef7fe.xz
kernel image: https://storage.googleapis.com/syzbot-assets/db9b96571e69/bzImage-179ef7fe.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/eb4746b377e3/mount_0.gz

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

======================================================
WARNING: the mand mount option is being deprecated and
will be removed in v5.15!
======================================================
------------[ cut here ]------------
kernel BUG at fs/hfsplus/xattr.c:181!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 0 PID: 7979 Comm: syz-executor323 Not tainted 4.14.300-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
task: ffff8880b482c100 task.stack: ffff88808ccd8000
RIP: 0010:hfsplus_create_attributes_file fs/hfsplus/xattr.c:181 [inline]
RIP: 0010:__hfsplus_setxattr+0x17de/0x1c10 fs/hfsplus/xattr.c:338
RSP: 0018:ffff88808ccdf688 EFLAGS: 00010297
RAX: ffff8880b482c100 RBX: 0000000000000003 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000001
RBP: ffff8880b33dda18 R08: ffffffff8ba5a3ac R09: ffff8880949fae40
R10: ffff8880b3148db0 R11: ffff8880b482c100 R12: ffffed10166291b7
R13: ffff8880b3148000 R14: ffff88808ccdf748 R15: ffff8880b3148d80
FS: 0000555557040300(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6c75f901b0 CR3: 00000000aec0c000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
hfsplus_setxattr+0x94/0xd0 fs/hfsplus/xattr.c:441
__vfs_setxattr+0xdc/0x130 fs/xattr.c:150
__vfs_setxattr_noperm+0xfd/0x3d0 fs/xattr.c:181
__vfs_setxattr_locked+0x14d/0x250 fs/xattr.c:239
vfs_setxattr+0xcf/0x230 fs/xattr.c:256
setxattr+0x1a9/0x300 fs/xattr.c:523
path_setxattr+0x118/0x130 fs/xattr.c:542
SYSC_setxattr fs/xattr.c:557 [inline]
SyS_setxattr+0x36/0x50 fs/xattr.c:553
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x5e/0xd3
Code: 34 24 e8 e6 79 aa ff 48 8b 34 24 e9 d8 ed ff ff e8 18 bc 80 ff 0f 0b 48 8b 7c 24 20 e8 5c 79 aa ff e9 b5 ee ff ff e8 02 bc 80 ff <0f> 0b e8 bb 79 aa ff 4c 8b 54 24 40 4c 8b 4c 24 28 e9 77 f1 ff
RIP: hfsplus_create_attributes_file fs/hfsplus/xattr.c:181 [inline] RSP: ffff88808ccdf688
RIP: __hfsplus_setxattr+0x17de/0x1c10 fs/hfsplus/xattr.c:338 RSP: ffff88808ccdf688
---[ end trace 507c697fcee49717 ]---


---
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 can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches
Reply all
Reply to author
Forward
0 new messages