BUG: stack guard page was hit in sys_removexattr (3)

0 views
Skip to first unread message

syzbot

unread,
May 9, 2022, 6:38:25 PM5/9/22
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: de64d941a71a Merge 5.10.112 into android12-5.10-lts
git tree: android12-5.10-lts
console+strace: https://syzkaller.appspot.com/x/log.txt?x=14d780daf00000
kernel config: https://syzkaller.appspot.com/x/.config?x=42eb3bb85aaa1fc9
dashboard link: https://syzkaller.appspot.com/bug?extid=45805c1a758d835493af
compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1141a0eaf00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17096ddaf00000

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

BUG: stack guard page was hit at ffffc90000b9fff8 (stack is ffffc90000ba0000..ffffc90000ba7fff)
kernel stack overflow (double-fault): 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 371 Comm: syz-executor114 Not tainted 5.10.112-syzkaller-00287-gde64d941a71a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:kasan_check_range+0xa/0x2e0 mm/kasan/generic.c:185
Code: dc 55 ea 02 31 c0 5d c3 0f 0b eb 02 0f 0b b8 ea ff ff ff 5d c3 cc cc cc cc cc cc cc cc cc cc cc 55 48 89 e5 41 57 41 56 41 54 <53> b0 01 48 85 f6 0f 84 e8 01 00 00 48 89 fb 48 01 f3 0f 82 80 02
RSP: 0018:ffffc90000ba0000 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffffffff82248798 RCX: ffffffff82248798
RDX: 0000000000000000 RSI: 0000000000000014 RDI: ffff88811936c82c
RBP: ffffc90000ba0018 R08: ffffffff82248600 R09: ffffc90000ba00c0
R10: fffff5200017401f R11: 1ffff92000174018 R12: 0000000000000014
R13: 0000000000000000 R14: ffff88811936c82c R15: ffffc90000ba01e0
FS: 00005555573ae3c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90000b9fff8 CR3: 00000001085d7000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
memcpy+0x2d/0x70 mm/kasan/shadow.c:65
avc_has_perm_noaudit+0x358/0x4c0 security/selinux/avc.c:1165
avc_has_perm+0xd2/0x260 security/selinux/avc.c:1198
inode_has_perm security/selinux/hooks.c:1657 [inline]
dentry_has_perm security/selinux/hooks.c:1674 [inline]
selinux_inode_setxattr+0x617/0xce0 security/selinux/hooks.c:3200
security_inode_setxattr+0xce/0x180 security/security.c:1281
__vfs_setxattr_locked+0x96/0x210 fs/xattr.c:258
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_setxattr+0x436/0x490 fs/xattr.c:177
__vfs_setxattr_noperm+0x11b/0x4e0 fs/xattr.c:208
__vfs_setxattr_locked+0x1f9/0x210 fs/xattr.c:266
vfs_setxattr+0x11e/0x2d0 fs/xattr.c:283
incfs_setxattr fs/incfs/vfs.c:1702 [inline]
incfs_handler_setxattr+0x101/0x330 fs/incfs/vfs.c:172
__vfs_removexattr+0x401/0x450 fs/xattr.c:441
__vfs_removexattr_locked+0x1f9/0x380 fs/xattr.c:473
vfs_removexattr+0xef/0x260 fs/xattr.c:494
removexattr fs/xattr.c:788 [inline]
path_removexattr+0x202/0x300 fs/xattr.c:802
__do_sys_removexattr fs/xattr.c:816 [inline]
__se_sys_removexattr fs/xattr.c:813 [inline]
__x64_sys_removexattr+0x60/0x70 fs/xattr.c:813
do_syscall_64+0x34/0x70 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f00964cbc19
Code: 28 c3 e8 5a 14 00 00 66 2e 0f 1f 84 00 00 00 00 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffcf44f1458 EFLAGS: 00000246 ORIG_RAX: 00000000000000c5
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f00964cbc19
RDX: 00007f00964cbc19 RSI: 0000000020000100 RDI: 0000000020000000
RBP: 00007ffcf44f1460 R08: 00007f009648a170 R09: 00007f009648a170
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace ef216078175402bc ]---
RIP: 0010:kasan_check_range+0xa/0x2e0 mm/kasan/generic.c:185
Code: dc 55 ea 02 31 c0 5d c3 0f 0b eb 02 0f 0b b8 ea ff ff ff 5d c3 cc cc cc cc cc cc cc cc cc cc cc 55 48 89 e5 41 57 41 56 41 54 <53> b0 01 48 85 f6 0f 84 e8 01 00 00 48 89 fb 48 01 f3 0f 82 80 02
RSP: 0018:ffffc90000ba0000 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffffffff82248798 RCX: ffffffff82248798
RDX: 0000000000000000 RSI: 0000000000000014 RDI: ffff88811936c82c
RBP: ffffc90000ba0018 R08: ffffffff82248600 R09: ffffc90000ba00c0
R10: fffff5200017401f R11: 1ffff92000174018 R12: 0000000000000014
R13: 0000000000000000 R14: ffff88811936c82c R15: ffffc90000ba01e0
FS: 00005555573ae3c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90000b9fff8 CR3: 00000001085d7000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: dc 55 ea fcoml -0x16(%rbp)
3: 02 31 add (%rcx),%dh
5: c0 5d c3 0f rcrb $0xf,-0x3d(%rbp)
9: 0b eb or %ebx,%ebp
b: 02 0f add (%rdi),%cl
d: 0b b8 ea ff ff ff or -0x16(%rax),%edi
13: 5d pop %rbp
14: c3 retq
15: cc int3
16: cc int3
17: cc int3
18: cc int3
19: cc int3
1a: cc int3
1b: cc int3
1c: cc int3
1d: cc int3
1e: cc int3
1f: cc int3
20: 55 push %rbp
21: 48 89 e5 mov %rsp,%rbp
24: 41 57 push %r15
26: 41 56 push %r14
28: 41 54 push %r12
* 2a: 53 push %rbx <-- trapping instruction
2b: b0 01 mov $0x1,%al
2d: 48 85 f6 test %rsi,%rsi
30: 0f 84 e8 01 00 00 je 0x21e
36: 48 89 fb mov %rdi,%rbx
39: 48 01 f3 add %rsi,%rbx
3c: 0f .byte 0xf
3d: 82 (bad)
3e: 80 .byte 0x80
3f: 02 .byte 0x2


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

syzbot

unread,
May 10, 2022, 12:51:15 AM5/10/22
to syzkaller-a...@googlegroups.com, tadeus...@linaro.org
Hello,

syzbot has tested the proposed patch and the reproducer did not trigger any issue:

Reported-and-tested-by: syzbot+45805c...@syzkaller.appspotmail.com

Tested on:

commit: 1e037dd7 FROMGIT: net: fix wrong network header length
git tree: https://android.googlesource.com/kernel/common android12-5.10
kernel config: https://syzkaller.appspot.com/x/.config?x=3ebdd87c1926c1df
dashboard link: https://syzkaller.appspot.com/bug?extid=45805c1a758d835493af
compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2

Note: no patches were applied.
Note: testing is done by a robot and is best-effort only.

Tadeusz Struk

unread,
May 10, 2022, 10:17:59 AM5/10/22
to syzbot, syzkaller-a...@googlegroups.com
#syz test: https://android.googlesource.com/kernel/common android12-5.10-lts


--
Thanks,
Tadeusz

syzbot

unread,
May 10, 2022, 7:54:13 PM5/10/22
to syzkaller-a...@googlegroups.com, tadeus...@linaro.org
Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
BUG: stack guard page was hit in sys_removexattr

BUG: stack guard page was hit at ffffc90000c0fff8 (stack is ffffc90000c10000..ffffc90000c17fff)
kernel stack overflow (double-fault): 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 421 Comm: syz-executor.0 Not tainted 5.10.112-syzkaller-986801-gde64d941a71a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:kasan_check_range+0xa/0x2e0 mm/kasan/generic.c:185
Code: dc 55 ea 02 31 c0 5d c3 0f 0b eb 02 0f 0b b8 ea ff ff ff 5d c3 cc cc cc cc cc cc cc cc cc cc cc 55 48 89 e5 41 57 41 56 41 54 <53> b0 01 48 85 f6 0f 84 e8 01 00 00 48 89 fb 48 01 f3 0f 82 80 02
RSP: 0018:ffffc90000c10000 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffffffff82248568 RCX: ffffffff82248568
RDX: 0000000000000000 RSI: 0000000000000014 RDI: ffff88810c1d527c
RBP: ffffc90000c10018 R08: ffffffff822483d0 R09: ffffc90000c100c0
R10: fffff5200018201f R11: 1ffff92000182018 R12: 0000000000000014
R13: 0000000000000000 R14: ffff88810c1d527c R15: ffffc90000c101e0
FS: 00007f4986732700(0000) GS:ffff8881f7200000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90000c0fff8 CR3: 000000010d628000 CR4: 00000000003506b0
RIP: 0033:0x7f49867bc0e9
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:00007f4986732168 EFLAGS: 00000246 ORIG_RAX: 00000000000000c5
RAX: ffffffffffffffda RBX: 00007f49868cef60 RCX: 00007f49867bc0e9
RDX: 0000000000000000 RSI: 0000000020000100 RDI: 0000000020000000
RBP: 00007f498681608d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd52ecf5af R14: 00007f4986732300 R15: 0000000000022000
Modules linked in:
---[ end trace d7edc835d124a80a ]---
RIP: 0010:kasan_check_range+0xa/0x2e0 mm/kasan/generic.c:185
Code: dc 55 ea 02 31 c0 5d c3 0f 0b eb 02 0f 0b b8 ea ff ff ff 5d c3 cc cc cc cc cc cc cc cc cc cc cc 55 48 89 e5 41 57 41 56 41 54 <53> b0 01 48 85 f6 0f 84 e8 01 00 00 48 89 fb 48 01 f3 0f 82 80 02
RSP: 0018:ffffc90000c10000 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffffffff82248568 RCX: ffffffff82248568
RDX: 0000000000000000 RSI: 0000000000000014 RDI: ffff88810c1d527c
RBP: ffffc90000c10018 R08: ffffffff822483d0 R09: ffffc90000c100c0
R10: fffff5200018201f R11: 1ffff92000182018 R12: 0000000000000014
R13: 0000000000000000 R14: ffff88810c1d527c R15: ffffc90000c101e0
FS: 00007f4986732700(0000) GS:ffff8881f7200000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90000c0fff8 CR3: 000000010d628000 CR4: 00000000003506b0
Tested on:

commit: de64d941 Merge 5.10.112 into android12-5.10-lts
git tree: android12-5.10-lts
console output: https://syzkaller.appspot.com/x/log.txt?x=1295b7faf00000
kernel config: https://syzkaller.appspot.com/x/.config?x=6ca69396efe1ff91
dashboard link: https://syzkaller.appspot.com/bug?extid=45805c1a758d835493af
compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2

syzbot

unread,
May 10, 2022, 8:01:08 PM5/10/22
to syzkaller-a...@googlegroups.com, tadeus...@linaro.org
Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
BUG: stack guard page was hit in sys_removexattr

BUG: stack guard page was hit at ffffc90000edfff8 (stack is ffffc90000ee0000..ffffc90000ee7fff)
kernel stack overflow (double-fault): 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 411 Comm: syz-executor.0 Not tainted 5.10.112-syzkaller-986801-gde64d941a71a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:kasan_check_range+0xa/0x2e0 mm/kasan/generic.c:185
Code: dc 55 ea 02 31 c0 5d c3 0f 0b eb 02 0f 0b b8 ea ff ff ff 5d c3 cc cc cc cc cc cc cc cc cc cc cc 55 48 89 e5 41 57 41 56 41 54 <53> b0 01 48 85 f6 0f 84 e8 01 00 00 48 89 fb 48 01 f3 0f 82 80 02
RSP: 0018:ffffc90000ee0000 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffffffff82248568 RCX: ffffffff82248568
RDX: 0000000000000000 RSI: 0000000000000014 RDI: ffff88811ee67a34
RBP: ffffc90000ee0018 R08: ffffffff822483d0 R09: ffffc90000ee00c0
R10: fffff520001dc01f R11: 1ffff920001dc018 R12: 0000000000000014
R13: 0000000000000000 R14: ffff88811ee67a34 R15: ffffc90000ee01e0
FS: 00007f64ab565700(0000) GS:ffff8881f7300000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90000edfff8 CR3: 000000010cbe9000 CR4: 00000000003506a0
RIP: 0033:0x7f64ab5ef0e9
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:00007f64ab565168 EFLAGS: 00000246 ORIG_RAX: 00000000000000c5
RAX: ffffffffffffffda RBX: 00007f64ab701f60 RCX: 00007f64ab5ef0e9
RDX: 0000000000000000 RSI: 0000000020000100 RDI: 0000000020000000
RBP: 00007f64ab64908d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffdd5b0b10f R14: 00007f64ab565300 R15: 0000000000022000
Modules linked in:
---[ end trace 4e0fe88a1aecabf7 ]---
RIP: 0010:kasan_check_range+0xa/0x2e0 mm/kasan/generic.c:185
Code: dc 55 ea 02 31 c0 5d c3 0f 0b eb 02 0f 0b b8 ea ff ff ff 5d c3 cc cc cc cc cc cc cc cc cc cc cc 55 48 89 e5 41 57 41 56 41 54 <53> b0 01 48 85 f6 0f 84 e8 01 00 00 48 89 fb 48 01 f3 0f 82 80 02
RSP: 0018:ffffc90000ee0000 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffffffff82248568 RCX: ffffffff82248568
RDX: 0000000000000000 RSI: 0000000000000014 RDI: ffff88811ee67a34
RBP: ffffc90000ee0018 R08: ffffffff822483d0 R09: ffffc90000ee00c0
R10: fffff520001dc01f R11: 1ffff920001dc018 R12: 0000000000000014
R13: 0000000000000000 R14: ffff88811ee67a34 R15: ffffc90000ee01e0
FS: 00007f64ab565700(0000) GS:ffff8881f7300000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffc90000edfff8 CR3: 000000010cbe9000 CR4: 00000000003506a0
Tested on:

commit: de64d941 Merge 5.10.112 into android12-5.10-lts
git tree: android12-5.10-lts
console output: https://syzkaller.appspot.com/x/log.txt?x=1583d43af00000
kernel config: https://syzkaller.appspot.com/x/.config?x=6ca69396efe1ff91
dashboard link: https://syzkaller.appspot.com/bug?extid=45805c1a758d835493af
compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2

Reply all
Reply to author
Forward
0 new messages