Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp506012rwl; Tue, 11 Apr 2023 23:18:34 -0700 (PDT) X-Google-Smtp-Source: AKy350YtC+NWjY7pxs1Lux67R9/1OYzEDdgZunvia1F7OegEwNZ4X1mdgFMEPpRQHcWbNRiHP4Xd X-Received: by 2002:a17:906:a007:b0:94d:7b6b:fda6 with SMTP id p7-20020a170906a00700b0094d7b6bfda6mr1034067ejy.22.1681280314349; Tue, 11 Apr 2023 23:18:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681280314; cv=none; d=google.com; s=arc-20160816; b=Rqol6vlE28nCU3KOdlreEm84Xl4eZq1ugnX3v2aDqNuvSvQ96Nh+tq35YIWKRqbSS8 CJemOE7kzUnBIqsFgqgQuAdNakjuR1p+ly0bH+ClC/fEwlP5fji3hTpiywr3tf1K4lew cRLHTyOQwXKzkhXyNVHu/iGZUS1tRyaoNWB/qArDPonsP9F4ksGr6coYGYig3Z+Mf9bH pJpTlEKwIJB3qbGyoxw2nny1nlLkE87ER5VrYxsh28A6ZPG0+YLF4BJMA3igHY4kISQ9 5RZ3a+L12+NgVnEFPdm4jFlrlj4vsvBotQT6EHz8nYruxQTW81Cs3KsbFsHMduTLu3sI DC5g== 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=3wAO1YweLWb2B6X0vA7daNsV0dT26VJLcSbm1bngoFI=; b=WSCU/0D5L7w2cnIdg5KtbOUsr1uZuxfmbUG2Zzve90SfetRZwQpwJCcDa2gn23ZfX4 Xd0dy62cybMnJanUxOJG0jPH827SD87LnRwGuPnCX1CkGbpI+2MqLY0Z88QMoncHGqgh YRZfLrmGZYdNcmUaCxpVHDUf9Q6/UjfvYcqfHDe/LyiinpIe64ATsp1yV6eWDlWC8TS9 XnhveaIRBUnwVcXqtn8I5lVnwIZh6ORFroOBOGObKeDemI9xIifJtxwJdvODgM7yfys9 SrESSOWPlRdn01w/Tmj/79Py0LodQcARXSE6ecm21xoJAkFmNpgnVi69XP8y5hy59jw/ AfUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Z0C6JC86; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n26-20020a170906b31a00b0094e0d7e6806si4053343ejz.866.2023.04.11.23.18.10; Tue, 11 Apr 2023 23:18:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Z0C6JC86; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229553AbjDLGPA (ORCPT + 99 others); Wed, 12 Apr 2023 02:15:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229517AbjDLGO6 (ORCPT ); Wed, 12 Apr 2023 02:14:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B87B940F2; Tue, 11 Apr 2023 23:14:50 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5366362E5E; Wed, 12 Apr 2023 06:14:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 41DEBC433EF; Wed, 12 Apr 2023 06:14:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1681280089; bh=Nxag8wK1torwvwcelmJg4s5Xft+8uu3sHSeDBkA6DIU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Z0C6JC868/IbrDNImk0zmIaQYLikuOeSr4okyyqgL6WyPuWoITU2J28J+4gTwO+SY jFrJtF+QfNU/XlnmM4Nhdsz4nmpnkBZ/+pLXtdK70Z+gdKrDmYTCVTx0pkbmgg884h k5jrVjHTZLUx8nxkSGxiaQnavKN3Whh5Zk7hTVZ8= Date: Wed, 12 Apr 2023 08:14:47 +0200 From: Greg Kroah-Hartman To: John Moon Cc: Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, Randy Dunlap , Arnd Bergmann , Bjorn Andersson , Todd Kjos , Matthias Maennich , Giuliano Procida , kernel-team@android.com, libabigail@sourceware.org, Jordan Crouse , Trilok Soni , Satya Durga Srinivasu Prabhala , Elliot Berman , Guru Das Srinagesh Subject: Re: [PATCH v5 1/2] check-uapi: Introduce check-uapi.sh Message-ID: <2023041209-armed-overlaid-3d3d@gregkh> References: <20230407203456.27141-1-quic_johmoo@quicinc.com> <20230407203456.27141-2-quic_johmoo@quicinc.com> <2023041015-lunar-dandelion-1b4e@gregkh> <2023041136-donator-faceplate-5f91@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 11, 2023 at 11:36:48AM -0700, John Moon wrote: > > > > > > Others do not seem to be intentional: > > > > > > Addition/use of flex arrays: > > > - include/uapi/linux/rseq.h (f7b01bb0b57f) > > > - include/uapi/scsi/scsi_bsg_mpi3mr.h (c6f2e6b6eaaf) > > > > That is not a breakage, that's a tool problem. > > > > > Type change: > > > - include/uapi/scsi/scsi_bsg_ufs.h (3f5145a615238) > > > > Again, not a real breakage, size is still the same. > > > > Would you find the tool more useful if it simply filtered out all instances > where the size of the type did not change? This would filter out the > following which the tool currently flags: > > - enum expansions > - reserved field expansions > - expansions of a struct with a flex array at the end > - type changes > - re-ordering of existing members > - ...others? Obviously not, as some of those are real breakages, and some are not at all. Please understand what is an abi breakage. Adding new enums is not. Using a reserved field is not. Reording existing members IS. > These changes aren't _always_ safe, but if you assume the kernel developer > is doing something reasonable, then maybe it's okay. Maybe we could hide > these checks behind something like a "--pedantic" flag? Again, no, that list above has totally different things in it, some are completly safe, others totally break the abi. Do NOT lump them all together as that is wrong. thanks, greg k-h