summaryrefslogtreecommitdiffstats
path: root/fs/ufs/truncate.c
diff options
context:
space:
mode:
authorRobin Holt <holt@sgi.com>2013-04-30 19:15:54 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2013-05-01 08:12:58 -0700
commitd69f3bad4675ac519d41ca2b11e1c00ca115cecd (patch)
tree343d1fab484751290b2044b347372f8a8468e762 /fs/ufs/truncate.c
parent41239fe82d85c135684b09f1e65622d6c1dbe8dc (diff)
downloadop-kernel-dev-d69f3bad4675ac519d41ca2b11e1c00ca115cecd.zip
op-kernel-dev-d69f3bad4675ac519d41ca2b11e1c00ca115cecd.tar.gz
ipc: sysv shared memory limited to 8TiB
Trying to run an application which was trying to put data into half of memory using shmget(), we found that having a shmall value below 8EiB-8TiB would prevent us from using anything more than 8TiB. By setting kernel.shmall greater than 8EiB-8TiB would make the job work. In the newseg() function, ns->shm_tot which, at 8TiB is INT_MAX. ipc/shm.c: 458 static int newseg(struct ipc_namespace *ns, struct ipc_params *params) 459 { ... 465 int numpages = (size + PAGE_SIZE -1) >> PAGE_SHIFT; ... 474 if (ns->shm_tot + numpages > ns->shm_ctlall) 475 return -ENOSPC; [akpm@linux-foundation.org: make ipc/shm.c:newseg()'s numpages size_t, not int] Signed-off-by: Robin Holt <holt@sgi.com> Reported-by: Alex Thorlton <athorlton@sgi.com> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ufs/truncate.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud