Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp6459533rdb; Tue, 2 Jan 2024 02:39:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IGz6r9SVRMPFF41w7Hqypa8JlKWap79glrV03N5pmx4SwvNTb8tU6EGwd3pNSeh4yjRNchd X-Received: by 2002:a05:6214:483:b0:680:c22a:4e96 with SMTP id pt3-20020a056214048300b00680c22a4e96mr1136438qvb.130.1704191977413; Tue, 02 Jan 2024 02:39:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704191977; cv=none; d=google.com; s=arc-20160816; b=ICWcUL49hJTmDsHqQy7sO2mMMTBRgjAM6jktFhEuk5SarskHs4QqE0WWFxZhJ2w1ec 0xviXjZC2prW8c5hMaW0200Q/HdrYUEcuwsu6lm4lZFuW1JpcMFr/2x1JYggH55taRjq 8l7mM8rCpljN6AIeryHt22ardFrJ171UFYYtMcQTlzg29QZPF9zwCfM9U4m7aUCm6HzW uT9HXCSO1MsVW/Xyzrdp6AvgiUj0jZ/QN6eaheBLmAeikp65Hg7yik1VSqu21j06YG/M NY44a6JGODU/06/FUan0MXIR3DPvTZoIzbJi8p0VWyoLEr7fIjKcu+lrSoeDRP/HFLbZ bkBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:message-id:date:mime-version:list-unsubscribe :list-subscribe:list-id:precedence; bh=tQ4pJPlxSR7eGp+w8N5DMR7Ntm+XldcehR4x424Ja1o=; fh=OVZjDs76AnRKKEhwhnCv6GB6FykYM22da4rwUGMqHtg=; b=bqM7+A3q44fZBE/jrS+vX6tFY10KEveBb1rTSDUcF63ZzhHlo+6XidDFQhAVsu7EvA syfegdROjkyvq1N/sqlJZBNTQ+Eknu+tvTV7tz8c2yF/lmQUdkL+yT01YmMylT91A7zi 4DaCiJlTzQ2flR2zsC1BgaXY7fHEuOQ+M1FvhLUXv1hTmEYo+kVR2uTOxyExX1XoaKm0 VZqJmHI25ViYklptMgnUboQogh7/TsyvTDsaGUDWAKJH52Qf4QuW1Ij+SiCSYniD8pLJ 1qCz+0z6N3g01Rug1eTphKdV9xm1rFhD/X7CusDzu1h1ojF+YXPba8fmBrFb5qMY8k26 DK4Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-14258-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14258-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id s28-20020a05620a081c00b00781555aa28dsi14564585qks.8.2024.01.02.02.39.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jan 2024 02:39:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-14258-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-14258-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-14258-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 1F3AE1C21BE9 for ; Tue, 2 Jan 2024 10:39:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 07DF0EAEA; Tue, 2 Jan 2024 10:39:29 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from mail-io1-f69.google.com (mail-io1-f69.google.com [209.85.166.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4BFFBEACE for ; Tue, 2 Jan 2024 10:39:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-io1-f69.google.com with SMTP id ca18e2360f4ac-7b7f4024988so1183640339f.2 for ; Tue, 02 Jan 2024 02:39:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704191963; x=1704796763; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=tQ4pJPlxSR7eGp+w8N5DMR7Ntm+XldcehR4x424Ja1o=; b=tyPnG5exQMSyoMR437K6KvAhQxQ6zK3Z3hgggdQ6hu+ZNwxr4eSJsgiRxYLyKOr6zt u+IX4F2lWoZ1M1StB14WKcoBu4LlhudTn0C/MUWfhbwXvpBpwm1jFZ/Hw7w0ROjfAFAn Bc+pTUXTIQEahdLDQpUQ7c3ZNLnEBVIemlAykFyIBpZ0+WvIt/wZW2O+y9OniG8cE1mu UtK4dJBAKMDi6/ZyZsc2zMQJk49j4KBbBJ+ok4u7gL1hID+VlNb9kTrDDA1twCIxv2aK vXRCjrmRU3bfUmE//JQ0jyUWcZFuF6lP042639oq2Zu6VCIKP8/g8Ro5ehrvIN23VF5c syhQ== X-Gm-Message-State: AOJu0YzHD6nkCSLBKO+yoOuj8UISnxvmi9a+088wMkBEijFRTrVxkAd+ rQ+opzaCeIewG3Pn42VburRR5kEZKbrso4jh3RP7tCFF6lRy Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6e02:2182:b0:35f:eceb:fc42 with SMTP id j2-20020a056e02218200b0035fecebfc42mr2251682ila.3.1704191963513; Tue, 02 Jan 2024 02:39:23 -0800 (PST) Date: Tue, 02 Jan 2024 02:39:23 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000009d4b80060df41cf8@google.com> Subject: [syzbot] [reiserfs?] general protection fault in reiserfs_xattr_set From: syzbot To: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, reiserfs-devel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: 453f5db0619e Merge tag 'trace-v6.7-rc7' of git://git.kerne.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=172207cee80000 kernel config: https://syzkaller.appspot.com/x/.config?x=c7bcb8f62f1e2c3e dashboard link: https://syzkaller.appspot.com/bug?extid=74dce9511a59ad67a492 compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1534af31e80000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1512b9a1e80000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/1d4df4c41f20/disk-453f5db0.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/e858c1c82b6d/vmlinux-453f5db0.xz kernel image: https://storage.googleapis.com/syzbot-assets/39c3d125719d/bzImage-453f5db0.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/519b891d4149/mount_0.gz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+74dce9511a59ad67a492@syzkaller.appspotmail.com general protection fault, probably for non-canonical address 0xdffffc000000000d: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000068-0x000000000000006f] CPU: 0 PID: 6365 Comm: syz-executor145 Not tainted 6.7.0-rc7-syzkaller-00049-g453f5db0619e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 RIP: 0010:d_really_is_negative include/linux/dcache.h:467 [inline] RIP: 0010:reiserfs_xattr_jcreate_nblocks fs/reiserfs/xattr.h:79 [inline] RIP: 0010:reiserfs_xattr_set+0x2d4/0x5c0 fs/reiserfs/xattr.c:626 Code: e9 03 80 3c 11 00 0f 85 e0 02 00 00 4d 8b a4 24 a0 05 00 00 48 ba 00 00 00 00 00 fc ff df 49 8d 7c 24 68 48 89 f9 48 c1 e9 03 <80> 3c 11 00 0f 85 cc 02 00 00 49 83 7c 24 68 00 0f 84 eb 01 00 00 RSP: 0018:ffffc9000a22f8f0 EFLAGS: 00010212 RAX: 000000000000006c RBX: ffff88805d650190 RCX: 000000000000000d RDX: dffffc0000000000 RSI: ffffffff822cd9af RDI: 0000000000000068 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000002 R12: 0000000000000000 R13: ffff88801c4e0000 R14: ffff88805d6501b8 R15: 0000000000000036 FS: 00007fd868e9f6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd868e9fd58 CR3: 0000000079dbb000 CR4: 0000000000350ef0 Call Trace: security_set+0x85/0xb0 fs/reiserfs/xattr_security.c:32 __vfs_setxattr+0x173/0x1d0 fs/xattr.c:201 __vfs_setxattr_noperm+0x127/0x5e0 fs/xattr.c:235 __vfs_setxattr_locked+0x17e/0x250 fs/xattr.c:296 vfs_setxattr+0x146/0x350 fs/xattr.c:322 do_setxattr+0x142/0x170 fs/xattr.c:630 setxattr+0x159/0x170 fs/xattr.c:653 __do_sys_fsetxattr fs/xattr.c:709 [inline] __se_sys_fsetxattr fs/xattr.c:698 [inline] __x64_sys_fsetxattr+0x25e/0x310 fs/xattr.c:698 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7fd868f03e99 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 18 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd868e9f228 EFLAGS: 00000246 ORIG_RAX: 00000000000000be RAX: ffffffffffffffda RBX: 00007fd868f8c6d8 RCX: 00007fd868f03e99 RDX: 0000000020000400 RSI: 00000000200003c0 RDI: 0000000000000004 RBP: 00007fd868f8c6d0 R08: 0000000000000000 R09: 00007fd868e9f6c0 R10: 0000000000000002 R11: 0000000000000246 R12: 00007fd868f58073 R13: 00007fd868f5806b R14: 3404af7c435ebb98 R15: 00007ffd907624e8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:d_really_is_negative include/linux/dcache.h:467 [inline] RIP: 0010:reiserfs_xattr_jcreate_nblocks fs/reiserfs/xattr.h:79 [inline] RIP: 0010:reiserfs_xattr_set+0x2d4/0x5c0 fs/reiserfs/xattr.c:626 Code: e9 03 80 3c 11 00 0f 85 e0 02 00 00 4d 8b a4 24 a0 05 00 00 48 ba 00 00 00 00 00 fc ff df 49 8d 7c 24 68 48 89 f9 48 c1 e9 03 <80> 3c 11 00 0f 85 cc 02 00 00 49 83 7c 24 68 00 0f 84 eb 01 00 00 RSP: 0018:ffffc9000a22f8f0 EFLAGS: 00010212 RAX: 000000000000006c RBX: ffff88805d650190 RCX: 000000000000000d RDX: dffffc0000000000 RSI: ffffffff822cd9af RDI: 0000000000000068 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000002 R12: 0000000000000000 R13: ffff88801c4e0000 R14: ffff88805d6501b8 R15: 0000000000000036 FS: 00007fd868e9f6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd860e9f000 CR3: 0000000079dbb000 CR4: 0000000000350ef0 ---------------- Code disassembly (best guess), 2 bytes skipped: 0: 80 3c 11 00 cmpb $0x0,(%rcx,%rdx,1) 4: 0f 85 e0 02 00 00 jne 0x2ea a: 4d 8b a4 24 a0 05 00 mov 0x5a0(%r12),%r12 11: 00 12: 48 ba 00 00 00 00 00 movabs $0xdffffc0000000000,%rdx 19: fc ff df 1c: 49 8d 7c 24 68 lea 0x68(%r12),%rdi 21: 48 89 f9 mov %rdi,%rcx 24: 48 c1 e9 03 shr $0x3,%rcx * 28: 80 3c 11 00 cmpb $0x0,(%rcx,%rdx,1) <-- trapping instruction 2c: 0f 85 cc 02 00 00 jne 0x2fe 32: 49 83 7c 24 68 00 cmpq $0x0,0x68(%r12) 38: 0f 84 eb 01 00 00 je 0x229 --- 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 syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. If the report is already addressed, let syzbot know by replying with: #syz fix: exact-commit-title 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. If you want to overwrite report's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the report is a duplicate of another one, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup