All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 94791] New: syscall fanotify_mark overflow.
@ 2015-03-12  9:40 bugzilla-daemon
  2015-11-24 16:14 ` [Bug 94791] " bugzilla-daemon
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: bugzilla-daemon @ 2015-03-12  9:40 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=94791

            Bug ID: 94791
           Summary: syscall fanotify_mark overflow.
           Product: File System
           Version: 2.5
    Kernel Version: 4.x
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: ext4
          Assignee: fs_ext4@kernel-bugs.osdl.org
          Reporter: du.guowei2@zte.com.cn
        Regression: No

file:
     fanotify_usr.c:
     syscall function fanotify_mark,below code will overflow on 32-bit system.

/* we only use the lower 32 bits as of right now. */
if ( mask & ((__u64)0xffffffff << 32))
        return -EINVAL;


include/linux/syscalls.h:
 asmlinkage long sys_fanotify_mark(int fanotify_fd, unsigned int flags, u64
mask, int fd, const char __usr *pathname);


u64 mask ,should convert to unsigned int mask???

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug 94791] syscall fanotify_mark overflow.
  2015-03-12  9:40 [Bug 94791] New: syscall fanotify_mark overflow bugzilla-daemon
@ 2015-11-24 16:14 ` bugzilla-daemon
  2015-12-01 11:07 ` bugzilla-daemon
  2015-12-01 14:08 ` bugzilla-daemon
  2 siblings, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2015-11-24 16:14 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=94791

Tim Pickersgill <tim.pickersgill@sophos.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tim.pickersgill@sophos.com

--- Comment #1 from Tim Pickersgill <tim.pickersgill@sophos.com> ---
A __u64 value is an unsigned long long, a 64-bit integer, regardless of system
bitness. Not sure how/why this would overflow on a 32-bit system. What symptoms
are you seeing?

We're using fanotify_mark() on 32-bit systems without seeing any issue here.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug 94791] syscall fanotify_mark overflow.
  2015-03-12  9:40 [Bug 94791] New: syscall fanotify_mark overflow bugzilla-daemon
  2015-11-24 16:14 ` [Bug 94791] " bugzilla-daemon
@ 2015-12-01 11:07 ` bugzilla-daemon
  2015-12-01 14:08 ` bugzilla-daemon
  2 siblings, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2015-12-01 11:07 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=94791

--- Comment #2 from Tim Pickersgill <tim.pickersgill@sophos.com> ---
Not an ext4 issue, I'd suggest that this be reclassified as "Other" and
assigned to "fs_other@kernel-bugs.osdl.org" or Eric Paris (eparis@redhat.com)

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug 94791] syscall fanotify_mark overflow.
  2015-03-12  9:40 [Bug 94791] New: syscall fanotify_mark overflow bugzilla-daemon
  2015-11-24 16:14 ` [Bug 94791] " bugzilla-daemon
  2015-12-01 11:07 ` bugzilla-daemon
@ 2015-12-01 14:08 ` bugzilla-daemon
  2 siblings, 0 replies; 4+ messages in thread
From: bugzilla-daemon @ 2015-12-01 14:08 UTC (permalink / raw)
  To: linux-ext4

https://bugzilla.kernel.org/show_bug.cgi?id=94791

--- Comment #3 from Tim Pickersgill <tim.pickersgill@sophos.com> ---
Tinkering with Eric Paris's fanotify-example
(http://git.infradead.org/users/eparis/fanotify-example.git), to forcibly set
higher bits in the mask passed to fanotify_mark(), the call correctly returns
-EINVAL on both 32- and 64-bit kernels.

Suggest this bug should be rejected unless a failing example can be provided.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-12-01 14:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-12  9:40 [Bug 94791] New: syscall fanotify_mark overflow bugzilla-daemon
2015-11-24 16:14 ` [Bug 94791] " bugzilla-daemon
2015-12-01 11:07 ` bugzilla-daemon
2015-12-01 14:08 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.