Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2877375lqt; Tue, 23 Apr 2024 04:38:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXIiCvxOdJBtjz/Al9bW0YVeVQdS4556J6oQe9ukfDKVOFuCCDAzeq6yzLhno9rRrugoUX245zfxtpj3NiR10i3fmdYt0ia/ect8SkvrA== X-Google-Smtp-Source: AGHT+IFTYnRg8bE3KN+74vzduYIV0hzpZpCDYF8D6zzYjlYYrdThotcQ7TVq7qDPS03gysTwnQIN X-Received: by 2002:a05:6808:a97:b0:3c7:36df:9f57 with SMTP id q23-20020a0568080a9700b003c736df9f57mr18045756oij.38.1713872318025; Tue, 23 Apr 2024 04:38:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713872317; cv=pass; d=google.com; s=arc-20160816; b=RvT6ZS8bXkbh4vc9DQGTSx3DQ5JsnsLiOk7Z+d42PULR8JO2ezKBjewuvabrCnzHN1 eHGxSe2mxgjXsj4q1q3sB+1nyUxb4Hf4nDCnRPkkQN8WLVJGovTiOoacASna40gDZsIb BXU7JpaQ+a82OxxWEAeF2dBvOYG849T25lCCXrEXvKQaTfhWLSThp4yFIZHfKhRqUw++ X2fN+clA31u1yeYMO/fo3dI9EJaw4Xdreapq726fz7IBKpKOqddoX3MABksduqDcPg4U VyTHTrpTXbObqd44OwzwZn2HV/akiK3GjkvEQaMf5YRnAzti84gojnilNas1BkorNZuL 4Qrw== ARC-Message-Signature: i=2; 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=7nzZmkYlRcZ64VuYGAa+e/dW/+oc3oLK0hmQ5R2S61Y=; fh=OGQZfz9GbpECxPL/drfA92MEeVjX9bi3pfNmg+ZF6mk=; b=KWs61+WBqtpOUFhoRAU1bG8UD6JogoCEZGu4qX7EE8hIiQfqkqcl4KXBlVSZyUzFWd hg7xBit+s0aV0AubebZLBjryrUhNnTNpRR8G0Zpli3FR7mcmdU7Eg7L2CDL7xFD3kFvu HMdWyxFxo2MMCfWIm5zafkT/gPF5tpmMaB8JRTcLt9s/FNmzDTAB1OxV8XCvexD/Scdn CXYX2Ri1Cod4tuqMZf2Gzs+QtXDzHjlHd8D9sRgr8CVzCSN57fSguX6brcTf0OLdRghR KF1IFd2Nq5vs2MRPIO3SLj0ukJ6a6FIS6xyQme/qa52EswX6gdLL4cC5mZCHI8mjpoHC 1LqQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-155004-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155004-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 gw7-20020a0562140f0700b0069b2a1128ffsi12779985qvb.590.2024.04.23.04.38.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 04:38:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155004-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; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-kernel+bounces-155004-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155004-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 A97EE1C21DA4 for ; Tue, 23 Apr 2024 11:38:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 54DD07F7EB; Tue, 23 Apr 2024 11:38:21 +0000 (UTC) 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 270AB7E792 for ; Tue, 23 Apr 2024 11:38:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.69 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713872300; cv=none; b=V63AA1/m+KXpb9tdz++RKk8LYb1LZAZUfJyCgxfNnsM28m0F/DcHNaIeW8Pr/RLzJBf59JLmSEXjCd43st3+fygEFPRdYSXLgb6MZG1ilUXRFmZ+D19wIAvSuRTz9MVDhTOqL0wHmlBO3OXs9MDzwTxNmvAh8ZmBwY/lxynipGc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713872300; c=relaxed/simple; bh=edpR4V4UufkC6Q7sDETTFaZGGVz23xgEptOGtSzAMp4=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=MyBMVdfZgNuNsQ3Ms2UYcbyrA2Ln2VRc1i54asO9xBq6uvN5ovkwix8Vfmr3jkZeie+AcIRfe3aRmajTh41ywfY/C2wRRowzpyh9geJwIFpYMIp4CUso+9+uhOohnld3lw3FGdzoKSzck3dCQJIHIN9a54q6kv2jpTUw9ndJunc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.166.69 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-7dddba0ed91so96304639f.3 for ; Tue, 23 Apr 2024 04:38:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713872298; x=1714477098; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=7nzZmkYlRcZ64VuYGAa+e/dW/+oc3oLK0hmQ5R2S61Y=; b=RZZbr8COaxYDmiLZHj7szEuMe/fobUrLRdOhkmyyxuAteqsaGw+puxNBd7QDI2tgXz h6G4S7/cbBNXmuFbIX36/GDuWvP6mPm6zDJ9bNbVvce3OGDXdnJ9B6SYjrQUjs4LRg/b ejTtL0Hyh2qQEF2NAkszW696Ke4OTxTWiZHrrTersIOgArlUw8Z5dL14xXqDfCAJYf4r wJc0B9lAhBTVdI0Z2V/2hxD+Re86zidx0fE9haL1UGX8e7Ry+3nOBLQ9AY1Cefg0ocjy db+l9DIJ4OQUGyazslpVXuru6zZ0iXI5F2SYqX3Zjeg6j2vni49aCaZcWsE1Zg3i4dny zpFw== X-Forwarded-Encrypted: i=1; AJvYcCUJOYg9HJrJbXa5kiQX1Lf30WMW/qv3GV4l0lfYq9qPfeFLD5dPs96A0DBaOpapuKCfZl8Ygy2R4uLWV7gjdlQrjJhahG+1VMcTESiK X-Gm-Message-State: AOJu0YyhLqbrgWwTA45tMVC7Iu8E6Fq9WXgeBJDsUo6lVTEBeFMeSMdq /yDBYrpZH0x3HPjS+TejicPDJConMsflu87wz+dTfLfPUFm02hWB6niWpPwFnnrPKtwFF9GdmoO hDlbuWcs7LESXJhQjAeFC9O5CkkrNfkKzmSMQXgBPV3smBK0ptrO98tY= 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:6638:9511:b0:485:6475:6c4a with SMTP id lb17-20020a056638951100b0048564756c4amr192951jab.2.1713872298408; Tue, 23 Apr 2024 04:38:18 -0700 (PDT) Date: Tue, 23 Apr 2024 04:38:18 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000898d010616c1fd03@google.com> Subject: [syzbot] [fs?] KASAN: slab-use-after-free Read in __fput (2) From: syzbot To: brauner@kernel.org, jack@suse.cz, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, viro@zeniv.linux.org.uk Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: 4d2008430ce8 Merge tag 'docs-6.9-fixes2' of git://git.lwn... git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=12b508d3180000 kernel config: https://syzkaller.appspot.com/x/.config?x=545d4b3e07d6ccbc dashboard link: https://syzkaller.appspot.com/bug?extid=5d4cb6b4409edfd18646 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=1357d230980000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10923dfd180000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/4250d1d2a53f/disk-4d200843.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/af264ac1a9b0/vmlinux-4d200843.xz kernel image: https://storage.googleapis.com/syzbot-assets/c0e1e88877a5/bzImage-4d200843.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+5d4cb6b4409edfd18646@syzkaller.appspotmail.com general protection fault, probably for non-canonical address 0xdffffc0000000005: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000028-0x000000000000002f] CPU: 0 PID: 5113 Comm: syz-executor107 Not tainted 6.9.0-rc5-syzkaller-00007-g4d2008430ce8 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:fsnotify_parent include/linux/fsnotify.h:68 [inline] RIP: 0010:fsnotify_file include/linux/fsnotify.h:106 [inline] RIP: 0010:fsnotify_close include/linux/fsnotify.h:387 [inline] RIP: 0010:__fput+0x59e/0xb80 fs/file_table.c:408 Code: ea 03 80 3c 02 00 0f 85 88 05 00 00 49 8b 47 68 48 8d 78 28 48 89 44 24 10 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 35 05 00 00 48 8b 44 24 10 be 08 00 00 00 48 8b RSP: 0018:ffffc90003197da8 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: ffff88801fa16f00 RCX: ffffffff81f974e8 RDX: 0000000000000005 RSI: ffffffff81f978bf RDI: 0000000000000028 RBP: ffff88801fa16f50 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000080007 R13: 0000000000000008 R14: ffff888078a81e60 R15: ffff88807de245e0 FS: 00007fd582e0b6c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000080 CR3: 00000000774ac000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: task_work_run+0x14e/0x250 kernel/task_work.c:180 ptrace_notify+0x10e/0x130 kernel/signal.c:2404 ptrace_report_syscall include/linux/ptrace.h:415 [inline] ptrace_report_syscall_exit include/linux/ptrace.h:477 [inline] syscall_exit_work kernel/entry/common.c:173 [inline] syscall_exit_to_user_mode_prepare+0x126/0x260 kernel/entry/common.c:200 __syscall_exit_to_user_mode_work kernel/entry/common.c:205 [inline] syscall_exit_to_user_mode+0x11/0x2a0 kernel/entry/common.c:218 do_syscall_64+0xdc/0x260 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd582e504e9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 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:00007fd582e0b218 EFLAGS: 00000246 ORIG_RAX: 00000000000000e8 RAX: 0000000000000001 RBX: 00007fd582eda348 RCX: 00007fd582e504e9 RDX: 0000000000000002 RSI: 00000000200000c0 RDI: 0000000000000005 RBP: 00007fd582eda340 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000000000fa R11: 0000000000000246 R12: 00007fd582ea717c R13: 00007fd582ea7068 R14: 00667562616d6475 R15: 6d64752f7665642f Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:fsnotify_parent include/linux/fsnotify.h:68 [inline] RIP: 0010:fsnotify_file include/linux/fsnotify.h:106 [inline] RIP: 0010:fsnotify_close include/linux/fsnotify.h:387 [inline] RIP: 0010:__fput+0x59e/0xb80 fs/file_table.c:408 Code: ea 03 80 3c 02 00 0f 85 88 05 00 00 49 8b 47 68 48 8d 78 28 48 89 44 24 10 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 35 05 00 00 48 8b 44 24 10 be 08 00 00 00 48 8b RSP: 0018:ffffc90003197da8 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: ffff88801fa16f00 RCX: ffffffff81f974e8 RDX: 0000000000000005 RSI: ffffffff81f978bf RDI: 0000000000000028 RBP: ffff88801fa16f50 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000080007 R13: 0000000000000008 R14: ffff888078a81e60 R15: ffff88807de245e0 FS: 00007fd582e0b6c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd582e8c190 CR3: 00000000774ac000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 03 80 3c 02 00 0f add 0xf00023c(%rax),%eax 6: 85 88 05 00 00 49 test %ecx,0x49000005(%rax) c: 8b 47 68 mov 0x68(%rdi),%eax f: 48 8d 78 28 lea 0x28(%rax),%rdi 13: 48 89 44 24 10 mov %rax,0x10(%rsp) 18: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 1f: fc ff df 22: 48 89 fa mov %rdi,%rdx 25: 48 c1 ea 03 shr $0x3,%rdx * 29: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2d: 0f 85 35 05 00 00 jne 0x568 33: 48 8b 44 24 10 mov 0x10(%rsp),%rax 38: be 08 00 00 00 mov $0x8,%esi 3d: 48 rex.W 3e: 8b .byte 0x8b --- 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