Commit Graph

3031 Commits

Author SHA1 Message Date
Will Hickey 31e37b8bb1
Update version to v1.17.28 (#286) 2024-03-18 13:13:12 +08:00
mergify[bot] 39336359de
v1.17: vote: deprecate unused legacy vote tx plumbing (backport of #274) (#275)
* vote: deprecate unused legacy vote tx plumbing (#274)

(cherry picked from commit b27c80a920)

# Conflicts:
#	sdk/src/feature_set.rs

* fix conflicts

---------

Co-authored-by: Ashwin Sekar <ashwin@anza.xyz>
Co-authored-by: Ashwin Sekar <ashwin@solana.com>
2024-03-17 22:16:11 -05:00
steviez 74e40fb45d
V1.17.27 version bump (#231) 2024-03-13 17:15:28 -05:00
Yihau Chen b72e64563f
Bump version to v1.17.26 (#168) 2024-03-11 23:01:07 +08:00
yihau 8155a8cc4d v1.17: [anza migration] rename crates 2024-03-03 13:13:34 +08:00
Will Hickey d0ed878d57
Update version to v1.17.25 (#35406) 2024-03-02 22:52:04 -06:00
Will Hickey ee1365a96b
Update version to v1.17.24 (#35313) 2024-02-24 06:16:06 +00:00
steviez 04941eed46
v1.17.22 ==> v1.17.23 version bump (#35188) 2024-02-13 08:34:52 -07:00
Will Hickey 113eca2fac
Update version to v1.17.22 (#35184) 2024-02-12 16:05:01 -06:00
mergify[bot] 5bf32b4d5b
v1.17: Upgrade sbf tests to use bpf loader v3 (backport of #34691) (#35162)
* Upgrade sbf tests to use bpf loader v3 (#34691)

* update sbf test to use bpf_loader v2

* update test_program_sbf_invoke_sanity test

* update test bpf program owner

* update test_program_sbf_invoke_upgradeable_via_cpi

* update test_program_sbf_disguised_as_sbf_loader

* update test_program_reads_from_program_account

* update test_program_sbf_program_id_spoofing

* update test_program_sbf_caller_has_access_to_cpi_program

* update 3 more tests

* fix program buffer size in minimul for rent exempt calculation

* more test updates

* more update

* more test updates

* comments

* undo c format

* typo

* add sol_alloc_free not deployable and deployable tests

* comments

* review feedback - move buffer_keypair and program_keypair inside callee
fn.

* more refactor

* delete sof_alloc_free_syscall enabled tests

* revert lamport change

---------

Co-authored-by: HaoranYi <haoran.yi@solana.com>
(cherry picked from commit 8869d0c8a0)

# Conflicts:
#	programs/sbf/tests/programs.rs

* fix merge conflicts

* update tests to avoid using the new test api from 1.18

* manually backport #34722 to fix a test

* Ignore failing benchmark tests and fix compilation

---------

Co-authored-by: HaoranYi <haoran.yi@gmail.com>
Co-authored-by: HaoranYi <haoran.yi@solana.com>
Co-authored-by: haoran <haoran@mbook>
Co-authored-by: Stephen Akridge <sakridge@gmail.com>
2024-02-10 22:27:13 +01:00
Yihau Chen 4ae690dc5a
Bump version to v1.17.21 (#35106) 2024-02-06 22:00:38 +08:00
Alexander Meißner 09e0300b06
Feature - `disable_bpf_loader_instructions` (#35104)
* Remove feature gate for disable_bpf_loader_instructions.

* Disables related tests.
2024-02-06 12:35:21 +01:00
Yihau Chen 4f00402c90
Version bump v1.17.20 (#35105)
* Bump version to v1.17.20

* revert hashbrown bump
2024-02-06 19:15:54 +08:00
Alexander Meißner fad585eda4
Backport - feature `disable_bpf_loader_instructions` to v1.17 (#35093)
* Adds the feature disable_bpf_loader_instructions.

* Deactivates the feature in the tests and benches.
2024-02-06 10:05:07 +01:00
Will Hickey 11be41d60b
Update version to v1.17.19 (#34986) 2024-01-27 08:00:15 +00:00
Yihau Chen cdda274e92
v1.17: bump shlex to 1.3.0 (#34880) 2024-01-23 15:26:52 -07:00
Will Hickey 6c8a23a0f3
Update version to v1.17.18 (#34866) 2024-01-21 22:57:59 +08:00
mergify[bot] 7e18276b39
v1.17: [zk-token-sdk] Restrict Edwards and Ristretto multiscalar multiplication vector length to at most 512 (backport of #34763) (#34849)
* [zk-token-sdk] Restrict Edwards and Ristretto multiscalar multiplication vector length to at most 512 (#34763)

* restrict curve25519 multiscalar multiplication vector length to 512

* add syscall tests for msm vector length

* add new feature gate `curve25519_restrict_msm_length`

* update tests for feature new gate

* Update programs/bpf_loader/src/syscalls/mod.rs

Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>

* remove length guard on the multisicalar mult lib function

---------

Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
(cherry picked from commit 73218595c6)

# Conflicts:
#	sdk/src/feature_set.rs

* resolve conflict

---------

Co-authored-by: samkim-crypto <skim13@cs.stanford.edu>
2024-01-20 09:53:28 +09:00
Yihau Chen 407dfba6db
v1.17: pin ahash to 0.8.5 (#34802) 2024-01-18 17:19:23 +00:00
Tyera fbb11a8fe3
v1.17: Bump h2 to v0.3.24 (#34823)
Bump h2 to v0.3.24
2024-01-18 03:13:31 +00:00
Yihau Chen cb6aef7c04
Bump version to v1.17.17 (#34804) 2024-01-17 13:24:26 +08:00
mergify[bot] 0aea75aaf5
v1.17: [zk-token-proof] include `VerifyBatchRangeProofU256` in the `enable_zk_transfer_with_fee` feature gate (backport of #34747) (#34765)
[zk-token-proof] include `VerifyBatchRangeProofU256` in the `enable_zk_transfer_with_fee` feature gate (#34747)

include `VerifyBatchRangeProofU256` in the `enable_zk_transfer_with_fee` feature

(cherry picked from commit bc136423b4)

Co-authored-by: samkim-crypto <skim13@cs.stanford.edu>
2024-01-12 23:28:05 +09:00
Will Hickey fc778555d9
Update version to v1.17.16 (#34680) 2024-01-07 19:23:10 +08:00
Yihau Chen 9c09b16f86
v1.17: pin ahash to 0.8.4 (#34636)
pin ahash to 0.8.4
2024-01-03 14:31:02 +08:00
Will Hickey 731d42f2a2
Update version to v1.17.15 (#34627) 2024-01-03 12:40:29 +08:00
mergify[bot] bbdce0f273
v1.17: spl: Bump token-2022 to v1 (backport of #34412) (#34572)
* spl: Bump token-2022 to v1 (#34412)

* Update toml and lockfiles

* account-decoder: Add group and group member extensions

* transaction-status: Add token group + pointer extensions

* program-test: Update token-2022 binary

(cherry picked from commit 8a8466cd86)

# Conflicts:
#	Cargo.toml

* Fix merge conflicts

---------

Co-authored-by: Jon Cinque <me@jonc.dev>
2023-12-21 22:16:43 -05:00
Will Hickey 6a0ac908ed
Update version to v1.17.14 (#34563) 2023-12-21 10:39:46 -06:00
Will Hickey aaa266eb4d
Update version to v1.17.13 (#34496) 2023-12-17 10:19:34 +00:00
Alexander Meißner 5787b48b92
v1.17 - Cooperative Program Loading (#34487)
* Disables verification-less reloading.

* Refactors LoadedPrograms::extract() to use a mutable parameter instead of returning the list of missing entries.

* cargo fmt

* Refactors LoadedPrograms::extract() to use a mutable parameter instead of returning a LoadedProgramsForTxBatch.

* Adds explicit SecondLevel structure to LoadedPrograms.

* Adds cooperative_loading_task.

* Implements cooperative loading in the bank.

* Fixes fork graph in tests.

* Adds LoadingTaskWaiter.
2023-12-16 14:27:17 +01:00
Will Hickey 492eb247af
Update version to v1.17.12 (#34492) 2023-12-16 04:25:12 +00:00
steviez 28e8af4aa3
V1.17.11 version bump (#34451)
* Update version to v1.17.11

* Undo hashbrown version changes
2023-12-13 19:23:07 -06:00
Will Hickey 9f51f5d0fc
Update version to v1.17.10 (#34394) 2023-12-10 13:57:00 -07:00
Will Hickey 78e7796a02
Update version to v1.17.9 (#34378) 2023-12-09 08:58:56 -06:00
mergify[bot] 7036ea0345
v1.17: chore: Update light-poseidon to 0.2.0 (backport of #33923) (#34247)
chore: Update light-poseidon to 0.2.0 (#33923)

That new release contains an important change which prevents a
potential DDoS.

* Lightprotocol/light-poseidon#32

Invoking `from_bytes_be` function light-poseidon 0.1.1 inverts all
the inputs before performing a check whether their length exceeds
the modulus of the prime field. Therefore, it was prone to an
attack, where a mailicious user could submit long byte slices just
to DDoS the validator, being stuck on inverting large byte sequences.

The update and mentioned change fixes the same issue as #33363 aims
to address.

The new release contains also few other less important changes like:

* Lightprotocol/light-poseidon#37
* Lightprotocol/light-poseidon#38
* Lightprotocol/light-poseidon#39

(cherry picked from commit 67f8daf6e9)

Co-authored-by: vadorovsky <vadorovsky@protonmail.com>
2023-12-09 08:11:34 +09:00
mergify[bot] d1858aaed1
v1.17: Fix `solana-address-lookup-table-program` compilation (backport of #34353) (#34357)
Fix `solana-address-lookup-table-program` compilation (#34353)

* Add  checks to decide which SDK crate to use

* Make  module only available in non-program environments

* Remove `solana-sdk` export and only export from `solana-program`

(cherry picked from commit 46921b3135)

Co-authored-by: acheron <98934430+acheroncrypto@users.noreply.github.com>
2023-12-07 19:12:14 +01:00
Will Hickey fdaa4caaaf
Update version to v1.17.8 (#34293) 2023-12-01 03:02:19 +00:00
mergify[bot] d353453f03
v1.17: direct_mapping: disable stack frame gaps (backport of #34254) (#34260)
direct_mapping: disable stack frame gaps (#34254)

Gaps don't work with direct mapping which assumes a 1:1 mapping between virtual
and host addresses.

(cherry picked from commit a0df9def91)

Co-authored-by: Alessandro Decina <alessandro.d@gmail.com>
2023-11-29 19:50:17 +11:00
mergify[bot] 4d0ccab075
v1.17: cpi: direct_mapping: always zero spare capacity if account alloc changes (backport of #34141) (#34177)
cpi: direct_mapping: always zero spare capacity if account alloc changes (#34141)

If the vector holding an account is reallocated during execution of a callee,
we must zero the spare capacity regardless of whether the account size changed,
because the underlying vector might contain uninitialized memory in the spare
capacity.

Co-authored-by: Alessandro Decina <alessandro.d@gmail.com>
2023-11-29 10:31:49 +11:00
mergify[bot] 4d79fd7c6f
v1.17: direct_mapping: fix iter_memory_pair_chunks in reverse mode (backport of #34204) (#34236)
direct_mapping: fix iter_memory_pair_chunks in reverse mode (#34204)

iter_memory_pair_chunks was iterating regions in reverse, but not memory
_within_ regions in reverse.

This commit fixes the issue and simplifies the implementation by removing
nested loops which made control flow hard to reason about.

(cherry picked from commit 09088822e7)

Co-authored-by: Alessandro Decina <alessandro.d@gmail.com>
2023-11-28 09:53:01 +11:00
Will Hickey 89906d8d3b
Update version to v1.17.7 (#34157) 2023-11-20 10:43:19 +08:00
mergify[bot] 0a195ad3d6
v1.17: [zk-token-proof] Feature gate transfer with fee related proofs (backport of #34103) (#34129)
* [zk-token-proof] Feature gate transfer with fee related proofs (#34103)

feature gate zk-token-proof transfer with fee

(cherry picked from commit a8863bd9fe)

# Conflicts:
#	sdk/src/feature_set.rs

* resolve conflict

---------

Co-authored-by: samkim-crypto <skim13@cs.stanford.edu>
2023-11-18 05:56:09 +09:00
mergify[bot] b76784774a
v1.17: cpi: fix capacity check in update_caller_account (backport of #34064) (#34081)
cpi: fix capacity check in update_caller_account (#34064)

reserve(additional) reserves additional bytes on top of the current _length_
not capacity. Before this fix we could potentially reserve less capacity than
required.

(cherry picked from commit d009d7304a)

Co-authored-by: Alessandro Decina <alessandro.d@gmail.com>
2023-11-16 06:29:46 +11:00
Yihau Chen 6418bf3097
Bump version to v1.17.6 (#34025) 2023-11-12 09:47:59 -06:00
Will Hickey 1d2609e9f0
Update version to v1.17.5 (#33931) 2023-10-31 14:13:22 -05:00
mergify[bot] b948b2be51
v1.17: [zk-token-proof] Round compute units to nice numbers (backport of #33910) (#33915)
[zk-token-proof] Round compute units to nice numbers (#33910)

round zk-token-proof compute units to nice numbers

(cherry picked from commit b0bf24b6fc)

Co-authored-by: samkim-crypto <skim13@cs.stanford.edu>
2023-10-27 18:26:36 -07:00
mergify[bot] 9021d224be
v1.17: Bump solana_rbpf to v0.8.0 (backport of #33679) (#33793)
* updated inner_call for hashing fn to follow generic approach (#33128)

* updated inner_call for hashing fn to follow generic approach

* different hash compute budget values for all digests

* fixed conflicts

* reverted changes to compute_budget.rs and added 3method to trait to get compute budget values

* updated type for result fn for HasherImpl

* using Hash directly in result fn, got rid of HASH_BYTES and removed comment form compute_budget

* updated import statement

* cargo fmt -all

* removed unused import and reference related warning

* oops forgot semicolon

* removed trailing white space

(cherry picked from commit a60d1857bf)

* Bump solana_rbpf to v0.8.0 (#33679)

* Bumps solana_rbpf to v0.8.0

* Adjustments:
Replaces declare_syscall!() with declare_builtin_function!().
Removes Config::encrypt_runtime_environment.
Simplifies error propagation.

(cherry picked from commit a5c7c999e2)

---------

Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net>
2023-10-21 14:14:23 +02:00
Will Hickey a5188a4966
Update version to v1.17.4 (#33799) 2023-10-20 22:43:34 +00:00
mergify[bot] 8af823401a
v1.17: Enable frozen_abi on banking trace file (backport of #33501) (#33578)
* Enable frozen_abi on banking trace file (#33501)

* Enable frozen_abi on banking trace file

* Fix ci with really correct bugfix...

* Remove tracker_callers

* Fix typo...

* Fix AbiExample for Arc/Rc's Weaks

* Added comment for AbiExample impl of SystemTime

* Simplify and document EvenAsOpaque with new usage

* Minor clean-ups

* Simplify SystemTime::example() with UNIX_EPOCH...

* Add comment for AbiExample subtleties

(cherry picked from commit 95810d876a)

# Conflicts:
#	Cargo.lock

* fix conflict

---------

Co-authored-by: Ryo Onodera <ryoqun@gmail.com>
2023-10-17 13:48:04 +09:00
Will Hickey 944375b953
Update version to v1.17.3 (#33721) 2023-10-16 21:08:19 +00:00
mergify[bot] d7dc802c11
v1.17: Fix - CPI interface `bool` masking (backport of #33623) (#33625)
Fix - CPI interface `bool` masking (#33623)

Adds masking of booleans in CPI interface to disable_cpi_setting_executable_and_rent_epoch.

(cherry picked from commit 1262ff7589)

Co-authored-by: Alexander Meißner <AlexanderMeissner@gmx.net>
2023-10-10 18:44:46 +02:00