Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2558682ybh; Fri, 24 Jul 2020 16:29:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZjX0JB5eXdzrNtG4HP3s3lnZzrEzN92UomPG/1e33T5+wySjpi7HuFw/N+E7XQky9lhER X-Received: by 2002:a05:6402:3138:: with SMTP id dd24mr11273018edb.118.1595633386442; Fri, 24 Jul 2020 16:29:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595633386; cv=none; d=google.com; s=arc-20160816; b=M+xDuZJjYEPtqUqQHCKw1WE6oGsFPCTWWWSMHYLuAyppWL/UUc2cagrRJczxcpQeRr GEi6duYN2GWDa6tXBqq2folZhC5xwlLFlDdMffXZ2d1l29jnMavX9uni7ETVGq5EAueX T2mCCtlKsPGl2YCKEbsm4jUAAvnxl50Bi2JrBFmVHQk7w1ruYrUvHRhsnDtiuqpW8aTG 7NFxOAmyM2JODvV58ahOglp8RR7OtHALchNNhyODtWJrVjFRvS6mFkkpeMMfuxBB30k9 KWdLcJF38uoGO66AvBLLVa5Mu4Ipy3lZ907+A8R+5cFGazr397l6tLKr4w8sXEJGsx0p V9Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=ntjRw1hLGfVuW2RalCA427OmWoUbysWw2yX5kN6NP9s=; b=S9TeeErLrUFsiQCynOTAllOrZw63AkGG7yVfetJ2Yo4hGDSWPO0Q39dSrJJTVkfv4i zPh8TkVJPM9K0JS9K8Ys71S9YGjsZT/mJP1kSCul0h/JDJzDj3UDdMY3dYYYcdNglPth N0RWIVY+BrMTA4oEHZk50lVWRMhD2qocUpyxzGJXZzzNoPpT6ER5jODIIEpm3diMbMir vQPAnxWpbXOBYstobkVS8cet+WU3eKB+JLzvFBKh8pLhJqIm+84UY6XsZ+z3Y1zurF/f +uRwe3QiS50sXZyzuSyVhV/CcT0zlLaL9ZOGnqcfReDTXlIfEG+x7Xpi3XCEeUZtKAo7 Y83g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v18si1429362ejr.577.2020.07.24.16.29.23; Fri, 24 Jul 2020 16:29:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726613AbgGXX2r (ORCPT + 99 others); Fri, 24 Jul 2020 19:28:47 -0400 Received: from trinity.trinnet.net ([96.78.144.185]:1131 "EHLO trinity3.trinnet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726441AbgGXX2r (ORCPT ); Fri, 24 Jul 2020 19:28:47 -0400 X-Greylist: delayed 3797 seconds by postgrey-1.27 at vger.kernel.org; Fri, 24 Jul 2020 19:28:47 EDT Received: from trinity4.trinnet.net (trinity4.trinnet.net [192.168.0.11]) by trinity3.trinnet.net (TrinityOS/8.15.2) with ESMTP id 06OMPJee005392; Fri, 24 Jul 2020 14:25:19 -0800 Subject: Re: [Linux-kernel-mentees] [PATCH net] AX.25: Prevent out-of-bounds read in ax25_sendmsg() To: David Miller , yepeilin.cs@gmail.com References: <20200722160512.370802-1-yepeilin.cs@gmail.com> <20200722.180723.102622644879670834.davem@davemloft.net> Cc: jreuter@yaina.de, ralf@linux-mips.org, gregkh@linuxfoundation.org, syzkaller-bugs@googlegroups.com, linux-kernel-mentees@lists.linuxfoundation.org, kuba@kernel.org, linux-hams@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org From: David Ranch Message-ID: <9ed88432-ef95-f01a-9655-7c60158e3b09@trinnet.net> Date: Fri, 24 Jul 2020 15:25:18 -0700 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20200722.180723.102622644879670834.davem@davemloft.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (trinity3.trinnet.net [192.168.0.1]); Fri, 24 Jul 2020 14:25:20 -0800 (GMT+8) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I need to ask the following question to the Linux kernel community as the AX25 amateur radio community is already having to work around a few broken commits that were committed 4.1.22+: Is anyone actually _*testing*_ these proposed changes to make sure the AX.25 and related ecosystem still work afterwards? I've personally tried multiple times to recruit some help to get some of these previous commits rolled back from some recommended kernel people including even some the original authors like Alan Cox, etc without any success. I fear that if more commits come into the kernel without any testing, the whole AX.25 stack will become toxic and unusable. I am not a kernel class developer but I am *personally* willing to help out on the testing effort and even help setup regression topologies (VMs, containers, whatever) if there is some place that they can be ideally run in a continuous delivery. If there is anyone also willing to help fix some of these previous commits and get the AX.25 stack kernel back on track, I do have a bunch of details of the commit details, details on why those committers THOUGHT they were a good idea, etc. --David KI6ZHD On 07/22/2020 06:07 PM, David Miller wrote: > From: Peilin Ye > Date: Wed, 22 Jul 2020 12:05:12 -0400 > >> Checks on `addr_len` and `usax->sax25_ndigis` are insufficient. >> ax25_sendmsg() can go out of bounds when `usax->sax25_ndigis` equals to 7 >> or 8. Fix it. >> >> It is safe to remove `usax->sax25_ndigis > AX25_MAX_DIGIS`, since >> `addr_len` is guaranteed to be less than or equal to >> `sizeof(struct full_sockaddr_ax25)` >> >> Signed-off-by: Peilin Ye > Applied.