* Re: [PATCH] can: dev: fix crtlmode_supported check
[not found] <1422385920-29763-1-git-send-email-socketcan@hartkopp.net>
@ 2015-01-28 8:25 ` Marc Kleine-Budde
2015-01-28 15:26 ` Oliver Hartkopp
2015-01-28 15:38 ` Oliver Hartkopp
0 siblings, 2 replies; 5+ messages in thread
From: Marc Kleine-Budde @ 2015-01-28 8:25 UTC (permalink / raw)
To: Oliver Hartkopp, linux-can
[-- Attachment #1: Type: text/plain, Size: 1039 bytes --]
On 01/27/2015 08:12 PM, Oliver Hartkopp wrote:
> When changing flags in the CAN drivers ctrlmode the provided new content has to
> be checked whether the bits are allowed to be changed. The bits that are to be
> changed are given as a bitfield in cm->mask. Therefore checking against
> cm->flags is wrong as the content can hold any kind of values.
>
> The iproute2 tool sets the bits in cm->mask and cm->flags depending on the
> detected command line options. To be robust against bogus user space
> applications additionally sanitize the provided flags with the provided mask.
>
> (Backport of upstream commit 9b1087aa5e86448fe6ad40a58964e35f3ba423d5 for
> Linux 3.2 .. Linux 3.14)
Zefan Li <lizefan@huawei.com> is taking care of v3.4
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Industrial Linux Solutions | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] can: dev: fix crtlmode_supported check
2015-01-28 8:25 ` [PATCH] can: dev: fix crtlmode_supported check Marc Kleine-Budde
@ 2015-01-28 15:26 ` Oliver Hartkopp
2015-01-28 15:38 ` Oliver Hartkopp
1 sibling, 0 replies; 5+ messages in thread
From: Oliver Hartkopp @ 2015-01-28 15:26 UTC (permalink / raw)
To: Marc Kleine-Budde, linux-can
[-- Attachment #1: Type: text/plain, Size: 931 bytes --]
Oh yes.
I got the entire thread twice.
I was assuming this to be the groundhog day :-)
See picture.
Regards,
Oliver
On 28.01.2015 09:25, Marc Kleine-Budde wrote:
> On 01/27/2015 08:12 PM, Oliver Hartkopp wrote:
>> When changing flags in the CAN drivers ctrlmode the provided new content has to
>> be checked whether the bits are allowed to be changed. The bits that are to be
>> changed are given as a bitfield in cm->mask. Therefore checking against
>> cm->flags is wrong as the content can hold any kind of values.
>>
>> The iproute2 tool sets the bits in cm->mask and cm->flags depending on the
>> detected command line options. To be robust against bogus user space
>> applications additionally sanitize the provided flags with the provided mask.
>>
>> (Backport of upstream commit 9b1087aa5e86448fe6ad40a58964e35f3ba423d5 for
>> Linux 3.2 .. Linux 3.14)
>
> Zefan Li <lizefan@huawei.com> is taking care of v3.4
>
> Marc
>
[-- Attachment #2: Bildschirmfoto - 28.01.2015 - 16:25:33.png --]
[-- Type: image/png, Size: 37967 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] can: dev: fix crtlmode_supported check
2015-01-28 8:25 ` [PATCH] can: dev: fix crtlmode_supported check Marc Kleine-Budde
2015-01-28 15:26 ` Oliver Hartkopp
@ 2015-01-28 15:38 ` Oliver Hartkopp
2015-02-17 0:41 ` Ben Hutchings
2015-04-09 1:01 ` Zefan Li
1 sibling, 2 replies; 5+ messages in thread
From: Oliver Hartkopp @ 2015-01-28 15:38 UTC (permalink / raw)
To: Zefan Li, Ben Hutchings; +Cc: Marc Kleine-Budde, linux-can
Hello all,
just in the case you are interested to pick these patches up for 3.2 and 3.4
stable:
The backported patch for Linux 3.2 ... 3.14 has been queued by GregKH for the
3.10 kernel here:
http://git.kernel.org/cgit/linux/kernel/git/stable/stable-queue.git/tree/queue-3.10/can-dev-fix-crtlmode_supported-check.patch?id=332373aa9a50a1c18027be7352d6138fa74263d0
Best regards,
Oliver
On 28.01.2015 09:25, Marc Kleine-Budde wrote:
> On 01/27/2015 08:12 PM, Oliver Hartkopp wrote:
>> When changing flags in the CAN drivers ctrlmode the provided new content has to
>> be checked whether the bits are allowed to be changed. The bits that are to be
>> changed are given as a bitfield in cm->mask. Therefore checking against
>> cm->flags is wrong as the content can hold any kind of values.
>>
>> The iproute2 tool sets the bits in cm->mask and cm->flags depending on the
>> detected command line options. To be robust against bogus user space
>> applications additionally sanitize the provided flags with the provided mask.
>>
>> (Backport of upstream commit 9b1087aa5e86448fe6ad40a58964e35f3ba423d5 for
>> Linux 3.2 .. Linux 3.14)
>
> Zefan Li <lizefan@huawei.com> is taking care of v3.4
>
> Marc
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] can: dev: fix crtlmode_supported check
2015-01-28 15:38 ` Oliver Hartkopp
@ 2015-02-17 0:41 ` Ben Hutchings
2015-04-09 1:01 ` Zefan Li
1 sibling, 0 replies; 5+ messages in thread
From: Ben Hutchings @ 2015-02-17 0:41 UTC (permalink / raw)
To: Oliver Hartkopp; +Cc: Zefan Li, Marc Kleine-Budde, linux-can
[-- Attachment #1: Type: text/plain, Size: 646 bytes --]
On Wed, 2015-01-28 at 16:38 +0100, Oliver Hartkopp wrote:
> Hello all,
>
> just in the case you are interested to pick these patches up for 3.2 and 3.4
> stable:
>
> The backported patch for Linux 3.2 ... 3.14 has been queued by GregKH for the
> 3.10 kernel here:
>
> http://git.kernel.org/cgit/linux/kernel/git/stable/stable-queue.git/tree/queue-3.10/can-dev-fix-crtlmode_supported-check.patch?id=332373aa9a50a1c18027be7352d6138fa74263d0
I already queued this up while going through commits with 'cc: stable',
thanks.
Ben.
--
Ben Hutchings
Never attribute to conspiracy what can adequately be explained by stupidity.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 811 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] can: dev: fix crtlmode_supported check
2015-01-28 15:38 ` Oliver Hartkopp
2015-02-17 0:41 ` Ben Hutchings
@ 2015-04-09 1:01 ` Zefan Li
1 sibling, 0 replies; 5+ messages in thread
From: Zefan Li @ 2015-04-09 1:01 UTC (permalink / raw)
To: Oliver Hartkopp; +Cc: Ben Hutchings, Marc Kleine-Budde, linux-can
On 2015/1/28 23:38, Oliver Hartkopp wrote:
> Hello all,
>
> just in the case you are interested to pick these patches up for 3.2 and 3.4 stable:
>
> The backported patch for Linux 3.2 ... 3.14 has been queued by GregKH for the 3.10 kernel here:
>
Queued up already, as it has stable tag. Thanks!
> http://git.kernel.org/cgit/linux/kernel/git/stable/stable-queue.git/tree/queue-3.10/can-dev-fix-crtlmode_supported-check.patch?id=332373aa9a50a1c18027be7352d6138fa74263d0
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-04-09 1:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1422385920-29763-1-git-send-email-socketcan@hartkopp.net>
2015-01-28 8:25 ` [PATCH] can: dev: fix crtlmode_supported check Marc Kleine-Budde
2015-01-28 15:26 ` Oliver Hartkopp
2015-01-28 15:38 ` Oliver Hartkopp
2015-02-17 0:41 ` Ben Hutchings
2015-04-09 1:01 ` Zefan Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).