Add limit to page size used by overlay2 driver
Add limit to page size used by overlay2 driver

Go can falsely report a larger page size than supported,
causing overlay2 mount arguments to be truncated. When overlay2
detects the mount arguments have hit the page limit, it will
switch to using relative paths. If this limit is smaller than
the actual page size there is no behavioral problems, but if it
is larger mounts can fail for images with many layers.

Closes #27384

Signed-off-by: Derek McGowan <e1c79a582b6629e6b39e9679f4bb964d25db4aa8@mcgstyle.net> (github: dmcgowan)

rancher/docker,Mokolea/docker,endophage/docker,ffoysal/docker,lixiaobing1/docker,bearstech/moby,paralin/docker,lixiaobing10051267/docker,moul/docker,mixja/docker,trebonian/docker,gjaskiewicz/moby,shhsu/docker,ibuildthecloud/docker,stevvooe/docker,madhanrm/docker,mtesselH/docker,rancher/docker,msabansal/docker,jameszhan/docker,tonistiigi/docker,johnstep/moby-moby,rremer/moby,jlhawn/docker,dccurtis/docker,tianon/docker,coolljt0725/docker,prertik/docker,scotttlin/docker,dccurtis/docker,tophj-ibm/docker,tmp6154/docker,crosbymichael/docker,madhanrm/docker,AkihiroSuda/docker,vdemeester/docker,erikh/docker,tklauser/docker,maxamillion/docker,crosbymichael/docker,harche/docker,pramodhkp/moby,JMesser81/docker,AkihiroSuda/docker,estesp/docker,tophj-ibm/moby,laijs/docker,endophage/docker,tonistiigi/docker,jimjag/docker,unclejack/docker,Ramzec/docker,raja-sami-10p/moby,amatsus/docker,xuxinkun/docker,nalind/docker,SvenDowideit/docker,fcrisciani/docker,KingEmet/docker,cyphar/docker,noironetworks/docker,qudongfang/docker,cpuguy83/docker,jwhonce/docker,jvanz/docker,konstruktoid/docker-upstream,djs55/docker,erikh/docker,kencochrane/docker,dsheets/moby,cyphar/docker,darrenstahlmsft/moby,harche/docker,estesp/docker,paralin/docker,tophj-ibm/moby,jimjag/docker,amatsus/docker,SvenDowideit/docker,resin-io/docker,POLJM242/docker,miminar/docker,madhanrm/docker,mstanleyjones/docker,mstanleyjones/docker,harche/docker,trebonian/docker,stevvooe/docker,mkumatag/docker,yongtang/docker,mahak/docker,ColinHebert/docker,sdurrheimer/docker,noironetworks/docker,moypray/docker,gjaskiewicz/moby,raja-sami-10p/moby,xuxinkun/docker,rhatdan/docker,naveed-jamil-tenpearls/moby,gschaetz/moby,catinthesky/docker,paralin/docker,thaJeztah/docker,liaoqingwei/docker,JMesser81/docker,msabansal/docker,q384566678/docker,q384566678/docker,dperny/docker,sterchelen/docker,cpuguy83/docker,jvanz/docker,mixja/docker,srust/docker,unclejack/docker,yummypeng/docker,ndeloof/docker,prertik/docker,jwhonce/docker,alfred-landrum/docker,imkin/moby,haveatry/docker,diogomonica/docker,yasiramin10p/moby,rremer/moby,jameszhan/docker,sarnautov/moby,mahak/docker,nawawi/docker,jwhonce/docker,dsheets/moby,coolljt0725/docker,mikebrow/docker,catinthesky/docker,stevvooe/docker,ripcurld0/moby,mike1729/docker,kolyshkin/moby,moul/docker,shhsu/docker,msabansal/docker,bonczj/moby-json-file-logger,alfred-landrum/docker,dims/docker,moby/moby,naveed-jamil-tenpearls/moby,yosifkit/docker,qudongfang/docker,duglin/docker,nawawi/docker,ffoysal/docker,YuPengZTE/docker,sterchelen/docker,rhatdan/docker,docker/docker,dsheets/moby,sdurrheimer/docker,crosbymichael/docker,diogomonica/docker,ibuildthecloud/docker,flavio/docker,lixiaobing10051267/docker,gschaetz/moby,thaJeztah/docker,JMesser81/docker,haveatry/docker,mikebrow/docker,HideoYamauchi/docker,erikh/docker,sdurrheimer/docker,whuwxl/docker,thtanaka/docker,darrenstahlmsft/moby,jthelin/docker,coreos/docker,trebonian/docker,naveed-jamil-tenpearls/moby,maxamillion/docker,AkihiroSuda/docker,cpuguy83/docker,lixiaobing1/docker,mike1729/docker,mikedougherty/docker,yummypeng/docker,lixiaobing1/docker,flavio/docker,kencochrane/docker,scotttlin/docker,shishir-a412ed/docker,scotttlin/docker,thaJeztah/docker,mikedougherty/docker,laijs/docker,yummypeng/docker,mixja/docker,noironetworks/docker,nawawi/docker,moby/moby,tophj-ibm/moby,yongtang/docker,dgageot/docker,gschaetz/moby,Mokolea/docker,erikstmartin/docker,resin-io/docker,jimjag/docker,tophj-ibm/docker,konstruktoid/docker-upstream,vdemeester/docker,kolyshkin/moby,catinthesky/docker,dims/docker,dmcgowan/docker,mkumatag/docker,vdemeester/docker,moul/docker,srust/docker,rhatdan/docker,gnailuy/docker,flavio/docker,pradipd/moby,trebonian/docker,nalind/docker,shishir-a412ed/docker,KarthikNayak/docker,coreos/docker,erikstmartin/docker,djs55/docker,AkihiroSuda/docker,shhsu/docker,allencloud/docker,whuwxl/docker,yosifkit/docker,rancher/docker,mikedougherty/docker,hqhq/moby,q384566678/docker,mikebrow/docker,Ramzec/docker,unclejack/docker,alfred-landrum/docker,jlhawn/docker,Mokolea/docker,POLJM242/docker,gnailuy/docker,djs55/docker,Ramzec/docker,raja-sami-10p/moby,estesp/docker,imkin/moby,konstruktoid/docker-upstream,sterchelen/docker,gnailuy/docker,dccurtis/docker,bearstech/moby,johnstep/moby-moby,srust/docker,yasiramin10p/moby,jameszhan/docker,flavio/docker,tmp6154/docker,mkumatag/docker,darrenstahlmsft/docker,ibuildthecloud/docker,mtesselH/docker,thtanaka/docker,mtrmac/docker,charleszheng44/moby,nalind/docker,imkin/moby,shishir-a412ed/docker,SvenDowideit/docker,pramodhkp/moby,konstruktoid/docker-1,bearstech/moby,cpuguy83/docker,PatrickLang/moby,moypray/docker,danyalKhaliq10p/moby,x1022as/docker,laijs/moby,allencloud/docker,mahak/docker,Syntaxide/docker,jvanz/docker,mtesselH/docker,dgageot/docker,ripcurld0/moby,kolyshkin/docker,justincormack/docker,bonczj/moby-json-file-logger,laijs/moby,diogomonica/docker,konstruktoid/docker-1,danyalKhaliq10p/moby,dmcgowan/docker,ndeloof/docker,liaoqingwei/docker,michael-holzheu/docker,mike1729/docker,yosifkit/docker,ffoysal/docker,kolyshkin/docker,jlhawn/docker,tklauser/docker,moypray/docker,pramodhkp/moby,darrenstahlmsft/docker,Syntaxide/docker,moby/moby,yosifkit/docker,maxamillion/docker,darrenstahlmsft/docker,johnstep/moby-moby,kojiromike/docker,dims/docker,michael-holzheu/docker,coolljt0725/docker,dperny/docker,justincormack/docker,jimjag/docker,laijs/moby,haveatry/docker,erikstmartin/docker,mtrmac/docker,bearstech/moby,gjaskiewicz/moby,sarnautov/moby,kojiromike/docker,PatrickLang/moby,ColinHebert/docker,KarthikNayak/docker,miminar/docker,qudongfang/docker,fcrisciani/docker,moby/moby,miminar/docker,docker/docker,cyphar/docker,resin-io/docker,yongtang/docker,mahak/docker,tophj-ibm/docker,thaJeztah/docker,xuxinkun/docker,laijs/docker,tklauser/docker,yasiramin10p/moby,amatsus/docker,jthelin/docker,Mokolea/docker,HideoYamauchi/docker,justincormack/docker,ndeloof/docker,lixiaobing10051267/docker,liaoqingwei/docker,docker/docker,YuPengZTE/docker,pradipd/moby,whuwxl/docker,dmcgowan/docker,hqhq/moby,ibuildthecloud/docker,mtrmac/docker,rremer/moby,michael-holzheu/docker,paralin/docker,tmp6154/docker,ibuildthecloud/docker,kojiromike/docker,tonistiigi/docker,charleszheng44/moby,konstruktoid/docker-upstream,HideoYamauchi/docker,allencloud/docker,Ramzec/docker,darrenstahlmsft/moby,danyalKhaliq10p/moby,prertik/docker,pradipd/moby,akira-baruah/docker,dgageot/docker,KarthikNayak/docker,coreos/docker,bonczj/moby-json-file-logger,mstanleyjones/docker,KingEmet/docker,KingEmet/docker,konstruktoid/docker-1,akira-baruah/docker,PatrickLang/moby,thtanaka/docker,duglin/docker,x1022as/docker,nalind/docker,Syntaxide/docker,moul/docker,ripcurld0/moby,charleszheng44/moby,duglin/docker,sarnautov/moby,dperny/docker,fcrisciani/docker,YuPengZTE/docker,hqhq/moby,tianon/docker,kolyshkin/moby,ColinHebert/docker,nawawi/docker,x1022as/docker,endophage/docker,gnailuy/docker,kencochrane/docker