From: Russell King - ARM Linux <linux@armlinux.org.uk>
To: Nathan Jones <nathanj439@gmail.com>
Cc: vladimir.murzin@arm.com, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2] ARM: dma-mapping: fix potential uninitialized return
Date: Thu, 29 Nov 2018 15:24:08 +0000 [thread overview]
Message-ID: <20181129152408.GX30658@n2100.armlinux.org.uk> (raw)
In-Reply-To: <CACTmSTzQeJiR8S57zYcu+YWbnMdo9Eb9Bei4gfmHyFOrzoWiZw@mail.gmail.com>
On Thu, Nov 29, 2018 at 09:58:46AM -0500, Nathan Jones wrote:
> No, I had some bad code which was passing a wrong length and receiving the
> strange error code.
While adding some networking documentation, I tripped over the comments
at the bottom of Documentation/networking/netdev-FAQ.rst which seem
very good at guiding what should be in the commit message, specifically:
If your change is a bug fix, make sure your commit log indicates the
end-user visible symptom, the underlying reason as to why it happens,
and then if necessary, explain why the fix proposed is the best way to
get things done.
This is actually rather important, as we may need to look back at a
commit, and end up wondering what it was about. A case in point is the
patch that added the /proc/<PID>/syscall interface:
/proc/PID/syscall
This adds /proc/PID/syscall and /proc/PID/task/TID/syscall magic files.
These use task_current_syscall() to show the task's current system call
number and argument registers, stack pointer and PC. For a task blocked
but not in a syscall, the file shows "-1" in place of the syscall number,
followed by only the SP and PC. For a task that's not blocked, it shows
"running".
This doesn't say what the purpose of this new user interface is, why it
is needed, nor is there documentation describing its behaviour (such as
what happens if the thread is being traced.) The covering message for
the series omitted to talk about this new interface. So we're now at
the position where we have a bug reported against this interface, and
no one knows what the right behaviour is really supposed to be.
The commit message describes mostly what we can gather from reading the
patch, and some of the behaviour but is entirely insufficient - we're
left scratching our heads as to what the behaviour should be for
restarted syscalls.
So, augmenting your commit message with something like:
"While trying to use the dma_mmap_*() interface, it was noticed that
this interface returns strange values when passed an incorrect
length."
would be nice.
Thanks.
--
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up
According to speedtest.net: 11.9Mbps down 500kbps up
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2018-11-29 15:24 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-28 17:39 [PATCH] ARM: dma-mapping: fix potential uninitialized return Nathan Jones
2018-11-28 17:47 ` Russell King - ARM Linux
2018-11-28 18:59 ` [PATCH v2] " Nathan Jones
2018-11-29 9:50 ` Vladimir Murzin
2018-11-29 10:11 ` Vladimir Murzin
2018-11-29 10:22 ` Russell King - ARM Linux
2018-11-29 16:26 ` Christoph Hellwig
2018-11-29 10:14 ` Russell King - ARM Linux
2018-11-29 14:58 ` Nathan Jones
2018-11-29 15:24 ` Russell King - ARM Linux [this message]
2018-11-30 9:00 ` Vladimir Murzin
2018-11-29 15:17 ` Robin Murphy
2018-11-30 13:07 ` [PATCH v3] " Nathan Jones
2018-12-04 9:09 ` Vladimir Murzin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181129152408.GX30658@n2100.armlinux.org.uk \
--to=linux@armlinux.org.uk \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=nathanj439@gmail.com \
--cc=vladimir.murzin@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.