Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp1586589rwb; Sat, 5 Aug 2023 20:25:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHISRZfYxq8Glvz/3cw4DCeUNwXMxJ0YM2Q16xQqvt9Tmz5RS9slpRqLMXM7ycoOxAheeq1 X-Received: by 2002:a05:6a20:7d82:b0:13d:7aa3:aa72 with SMTP id v2-20020a056a207d8200b0013d7aa3aa72mr7649828pzj.5.1691292358513; Sat, 05 Aug 2023 20:25:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691292358; cv=none; d=google.com; s=arc-20160816; b=Et0ASAj5tHFXHERgKZQs/727qz5KAXggFqmAZuLSVOSHO9z7Le78Cg7ZsFoUEOwngQ cU9lQTFIjdJffDU2gQKyM+PaYSBTAOp3lguniYMxbhLv1Lalq2YvAX8binZamlbepJ+w /oxJozni4CmNXUAe5VJ1f7EGCRRNgEV5YceasjL402/zVrKEM2ec1WP+ErPzTNoMYiYV VNWitvFLkk0/V20TSpMj8m+uA4IRdABvIxIUnD45PbFLD1Zap03dIfwG3r6mK5ZydBqB sseKU/Ko/vS3N9KmRSN3qpqSdOUONkEVwW5tPj7DXufoR5BuEcR9C4N8VZGRVzStMgYt RM+Q== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=aC8AiSU++nh/kJs9H0wQmJwhoChfAXZ1dz8DvzMo98E=; fh=gw6XfzHWI/kIjpu/pysKP8wzr44c8PGMkcxLf0JOBfg=; b=n96X9qGxKANmWDlM1ez3hipSGbpj0OmUqKDNij2537+V3NV2Ex0Q8d1GNXmz+1IbjA yH28AjeB6XE8aSdeyV6QenMuungGtQUogz3C6LEZqOkZ+wWXgw9m5ZM714xeA24jmneh g8A+KdMloUBrPuGZFAwO1zW0Fy8IEaL/m1zgdxHaTLQ1uJE6bN0BgbvfP7lZ2tTk2PGH /wu/QqtZT6/POkugSuD6uFjdYhj1k5BgFozoD4Rd1MKW7dVd106MJfl5ih613qd7uf70 Yoc1uT0wUYsshEvP17oFvLYFkl46Jz0M65vZoDTfF2jV8C3/RKPjuRbwpm643/+9mAs/ m95w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Yn7s93IO; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d18-20020a056a0024d200b00675807330bfsi3961860pfv.194.2023.08.05.20.25.46; Sat, 05 Aug 2023 20:25:58 -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=@kernel.org header.s=k20201202 header.b=Yn7s93IO; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229628AbjHEX6O (ORCPT + 99 others); Sat, 5 Aug 2023 19:58:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbjHEX6N (ORCPT ); Sat, 5 Aug 2023 19:58:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9FAA128 for ; Sat, 5 Aug 2023 16:58:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8339C60DE1 for ; Sat, 5 Aug 2023 23:58:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3CF8FC433C7; Sat, 5 Aug 2023 23:58:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691279887; bh=fs4x6PeHwicN8FTsqkY06qC8SCDDAnU0rMG7AHf+rjw=; h=From:To:Cc:Subject:Date:From; b=Yn7s93IO+w2baPotkwDuOiqsj9MbRC11d10rg62BYBreUuDHhNWdQhcX3R6LscCbs c92PEplaUEGIv3VjAInEY7ihjcmShP/e09QkVMvLGsHOJZ+6RCxSQ+kh/UWMU7gxsj UZWXIs+t+/PwdYmoqtb7BmCNmKKN4uUmZO3fGXeyYspOGG562UsS4oYvon1Af+8/Pt 1eFkTkB437NVcAurn2lJfb2Ett+B/u3C3pTo4cw2WZrxPAkXXR9j5LcnTByw4yr53C yrhQPrbG8/5bM8VUu1M1klMwrw5TeUQoq5mNhqQiiZUL/PRTvzO9/K41MWlFf+cVfp LLwm4SpcAHEsA== From: Miguel Ojeda To: Linus Torvalds Cc: Miguel Ojeda , Wedson Almeida Filho , Alex Gaynor , Boqun Feng , Gary Guo , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [GIT PULL] Rust fixes for 6.5-rc5 Date: Sun, 6 Aug 2023 01:57:50 +0200 Message-ID: <20230805235750.54075-1-ojeda@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Hi Linus, Please pull these fixes for Rust. The oldest is a bit involved, and the other two are straightforward. The complex one has been in linux-next for 4 days and the others for 2 days, but I reworded yesterday the complex one to add a couple tags (no changes otherwise -- you can find the previous version of e.g. the oldest in linux-next at cf222ce8477c). No conflicts expected. No changes to the C side. Cheers, Miguel The following changes since commit 6eaae198076080886b9e7d57f4ae06fa782f90ef: Linux 6.5-rc3 (2023-07-23 15:24:10 -0700) are available in the Git repository at: https://github.com/Rust-for-Linux/linux.git tags/rust-fixes-6.5-rc5 for you to fetch changes up to b05544884300e98512964103b33f8f87650ce887: rust: fix bindgen build error with UBSAN_BOUNDS_STRICT (2023-08-04 17:10:50 +0200) ---------------------------------------------------------------- Rust fixes for 6.5-rc5 - Allocator: prevent mis-aligned allocation. - Types: delete 'ForeignOwnable::borrow_mut'. A sound replacement is planned for the merge window. - Build: fix bindgen error with UBSAN_BOUNDS_STRICT. ---------------------------------------------------------------- Alice Ryhl (1): rust: delete `ForeignOwnable::borrow_mut` Andrea Righi (1): rust: fix bindgen build error with UBSAN_BOUNDS_STRICT Boqun Feng (1): rust: allocator: Prevent mis-aligned allocation rust/Makefile | 2 +- rust/bindings/bindings_helper.h | 1 + rust/kernel/allocator.rs | 74 ++++++++++++++++++++++++++++++++--------- rust/kernel/sync/arc.rs | 3 +- rust/kernel/types.rs | 22 ++---------- 5 files changed, 64 insertions(+), 38 deletions(-)