[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <164538.1479522162@turing-police.cc.vt.edu>
Date: Fri, 18 Nov 2016 21:22:42 -0500
From: Valdis.Kletnieks@...edu
To: Dmitry Vyukov <dvyukov@...gle.com>
Cc: dledford@...hat.com, sean.hefty@...el.com,
hal.rosenstock@...il.com, leon@...nel.org,
linux-rdma@...r.kernel.org, linux-kernel@...r.kernel.org,
syzkaller@...glegroups.com
Subject: Re: [PATCH] infiniband: remove WARN that is not kernel bug
On Fri, 18 Nov 2016 12:24:37 +0100, Dmitry Vyukov said:
> WARNINGs mean kernel bugs.
> The one in ucma_write() points to user programming error
> or a malicious attempt. This is not a kernel bug, remove it.
> - if (WARN_ON_ONCE(!ib_safe_file_access(filp)))
> + if (!ib_safe_file_access(filp))
> return -EACCES;
In that case, wouldn't this be better?
if (!ib_safe_file_access(filp)) {
printk_once("Process %d (%s) tried to do something hinky", pid, comm);
return _EACCESS;
}
so the sysadmin becomes aware of the malicious attempt?
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists