<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/net/amt.c, branch v6.6.131</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v6.6.131</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v6.6.131'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2024-01-25T23:35:56+00:00</updated>
<entry>
<title>amt: do not use overwrapped cb area</title>
<updated>2024-01-25T23:35:56+00:00</updated>
<author>
<name>Taehee Yoo</name>
<email>ap420073@gmail.com</email>
</author>
<published>2024-01-07T14:42:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=05f7e34647d292ec0d35ef9c2d78af933f379a7c'/>
<id>urn:sha1:05f7e34647d292ec0d35ef9c2d78af933f379a7c</id>
<content type='text'>
[ Upstream commit bec161add35b478a7746bf58bcdea6faa19129ef ]

amt driver uses skb-&gt;cb for storing tunnel information.
This job is worked before TC layer and then amt driver load tunnel info
from skb-&gt;cb after TC layer.
So, its cb area should not be overwrapped with CB area used by TC.
In order to not use cb area used by TC, it skips the biggest cb
structure used by TC, which was qdisc_skb_cb.
But it's not anymore.
Currently, biggest structure of TC's CB is tc_skb_cb.
So, it should skip size of tc_skb_cb instead of qdisc_skb_cb.

Fixes: ec624fe740b4 ("net/sched: Extend qdisc control block with tc control block")
Signed-off-by: Taehee Yoo &lt;ap420073@gmail.com&gt;
Acked-by: Paolo Abeni &lt;pabeni@redhat.com&gt;
Reviewed-by: Jamal Hadi Salim &lt;jhs@mojatatu.com&gt;
Link: https://lore.kernel.org/r/20240107144241.4169520-1-ap420073@gmail.com
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>amt: remove unnecessary skb pointer check</title>
<updated>2022-08-19T23:51:21+00:00</updated>
<author>
<name>Yang Yingliang</name>
<email>yangyingliang@huawei.com</email>
</author>
<published>2022-08-18T09:31:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=6745bc9b0351525e80cc7578e8ce22f83cfa3a84'/>
<id>urn:sha1:6745bc9b0351525e80cc7578e8ce22f83cfa3a84</id>
<content type='text'>
The skb pointer will be checked in kfree_skb(), so remove the outside check.

Signed-off-by: Yang Yingliang &lt;yangyingliang@huawei.com&gt;
Reviewed-by: Taehee Yoo &lt;ap420073@gmail.com&gt;
Link: https://lore.kernel.org/r/20220818093114.2449179-1-yangyingliang@huawei.com
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>amt: fix typo in comment</title>
<updated>2022-07-29T05:21:51+00:00</updated>
<author>
<name>Ruffalo Lavoisier</name>
<email>RuffaloLavoisier@gmail.com</email>
</author>
<published>2022-07-28T03:28:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=39befe3a43a5856b36de4e880804b9b110dd2885'/>
<id>urn:sha1:39befe3a43a5856b36de4e880804b9b110dd2885</id>
<content type='text'>
Correct spelling on 'non-existent' in comment

Signed-off-by: Ruffalo Lavoisier &lt;RuffaloLavoisier@gmail.com&gt;
Link: https://lore.kernel.org/r/20220728032854.151180-1-RuffaloLavoisier@gmail.com
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net</title>
<updated>2022-07-21T20:03:39+00:00</updated>
<author>
<name>Jakub Kicinski</name>
<email>kuba@kernel.org</email>
</author>
<published>2022-07-21T20:03:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=6e0e846ee2ab01bc44254e6a0a6a6a0db1cba16d'/>
<id>urn:sha1:6e0e846ee2ab01bc44254e6a0a6a6a0db1cba16d</id>
<content type='text'>
No conflicts.

Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>amt: do not use amt-&gt;nr_tunnels outside of lock</title>
<updated>2022-07-19T10:37:02+00:00</updated>
<author>
<name>Taehee Yoo</name>
<email>ap420073@gmail.com</email>
</author>
<published>2022-07-17T16:09:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=989918482bbccbbce3ba2bb9156eb4c193319983'/>
<id>urn:sha1:989918482bbccbbce3ba2bb9156eb4c193319983</id>
<content type='text'>
amt-&gt;nr_tunnels is protected by amt-&gt;lock.
But, amt_request_handler() has been using this variable without the
amt-&gt;lock.
So, it expands context of amt-&gt;lock in the amt_request_handler() to
protect amt-&gt;nr_tunnels variable.

Fixes: cbc21dc1cfe9 ("amt: add data plane of amt interface")
Signed-off-by: Taehee Yoo &lt;ap420073@gmail.com&gt;
Signed-off-by: Paolo Abeni &lt;pabeni@redhat.com&gt;
</content>
</entry>
<entry>
<title>amt: drop unexpected multicast data</title>
<updated>2022-07-19T10:37:02+00:00</updated>
<author>
<name>Taehee Yoo</name>
<email>ap420073@gmail.com</email>
</author>
<published>2022-07-17T16:09:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=e882827d5b8942a27b4d28548aa27562a3a7e94c'/>
<id>urn:sha1:e882827d5b8942a27b4d28548aa27562a3a7e94c</id>
<content type='text'>
AMT gateway interface should not receive unexpected multicast data.
Multicast data message type should be received after sending an update
message, which means all establishment between gateway and relay is
finished.
So, amt_multicast_data_handler() checks amt-&gt;status.

Fixes: cbc21dc1cfe9 ("amt: add data plane of amt interface")
Signed-off-by: Taehee Yoo &lt;ap420073@gmail.com&gt;
Signed-off-by: Paolo Abeni &lt;pabeni@redhat.com&gt;
</content>
</entry>
<entry>
<title>amt: drop unexpected query message</title>
<updated>2022-07-19T10:37:02+00:00</updated>
<author>
<name>Taehee Yoo</name>
<email>ap420073@gmail.com</email>
</author>
<published>2022-07-17T16:09:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=239d886601e38d948a28f3b2a1c9ce5f01bf75f2'/>
<id>urn:sha1:239d886601e38d948a28f3b2a1c9ce5f01bf75f2</id>
<content type='text'>
AMT gateway interface should not receive unexpected query messages.
In order to drop unexpected query messages, it checks nonce.
And it also checks ready4 and ready6 variables to drop duplicated messages.

Fixes: cbc21dc1cfe9 ("amt: add data plane of amt interface")
Signed-off-by: Taehee Yoo &lt;ap420073@gmail.com&gt;
Signed-off-by: Paolo Abeni &lt;pabeni@redhat.com&gt;
</content>
</entry>
<entry>
<title>amt: drop unexpected advertisement message</title>
<updated>2022-07-19T10:37:02+00:00</updated>
<author>
<name>Taehee Yoo</name>
<email>ap420073@gmail.com</email>
</author>
<published>2022-07-17T16:09:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=40185f359fbabaa61da754cc29d12f3a41e0a987'/>
<id>urn:sha1:40185f359fbabaa61da754cc29d12f3a41e0a987</id>
<content type='text'>
AMT gateway interface should not receive unexpected advertisement messages.
In order to drop these packets, it should check nonce and amt-&gt;status.

Fixes: cbc21dc1cfe9 ("amt: add data plane of amt interface")
Signed-off-by: Taehee Yoo &lt;ap420073@gmail.com&gt;
Signed-off-by: Paolo Abeni &lt;pabeni@redhat.com&gt;
</content>
</entry>
<entry>
<title>amt: add missing regeneration nonce logic in request logic</title>
<updated>2022-07-19T10:37:02+00:00</updated>
<author>
<name>Taehee Yoo</name>
<email>ap420073@gmail.com</email>
</author>
<published>2022-07-17T16:09:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=627f16931bf3cb20d50274d9341380ac2c3035fd'/>
<id>urn:sha1:627f16931bf3cb20d50274d9341380ac2c3035fd</id>
<content type='text'>
When AMT gateway starts sending a new request message, it should
regenerate the nonce variable.

Fixes: cbc21dc1cfe9 ("amt: add data plane of amt interface")
Signed-off-by: Taehee Yoo &lt;ap420073@gmail.com&gt;
Signed-off-by: Paolo Abeni &lt;pabeni@redhat.com&gt;
</content>
</entry>
<entry>
<title>amt: use READ_ONCE() in amt module</title>
<updated>2022-07-19T10:37:02+00:00</updated>
<author>
<name>Taehee Yoo</name>
<email>ap420073@gmail.com</email>
</author>
<published>2022-07-17T16:09:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=928f353cb8672f0d6078aad75eeec0ed33875b12'/>
<id>urn:sha1:928f353cb8672f0d6078aad75eeec0ed33875b12</id>
<content type='text'>
There are some data races in the amt module.
amt-&gt;ready4, amt-&gt;ready6, and amt-&gt;status can be accessed concurrently
without locks.
So, it uses READ_ONCE() and WRITE_ONCE().

Fixes: cbc21dc1cfe9 ("amt: add data plane of amt interface")
Signed-off-by: Taehee Yoo &lt;ap420073@gmail.com&gt;
Signed-off-by: Paolo Abeni &lt;pabeni@redhat.com&gt;
</content>
</entry>
</feed>
