Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3736802rdh; Fri, 29 Sep 2023 00:23:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGvbC43xVBIOgwQbr15PIOt4Es1XHI1akwNUZodQDvc7iv5juJL75yXxBAiZnj9rOXQMx0R X-Received: by 2002:a05:6870:9a1d:b0:1d6:61c8:1b2e with SMTP id fo29-20020a0568709a1d00b001d661c81b2emr3933715oab.44.1695972181421; Fri, 29 Sep 2023 00:23:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695972181; cv=none; d=google.com; s=arc-20160816; b=CoPp3Yi+9izC6PkrTNStQIOjgLzBFv92+Aox06rQDJ0USmsEIIWleRBtRKdkL2zdkG hHMFDrer0Pkjsu030USsBCPTAjCYCHRvHQXC/DKbuMncRWAWScz+iAiOUFGwxhUuYRee healEOQV8/BqJVHzCCpGxLKqO4Jv8LZyRCkQIBPkwmigZ6QVmf8BRpay7Ql1Z68RyJfs e+GwRD5LuI9xWeUxUzGozt4GTTvOAvSTL/j8ug6aRt1by3hFFHNXhNFjJRK21snTcBCU l4Qc/utM/7TKNjjSeOAVR+mAhL0jzZcg9HchZgmCr4ye0JhVgDH3SgctKcvaT0HpQfXp 1RIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=InMLDRoX0L8o70RY/Ooju5vGpEq7vXa1/t5HyAlARRo=; fh=aCdOimC/PRWdFquqGOr5GaYEVGqhosc6QGtUkKHrSCA=; b=VHE7dH4j1TSPRXUPKnufDqMxcJxrXAb6Ixk532JOUJo+G1Ri4bpaPPYx8MfYok2y82 nGr65tKWFna+cunoywT08sB7NikbCWnSmWSPca8AIm8YFV/Md1OUXEQeJRjtmN8kiiMh ht3EvKJ7TbHoDxCxCq8n1q1FTyyhIpo3xZpUa9vWRi25m3a0xoVLCLUQaWAZQjo0Pepj fdUM1bD5L0gGo7J6FXP/ouotLzwkxhmEnc06SYDPkDipnJeC4cTvyMa0EHhuF4TN7ui7 lRMLVNPMpEOEUQV1qSS7vEGlohbJJCl7sx7KIiFAG7S6PokVUN7has6/BlK57CBL/xnR a3fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Dsyv8Dcg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id f15-20020a63f74f000000b00577f50580bbsi20796922pgk.299.2023.09.29.00.23.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 00:23:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Dsyv8Dcg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 097F882CBEE2; Thu, 28 Sep 2023 23:05:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232694AbjI2GFD (ORCPT + 99 others); Fri, 29 Sep 2023 02:05:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229577AbjI2GFC (ORCPT ); Fri, 29 Sep 2023 02:05:02 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D0CF92; Thu, 28 Sep 2023 23:05:01 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4EAA8C433C7; Fri, 29 Sep 2023 06:05:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1695967500; bh=Nhavc+nkl/WrTYLi4RrwAIVN6PbgwJffcR2eWRUl1xQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Dsyv8DcgjMd9U5QAhkwMHPBCXoPGytz0tKjFa98+Li9uDz/PaeCWGons8jBVOhC27 +g73GLX3gX65/XN3GcoOco7fjfs4xw1j1TPwXbIptOhPAi/jAf0JlTg/+g0r2U/wXl rLpgsbC5WSGmDhfikJ6Vz4OMzPh3Pu5art0sgYas= Date: Fri, 29 Sep 2023 08:04:57 +0200 From: Greg KH To: Edward AD Cc: alex@ghiti.fr, alexghiti@rivosinc.com, aou@eecs.berkeley.edu, conor@kernel.org, guoren@kernel.org, jirislaby@kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-serial@vger.kernel.org, liushixin2@huawei.com, palmer@dabbelt.com, paul.walmsley@sifive.com, syzbot+8d2757d62d403b2d9275@syzkaller.appspotmail.com, syzkaller-bugs@googlegroups.com Subject: Re: [PATCH] riscv: fix out of bounds in walk_stackframe Message-ID: <2023092939-lagoon-punctual-e312@gregkh> References: <20230928231239.2144579-2-twuufnxlz@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230928231239.2144579-2-twuufnxlz@gmail.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 28 Sep 2023 23:05:12 -0700 (PDT) On Fri, Sep 29, 2023 at 07:12:40AM +0800, Edward AD wrote: > Add vmalloc and kernel addresses check to prevent invalid access. > > Closes: https://lore.kernel.org/all/20230926105949.1025995-2-twuufnxlz@gmail.com/ > Fixes: 5d8544e2d007 ("RISC-V: Generic library routines and assembly") > Reported-and-test-by: syzbot+8d2757d62d403b2d9275@syzkaller.appspotmail.com > Link: https://lore.kernel.org/all/0000000000000170df0605ccf91a@google.com/T/ > Signed-off-by: Edward AD > --- > arch/riscv/kernel/stacktrace.c | 3 +++ Where are you getting your odd cc: list from? This has nothing to do with serial drivers... greg k-h