lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Wed, 2 Mar 2022 02:08:05 +0000
From:   Baowen Zheng <baowen.zheng@...igine.com>
To:     Jakub Kicinski <kuba@...nel.org>
CC:     "davem@...emloft.net" <davem@...emloft.net>,
        "xiyou.wangcong@...il.com" <xiyou.wangcong@...il.com>,
        "jhs@...atatu.com" <jhs@...atatu.com>,
        "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
        "roid@...dia.com" <roid@...dia.com>,
        oss-drivers <oss-drivers@...igine.com>,
        Simon Horman <simon.horman@...igine.com>
Subject: RE: [PATCH net-next v1] flow_offload: improve extack msg for user
 when adding invalid filter

On Wednesday, March 2, 2022 9:56 AM, Jakub wrote:
>On Mon, 28 Feb 2022 18:44:15 +0800 Baowen Zheng wrote:
>> Add extack message to return exact message to user when adding invalid
>> filter with conflict flags for TC action.
>>
>> In previous implement we just return EINVAL which is confusing for user.
>>
>> Signed-off-by: Baowen Zheng <baowen.zheng@...igine.com>
>> ---
>>  net/sched/act_api.c | 2 ++
>>  1 file changed, 2 insertions(+)
>>
>> diff --git a/net/sched/act_api.c b/net/sched/act_api.c index
>> ca03e72..eb0d7bd 100644
>> --- a/net/sched/act_api.c
>> +++ b/net/sched/act_api.c
>> @@ -1446,6 +1446,8 @@ int tcf_action_init(struct net *net, struct tcf_proto
>*tp, struct nlattr *nla,
>>  				continue;
>>  			if (skip_sw != tc_act_skip_sw(act->tcfa_flags) ||
>>  			    skip_hw != tc_act_skip_hw(act->tcfa_flags)) {
>> +				NL_SET_ERR_MSG(extack,
>> +					       "Conflict occurs for TC action and
>filter flags");
>
>Good improvement but I think we can reword a little, how about:
>
>"Mismatch between action and filter offload flags" ?
Thanks Jakub for your suggestion, to be honest I did not find a best way to make the msg more understandable. 
I think your description is more clear than mine. I will change as your advice.
>
>>  				err = -EINVAL;
>>  				goto err;
>>  			}

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ