Skip to content

[Vulkan] Fix mm op null pointer dereference on Android#79701

Closed
manuelcandales wants to merge 1 commit intopytorch:masterfrom
manuelcandales:export-D37189192
Closed

[Vulkan] Fix mm op null pointer dereference on Android#79701
manuelcandales wants to merge 1 commit intopytorch:masterfrom
manuelcandales:export-D37189192

Conversation

@manuelcandales
Copy link
Copy Markdown
Contributor

Summary: The use of c10::nullopt instead of c10::optional<Tensor>() caused a null pointer dereference on Android.

Test Plan:
On Mac:

buck run //xplat/caffe2:pt_vulkan_api_test_binAppleMac

On Android:

buck build -c ndk.custom_libcxx=false -c pt.enable_qpl=0 //xplat/caffe2:pt_vulkan_api_test_binAndroid\#android-arm64 --show-output
adb push buck-out/gen/xplat/caffe2/pt_vulkan_api_test_binAndroid\#android-arm64 /data/local/tmp/vulkan_api_test
adb shell "/data/local/tmp/vulkan_api_test"

Reviewed By: SS-JIA

Differential Revision: D37189192

@facebook-github-bot
Copy link
Copy Markdown
Contributor

facebook-github-bot commented Jun 16, 2022

🔗 Helpful links

✅ No Failures (0 Pending)

As of commit 296a08b (more details on the Dr. CI page):

Expand to see more

💚 💚 Looks good so far! There are no failures yet. 💚 💚


This comment was automatically generated by Dr. CI (expand for details).

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D37189192

@manuelcandales manuelcandales changed the title Fix mm op null pointer dereference on Android [Vulkan] Fix mm op null pointer dereference on Android Jun 16, 2022
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D37189192

Summary:
Pull Request resolved: pytorch#79701

The use of `c10::nullopt` instead of `c10::optional<Tensor>()` caused a null pointer dereference on Android.

Test Plan:
On Mac:
```
buck run //xplat/caffe2:pt_vulkan_api_test_binAppleMac
```

On Android:
```
buck build -c ndk.custom_libcxx=false -c pt.enable_qpl=0 //xplat/caffe2:pt_vulkan_api_test_binAndroid\#android-arm64 --show-output
adb push buck-out/gen/xplat/caffe2/pt_vulkan_api_test_binAndroid\#android-arm64 /data/local/tmp/vulkan_api_test
adb shell "/data/local/tmp/vulkan_api_test"
```

Reviewed By: SS-JIA

Differential Revision: D37189192

fbshipit-source-id: a7f264aeefc92cf956b7b75833d2cab6c5a04054
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D37189192

@manuelcandales manuelcandales changed the title [Vulkan] Fix mm op null pointer dereference on Android Fix mm op null pointer dereference on Android Jun 20, 2022
@manuelcandales manuelcandales changed the title Fix mm op null pointer dereference on Android [Vulkan] Fix mm op null pointer dereference on Android Jun 20, 2022
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@pytorchbot merge

(Initiating merge automatically since Phabricator Diff has merged)

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

@pytorchbot successfully started a merge job. Check the current status here

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

@manuelcandales your PR has been successfully merged.

@github-actions
Copy link
Copy Markdown
Contributor

Hey @manuelcandales.
You've committed this PR, but it does not have both a 'release notes: ...' and 'topics: ...' label. Please add one of each to the PR. The 'release notes: ...' label should represent the part of PyTorch that this PR changes (fx, autograd, distributed, etc) and the 'topics: ...' label should represent the kind of PR it is (not user facing, new feature, bug fix, perf improvement, etc). The list of valid labels can be found here for the 'release notes: ...' and here for the 'topics: ...'.
For changes that are 'topic: not user facing' there is no need for a release notes label.

facebook-github-bot pushed a commit that referenced this pull request Jun 21, 2022
Summary:
Pull Request resolved: #79701

The use of `c10::nullopt` instead of `c10::optional<Tensor>()` caused a null pointer dereference on Android.

Test Plan:
On Mac:
```
buck run //xplat/caffe2:pt_vulkan_api_test_binAppleMac
```

On Android:
```
buck build -c ndk.custom_libcxx=false -c pt.enable_qpl=0 //xplat/caffe2:pt_vulkan_api_test_binAndroid\#android-arm64 --show-output
adb push buck-out/gen/xplat/caffe2/pt_vulkan_api_test_binAndroid\#android-arm64 /data/local/tmp/vulkan_api_test
adb shell "/data/local/tmp/vulkan_api_test"
```

Reviewed By: SS-JIA

Differential Revision: D37189192

fbshipit-source-id: fc9c917a90358227e9a076d52b3c739d452b4a96
miladm pushed a commit to miladm/pytorch that referenced this pull request Jun 27, 2022
Summary: The use of `c10::nullopt` instead of `c10::optional<Tensor>()` caused a null pointer dereference on Android.

Test Plan:
On Mac:
```
buck run //xplat/caffe2:pt_vulkan_api_test_binAppleMac
```

On Android:
```
buck build -c ndk.custom_libcxx=false -c pt.enable_qpl=0 //xplat/caffe2:pt_vulkan_api_test_binAndroid\#android-arm64 --show-output
adb push buck-out/gen/xplat/caffe2/pt_vulkan_api_test_binAndroid\#android-arm64 /data/local/tmp/vulkan_api_test
adb shell "/data/local/tmp/vulkan_api_test"
```

Reviewed By: SS-JIA

Differential Revision: D37189192

Pull Request resolved: pytorch#79701
Approved by: https://github.com/SS-JIA
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 25, 2026
Summary: The use of `c10::nullopt` instead of `c10::optional<Tensor>()` caused a null pointer dereference on Android.

Test Plan:
On Mac:
```
buck run //xplat/caffe2:pt_vulkan_api_test_binAppleMac
```

On Android:
```
buck build -c ndk.custom_libcxx=false -c pt.enable_qpl=0 //xplat/caffe2:pt_vulkan_api_test_binAndroid\#android-arm64 --show-output
adb push buck-out/gen/xplat/caffe2/pt_vulkan_api_test_binAndroid\#android-arm64 /data/local/tmp/vulkan_api_test
adb shell "/data/local/tmp/vulkan_api_test"
```

Reviewed By: SS-JIA

Differential Revision: D37189192

Pull Request resolved: pytorch#79701
Approved by: https://github.com/SS-JIA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants