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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15D0AE743ED for ; Fri, 29 Sep 2023 06:05:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232683AbjI2GFD (ORCPT ); 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> Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org 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