Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2198243iof; Tue, 7 Jun 2022 22:58:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1QxZQGIznNdcW3oz+NroTasDm1LbhpBOrJlbIF5JAowP7SkAsa4rcDG3zUvfdGliJKY9e X-Received: by 2002:a05:6a00:1902:b0:4fa:fa9e:42e6 with SMTP id y2-20020a056a00190200b004fafa9e42e6mr61134626pfi.1.1654667902390; Tue, 07 Jun 2022 22:58:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654667902; cv=none; d=google.com; s=arc-20160816; b=vgzLW4TBaZxTEdFYOM/izeAeMdl/f3zMdJza3YhdbJ/bc2JMrUQPvQMOasC8qi0YVC Vf1cZYS2VAtRDT/pxC/r/3m5ycDh/05LPaI7HZmvBKxOYhIjURSXkovSPkaZJdZ1dI1a lLXTXDltgnYgHYfkFpEC8KREbpHTPNIbDXtEpFVS+Hh/B5ujWkncKLfR2uKnDQQAZAIp GU0R2qTMV55E7ZVwsExBGoQqCXV8ZwBUWmLLHpfZQfSMk51iUP+4OwCvWPPm9y2spZs6 hjWzN6uxUQQM9CwZ0FM389CflUeFSwDvgQ1jnEErl01HLQYoiSFMqrq2RYzdJzVjsdm8 XECA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=SW2BG/99kkppQAEtk73zMpSnOK8Uj9GZFb47bXPxHmY=; b=She0v72IXqZyiugHUamUe9DMC5PFDf+cCeRHq+4kLDe8bq7GjU0PVSMOOeRNSsi99E 6TrWk4QKtIpZwbXwWHID8rO86Mkbv/C6Mul1VjCnd72+G6hFFPKEPitkzffAfs51QB2m Y8tgBbS42MiQ25vYvyh/5ZhtYk0FfaQUikh7DljS1FITu/VFETGivwW54a+QuCneJs2o jCpwsri/V0e6ROmaINfMNo1wTJAPVBfJxPGd7GK2p1C54Ig/9sxX/Gurxvhs5ef6p+zH zGY7NMpYBNYmZulY+kQ30C+ILxexoRrF/ZJEgsofbrewdNiwfW89VVAEhKInDVcHF8yn 3HmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2ovCPK5c; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id k7-20020a170902c40700b0016206ea00cbsi31752268plk.61.2022.06.07.22.58.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:58:22 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2ovCPK5c; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id ADEE349643F; Tue, 7 Jun 2022 22:23:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1444473AbiFHBBu (ORCPT + 99 others); Tue, 7 Jun 2022 21:01:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381525AbiFGWb4 (ORCPT ); Tue, 7 Jun 2022 18:31:56 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42BDD27C24B; Tue, 7 Jun 2022 12:25:32 -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 ams.source.kernel.org (Postfix) with ESMTPS id EDF63B823CA; Tue, 7 Jun 2022 19:25:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60B49C385A5; Tue, 7 Jun 2022 19:25:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654629929; bh=4pNNSTUd2ZJDIkV5UTFgoNifM2igfy8EKigtrAPUaF0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2ovCPK5cGXPj8fXzDf4KWE40Swg46F35CA+8A3FYp9JiXD3B66pgV1fTNcuNuxO69 p1Xrerk5Afmn18jodO8jn14wU+9LaJWVEE4RyNFGvs/LDao+Fc1n8CEmCBOfPPMggH bcFQ+IwkTA4YiPEi7y5TYVZDAj488ttLK+kWmNPk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christopher Ferris , Carlos Llamas , Todd Kjos , Arnd Bergmann Subject: [PATCH 5.18 868/879] binder: fix sender_euid type in uapi header Date: Tue, 7 Jun 2022 19:06:26 +0200 Message-Id: <20220607165028.048490141@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 From: Carlos Llamas commit 8cc5b032240ae5220b62c689c20459d3e1825b2d upstream. The {pid,uid}_t fields of struct binder_transaction were recently replaced to use kernel types in commit 169adc2b6b3c ("android/binder.h: add linux/android/binder(fs).h to UAPI compile-test coverage"). However, using __kernel_uid_t here breaks backwards compatibility in architectures using 16-bits for this type, since glibc and some others still expect a 32-bit uid_t. Instead, let's use __kernel_uid32_t which avoids this compatibility problem. Fixes: 169adc2b6b3c ("android/binder.h: add linux/android/binder(fs).h to UAPI compile-test coverage") Reported-by: Christopher Ferris Signed-off-by: Carlos Llamas Acked-by: Todd Kjos Signed-off-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman --- include/uapi/linux/android/binder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/include/uapi/linux/android/binder.h +++ b/include/uapi/linux/android/binder.h @@ -289,7 +289,7 @@ struct binder_transaction_data { /* General information about the transaction. */ __u32 flags; __kernel_pid_t sender_pid; - __kernel_uid_t sender_euid; + __kernel_uid32_t sender_euid; binder_size_t data_size; /* number of bytes of data */ binder_size_t offsets_size; /* number of bytes of offsets */