runtime: pass a smaller buffer to sched_getaffinity on ARM
runtime: pass a smaller buffer to sched_getaffinity on ARM

The system stack is only around 8kb on ARM so one can't put an 8kb buffer on
the stack. More than 1024 ARM cores seems sufficiently unlikely for the
foreseeable future.

Fixes #11853

Change-Id: I7cb27c1250a6153f86e269c172054e9dfc218c72
Reviewed-on: https://go-review.googlesource.com/12622
Reviewed-by: Austin Clements <7ea35d812706d9213868749011af1ed4fa2f6aa0@google.com>

shines77/go,malvira/go,famorted/go,suncycheng/go,rachtsingh/gogojuice,mdp/go,jmptrader/go,jacobxk/go,constantine001/go,zouchao2010/go,rachtsingh/gogojuice,Cofyc/go,momchil-velikov/go,AALEKH/go,xiuzhifu/go,alex-zhang/go,kim-racktop/go,kakuhiroshi/go,vsdutka/go,samanalysis/go,shazow/go,CiscoCloud/go,sndnvaps/go,jmptrader/go,theif519/go,zhangg/go,sndnvaps/go,christopher-henderson/Go,odeke-em/go,suncycheng/go,goodlang/good,dpatel06/go,malvira/go,GeorgiCodes/go,XuYunnan/go,sosop/go,likesea/go,mikekap/go,Samurais/go,jonasi/go,kakuhiroshi/go,XuYunnan/go,CarterTsai/go,cainiaocome/go,jefby/go,lihuanghai/go,dpatel06/go,chinanjjohn2012/go,Charlesdong/go-1,joshsammut/go,snowsnail/go,roth1002/go,odeke-em/go,jacobsa/go,jonahglover/go,Cofyc/go,cloudflare/go,wangfakang/go-1,likesea/go,codestation/go,Endika/go,CarterTsai/go,vanloswang/go,CarterTsai/go,CarterTsai/go,Pulgafree/go,andrewchambers/go,qskycolor/go,mikekap/go,Young55555/go,cloudrain21/go,xinhuang327/go,g522342435/go,arschles/golang-go,deft-code/go,gohin/go,rachtsingh/gogojuice,jasonxiong/go,derekmarcotte/go,ifagnosticism/go,jonasi/go,theass/go,arschles/go-1,nawawi/go,yuhengye/go,akutz/go,Charlesdong/go-1,nawawi/go,jacobxk/go,jdhenke/go,jmptrader/go,donnel6809/go,Stan-Lin-/go,JioCloud/go,shines77/go,jdeng/go,momchil-velikov/go,vsekhar/elastic-go,WIZARD-CXY/go,CarterTsai/go,cloudflare/go,danielsoro/go,cloudrain21/go,cookerzhu/go,ImJasonH/go,jdeng/go,ifagnosticism/go,cainiaocome/go,akutz/go,Samurais/go,yasarkunduz/go,shazow/go,jasonxiong/go,theif519/go,zhangg/go,codestation/go,Cofyc/go,devpadawan/go,CiscoCloud/go,AALEKH/go,andrewchambers/go,yangzhongj/go,jameskumar/go,CarterTsai/go,alash3al/go,youprofit/go,vishsingh/go,theass/go,chinanjjohn2012/go,dafyddcrosby/go,xiaobodu/go,ganboing/go-esx,constantine001/go,sndnvaps/go,Charlesdong/go-1,theif519/go,NichoZhang/go,codestation/go,theass/go,donnel6809/go,gdey/go,alex-zhang/go,xiuzhifu/go,theass/go,theass/go,cainiaocome/go,xiaobodu/go,yasarkunduz/go,greyhwndz/go,cloudrain21/go,arschles/go-1,NunoEdgarGub1/go,vsdutka/go,mgyenik/go,jonathanmarvens/go,nawawi/go,roth1002/go,mikekap/go,roth1002/go,ichu501/go,zcwfeng/go,gohin/go,yuhengye/go,danielsoro/go,gohin/go,jdeng/go,kevinc0825/go,binarycrusader/go,donnel6809/go,baiyunping333/go,mbrukman/go,AALEKH/go,skotti/go,nakedgc/go,jacobxk/go,nawawi/go,kim-racktop/go,mbrukman/go,jacobsa/go,CiscoCloud/go,GeorgiCodes/go,baiyunping333/go,NunoEdgarGub1/go,josharian/go,Jordanzuo/go,binarycrusader/go,yuhengye/go,myPublicGit/go,kim-racktop/go,mbrukman/go,Pulgafree/go,binarycrusader/go,Samurais/go,fjballest/golang,sndnvaps/go,alex-zhang/go,Badredapple/go,mdp/go,mikekap/go,vishsingh/go,qskycolor/go,parkdy/go,NichoZhang/go,xujianhai/go,jonahglover/go,jdhenke/go,mwhudson/go,shazow/go,lihuanghai/go,parkdy/go,dterei/go,skatsuta/go,golang/go,stormltf/go,andrewchambers/go,ImJasonH/go,GeorgiCodes/go,Pulgafree/go,malvira/go,joshsammut/go,gdey/go,shazow/go,AALEKH/go,ganboing/go-esx,ichu501/go,ErikDubbelboer/go,yangzhongj/go,Pulgafree/go,leeric92/go,zouchao2010/go,cookerzhu/go,monetate/go,uileyar/go,sinuos/go,deft-code/go,CAFxX/go,mgyenik/go,gohin/go,arschles/golang-go,CodyGuo/go,wangfakang/go-1,parkdy/go,honsiorovskyi/go,danycoro/go,alex-zhang/go,snowsnail/go,xiuzhifu/go,albertjin/golang-go,golang/go,greyhwndz/go,CodyGuo/go,rentongzhang/go,vsdutka/go,theif519/go,zhangg/go,chinanjjohn2012/go,CiscoCloud/go,mdp/go,devpadawan/go,zouchao2010/go,mgyenik/go,XuYunnan/go,nawawi/go,CAFxX/go,cookerzhu/go,WIZARD-CXY/go,parkdy/go,jmptrader/go,beealone/go,b54898533/go,jasonxiong/go,jdhenke/go,mwhudson/go,alash3al/go,dterei/go,derekmarcotte/go,wangfakang/go-1,Endika/go,jacobhaven/go,jacobhaven/go,Stan-Lin-/go,miolini/go,slavau/go,GeorgiCodes/go,josharian/go,CodyGuo/go,chinanjjohn2012/go,chinanjjohn2012/go,theif519/go,stormltf/go,Stan-Lin-/go,vsekhar/elastic-go,ImJasonH/go,rachtsingh/gogojuice,skatsuta/go,beealone/go,willjunspecial/go,mdp/go,cloudrain21/go,zhangg/go,CodyGuo/go,jefby/go,deft-code/go,josharian/go,mbrukman/go,Young55555/go,Young55555/go,Jordanzuo/go,zcwfeng/go,danycoro/go,greyhwndz/go,albertjin/golang-go,mdp/go,devpadawan/go,xinhuang327/go,leeric92/go,jacobsa/go,stormltf/go,odeke-em/go,yasarkunduz/go,willjunspecial/go,Stan-Lin-/go,golang/go,dpatel06/go,zhangg/go,4ad/go,fjballest/golang,likesea/go,linux-on-ibm-z/go,yangzhongj/go,kevinc0825/go,zouchao2010/go,qskycolor/go,stormltf/go,linux-on-ibm-z/go,CodyGuo/go,undergrowthlinear/go,honsiorovskyi/go,alash3al/go,linux-on-ibm-z/go,nakedgc/go,cloudflare/go,linux-on-ibm-z/go,lihuanghai/go,arschles/golang-go,famorted/go,Samurais/go,goodlang/good,polyverse-security/go,undergrowthlinear/go,mwhudson/go,joshsammut/go,danycoro/go,kevinc0825/go,ganboing/go-esx,GeorgiCodes/go,honsiorovskyi/go,kevinc0825/go,yuhengye/go,jefby/go,samanalysis/go,jefby/go,CAFxX/go,JioCloud/go,XuYunnan/go,devpadawan/go,xiaobodu/go,jdhenke/go,goodlang/good,deft-code/go,ifagnosticism/go,Pulgafree/go,vsekhar/elastic-go,danielsoro/go,slavau/go,uileyar/go,momchil-velikov/go,kakuhiroshi/go,jacobsa/go,albertjin/golang-go,sosop/go,miolini/go,vsekhar/elastic-go,snowsnail/go,qskycolor/go,danycoro/go,WIZARD-CXY/go,JioCloud/go,CiscoCloud/go,Jordanzuo/go,yuhengye/go,Young55555/go,Young55555/go,vsekhar/elastic-go,JioCloud/go,dterei/go,cloudflare/go,youprofit/go,golang/go,rentongzhang/go,nawawi/go,akutz/go,Young55555/go,vsdutka/go,cloudflare/go,ObjectiveJoe/go,CiscoCloud/go,andrewchambers/go,linux-on-ibm-z/go,jonasi/go,Charlesdong/go-1,polyverse-security/go,ErikDubbelboer/go,ganboing/go-esx,danycoro/go,ObjectiveJoe/go,kevinc0825/go,codestation/go,jefby/go,snowsnail/go,jonathanmarvens/go,suncycheng/go,JioCloud/go,odeke-em/go,cookerzhu/go,dafyddcrosby/go,jonahglover/go,mgyenik/go,arschles/golang-go,theif519/go,vishsingh/go,jacobxk/go,baiyunping333/go,kevinc0825/go,zcwfeng/go,dpatel06/go,Pulgafree/go,myPublicGit/go,honsiorovskyi/go,vishsingh/go,devpadawan/go,monetate/go,Samurais/go,cloudrain21/go,derekmarcotte/go,ErikDubbelboer/go,snowsnail/go,theass/go,WIZARD-CXY/go,polyverse-security/go,g522342435/go,derekmarcotte/go,shazow/go,ErikDubbelboer/go,jameskumar/go,vsekhar/elastic-go,shines77/go,willjunspecial/go,zcwfeng/go,jefby/go,danielsoro/go,yuhengye/go,dterei/go,snowsnail/go,miolini/go,roth1002/go,jasonxiong/go,lihuanghai/go,ImJasonH/go,CiscoCloud/go,honsiorovskyi/go,mbrukman/go,jacobxk/go,albertjin/golang-go,dterei/go,shines77/go,chinanjjohn2012/go,cyberroadie/go,NichoZhang/go,baiyunping333/go,arschles/go-1,suncycheng/go,albertjin/golang-go,fjballest/golang,willjunspecial/go,stormltf/go,kakuhiroshi/go,jacobhaven/go,Samurais/go,rachtsingh/gogojuice,wangfakang/go-1,baiyunping333/go,yasarkunduz/go,xinhuang327/go,jonathanmarvens/go,arschles/go-1,gohin/go,ganboing/go-esx,springning/go,qskycolor/go,jacobhaven/go,kim-racktop/go,jameskumar/go,myPublicGit/go,CAFxX/go,Cofyc/go,golang/go,polyverse-security/go,sosop/go,likesea/go,xujianhai/go,malvira/go,jmptrader/go,WIZARD-CXY/go,monetate/go,goodlang/good,miolini/go,jdhenke/go,goodlang/good,ErikDubbelboer/go,codestation/go,jameskumar/go,vishsingh/go,g522342435/go,yuhengye/go,arschles/golang-go,mgyenik/go,nakedgc/go,sosop/go,parkdy/go,odeke-em/go,cloudflare/go,cyberroadie/go,skatsuta/go,gdey/go,jacobsa/go,jasonxiong/go,JioCloud/go,dpatel06/go,shines77/go,Cofyc/go,cloudrain21/go,Jordanzuo/go,jasonxiong/go,constantine001/go,XuYunnan/go,linux-on-ibm-z/go,yangzhongj/go,ifagnosticism/go,xiaobodu/go,jonasi/go,kakuhiroshi/go,ericsnowcurrently/go,Young55555/go,mwhudson/go,g522342435/go,Badredapple/go,uileyar/go,alex-zhang/go,uileyar/go,slavau/go,devpadawan/go,XuYunnan/go,mgyenik/go,sinuos/go,vsdutka/go,jonahglover/go,kim-racktop/go,willjunspecial/go,Jordanzuo/go,xiaobodu/go,vsdutka/go,cainiaocome/go,cyberroadie/go,Stan-Lin-/go,jonathanmarvens/go,youprofit/go,akutz/go,miolini/go,derekmarcotte/go,codestation/go,xiuzhifu/go,binarycrusader/go,baiyunping333/go,ErikDubbelboer/go,undergrowthlinear/go,sinuos/go,dterei/go,skatsuta/go,skotti/go,xinhuang327/go,vsdutka/go,goodlang/good,yangzhongj/go,dafyddcrosby/go,linux-on-ibm-z/go,Endika/go,mwhudson/go,goodlang/good,CodyGuo/go,GeorgiCodes/go,uileyar/go,jonathanmarvens/go,undergrowthlinear/go,springning/go,cloudflare/go,b54898533/go,ObjectiveJoe/go,dafyddcrosby/go,b54898533/go,binarycrusader/go,skotti/go,jmptrader/go,sndnvaps/go,willjunspecial/go,akutz/go,jacobxk/go,odeke-em/go,sndnvaps/go,parkdy/go,sinuos/go,samanalysis/go,fjballest/golang,xiuzhifu/go,codestation/go,shines77/go,Pulgafree/go,vsekhar/elastic-go,albertjin/golang-go,andrewchambers/go,4ad/go,snowsnail/go,fjballest/golang,josharian/go,josharian/go,youprofit/go,jdeng/go,cainiaocome/go,zouchao2010/go,b54898533/go,parkdy/go,CAFxX/go,kim-racktop/go,jacobxk/go,devpadawan/go,springning/go,likesea/go,NunoEdgarGub1/go,g522342435/go,josharian/go,donnel6809/go,rachtsingh/gogojuice,vanloswang/go,GeorgiCodes/go,b54898533/go,NunoEdgarGub1/go,donnel6809/go,mwhudson/go,gdey/go,shazow/go,jonahglover/go,ericsnowcurrently/go,joshsammut/go,nakedgc/go,alex-zhang/go,beealone/go,famorted/go,yangzhongj/go,NunoEdgarGub1/go,jacobhaven/go,arschles/golang-go,myPublicGit/go,arschles/golang-go,XuYunnan/go,honsiorovskyi/go,vanloswang/go,yasarkunduz/go,lihuanghai/go,famorted/go,jameskumar/go,malvira/go,vishsingh/go,jdhenke/go,vsekhar/elastic-go,kevinc0825/go,wangfakang/go-1,polyverse-security/go,ObjectiveJoe/go,mdp/go,zhangg/go,slavau/go,albertjin/golang-go,gdey/go,samanalysis/go,joshsammut/go,baiyunping333/go,momchil-velikov/go,theass/go,vishsingh/go,derekmarcotte/go,likesea/go,xujianhai/go,constantine001/go,rachtsingh/gogojuice,WIZARD-CXY/go,monetate/go,jonasi/go,alash3al/go,famorted/go,vanloswang/go,akutz/go,monetate/go,famorted/go,kakuhiroshi/go,arschles/go-1,nawawi/go,dpatel06/go,alash3al/go,xujianhai/go,cainiaocome/go,Badredapple/go,jacobhaven/go,Badredapple/go,ifagnosticism/go,yangzhongj/go,wangfakang/go-1,sinuos/go,ericsnowcurrently/go,kakuhiroshi/go,ericsnowcurrently/go,xujianhai/go,fjballest/golang,xiuzhifu/go,malvira/go,alash3al/go,polyverse-security/go,donnel6809/go,AALEKH/go,g522342435/go,lihuanghai/go,joshsammut/go,xiuzhifu/go,youprofit/go,gohin/go,ericsnowcurrently/go,4ad/go,undergrowthlinear/go,sinuos/go,arschles/go-1,stormltf/go,leeric92/go,zhangg/go,malvira/go,Pulgafree/go,cookerzhu/go,sinuos/go,momchil-velikov/go,suncycheng/go,Stan-Lin-/go,Charlesdong/go-1,zcwfeng/go,JioCloud/go,uileyar/go,mwhudson/go,samanalysis/go,famorted/go,albertjin/golang-go,alex-zhang/go,gdey/go,springning/go,rentongzhang/go,golang/go,CAFxX/go,gdey/go,jmptrader/go,jonasi/go,ErikDubbelboer/go,dterei/go,xujianhai/go,cyberroadie/go,undergrowthlinear/go,polyverse-security/go,Stan-Lin-/go,jacobsa/go,famorted/go,skotti/go,yuhengye/go,NichoZhang/go,Badredapple/go,samanalysis/go,beealone/go,NunoEdgarGub1/go,deft-code/go,Cofyc/go,suncycheng/go,NunoEdgarGub1/go,jmptrader/go,WIZARD-CXY/go,danielsoro/go,mbrukman/go,rentongzhang/go,vanloswang/go,skatsuta/go,rentongzhang/go,miolini/go,jonahglover/go,AALEKH/go,dterei/go,jonathanmarvens/go,suncycheng/go,momchil-velikov/go,nawawi/go,myPublicGit/go,gohin/go,jdeng/go,yasarkunduz/go,xiuzhifu/go,danielsoro/go,shazow/go,zcwfeng/go,springning/go,likesea/go,jacobsa/go,WIZARD-CXY/go,Endika/go,sosop/go,Young55555/go,jonathanmarvens/go,ericsnowcurrently/go,ichu501/go,momchil-velikov/go,arschles/go-1,roth1002/go,myPublicGit/go,ifagnosticism/go,miolini/go,cookerzhu/go,NichoZhang/go,4ad/go,yasarkunduz/go,zcwfeng/go,4ad/go,wangfakang/go-1,beealone/go,Samurais/go,vanloswang/go,fjballest/golang,rentongzhang/go,cookerzhu/go,golang/go,jacobhaven/go,rentongzhang/go,stormltf/go,shines77/go,ImJasonH/go,xinhuang327/go,springning/go,vanloswang/go,4ad/go,roth1002/go,cyberroadie/go,roth1002/go,qskycolor/go,Jordanzuo/go,danycoro/go,skatsuta/go,myPublicGit/go,nakedgc/go,ichu501/go,vsdutka/go,beealone/go,g522342435/go,jonasi/go,willjunspecial/go,jonahglover/go,alash3al/go,jameskumar/go,monetate/go,jefby/go,CarterTsai/go,yasarkunduz/go,monetate/go,derekmarcotte/go,chinanjjohn2012/go,g522342435/go,kevinc0825/go,andrewchambers/go,ObjectiveJoe/go,xujianhai/go,Badredapple/go,danielsoro/go,JioCloud/go,danielsoro/go,cainiaocome/go,Cofyc/go,Badredapple/go,dafyddcrosby/go,willjunspecial/go,greyhwndz/go,ganboing/go-esx,xiaobodu/go,undergrowthlinear/go,xinhuang327/go,suncycheng/go,CAFxX/go,xiaobodu/go,GeorgiCodes/go,CAFxX/go,jdhenke/go,polyverse-security/go,rachtsingh/gogojuice,Charlesdong/go-1,undergrowthlinear/go,jacobhaven/go,ObjectiveJoe/go,joshsammut/go,uileyar/go,zcwfeng/go,cyberroadie/go,ericsnowcurrently/go,arschles/golang-go,andrewchambers/go,skatsuta/go,ganboing/go-esx,ImJasonH/go,jefby/go,fjballest/golang,theif519/go,wangfakang/go-1,binarycrusader/go,CodyGuo/go,sosop/go,nakedgc/go,gdey/go,deft-code/go,monetate/go,qskycolor/go,mbrukman/go,roth1002/go,golang/go,josharian/go,CarterTsai/go,skotti/go,Endika/go,leeric92/go,nakedgc/go,jonathanmarvens/go,ifagnosticism/go,momchil-velikov/go,honsiorovskyi/go,sosop/go,4ad/go,skatsuta/go,4ad/go,slavau/go,deft-code/go,XuYunnan/go,dafyddcrosby/go,sinuos/go,youprofit/go,ichu501/go,skotti/go,jasonxiong/go,devpadawan/go,zouchao2010/go,beealone/go,xiaobodu/go,Samurais/go,binarycrusader/go,arschles/go-1,kakuhiroshi/go,derekmarcotte/go,ObjectiveJoe/go,sndnvaps/go,Badredapple/go,xinhuang327/go,joshsammut/go,Charlesdong/go-1,vanloswang/go,gohin/go,myPublicGit/go,snowsnail/go,linux-on-ibm-z/go,xinhuang327/go,parkdy/go,samanalysis/go,jameskumar/go,skotti/go,rentongzhang/go,samanalysis/go,odeke-em/go,AALEKH/go,jdeng/go,sndnvaps/go,likesea/go,beealone/go,shines77/go,ichu501/go,leeric92/go,b54898533/go,odeke-em/go,NichoZhang/go,constantine001/go,jdeng/go,ErikDubbelboer/go,constantine001/go,jonahglover/go,qskycolor/go,NichoZhang/go,kim-racktop/go,mdp/go,Charlesdong/go-1,dafyddcrosby/go,jdhenke/go,youprofit/go,ImJasonH/go,slavau/go,ifagnosticism/go,springning/go,NunoEdgarGub1/go,slavau/go,ObjectiveJoe/go,theass/go,cainiaocome/go,mikekap/go,dpatel06/go,yangzhongj/go,Cofyc/go,greyhwndz/go,danycoro/go,cloudflare/go,deft-code/go,theif519/go,mbrukman/go,cookerzhu/go,danycoro/go,leeric92/go,constantine001/go,mikekap/go,ganboing/go-esx,constantine001/go,binarycrusader/go,greyhwndz/go,ichu501/go,andrewchambers/go,Endika/go,lihuanghai/go,ImJasonH/go,alash3al/go,slavau/go,jdeng/go,NichoZhang/go,cyberroadie/go,lihuanghai/go,youprofit/go,jameskumar/go,xujianhai/go,jasonxiong/go,Stan-Lin-/go,skotti/go,kim-racktop/go,codestation/go,donnel6809/go,jacobxk/go,zhangg/go,Jordanzuo/go,ericsnowcurrently/go,vishsingh/go,akutz/go,cyberroadie/go,b54898533/go,nakedgc/go,zouchao2010/go,mikekap/go,ichu501/go,leeric92/go,AALEKH/go,josharian/go,shazow/go,mwhudson/go,jacobsa/go,cloudrain21/go,greyhwndz/go,greyhwndz/go,CodyGuo/go,CiscoCloud/go,mgyenik/go,dafyddcrosby/go,springning/go,mgyenik/go,baiyunping333/go,Endika/go,honsiorovskyi/go,mikekap/go,alex-zhang/go,stormltf/go,donnel6809/go,cloudrain21/go,Endika/go,Jordanzuo/go,chinanjjohn2012/go,mdp/go,sosop/go,uileyar/go,goodlang/good,zouchao2010/go,malvira/go,leeric92/go,akutz/go,miolini/go,b54898533/go,jonasi/go,dpatel06/go