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 D0A07C43219 for ; Thu, 20 Oct 2022 12:59:44 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 483B08E0002; Thu, 20 Oct 2022 08:59:44 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 433688E0001; Thu, 20 Oct 2022 08:59:44 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 349B08E0002; Thu, 20 Oct 2022 08:59:44 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 2357B8E0001 for ; Thu, 20 Oct 2022 08:59:44 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id D9B06A078E for ; Thu, 20 Oct 2022 12:59:43 +0000 (UTC) X-FDA: 80041334646.04.39A0B6C Received: from mail-il1-f199.google.com (mail-il1-f199.google.com [209.85.166.199]) by imf14.hostedemail.com (Postfix) with ESMTP id 88928100028 for ; Thu, 20 Oct 2022 12:59:42 +0000 (UTC) Received: by mail-il1-f199.google.com with SMTP id g13-20020a056e021e0d00b002fc57cd18e3so20309851ila.11 for ; Thu, 20 Oct 2022 05:59:42 -0700 (PDT) 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=4hi8rEJq2YX1jSHUhJLl2Vtr/5VvQ8mSGRcQz0nCmo4=; b=2GjfLNb4Y5RRf74SfCm1kXzOVY8lrKsJYCty5vAL0T4rl+YLuFjXh6dXAZ1jOiL5dI 5DQaSoLvx9V4wionnS6MwwPtWCzeY2XToSYTZHAeJ3NjyZN7/BRdwGwfo6iT1bSn1U7a YmBqeruwE2CCn4XahZjdL/EFVi8s81jUEGOwk02zuYFFyPEs4Nun2AahgBTF5+vy+GKK 9bhB7PauBwZXMIJPvSgq7qNqdpgV4MytKQiaTVFN4lfgC/70czuqtw1cnTYePkNsQPab mBDEIjZgULgV+Qzp2hnOB/Dnkvrd+NK1etDEvJin9WmQmOoXQWWY6Gp9j+oCKDoLBpYI dK7Q== X-Gm-Message-State: ACrzQf1+Okxc0GGfJk8gwiyiIJj51NLwtAY7iu8CRwch5GbUY5QMu5Wi +5rP/yBJNtNjUUW16k701tZG3boQq9gIKVMhZA77gExdlPJO X-Google-Smtp-Source: AMsMyM5GC6iijSslBJ5Vnh4I4n+l4Nuk9X0UMEuoC/LcrNCyEA2I8Ko2vIXOSi8ksKxGFSK4zaQPTkmNsDpv8H8dj71ud5By+kyr MIME-Version: 1.0 X-Received: by 2002:a05:6e02:1c05:b0:2fc:2f37:75c3 with SMTP id l5-20020a056e021c0500b002fc2f3775c3mr10363032ilh.149.1666270781978; Thu, 20 Oct 2022 05:59:41 -0700 (PDT) Date: Thu, 20 Oct 2022 05:59:41 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000000f3fec05eb76e68f@google.com> Subject: [syzbot] BUG: sleeping function called from invalid context in break_ksm From: syzbot To: akpm@linux-foundation.org, 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=1666270782; a=rsa-sha256; cv=none; b=B3PjwOiIHqEPCeMvvM89Mbzb8vQfqy46U2nOKqjPBWxV5VwdQNfUqey0qiJ2/8nUtDP3sB Sa+sFh5xreIylWoDtP9Kfr/A21siwRzmH9HNe3f6IHCXtiO5TDpOhYorLsdfrjLcaePCk+ ptZUzHj8fmyHrQ8DzHdX1+a0LlpMC5o= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=appspotmail.com (policy=none); spf=pass (imf14.hostedemail.com: domain of 3PUZRYwkbADAeklWMXXQdMbbUP.SaaSXQgeQdOaZfQZf.OaY@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com designates 209.85.166.199 as permitted sender) smtp.mailfrom=3PUZRYwkbADAeklWMXXQdMbbUP.SaaSXQgeQdOaZfQZf.OaY@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1666270782; 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=4hi8rEJq2YX1jSHUhJLl2Vtr/5VvQ8mSGRcQz0nCmo4=; b=N6YzGVjVD7AOUKE+v84mFTvuX7zblSEHu634ZXbqIYJ0YERJUp/r7hiXGzb3gG32GU0jE9 x7C9UuTqz9N9Bgq74/Glxf3bSbg3Iz1NSLlOayeoniMG1pqGqZJEpn4m5hHSYndusQw58k RtEjKM8Yhh+5Qphkmjt/VJtbAye3iUs= X-Stat-Signature: gasbjbtrorp7rkyhrpea6ahq83dtmn84 X-Rspamd-Queue-Id: 88928100028 Authentication-Results: imf14.hostedemail.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=appspotmail.com (policy=none); spf=pass (imf14.hostedemail.com: domain of 3PUZRYwkbADAeklWMXXQdMbbUP.SaaSXQgeQdOaZfQZf.OaY@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com designates 209.85.166.199 as permitted sender) smtp.mailfrom=3PUZRYwkbADAeklWMXXQdMbbUP.SaaSXQgeQdOaZfQZf.OaY@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com X-Rspam-User: X-Rspamd-Server: rspam01 X-HE-Tag: 1666270782-773785 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: acee3e83b493 Add linux-next specific files for 20221020 git tree: linux-next console+strace: https://syzkaller.appspot.com/x/log.txt?x=15961f62880000 kernel config: https://syzkaller.appspot.com/x/.config?x=c82245cfb913f766 dashboard link: https://syzkaller.appspot.com/bug?extid=78a0878b3076f71313b3 compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1255612c880000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12a1bed2880000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/98cc5896cded/disk-acee3e83.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/b3d3eb3aa10a/vmlinux-acee3e83.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+78a0878b3076f71313b3@syzkaller.appspotmail.com BUG: sleeping function called from invalid context at mm/ksm.c:500 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 3610, name: syz-executor212 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 PID: 3610 Comm: syz-executor212 Not tainted 6.1.0-rc1-next-20221020-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 __might_resched.cold+0x222/0x26b kernel/sched/core.c:9890 break_ksm.part.0+0xbe/0x160 mm/ksm.c:500 break_ksm mm/ksm.c:875 [inline] unmerge_ksm_pages+0x1a0/0x240 mm/ksm.c:881 unmerge_and_remove_all_rmap_items mm/ksm.c:1021 [inline] run_store+0x3cf/0xa30 mm/ksm.c:2983 kobj_attr_store+0x50/0x80 lib/kobject.c:824 sysfs_kf_write+0x110/0x160 fs/sysfs/file.c:136 kernfs_fop_write_iter+0x3f8/0x610 fs/kernfs/file.c:330 call_write_iter include/linux/fs.h:2191 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x9e9/0xdd0 fs/read_write.c:584 ksys_write+0x127/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fc23ce26b39 Code: 28 c3 e8 2a 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:00007fff3f50c3a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fc23ce26b39 RDX: 0000000000000002 RSI: 0000000020000000 RDI: 0000000000000003 RBP: 00007fc23cdeace0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fc23cdead70 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 --- 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