From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED3CDC4332F for ; Wed, 16 Nov 2022 14:54:46 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 156F26B0071; Wed, 16 Nov 2022 09:54:46 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 0E08C6B0072; Wed, 16 Nov 2022 09:54:46 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EC2946B0073; Wed, 16 Nov 2022 09:54:45 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id D563B6B0071 for ; Wed, 16 Nov 2022 09:54:45 -0500 (EST) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 6812CAB1AD for ; Wed, 16 Nov 2022 14:54:45 +0000 (UTC) X-FDA: 80139602130.23.157EE21 Received: from mail-io1-f70.google.com (mail-io1-f70.google.com [209.85.166.70]) by imf11.hostedemail.com (Postfix) with ESMTP id 081AA40004 for ; Wed, 16 Nov 2022 14:54:43 +0000 (UTC) Received: by mail-io1-f70.google.com with SMTP id g13-20020a056602072d00b006c60d59110fso8765076iox.12 for ; Wed, 16 Nov 2022 06:54:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=bUN/FpwVFx2Shx7k+l1VE9xLw/IMJFD/43fP0Y4FYAQ=; b=kWkwHYZpfQW6q1XUs+mK61jOEYOqpR+Wy6hGTbj9KrayxKeE5MG8l9UNZeUGFwxVM3 rImjVihWswsMNDtW10Zwr8lcD5MpGi373llsTqLbucg7ZQFnVgTG3XLQsnZ5kZuKvdA6 7hEvyDZipfYosaL/BsTVTtCVCM0jHf8TPSW9lyr2Yhx2r6fuwSyDJ7uthVFFhKQDsYQl K5qkBD/ie74Ng8e58g1GcVrd/bxiNLgMh+UHHIlhmm85LzculnpswVRGG47SovZLGQ1k 02d1QSj9jYun9Ri6hvrptaDh/CC0kNTkZAcrJKorl1f+g/Ii/GqFlFdy4lmzjsLDsjfr DgLQ== X-Gm-Message-State: ANoB5pkxWd5MUyqJkCEL1d6hYhQdAXMPqSF9fJ4EDpa9/tkS7mjpu3eD c3DUkUwLDQxLvS+QMYjy+KzeqICxTUiclXt/8BdNhwALrTDt X-Google-Smtp-Source: AA0mqf76o4yj249xQO2NN7upqCvWE6yjt4wgPVQb8EoHioY+gZOrAfEK6vmnn3e4Pk1hF7TfGFgFZRS9d1ogno8UNPMDCQybsDpB MIME-Version: 1.0 X-Received: by 2002:a02:3213:0:b0:374:c658:2141 with SMTP id j19-20020a023213000000b00374c6582141mr9822834jaa.210.1668610483183; Wed, 16 Nov 2022 06:54:43 -0800 (PST) Date: Wed, 16 Nov 2022 06:54:43 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000001e68ff05ed97a712@google.com> Subject: [syzbot] BUG: unable to handle kernel NULL pointer dereference in shmem_evict_inode From: syzbot To: akpm@linux-foundation.org, hughd@google.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1668610484; a=rsa-sha256; cv=none; b=uKma6sTAaJAUBXyN6OTTh91iyUbk6a7+YmtQdCI6LHfwRdWVUzRAvIt3Owr0blNrkkwfo/ DoYzQYarx2EiSSPyoREH5tqoJeIL2hVvnLLB9L5lQXBmFZHjhdEfMGjGVrPl5OGQx6BUPL TS+/D8nAM95S/ZukyxUSx8oLOqmvbLM= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=none; spf=pass (imf11.hostedemail.com: domain of 3s_l0YwkbAJwOUVG6HHAN6LLE9.CKKCHAQOAN8KJPAJP.8KI@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com designates 209.85.166.70 as permitted sender) smtp.mailfrom=3s_l0YwkbAJwOUVG6HHAN6LLE9.CKKCHAQOAN8KJPAJP.8KI@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=appspotmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1668610484; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references; bh=bUN/FpwVFx2Shx7k+l1VE9xLw/IMJFD/43fP0Y4FYAQ=; b=8qC/U8Z4oFwtPtTHWSaF/xbRF3MnAKRRtFDFeIVLP4+asgCneYcbPANofKoRMNb9FegBnb VMUlC3lAk6P8/9kaMBfJmxCVcudrzN8+Lvr0yKS7p4WQSG2ofPtqHb9g+crjOYmso5BUtA /Jv+r1FwRU25PBCEZl5amG5GQ535qS8= X-Stat-Signature: tktignt4bmgcef7g7n6ke9qtw3k56h6i X-Rspamd-Queue-Id: 081AA40004 Authentication-Results: imf11.hostedemail.com; dkim=none; spf=pass (imf11.hostedemail.com: domain of 3s_l0YwkbAJwOUVG6HHAN6LLE9.CKKCHAQOAN8KJPAJP.8KI@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com designates 209.85.166.70 as permitted sender) smtp.mailfrom=3s_l0YwkbAJwOUVG6HHAN6LLE9.CKKCHAQOAN8KJPAJP.8KI@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=appspotmail.com (policy=none) X-Rspamd-Server: rspam04 X-Rspam-User: X-HE-Tag: 1668610483-188260 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hello, syzbot found the following issue on: HEAD commit: 1621b6eaebf7 Merge branch 'for-next/fixes' into for-kernelci git tree: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci console output: https://syzkaller.appspot.com/x/log.txt?x=14016169880000 kernel config: https://syzkaller.appspot.com/x/.config?x=606e57fd25c5c6cc dashboard link: https://syzkaller.appspot.com/bug?extid=b90b43fd4c6589e96a39 compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 userspace arch: arm64 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1112f7a9880000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17c33e69880000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/82aa7741098d/disk-1621b6ea.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/f6be08c4e4c2/vmlinux-1621b6ea.xz kernel image: https://storage.googleapis.com/syzbot-assets/296b6946258a/Image-1621b6ea.gz.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+b90b43fd4c6589e96a39@syzkaller.appspotmail.com Unable to handle kernel NULL pointer dereference at virtual address 0000000000000010 Mem abort info: ESR = 0x0000000096000004 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x04: level 0 translation fault Data abort info: ISV = 0, ISS = 0x00000004 CM = 0, WnR = 0 user pgtable: 4k pages, 48-bit VAs, pgdp=000000010bfaa000 [0000000000000010] pgd=0000000000000000, p4d=0000000000000000 Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 3059 Comm: udevd Not tainted 6.1.0-rc4-syzkaller-31872-g1621b6eaebf7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : simple_xattrs_free include/linux/xattr.h:111 [inline] pc : shmem_evict_inode+0x2d0/0x3d8 mm/shmem.c:1164 lr : simple_xattrs_free include/linux/xattr.h:110 [inline] lr : shmem_evict_inode+0x2f0/0x3d8 mm/shmem.c:1164 sp : ffff800012c0ba40 x29: ffff800012c0ba90 x28: ffff80000d890000 x27: ffff0000ccf252a0 x26: 00000000000800e0 x25: 0000000000000001 x24: 0000000000000001 x23: ffff0000ccf254c8 x22: ffff0000c0cb6e00 x21: 0000000000000000 x20: 0000000000000000 x19: ffff0000ccf25310 x18: 0000000000000000 x17: 0000000000000000 x16: ffff80000db1a158 x15: ffff0000c64dcec0 x14: 0000000000000000 x13: 00000000ffffffff x12: ffff0000c64dcec0 x11: ff8080000842e558 x10: 0000000000000000 x9 : ffff80000842e558 x8 : ffff0000c64dcec0 x7 : ffff8000085252dc x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000 x2 : 0000000000000006 x1 : ffff80000cdfe6d9 x0 : ffff8001f1dbd000 Call trace: simple_xattrs_free include/linux/xattr.h:110 [inline] shmem_evict_inode+0x2d0/0x3d8 mm/shmem.c:1164 evict+0xec/0x334 fs/inode.c:664 iput_final fs/inode.c:1747 [inline] iput+0x2c4/0x324 fs/inode.c:1773 dentry_unlink_inode+0x204/0x21c fs/dcache.c:401 __dentry_kill+0x15c/0x37c fs/dcache.c:607 dentry_kill+0x8c/0x194 dput+0x194/0x2e0 fs/dcache.c:913 do_renameat2+0x49c/0x758 fs/namei.c:4931 __do_sys_renameat fs/namei.c:4969 [inline] __se_sys_renameat fs/namei.c:4966 [inline] __arm64_sys_renameat+0x64/0x7c fs/namei.c:4966 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall arch/arm64/kernel/syscall.c:52 [inline] el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x48/0x164 arch/arm64/kernel/syscall.c:206 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:584 Code: 97f9cd15 f84d0f74 eb1b029f 540001a0 (f9400a80) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: 97f9cd15 bl 0xffffffffffe73454 4: f84d0f74 ldr x20, [x27, #208]! 8: eb1b029f cmp x20, x27 c: 540001a0 b.eq 0x40 // b.none * 10: f9400a80 ldr x0, [x20, #16] <-- trapping instruction --- 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. syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches