New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ASAN: protection against accessing invalid memory when ieta==0 #31595
Conversation
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-31595/18650
|
A new Pull Request was created by @smuzaffar (Malik Shahzad Muzaffar) for master. It involves the following packages: RecoHI/HiJetAlgos @perrotta, @jpata, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
The tests are being triggered in jenkins.
|
+1 |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
It would be interesting to investigate with the debug where such a This could be achieved by reverting the change proposed here for the
What do you think @smuzaffar and @mandrenguyen ? [1]
|
@perrotta , setting |
Thanks for the fix. I agree with @perrotta |
Not really. If we start by
xeta > hi::etaedge[0] (i.e. xeta > 0. ), which is always true except the pathological case xeta==0. which we want to cure with this PR. Then the flow passes to ieta=1 and continues as I suggest.
Therefore, the different behaviour with respect to the present code is only there when
|
The code-checks are being triggered in jenkins. |
The code-checks are being triggered in jenkins. |
ok, I have update the PR as suggested here #31595 (comment) |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-31595/18668
|
please test |
The tests are being triggered in jenkins.
|
+1 |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
+1
|
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @silviodonato, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
Workflow 301.0 step3 fails in ASAN IBs [a]. This could happen if
ieta==0
(https://github.com/cms-sw/cmssw/blob/master/RecoHI/HiJetAlgos/plugins/ParticleTowerProducer.cc#L181). This PR proposes a protected againstieta==0
and also callfabs
once[a]
https://cmssdt.cern.ch/SDT/cgi-bin/logreader/slc7_amd64_gcc820/CMSSW_11_2_ASAN_X_2020-09-25-2300/pyRelValMatrixLogs/run/301.0_Pyquen_DiJet_pt80to120_2760GeV+Pyquen_DiJet_pt80to120_2760GeV+DIGIHIMIX+RECOHIMIX+HARVESTHI2018PPRECO/step3_Pyquen_DiJet_pt80to120_2760GeV+Pyquen_DiJet_pt80to120_2760GeV+DIGIHIMIX+RECOHIMIX+HARVESTHI2018PPRECO.log#/