瀏覽代碼

[PATCH] aio: remove bare user-triggerable error printk

The user can generate console output if they cause do_mmap() to fail
during sys_io_setup().  This was seen in a regression test that does
exactly that by spinning calling mmap() until it gets -ENOMEM before
calling io_setup().

We don't need this printk at all, just remove it.

Signed-off-by: Zach Brown <zach.brown@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Zach Brown 18 年之前
父節點
當前提交
28defbea64
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      fs/aio.c

+ 0 - 1
fs/aio.c

@@ -136,7 +136,6 @@ static int aio_setup_ring(struct kioctx *ctx)
 				  0);
 				  0);
 	if (IS_ERR((void *)info->mmap_base)) {
 	if (IS_ERR((void *)info->mmap_base)) {
 		up_write(&ctx->mm->mmap_sem);
 		up_write(&ctx->mm->mmap_sem);
-		printk("mmap err: %ld\n", -info->mmap_base);
 		info->mmap_size = 0;
 		info->mmap_size = 0;
 		aio_free_ring(ctx);
 		aio_free_ring(ctx);
 		return -EAGAIN;
 		return -EAGAIN;