Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1596530lqs; Sat, 15 Jun 2024 17:10:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVdGLP3pv0pl9H3+E0aOIswc8BVHKXQYIvDxfm/wR2V8ZxSmiznfjVJFLq5HRfDoc4Qxd+v7T6xYy2V82ePjV7xBbr/6N9IswleBBLJ8Q== X-Google-Smtp-Source: AGHT+IHn/KWH8jvhdaaEvYSPF0pCo7k2KqQhzD+OkFOs3tDKtGzt2kfXwEJffTygW3l19tcsPPUM X-Received: by 2002:a05:6870:8a28:b0:24f:cabc:4f6b with SMTP id 586e51a60fabf-2584288bdfcmr7204122fac.8.1718496614809; Sat, 15 Jun 2024 17:10:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718496614; cv=pass; d=google.com; s=arc-20160816; b=XcdaJu/u9kAFS9yLLZ1mXmCnsIomN9Brvsrq0yW/8jns2VJ9wE3SvBAU9NhONg0cfR ydYkPif+vsMWpP53PfmZgrRAZDP0gOeivEsMt/8OSSIC+1EPVg7+cqsJ+MBPxVbER0/4 osIn1Bwd8R86r1//DJRC8dz2NFDwdR1lqrLD8VWsuI6CFtj0uJtYPbuGnM+b5lc2vfRR viQ9i8G4urB58PTD6an1PRkS1gRrVzB50K4wZL7cfj/dFA05K9rmr9V7be8BZoFsP4ri wm91INYluYVbcIcNHYz+WMuxzqpPD6W/rjSD9IA/MSw2MQcFCQnmJ+0LrPmmZXmVQuCt iHhw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:message-id:in-reply-to:date:mime-version :list-unsubscribe:list-subscribe:list-id:precedence; bh=U1ViQOmfPbYo1UQjxR1ujw8trFh3Yo+KDFkFbV6YAoE=; fh=A/pWTIWoA+Z7fBLhWx5jsWVYzuaKWbU/Jn8FjG7Tj3s=; b=Fb5vs63JI+yZ8hwG0y+VSJVjpDRKZL7zu2fZdVUoGrRH9xPGhCHMrDz+LdZhTYHg+f kAsOzB68X2ajRSG8H+RsslkcUhgYlilUNVLBGapUfHAW/KvCiycLVNK6H5vxIFL73r/S YIFzxqbx6flniquDjVYOIbVWAkgRvI7dvOfZujh2u08sth45yiJPFsdUtDx/g7yU7Avc /kXv2ffR3owBQLrLyI/OL1jK7bJ5T45w3TqVNLZvN3vEL43SfzhILBqpPkZkdVhUTy1a DqyvWhO5PyMZi6RL5Y2JfHeIHrIpm0EWLL8m9Fb8eSiCbv3KqXqJFWQuQBTUAC+w2pGW E0JA==; 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-216063-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216063-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-705ccb9cc3bsi3987502b3a.339.2024.06.15.17.10.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 17:10:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-216063-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; 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-216063-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216063-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8E234282E5F for ; Sun, 16 Jun 2024 00:10:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 254B023DE; Sun, 16 Jun 2024 00:10:05 +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 EE07A632 for ; Sun, 16 Jun 2024 00:10:02 +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=1718496604; cv=none; b=Eoxkm0cs9e0c8bGoQ4xRKFC83ZpVsDX11KMWr8xcnUiFZQYfEPkvObOwKjcICtVtO1EKw5U9AljbYBTKN+itRNu4/Bv7SCMmiIV3w7AmZoN3djlAMcTTUg0ai66EUoz8bH1cRg5VOMFv6zXicG5KOuEVYP8lpcoqSyEc6rK4JoQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718496604; c=relaxed/simple; bh=Hf7sfFQ3cSMQ1BvCIvPW2slf2/cNJ6E1fEE/xrn3//Y=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=cRss8E0DqblNm/g5+fpHNJCIH5PIiUmXNbPelpoCitTuGaoX4ipnuCpuNIycgGGa7Fz96mq0k9pGeZSUN1aUo2aJ0RY55vbWKB4W9hd8kab0nXKM/piqLq3Sf4e1rE7x60sxK2rlO+pGd/QtwTVYfFTWvvN9GsIbAIP82Ro61Ik= 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-7eb73f0683cso364005039f.2 for ; Sat, 15 Jun 2024 17:10:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718496602; x=1719101402; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=U1ViQOmfPbYo1UQjxR1ujw8trFh3Yo+KDFkFbV6YAoE=; b=TnhVXmJaFkWEOZY54uSkhahVu5IaKU9ehkh9tac3fvHPKQVSD39vakW0UZ5b4N1Feq wEJ+Rx3vPlcKRdA6cuDJYi49njbQXHvmv1zbkZywstcu3FO/O1Gog0Heh9VxlPaBk/q4 dJGQ4I9jc69raVXZShxj6mOyUTS41ZrfKBTqXWx9VeVDgtgo75vwypLtn19ODYz6og41 mnCc5uda8eOKtf72ufAh9J+a1gNoC4a2CzisI79bNcdoJ3SIXO0jE19L1qXyoJP8XQ5u FacqbgzoAEFjRkhUypySt4KMODIBtgxzYk81uudPleKVgTZR2QfVBND0IOgsvot8ofiQ 2gBw== X-Forwarded-Encrypted: i=1; AJvYcCVgmbZ71qp758tNNNRIVqI9GEyGdu/1atjOP68jZIHOF3bx2Z0AcCVBFk/bMp2amEr7amHfWlFP93/cvsBYShbW+LGMSxT0nKaQDpyE X-Gm-Message-State: AOJu0Yw/ozPPgtl8ueVKjbREx83Np9kXtgiPKbbnPrJ8k3ZGYy0x+zT9 eVT2aGqs5B8jDDB4hofd7VAlBohhqwe6g7kljqPoN43YcG7Cj/YjeaGZdZWHCxw9Y1ulvfTn6YI dXkD6PjgWmzXTa0oUNrDbdIpoMv0+EFprcngLE3KkrNtwUSwj5WXDQ28= 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:871b:b0:4b9:685d:7f65 with SMTP id 8926c6da1cb9f-4b9685d8b68mr231744173.4.1718496602136; Sat, 15 Jun 2024 17:10:02 -0700 (PDT) Date: Sat, 15 Jun 2024 17:10:02 -0700 In-Reply-To: <20240615235238.1079-1-hdanton@sina.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000084b401061af6ab80@google.com> Subject: Re: [syzbot] [nilfs?] [mm?] KASAN: slab-use-after-free Read in lru_add_fn From: syzbot To: hdanton@sina.com, jack@suse.cz, konishi.ryusuke@gmail.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-nilfs@vger.kernel.org, syzkaller-bugs@googlegroups.com, willy@infradead.org Content-Type: text/plain; charset="UTF-8" Hello, syzbot has tested the proposed patch but the reproducer is still triggering an issue: kernel BUG in __destroy_inode NILFS (loop0): I/O error reading meta-data file (ino=3, block-offset=0) NILFS (loop0): I/O error reading meta-data file (ino=3, block-offset=0) NILFS (loop0): disposed unprocessed dirty file(s) when stopping log writer ------------[ cut here ]------------ kernel BUG at fs/inode.c:285! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 2 PID: 5330 Comm: syz-executor Not tainted 6.10.0-rc3-syzkaller-dirty #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 RIP: 0010:__destroy_inode+0x5e4/0x7a0 fs/inode.c:285 Code: 2a 03 00 00 48 c7 c7 40 78 3d 8b c6 05 aa 6d cc 0d 01 e8 bf d9 69 ff e9 0e fc ff ff e8 a5 8b 8c ff 90 0f 0b e8 9d 8b 8c ff 90 <0f> 0b e8 95 8b 8c ff 90 0f 0b 90 e9 fa fa ff ff e8 87 8b 8c ff 90 RSP: 0018:ffffc900035afaf0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff8880325ba7c8 RCX: ffffffff82015439 RDX: ffff8880222ec880 RSI: ffffffff820159b3 RDI: 0000000000000007 RBP: 0000000000000001 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffff8880325ba980 R13: 0000000000000024 R14: ffffffff8b706c60 R15: ffff8880325ba8a0 FS: 0000555571e27480(0000) GS:ffff88806b200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f01cb366731 CR3: 0000000034ef4000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: destroy_inode+0x91/0x1b0 fs/inode.c:310 iput_final fs/inode.c:1742 [inline] iput.part.0+0x5a8/0x7f0 fs/inode.c:1768 iput+0x5c/0x80 fs/inode.c:1758 nilfs_put_root+0xae/0xe0 fs/nilfs2/the_nilfs.c:925 nilfs_segctor_destroy fs/nilfs2/segment.c:2788 [inline] nilfs_detach_log_writer+0x5ef/0xaa0 fs/nilfs2/segment.c:2850 nilfs_put_super+0x43/0x1b0 fs/nilfs2/super.c:498 generic_shutdown_super+0x159/0x3d0 fs/super.c:642 kill_block_super+0x3b/0x90 fs/super.c:1676 deactivate_locked_super+0xbe/0x1a0 fs/super.c:473 deactivate_super+0xde/0x100 fs/super.c:506 cleanup_mnt+0x222/0x450 fs/namespace.c:1267 task_work_run+0x14e/0x250 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x278/0x2a0 kernel/entry/common.c:218 do_syscall_64+0xda/0x250 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fc203a7e217 Code: b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 b0 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007fffe9265ae8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000064 RCX: 00007fc203a7e217 RDX: 0000000000000200 RSI: 0000000000000009 RDI: 00007fffe9266c90 RBP: 00007fc203ac8336 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000100 R11: 0000000000000202 R12: 00007fffe9266c90 R13: 00007fc203ac8336 R14: 0000555571e27430 R15: 0000000000000005 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__destroy_inode+0x5e4/0x7a0 fs/inode.c:285 Code: 2a 03 00 00 48 c7 c7 40 78 3d 8b c6 05 aa 6d cc 0d 01 e8 bf d9 69 ff e9 0e fc ff ff e8 a5 8b 8c ff 90 0f 0b e8 9d 8b 8c ff 90 <0f> 0b e8 95 8b 8c ff 90 0f 0b 90 e9 fa fa ff ff e8 87 8b 8c ff 90 RSP: 0018:ffffc900035afaf0 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff8880325ba7c8 RCX: ffffffff82015439 RDX: ffff8880222ec880 RSI: ffffffff820159b3 RDI: 0000000000000007 RBP: 0000000000000001 R08: 0000000000000007 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffff8880325ba980 R13: 0000000000000024 R14: ffffffff8b706c60 R15: ffff8880325ba8a0 FS: 0000555571e27480(0000) GS:ffff88806b300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c0016fb000 CR3: 0000000034ef4000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Tested on: commit: 83a7eefe Linux 6.10-rc3 git tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git console output: https://syzkaller.appspot.com/x/log.txt?x=11bb8ada980000 kernel config: https://syzkaller.appspot.com/x/.config?x=b8786f381e62940f dashboard link: https://syzkaller.appspot.com/bug?extid=d79afb004be235636ee8 compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 patch: https://syzkaller.appspot.com/x/patch.diff?x=16642012980000