Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2484162rdb; Fri, 8 Dec 2023 09:21:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IFwF8lX2luv3tIBzQ4wiYAxDp4QWeoTHrREIH0uvd8ypE9xidw3gqq9NOtLNNoNcWlS+nTD X-Received: by 2002:a17:902:e811:b0:1d0:6ffe:a19 with SMTP id u17-20020a170902e81100b001d06ffe0a19mr413125plg.119.1702056091988; Fri, 08 Dec 2023 09:21:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702056091; cv=none; d=google.com; s=arc-20160816; b=NU8+HShlDGaeXjVOl26dnEIFDVd2qGSJFY8vhJjKQGKmhdeUSyFLR7M1qZ4o7aoSFI xhPtnSq/4cSI67GTsj651XNjtCB8vCweXyFcLqOWMiy27D/cE+qtYWbua+ecD32+N1l0 4yQfDElDOwXCqjFAWnLOehvjcBsXf1mWH++zm7+MwL7cM4wknacR3m+16yS6iF0GBlnT hECeHox3xTrAgqQqBNvokRAyCuWSZxkIu9/COiShBU1Fp8CVqcRQN4yLGFbKRCsz+wu3 1y3xB9ycHCkUQUUmW+mKJp4WRwPzrkLITYYrEZqGTYYoeRR0wa4kFpgWFtpEJmGLHzdk 2g+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:date:mime-version; bh=gJ+3R9IxKbkmcTJ74HwTcQdvvH3YUoXYS6y2KZcmboM=; fh=uJOXnu2+JejDTDeFWBGh6HmjxMQciMxp98v+mRcSn3s=; b=kl03FjRYVIyHJLjLanJ33BgZaHRMAt4GhT6biMh8d440tOZSJT5zs7ji3Skh/WFYyH Q/zcwc6K6NNcgQoSMgjiq0js4m9w5S2T+CkjKD0uAzAsQCSo3ngalMo+8I6du6/TvHYg EvsiV5QbYeqacg/XRkc8qQ2i7Ul/jBR5zbBOqA9IUw/TDpFn0jbSA6hPzARP2O77Omj6 nUG0UEkoWpW4hczJsaYyyqHXWoGr5yeEZJZIi8RSZ5oiPIkmCdF1GuVB+44QvCsYiX3r t1C+VCVPZm2XYkitimuQv0K1CIp5jBUL+ezIG3UWS7Fu2mC47xG9iBvOJSqRIvMrVl4n /sLg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id jw19-20020a170903279300b001cfabbeeda5si1821163plb.291.2023.12.08.09.21.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 09:21:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 70BD58521373; Fri, 8 Dec 2023 09:21:19 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1574250AbjLHRVA (ORCPT + 99 others); Fri, 8 Dec 2023 12:21:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1574473AbjLHRUl (ORCPT ); Fri, 8 Dec 2023 12:20:41 -0500 Received: from mail-oi1-f199.google.com (mail-oi1-f199.google.com [209.85.167.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DDA530E0 for ; Fri, 8 Dec 2023 09:18:22 -0800 (PST) Received: by mail-oi1-f199.google.com with SMTP id 5614622812f47-3b9f3b1c184so68104b6e.1 for ; Fri, 08 Dec 2023 09:18:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702055901; x=1702660701; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=gJ+3R9IxKbkmcTJ74HwTcQdvvH3YUoXYS6y2KZcmboM=; b=heLkUNNJ668NGUqPZtbP8t0BkZSCAmx8lfYvyDSPCaQcvlMtxQQw9UTDk52hXoUjtr F/INa/87Z7xHd2/aZjNLmGikHAR19yqF2vB2LA7GPb1L97acYWw/4zsvksh0EodJt9OM m1kG0ZBKvlLBfs58MVqwPzEjPkUaR8uALpVl9Aum9IptkbRfWIdIZ6FntABqAPDpbPK9 gR1g1iTVO08troHxpO39KBHCugQ6shDvSv5NFwpAxTqp7EgBtoY/XJ1DquWstHfP9fTj I4M9eyBbX7URsEt9ROtISNr9oOl9UcNhd/pfgJe3GQBIdckHHgisBn3M94NV9dQHtfDp x4rw== X-Gm-Message-State: AOJu0YxPhzDJsu4kXFZFdXamYbryMIgLuNCHJbwvvuoBr3xAVJ9nXoRi HfVAUxkYY9C3BKtiL8P+QghJZbl0CNjJvMTCZlL9OCbXeaWh MIME-Version: 1.0 X-Received: by 2002:a05:6808:1924:b0:3b8:b1e2:f631 with SMTP id bf36-20020a056808192400b003b8b1e2f631mr421305oib.0.1702055901267; Fri, 08 Dec 2023 09:18:21 -0800 (PST) Date: Fri, 08 Dec 2023 09:18:21 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000620dd0060c02c5e1@google.com> Subject: [syzbot] [riscv?] riscv/fixes boot error: kernel BUG in __phys_addr_symbol From: syzbot To: aou@eecs.berkeley.edu, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, palmer@dabbelt.com, paul.walmsley@sifive.com, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=1.1 required=5.0 tests=FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SORBS_WEB, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 08 Dec 2023 09:21:19 -0800 (PST) X-Spam-Level: * Hello, syzbot found the following issue on: HEAD commit: eb46a0076501 riscv: Check if the code to patch lies in the.. git tree: git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes console output: https://syzkaller.appspot.com/x/log.txt?x=14aa707ae80000 kernel config: https://syzkaller.appspot.com/x/.config?x=a5c1ede998d7cef2 dashboard link: https://syzkaller.appspot.com/bug?extid=afb726d49f84c8d95ee1 compiler: riscv64-linux-gnu-gcc (Debian 12.2.0-13) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 userspace arch: riscv64 Downloadable assets: disk image (non-bootable): https://storage.googleapis.com/syzbot-assets/a741b348759c/non_bootable_disk-eb46a007.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/472c8c5dc639/vmlinux-eb46a007.xz kernel image: https://storage.googleapis.com/syzbot-assets/21ee09184ba1/Image-eb46a007.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+afb726d49f84c8d95ee1@syzkaller.appspotmail.com ------------[ cut here ]------------ kernel BUG at arch/riscv/mm/physaddr.c:31! Kernel BUG [#1] Modules linked in: CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.7.0-rc1-syzkaller-geb46a0076501 #0 Hardware name: riscv-virtio,qemu (DT) epc : __phys_addr_symbol+0x144/0x150 arch/riscv/mm/physaddr.c:31 ra : __phys_addr_symbol+0x144/0x150 arch/riscv/mm/physaddr.c:31 epc : ffffffff800200b4 ra : ffffffff800200b4 sp : ff20000000013d10 gp : ffffffff861f60a0 tp : ff6000000b260000 t0 : 26747970652d3e69 t1 : fffffffef0a8ad5d t2 : 0000000000000000 s0 : ff20000000013d40 s1 : ff60000003a00000 a0 : 0000000000000006 a1 : ffffffff80000000 a2 : 0000000000000002 a3 : ffffffff800200b4 a4 : 0000000000000000 a5 : ff6000000b261000 a6 : 0000000000000003 a7 : ffffffff85456aef s2 : ffffffff8816d000 s3 : ffffffff80000000 s4 : ffffffff84e6f2b0 s5 : ff60000003a00000 s6 : 0000000000000000 s7 : 0000000000000000 s8 : ffffffff861f5c40 s9 : 0000000000000000 s10: 0000000000000000 s11: 0000000000000000 t3 : ffffffffffffffff t4 : fffffffef0a8ad5d t5 : fffffffef0a8ad5e t6 : ff60000013e80c70 status: 0000000200000120 badaddr: 0000000000000000 cause: 0000000000000003 [] __phys_addr_symbol+0x144/0x150 arch/riscv/mm/physaddr.c:31 [] __set_memory+0x1c0/0x762 arch/riscv/mm/pageattr.c:308 [] set_memory_rw_nx+0x24/0x30 arch/riscv/mm/pageattr.c:346 [] set_kernel_memory arch/riscv/include/asm/set_memory.h:27 [inline] [] free_initmem+0x52/0x8c arch/riscv/kernel/setup.c:323 [] kernel_init+0x44/0x21e init/main.c:1450 [] ret_from_fork+0xe/0x1c arch/riscv/kernel/entry.S:221 Code: 84b3 4124 b745 4985 1996 bf65 7097 0025 80e7 ecc0 (9002) 7097 ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: 412484b3 sub s1,s1,s2 4: b745 j 0xffffffffffffffa4 6: 4985 li s3,1 8: 1996 sll s3,s3,0x25 a: bf65 j 0xffffffffffffffc2 c: 00257097 auipc ra,0x257 10: ecc080e7 jalr -308(ra) # 0x256ed8 * 14: 9002 ebreak <-- trapping instruction 16: 97 70 Address 0x16 is out of bounds. --- 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 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