<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/net/nfc, branch v3.7.3</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>NFC: Fix nfc_llcp_local chained list insertion</title>
<updated>2012-11-19T23:09:25+00:00</updated>
<author>
<name>Thierry Escande</name>
<email>thierry.escande@linux.intel.com</email>
</author>
<published>2012-10-12T13:25:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=16a78e9fed5e8baa8480ae3413f4328c4537c599'/>
<id>16a78e9fed5e8baa8480ae3413f4328c4537c599</id>
<content type='text'>
list_add was called with swapped parameters

Signed-off-by: Thierry Escande &lt;thierry.escande@linux.intel.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
list_add was called with swapped parameters

Signed-off-by: Thierry Escande &lt;thierry.escande@linux.intel.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove noisy printks from llcp_sock_connect</title>
<updated>2012-10-04T19:58:47+00:00</updated>
<author>
<name>Dave Jones</name>
<email>davej@redhat.com</email>
</author>
<published>2012-10-04T09:51:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=32418cfe495c95013be2e805c087db89dcefac6d'/>
<id>32418cfe495c95013be2e805c087db89dcefac6d</id>
<content type='text'>
Validation of userspace input shouldn't trigger dmesg spamming.

Signed-off-by: Dave Jones &lt;davej@redhat.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Validation of userspace input shouldn't trigger dmesg spamming.

Signed-off-by: Dave Jones &lt;davej@redhat.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>workqueue: avoid using deprecated functions</title>
<updated>2012-10-02T23:01:31+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2012-10-02T23:01:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=916082b073ebb7f4e064cebce0768e34cacde508'/>
<id>916082b073ebb7f4e064cebce0768e34cacde508</id>
<content type='text'>
The network merge brought in a few users of functions that got
deprecated by the workqueue cleanups: the 'system_nrt_wq' is now the
same as the regular system_wq, since all workqueues are now non-
reentrant.

Similarly, remove one use of flush_work_sync() - the regular
flush_work() has become synchronous, and the "_sync()" version is thus
deprecated as being superfluous.

Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The network merge brought in a few users of functions that got
deprecated by the workqueue cleanups: the 'system_nrt_wq' is now the
same as the regular system_wq, since all workqueues are now non-
reentrant.

Similarly, remove one use of flush_work_sync() - the regular
flush_work() has become synchronous, and the "_sync()" version is thus
deprecated as being superfluous.

Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem</title>
<updated>2012-09-28T15:11:16+00:00</updated>
<author>
<name>John W. Linville</name>
<email>linville@tuxdriver.com</email>
</author>
<published>2012-09-28T15:11:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=c487606f835a93a725bac1aefd536be98f22474d'/>
<id>c487606f835a93a725bac1aefd536be98f22474d</id>
<content type='text'>
Conflicts:
	net/nfc/netlink.c

Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Conflicts:
	net/nfc/netlink.c

Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>NFC: Fix sleeping in atomic when releasing socket</title>
<updated>2012-09-27T08:52:22+00:00</updated>
<author>
<name>Szymon Janc</name>
<email>szymon.janc@tieto.com</email>
</author>
<published>2012-09-26T12:22:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=50b78b2a6500d0e97c204c1b6c51df8c17358bbe'/>
<id>50b78b2a6500d0e97c204c1b6c51df8c17358bbe</id>
<content type='text'>
nfc_llcp_socket_release is calling lock_sock/release_sock while holding
write lock for rwlock. Use bh_lock/unlock_sock instead.

BUG: sleeping function called from invalid context at net/core/sock.c:2138
in_atomic(): 1, irqs_disabled(): 0, pid: 56, name: kworker/1:1
4 locks held by kworker/1:1/56:
Pid: 56, comm: kworker/1:1 Not tainted 3.5.0-999-nfc+ #7
Call Trace:
[&lt;ffffffff810952c5&gt;] __might_sleep+0x145/0x200
[&lt;ffffffff815d7686&gt;] lock_sock_nested+0x36/0xa0
[&lt;ffffffff81731569&gt;] ? _raw_write_lock+0x49/0x50
[&lt;ffffffffa04aa100&gt;] ? nfc_llcp_socket_release+0x30/0x200 [nfc]
[&lt;ffffffffa04aa122&gt;] nfc_llcp_socket_release+0x52/0x200 [nfc]
[&lt;ffffffffa04ab9f0&gt;] nfc_llcp_mac_is_down+0x20/0x30 [nfc]
[&lt;ffffffffa04a6fea&gt;] nfc_dep_link_down+0xaa/0xf0 [nfc]
[&lt;ffffffffa04a9bb5&gt;] nfc_llcp_timeout_work+0x15/0x20 [nfc]
[&lt;ffffffff810825f7&gt;] process_one_work+0x197/0x7c0
[&lt;ffffffff81082596&gt;] ? process_one_work+0x136/0x7c0
[&lt;ffffffff8172fbc9&gt;] ? __schedule+0x419/0x9c0
[&lt;ffffffffa04a9ba0&gt;] ? nfc_llcp_build_gb+0x1b0/0x1b0 [nfc]
[&lt;ffffffff81083090&gt;] worker_thread+0x190/0x4c0
[&lt;ffffffff81082f00&gt;] ? rescuer_thread+0x2a0/0x2a0
[&lt;ffffffff81088d1e&gt;] kthread+0xae/0xc0
[&lt;ffffffff810caafd&gt;] ? trace_hardirqs_on+0xd/0x10
[&lt;ffffffff8173acc4&gt;] kernel_thread_helper+0x4/0x10
[&lt;ffffffff81732174&gt;] ? retint_restore_args+0x13/0x13
[&lt;ffffffff81088c70&gt;] ? flush_kthread_worker+0x150/0x150
[&lt;ffffffff8173acc0&gt;] ? gs_change+0x13/0x13

Signed-off-by: Szymon Janc &lt;szymon.janc@tieto.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
nfc_llcp_socket_release is calling lock_sock/release_sock while holding
write lock for rwlock. Use bh_lock/unlock_sock instead.

BUG: sleeping function called from invalid context at net/core/sock.c:2138
in_atomic(): 1, irqs_disabled(): 0, pid: 56, name: kworker/1:1
4 locks held by kworker/1:1/56:
Pid: 56, comm: kworker/1:1 Not tainted 3.5.0-999-nfc+ #7
Call Trace:
[&lt;ffffffff810952c5&gt;] __might_sleep+0x145/0x200
[&lt;ffffffff815d7686&gt;] lock_sock_nested+0x36/0xa0
[&lt;ffffffff81731569&gt;] ? _raw_write_lock+0x49/0x50
[&lt;ffffffffa04aa100&gt;] ? nfc_llcp_socket_release+0x30/0x200 [nfc]
[&lt;ffffffffa04aa122&gt;] nfc_llcp_socket_release+0x52/0x200 [nfc]
[&lt;ffffffffa04ab9f0&gt;] nfc_llcp_mac_is_down+0x20/0x30 [nfc]
[&lt;ffffffffa04a6fea&gt;] nfc_dep_link_down+0xaa/0xf0 [nfc]
[&lt;ffffffffa04a9bb5&gt;] nfc_llcp_timeout_work+0x15/0x20 [nfc]
[&lt;ffffffff810825f7&gt;] process_one_work+0x197/0x7c0
[&lt;ffffffff81082596&gt;] ? process_one_work+0x136/0x7c0
[&lt;ffffffff8172fbc9&gt;] ? __schedule+0x419/0x9c0
[&lt;ffffffffa04a9ba0&gt;] ? nfc_llcp_build_gb+0x1b0/0x1b0 [nfc]
[&lt;ffffffff81083090&gt;] worker_thread+0x190/0x4c0
[&lt;ffffffff81082f00&gt;] ? rescuer_thread+0x2a0/0x2a0
[&lt;ffffffff81088d1e&gt;] kthread+0xae/0xc0
[&lt;ffffffff810caafd&gt;] ? trace_hardirqs_on+0xd/0x10
[&lt;ffffffff8173acc4&gt;] kernel_thread_helper+0x4/0x10
[&lt;ffffffff81732174&gt;] ? retint_restore_args+0x13/0x13
[&lt;ffffffff81088c70&gt;] ? flush_kthread_worker+0x150/0x150
[&lt;ffffffff8173acc0&gt;] ? gs_change+0x13/0x13

Signed-off-by: Szymon Janc &lt;szymon.janc@tieto.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>NFC: Fix sleeping in invalid context when netlink socket is closed</title>
<updated>2012-09-27T08:52:17+00:00</updated>
<author>
<name>Szymon Janc</name>
<email>szymon.janc@tieto.com</email>
</author>
<published>2012-09-26T12:17:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=3c0cc8aa23f4b53446bbf385d4647eec6992a2cb'/>
<id>3c0cc8aa23f4b53446bbf385d4647eec6992a2cb</id>
<content type='text'>
netlink_register_notifier requires notify functions to not sleep.
nfc_stop_poll locks device mutex and must not be called from notifier.
Create workqueue that will handle this for all devices.

BUG: sleeping function called from invalid context at kernel/mutex.c:269
in_atomic(): 0, irqs_disabled(): 0, pid: 4497, name: neard
1 lock held by neard/4497:
Pid: 4497, comm: neard Not tainted 3.5.0-999-nfc+ #5
Call Trace:
[&lt;ffffffff810952c5&gt;] __might_sleep+0x145/0x200
[&lt;ffffffff81743dde&gt;] mutex_lock_nested+0x2e/0x50
[&lt;ffffffff816ffd19&gt;] nfc_stop_poll+0x39/0xb0
[&lt;ffffffff81700a17&gt;] nfc_genl_rcv_nl_event+0x77/0xc0
[&lt;ffffffff8174aa8c&gt;] notifier_call_chain+0x5c/0x120
[&lt;ffffffff8174abd6&gt;] __atomic_notifier_call_chain+0x86/0x140
[&lt;ffffffff8174ab50&gt;] ? notifier_call_chain+0x120/0x120
[&lt;ffffffff815e1347&gt;] ? skb_dequeue+0x67/0x90
[&lt;ffffffff8174aca6&gt;] atomic_notifier_call_chain+0x16/0x20
[&lt;ffffffff8162119a&gt;] netlink_release+0x24a/0x280
[&lt;ffffffff815d7aa8&gt;] sock_release+0x28/0xa0
[&lt;ffffffff815d7be7&gt;] sock_close+0x17/0x30
[&lt;ffffffff811b2a7c&gt;] __fput+0xcc/0x250
[&lt;ffffffff811b2c0e&gt;] ____fput+0xe/0x10
[&lt;ffffffff81085009&gt;] task_work_run+0x69/0x90
[&lt;ffffffff8101b951&gt;] do_notify_resume+0x81/0xd0
[&lt;ffffffff8174ef22&gt;] int_signal+0x12/0x17

Signed-off-by: Szymon Janc &lt;szymon.janc@tieto.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
netlink_register_notifier requires notify functions to not sleep.
nfc_stop_poll locks device mutex and must not be called from notifier.
Create workqueue that will handle this for all devices.

BUG: sleeping function called from invalid context at kernel/mutex.c:269
in_atomic(): 0, irqs_disabled(): 0, pid: 4497, name: neard
1 lock held by neard/4497:
Pid: 4497, comm: neard Not tainted 3.5.0-999-nfc+ #5
Call Trace:
[&lt;ffffffff810952c5&gt;] __might_sleep+0x145/0x200
[&lt;ffffffff81743dde&gt;] mutex_lock_nested+0x2e/0x50
[&lt;ffffffff816ffd19&gt;] nfc_stop_poll+0x39/0xb0
[&lt;ffffffff81700a17&gt;] nfc_genl_rcv_nl_event+0x77/0xc0
[&lt;ffffffff8174aa8c&gt;] notifier_call_chain+0x5c/0x120
[&lt;ffffffff8174abd6&gt;] __atomic_notifier_call_chain+0x86/0x140
[&lt;ffffffff8174ab50&gt;] ? notifier_call_chain+0x120/0x120
[&lt;ffffffff815e1347&gt;] ? skb_dequeue+0x67/0x90
[&lt;ffffffff8174aca6&gt;] atomic_notifier_call_chain+0x16/0x20
[&lt;ffffffff8162119a&gt;] netlink_release+0x24a/0x280
[&lt;ffffffff815d7aa8&gt;] sock_release+0x28/0xa0
[&lt;ffffffff815d7be7&gt;] sock_close+0x17/0x30
[&lt;ffffffff811b2a7c&gt;] __fput+0xcc/0x250
[&lt;ffffffff811b2c0e&gt;] ____fput+0xe/0x10
[&lt;ffffffff81085009&gt;] task_work_run+0x69/0x90
[&lt;ffffffff8101b951&gt;] do_notify_resume+0x81/0xd0
[&lt;ffffffff8174ef22&gt;] int_signal+0x12/0x17

Signed-off-by: Szymon Janc &lt;szymon.janc@tieto.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>NFC: Add dummy nfc_llc_shdlc_register definition</title>
<updated>2012-09-27T08:48:08+00:00</updated>
<author>
<name>John W. Linville</name>
<email>linville@tuxdriver.com</email>
</author>
<published>2012-09-26T17:39:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=7d777c3d95a18ae42473c63104d87ad080885094'/>
<id>7d777c3d95a18ae42473c63104d87ad080885094</id>
<content type='text'>
This is used when CONFIG_NFC_SHDLC is disabled.

Reported-by: Randy Dunlap &lt;rdunlap@xenotime.net&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is used when CONFIG_NFC_SHDLC is disabled.

Reported-by: Randy Dunlap &lt;rdunlap@xenotime.net&gt;
Signed-off-by: John W. Linville &lt;linville@tuxdriver.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>NFC: LLCP raw socket support</title>
<updated>2012-09-27T08:47:59+00:00</updated>
<author>
<name>Thierry Escande</name>
<email>thierry.escande@linux.intel.com</email>
</author>
<published>2012-09-26T16:16:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=4463523bef98ff827a89cf8219db7dfac4350241'/>
<id>4463523bef98ff827a89cf8219db7dfac4350241</id>
<content type='text'>
This adds support for socket of type SOCK_RAW to LLCP.
sk_buff are copied and sent to raw sockets with a 2 bytes extra header:
The first byte header contains the nfc adapter index.
The second one contains flags:
- 0x01 - Direction (0=RX, 1=TX)
- 0x02-0x80 - Reserved
A raw socket has to be explicitly bound to a nfc adapter. This is achieved
by specifying the adapter index to be bound to in the dev_idx field of the
sockaddr_nfc_llcp struct passed to bind().

Signed-off-by: Thierry Escande &lt;thierry.escande@linux.intel.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This adds support for socket of type SOCK_RAW to LLCP.
sk_buff are copied and sent to raw sockets with a 2 bytes extra header:
The first byte header contains the nfc adapter index.
The second one contains flags:
- 0x01 - Direction (0=RX, 1=TX)
- 0x02-0x80 - Reserved
A raw socket has to be explicitly bound to a nfc adapter. This is achieved
by specifying the adapter index to be bound to in the dev_idx field of the
sockaddr_nfc_llcp struct passed to bind().

Signed-off-by: Thierry Escande &lt;thierry.escande@linux.intel.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>NFC: Use dynamic initialization for rwlocks</title>
<updated>2012-09-27T08:47:03+00:00</updated>
<author>
<name>Szymon Janc</name>
<email>szymon.janc@tieto.com</email>
</author>
<published>2012-09-25T10:42:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=fe235b58d517d623bf6d40c77afca1b0ee6fc85d'/>
<id>fe235b58d517d623bf6d40c77afca1b0ee6fc85d</id>
<content type='text'>
If rwlock is dynamically allocated but statically initialized it is
missing proper lockdep annotation.

INFO: trying to register non-static key.
the code is fine but needs lockdep annotation.
turning off the locking correctness validator.
Pid: 3352, comm: neard Not tainted 3.5.0-999-nfc+ #2
Call Trace:
[&lt;ffffffff810c8526&gt;] __lock_acquire+0x8f6/0x1bf0
[&lt;ffffffff81739045&gt;] ? printk+0x4d/0x4f
[&lt;ffffffff810c9eed&gt;] lock_acquire+0x9d/0x220
[&lt;ffffffff81702bfe&gt;] ? nfc_llcp_sock_from_sn+0x4e/0x160
[&lt;ffffffff81746724&gt;] _raw_read_lock+0x44/0x60
[&lt;ffffffff81702bfe&gt;] ? nfc_llcp_sock_from_sn+0x4e/0x160
[&lt;ffffffff81702bfe&gt;] nfc_llcp_sock_from_sn+0x4e/0x160
[&lt;ffffffff817034a7&gt;] nfc_llcp_get_sdp_ssap+0xa7/0x1b0
[&lt;ffffffff81706353&gt;] llcp_sock_bind+0x173/0x210
[&lt;ffffffff815d9c94&gt;] sys_bind+0xe4/0x100
[&lt;ffffffff8139209e&gt;] ? trace_hardirqs_on_thunk+0x3a/0x3f
[&lt;ffffffff8174ea69&gt;] system_call_fastpath+0x16/0x1b

Signed-off-by: Szymon Janc &lt;szymon.janc@tieto.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If rwlock is dynamically allocated but statically initialized it is
missing proper lockdep annotation.

INFO: trying to register non-static key.
the code is fine but needs lockdep annotation.
turning off the locking correctness validator.
Pid: 3352, comm: neard Not tainted 3.5.0-999-nfc+ #2
Call Trace:
[&lt;ffffffff810c8526&gt;] __lock_acquire+0x8f6/0x1bf0
[&lt;ffffffff81739045&gt;] ? printk+0x4d/0x4f
[&lt;ffffffff810c9eed&gt;] lock_acquire+0x9d/0x220
[&lt;ffffffff81702bfe&gt;] ? nfc_llcp_sock_from_sn+0x4e/0x160
[&lt;ffffffff81746724&gt;] _raw_read_lock+0x44/0x60
[&lt;ffffffff81702bfe&gt;] ? nfc_llcp_sock_from_sn+0x4e/0x160
[&lt;ffffffff81702bfe&gt;] nfc_llcp_sock_from_sn+0x4e/0x160
[&lt;ffffffff817034a7&gt;] nfc_llcp_get_sdp_ssap+0xa7/0x1b0
[&lt;ffffffff81706353&gt;] llcp_sock_bind+0x173/0x210
[&lt;ffffffff815d9c94&gt;] sys_bind+0xe4/0x100
[&lt;ffffffff8139209e&gt;] ? trace_hardirqs_on_thunk+0x3a/0x3f
[&lt;ffffffff8174ea69&gt;] system_call_fastpath+0x16/0x1b

Signed-off-by: Szymon Janc &lt;szymon.janc@tieto.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>NFC: Fix typo negociating -&gt; negotiating</title>
<updated>2012-09-24T22:17:28+00:00</updated>
<author>
<name>Waldemar Rymarkiewicz</name>
<email>waldemar.rymarkiewicz@tieto.com</email>
</author>
<published>2012-09-24T06:07:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=4c0ba9ac4bf5f20ada774f5d181d03044e0147e7'/>
<id>4c0ba9ac4bf5f20ada774f5d181d03044e0147e7</id>
<content type='text'>
Signed-off-by: Waldemar Rymarkiewicz &lt;waldemar.rymarkiewicz@tieto.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Waldemar Rymarkiewicz &lt;waldemar.rymarkiewicz@tieto.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@linux.intel.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
