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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D301AEB64D9 for ; Wed, 14 Jun 2023 09:44:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8lCXT6NxCx1AiD5A3+jCTDYJTBA9CfR444rcmHjBbDk=; b=EPCZJMg39cBwqP IoSXU/JnsX086xXBddIyx7VdvW9r4O9fcD79M1idoMhLBHsCzov2TVPZG2RWyiXK8m+TozOCaT3GF I4GXjmgb4q4IZeLrOjDqhilcKVaSgSKn32PMRMl11pyz/D66aDTgQs1Qgf6KwIus5Up/TPSRXm8o5 p+kwGT21u5aElQxN96LITBxbVvRYSUBb+bEbWg+ANy3702/DBX2x4FEZRqJA33ZVKyeZvwE0iHCsq 6RDoVUajXLCfoq0o0yfufLLr7Iyc/yfxDDonKc32sexHjqB90kDFqWC/TPbprLEY0w9t8uBDe09NV lhuy5JebwXSff0yPH/bQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q9N37-00B6gT-1b; Wed, 14 Jun 2023 09:44:21 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q9N35-00B6fu-0h for linux-arm-kernel@lists.infradead.org; Wed, 14 Jun 2023 09:44:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=1bTrGHwTGx8AoaffIHsoOzDc5pn8iydJ8fNJSHAyI8U=; b=eE641eTx1M25Z13+CfWphO6tiM Y6iHVc6HdtgORSY6acmlPjfvosffhpsW/RvzT/slR0ct3CTllDyA3DyIVK8oYvojZzU0uu3G5bTij wa3fl9yOEUPcBwxPznlc9XLVa83p2yla7BvO1vEWRRPk1/4sy5TPRl+TBo5b6ntq1BGxv3VaHu40B m4o9EZej81EgxgnBNmB7VxSrvzZWigXKSaVF3YDrL5v4rN3ndo2B8o2bBOU7rzrnkH1aCmpy5Jcwn HENiBUrZ8I316lhSd6E/cosF1mP5FLqWXSr84o0H06PzI7dGtWKgS+1tN4bMOAgQo1jhuSVMQtUz0 gmb1UGLw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:59466) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q9N2x-0001QR-M7; Wed, 14 Jun 2023 10:44:11 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1q9N2v-0000K4-0A; Wed, 14 Jun 2023 10:44:09 +0100 Date: Wed, 14 Jun 2023 10:44:08 +0100 From: "Russell King (Oracle)" To: Dmitry Vyukov Cc: syzbot , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, pabeni@redhat.com, syzkaller-bugs@googlegroups.com, Linux ARM Subject: Re: [syzbot] [net?] Internal error in ipvlan_get_L3_hdr Message-ID: References: <00000000000057008505fe11fd2c@google.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230614_024419_251941_CEDD5D62 X-CRM114-Status: GOOD ( 14.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Jun 14, 2023 at 10:49:16AM +0200, Dmitry Vyukov wrote: > On Wed, 14 Jun 2023 at 09:35, syzbot > wrote: > > > > Hello, > > > > syzbot found the following issue on: > > > > HEAD commit: 33f2b5785a2b Merge tag 'drm-fixes-2023-06-09' of git://ano.. > > git tree: upstream > > console output: https://syzkaller.appspot.com/x/log.txt?x=1749d065280000 > > kernel config: https://syzkaller.appspot.com/x/.config?x=869b244dcd5d983c > > dashboard link: https://syzkaller.appspot.com/bug?extid=96a7f60bd78d03b6b991 > > compiler: arm-linux-gnueabi-gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 > > userspace arch: arm > > +arm maintainers > > #syz set subsystems: arm > > ip6_output() is recursed 9 times in the stack. > > Eric pointed out that: > > #define MAX_NEST_DEV 8 > #define XMIT_RECURSION_LIMIT 8 > > So net stack can legitimately do this recursion and arm stack is 2x > smaller than x86_64 stack (8K instead of 16K). > > Should arm stack be increased? Or MAX_NEST_DEV/XMIT_RECURSION_LIMIT > reduced for arm? Do we guarantee that order-2 allocations will succeed on a 4k page- sized system? It seems it would be a doubling of the chances of failure. Another solution would be to use vmalloc, but then I'd start to worry about vmalloc space. With a 16k vmalloc allocation (plus guard page and alignment) that'll be 32k per thread, and 32k threads would be 512M, which for a 3G:1G user/kernel split is too way too big, so I don't think vmalloc is an option. Is there nothing that net can do to reduce its stack usage? -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel