<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/fs/befs/btree.c, branch v7.2-rc5</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>treewide: Replace kmalloc with kmalloc_obj for non-scalar types</title>
<updated>2026-02-21T09:02:28+00:00</updated>
<author>
<name>Kees Cook</name>
<email>kees@kernel.org</email>
</author>
<published>2026-02-21T07:49:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=69050f8d6d075dc01af7a5f2f550a8067510366f'/>
<id>69050f8d6d075dc01af7a5f2f550a8067510366f</id>
<content type='text'>
This is the result of running the Coccinelle script from
scripts/coccinelle/api/kmalloc_objs.cocci. The script is designed to
avoid scalar types (which need careful case-by-case checking), and
instead replace kmalloc-family calls that allocate struct or union
object instances:

Single allocations:	kmalloc(sizeof(TYPE), ...)
are replaced with:	kmalloc_obj(TYPE, ...)

Array allocations:	kmalloc_array(COUNT, sizeof(TYPE), ...)
are replaced with:	kmalloc_objs(TYPE, COUNT, ...)

Flex array allocations:	kmalloc(struct_size(PTR, FAM, COUNT), ...)
are replaced with:	kmalloc_flex(*PTR, FAM, COUNT, ...)

(where TYPE may also be *VAR)

The resulting allocations no longer return "void *", instead returning
"TYPE *".

Signed-off-by: Kees Cook &lt;kees@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is the result of running the Coccinelle script from
scripts/coccinelle/api/kmalloc_objs.cocci. The script is designed to
avoid scalar types (which need careful case-by-case checking), and
instead replace kmalloc-family calls that allocate struct or union
object instances:

Single allocations:	kmalloc(sizeof(TYPE), ...)
are replaced with:	kmalloc_obj(TYPE, ...)

Array allocations:	kmalloc_array(COUNT, sizeof(TYPE), ...)
are replaced with:	kmalloc_objs(TYPE, COUNT, ...)

Flex array allocations:	kmalloc(struct_size(PTR, FAM, COUNT), ...)
are replaced with:	kmalloc_flex(*PTR, FAM, COUNT, ...)

(where TYPE may also be *VAR)

The resulting allocations no longer return "void *", instead returning
"TYPE *".

Signed-off-by: Kees Cook &lt;kees@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>befs: Replace all non-returning strlcpy with strscpy</title>
<updated>2023-05-30T23:42:00+00:00</updated>
<author>
<name>Azeem Shaikh</name>
<email>azeemshaikh38@gmail.com</email>
</author>
<published>2023-05-09T01:41:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=7391928025f28cd4cab43e59d2b4e36509b9337e'/>
<id>7391928025f28cd4cab43e59d2b4e36509b9337e</id>
<content type='text'>
strlcpy() reads the entire source buffer first.
This read may exceed the destination size limit.
This is both inefficient and can lead to linear read
overflows if a source string is not NUL-terminated.
In an effort to remove strlcpy() completely, replace
strlcpy() here with strscpy().
No return values were used, so direct replacement is safe.

[1] https://www.kernel.org/doc/html/latest/process/deprecated.html#strlcpy
[2] https://github.com/KSPP/linux/issues/89

Signed-off-by: Azeem Shaikh &lt;azeemshaikh38@gmail.com&gt;
Signed-off-by: Kees Cook &lt;keescook@chromium.org&gt;
Link: https://lore.kernel.org/r/20230509014136.2095900-1-azeemshaikh38@gmail.com
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
strlcpy() reads the entire source buffer first.
This read may exceed the destination size limit.
This is both inefficient and can lead to linear read
overflows if a source string is not NUL-terminated.
In an effort to remove strlcpy() completely, replace
strlcpy() here with strscpy().
No return values were used, so direct replacement is safe.

[1] https://www.kernel.org/doc/html/latest/process/deprecated.html#strlcpy
[2] https://github.com/KSPP/linux/issues/89

Signed-off-by: Azeem Shaikh &lt;azeemshaikh38@gmail.com&gt;
Signed-off-by: Kees Cook &lt;keescook@chromium.org&gt;
Link: https://lore.kernel.org/r/20230509014136.2095900-1-azeemshaikh38@gmail.com
</pre>
</div>
</content>
</entry>
<entry>
<title>befs: add kernel-doc formatting for befs_bt_read_super()</title>
<updated>2017-07-09T09:42:50+00:00</updated>
<author>
<name>Tommy Nguyen</name>
<email>remyabel@gmail.com</email>
</author>
<published>2017-07-09T09:25:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=799ce1dbb9bba56ff21733838a05070787fdcde5'/>
<id>799ce1dbb9bba56ff21733838a05070787fdcde5</id>
<content type='text'>
fs/befs/TODO mentions some comments needing conversion to Kernel-Doc
formatting. This patch changes the comment describing befs_bt_read_super().

Signed-off-by: Tommy Nguyen &lt;remyabel@gmail.com&gt;
Signed-off-by: Luis de Bethencourt &lt;luisbg@kernel.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
fs/befs/TODO mentions some comments needing conversion to Kernel-Doc
formatting. This patch changes the comment describing befs_bt_read_super().

Signed-off-by: Tommy Nguyen &lt;remyabel@gmail.com&gt;
Signed-off-by: Luis de Bethencourt &lt;luisbg@kernel.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>befs: remove trailing whitespaces</title>
<updated>2016-12-22T11:25:23+00:00</updated>
<author>
<name>Luis de Bethencourt</name>
<email>luisbg@osg.samsung.com</email>
</author>
<published>2016-11-10T11:25:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=e60f749b60979e333764b8e9143aad7a7bdea0fa'/>
<id>e60f749b60979e333764b8e9143aad7a7bdea0fa</id>
<content type='text'>
Removing all trailing whitespaces in befs.

I was skeptic about tainting the history with this, but whitespace changes
can be ignored by using 'git blame -w' and 'git log -w'.

Signed-off-by: Luis de Bethencourt &lt;luisbg@osg.samsung.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Removing all trailing whitespaces in befs.

I was skeptic about tainting the history with this, but whitespace changes
can be ignored by using 'git blame -w' and 'git log -w'.

Signed-off-by: Luis de Bethencourt &lt;luisbg@osg.samsung.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>befs: fix typos in btree.c</title>
<updated>2016-10-08T09:01:34+00:00</updated>
<author>
<name>Luis de Bethencourt</name>
<email>luisbg@osg.samsung.com</email>
</author>
<published>2016-08-11T21:15:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=02d91f97fdd62e1d01191e3bb1c42092bd807951'/>
<id>02d91f97fdd62e1d01191e3bb1c42092bd807951</id>
<content type='text'>
Fixing typos in kernel-doc function descriptions in fs/befs/btree.c.

Signed-off-by: Luis de Bethencourt &lt;luisbg@osg.samsung.com&gt;
Signed-off-by: Salah Triki &lt;salah.triki@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixing typos in kernel-doc function descriptions in fs/befs/btree.c.

Signed-off-by: Luis de Bethencourt &lt;luisbg@osg.samsung.com&gt;
Signed-off-by: Salah Triki &lt;salah.triki@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>befs: fix typo in befs_find_key</title>
<updated>2016-10-08T09:01:26+00:00</updated>
<author>
<name>Luis de Bethencourt</name>
<email>luisbg@osg.samsung.com</email>
</author>
<published>2016-08-08T14:21:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=bb75e66627b28816f472183d5dce0784d5edb87f'/>
<id>bb75e66627b28816f472183d5dce0784d5edb87f</id>
<content type='text'>
Fixing skeep to skip.

Signed-off-by: Luis de Bethencourt &lt;luisbg@osg.samsung.com&gt;
Signed-off-by: Salah Triki &lt;salah.triki@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixing skeep to skip.

Signed-off-by: Luis de Bethencourt &lt;luisbg@osg.samsung.com&gt;
Signed-off-by: Salah Triki &lt;salah.triki@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>befs: remove unused BEFS_BT_PARMATCH</title>
<updated>2016-10-08T09:01:26+00:00</updated>
<author>
<name>Luis de Bethencourt</name>
<email>luisbg@osg.samsung.com</email>
</author>
<published>2016-08-08T14:21:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=672a8515ee7ce3931daba8ed24f43de476d8e29a'/>
<id>672a8515ee7ce3931daba8ed24f43de476d8e29a</id>
<content type='text'>
befs_btree_find(), the only caller of befs_find_key(), only cares about if
the return from that function is BEFS_BT_MATCH or not. It never uses the
partial match given with BEFS_BT_PARMATCH. Make the overflow return clearer
by having BEFS_BT_OVERFLOW instead of BEFS_BT_PARMATCH.

Signed-off-by: Luis de Bethencourt &lt;luisbg@osg.samsung.com&gt;
Signed-off-by: Salah Triki &lt;salah.triki@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
befs_btree_find(), the only caller of befs_find_key(), only cares about if
the return from that function is BEFS_BT_MATCH or not. It never uses the
partial match given with BEFS_BT_PARMATCH. Make the overflow return clearer
by having BEFS_BT_OVERFLOW instead of BEFS_BT_PARMATCH.

Signed-off-by: Luis de Bethencourt &lt;luisbg@osg.samsung.com&gt;
Signed-off-by: Salah Triki &lt;salah.triki@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fs: befs: remove useless initialization to zero</title>
<updated>2016-10-08T09:01:23+00:00</updated>
<author>
<name>Salah Triki</name>
<email>salah.triki@gmail.com</email>
</author>
<published>2016-07-31T20:34:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=143d2a615fe39dd972a6446d24b298f7544588e9'/>
<id>143d2a615fe39dd972a6446d24b298f7544588e9</id>
<content type='text'>
node_off is unconditionally set to bt_super.root_node_ptr, so no need to
init it to zero.

Signed-off-by: Salah Triki &lt;salah.triki@gmail.com&gt;
Acked-by: Luis de Bethencourt &lt;luisbg@osg.samsung.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
node_off is unconditionally set to bt_super.root_node_ptr, so no need to
init it to zero.

Signed-off-by: Salah Triki &lt;salah.triki@gmail.com&gt;
Acked-by: Luis de Bethencourt &lt;luisbg@osg.samsung.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fs: befs: remove in vain variable assignment</title>
<updated>2016-10-08T09:01:22+00:00</updated>
<author>
<name>Salah Triki</name>
<email>salah.triki@gmail.com</email>
</author>
<published>2016-07-31T20:34:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=88ff34446b33c15340c45888dbe325e2ef7ba8c8'/>
<id>88ff34446b33c15340c45888dbe325e2ef7ba8c8</id>
<content type='text'>
There is no need to set *value, it will be overwritten later.

Signed-off-by: Salah Triki &lt;salah.triki@gmail.com&gt;
Acked-by: Luis de Bethencourt &lt;luisbg@osg.samsung.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There is no need to set *value, it will be overwritten later.

Signed-off-by: Salah Triki &lt;salah.triki@gmail.com&gt;
Acked-by: Luis de Bethencourt &lt;luisbg@osg.samsung.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fs: befs: Coding style fix</title>
<updated>2016-10-08T09:01:20+00:00</updated>
<author>
<name>Salah Triki</name>
<email>salah.triki@gmail.com</email>
</author>
<published>2016-07-27T03:11:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=4bb594329a35e90ed7ff38db24f54aef8680f346'/>
<id>4bb594329a35e90ed7ff38db24f54aef8680f346</id>
<content type='text'>
Constant has to be capitalized.

Signed-off-by: Salah Triki &lt;salah.triki@gmail.com&gt;
Acked-by: Luis de Bethencourt &lt;luisbg@osg.samsung.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Constant has to be capitalized.

Signed-off-by: Salah Triki &lt;salah.triki@gmail.com&gt;
Acked-by: Luis de Bethencourt &lt;luisbg@osg.samsung.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
