Received: by 10.223.185.116 with SMTP id b49csp599913wrg; Fri, 23 Feb 2018 03:57:12 -0800 (PST) X-Google-Smtp-Source: AH8x225IsR7pshaofhyqvtqaMpv78ARRiB6kCWfitjZCmqE8BP/HZVT6KK+lw0shX48r+S6MzQk4 X-Received: by 10.98.170.13 with SMTP id e13mr1525912pff.113.1519387032595; Fri, 23 Feb 2018 03:57:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519387032; cv=none; d=google.com; s=arc-20160816; b=Q3BAJSsX5bUTmKOEHK2q6IjEKAAlowBiUx750dmNqxiW+IjgPr5Iptai54FW09zVfR F7vpGBnNHSXWpP4MUhGKTWaWdIBovSu4VdY2Uu7vBPBVIhuYzIJnx7JAXfQWiUXeecwb gjkA5gkEmadj7rZfJUMhOfMwgpiiEuMF7aBLsSQZYuyejeCHvz0X5e3aJcP5pJqeTy6Z 4qfOsXKJsIMK9rA6PGM+3lHpeDpM9oqIOtmIfEz1KlH3ItCkerTT9zVzkDZvzndb40nA pEaB3hqdNsTJX/BmE7rvvrj/BU/rBGKPYw8fg+WgE9rBhcaqMCiwJY0OOrjpwNqt2r4Q ky1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=NtDi5OxQElsNFvF9kJ+640a68e9tDcEFTq1qVtEx8BA=; b=fhERGjp2H+rioKU2shhPRBCzTSOJu+51vDGYKgrLHLQxSNmk3WBEk6D8oa+TCPIB83 I8WuXdaMssRjIGpo9+3okfcqegMkie3SHyD36yAZaTX7/UUlj4chU2yzE6Mjhqp1tMUv iCU2PA7aBoiCqMKb/N8N+ypBpMtl1w8kO1+G5HgGqPWbXMGYC6X1tA7JX9QhqgGJh+SE xjCGs8ZzF/RXumppHJb7UR1PeOJoeBs2+qdR5d1wiiIoiHqKsFJQFfuvA8KxomDdJ4Os J1rggfxuH3SlyMxswe2LWgQpEAMDkRIEKirxBg0fOj6pWqFoJk3BzmA1bgl0ee4WvfSU +kUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g12-v6si1668327pla.226.2018.02.23.03.56.58; Fri, 23 Feb 2018 03:57:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751470AbeBWL4B (ORCPT + 99 others); Fri, 23 Feb 2018 06:56:01 -0500 Received: from mout.web.de ([212.227.17.11]:44175 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751276AbeBWLz7 (ORCPT ); Fri, 23 Feb 2018 06:55:59 -0500 Received: from [192.168.1.2] ([78.49.40.58]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MGicf-1etuyQ23sX-00DbCC; Fri, 23 Feb 2018 12:50:51 +0100 Subject: Re: [0/8] target-iSCSI: Adjustments for several function implementations To: Dan Carpenter , target-devel@vger.kernel.org Cc: David Disseldorp , kernel-janitors@vger.kernel.org, LKML , linux-scsi@vger.kernel.org References: <6163538d-a406-2f60-11a2-88b4694e9975@users.sourceforge.net> <20180222143624.7c7241a1@suse.de> <20180222135600.5vv7vzw7sa5metcb@mwanda> <145b88b1-bd1e-a417-8dce-ff19e35a00fc@users.sourceforge.net> <20180223101715.xv5dscdaeszqxoyk@mwanda> From: SF Markus Elfring Message-ID: <866a1802-0cd8-48fd-e04f-7dc676ab58a6@users.sourceforge.net> Date: Fri, 23 Feb 2018 12:50:50 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180223101715.xv5dscdaeszqxoyk@mwanda> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:swOsVOYe4UnbjJkb/PFOslKGU753oF4pUbz71+hn31PyN1oet50 HBV8+UtOlxW9d7bx3PDH1Ss33h3cGYxR3umPCFq1WrFzixeaWIEUx3zJ7qZr878TPnoMsoh 4oVhTZpE7HbtsHyhldQTsiYv56XGQkIX1GE1ZxSztBTLDIElu1Rw5ms1FxaOxvw0bkfyyyh eo0OTTBzJyGc1uWjjJ+ZA== X-UI-Out-Filterresults: notjunk:1;V01:K0:kgB0zsviVaM=:RoB9I7REcD/hoKEZBguP+t W/vIgtm+HbK3s2bHqYYQcf2p4wy7Wmu4x5LtsYZK5UJgZg25IvZvNnnMmui+FZq+ksuz4ZvY6 MZBxLBL/mPZdu9yOZZ4VC9jR3EH27E5phazZSSS4QS2uyWfP/H6gneCQvHbRFy+oNmjSqXnE3 xKU9cAObiGKUpeRW7RSbTA1Ew8/a5ZXwNYyL+ViGalVVFRLUUg5wuQAhVml/d2A0XvFSA/CP2 3uF/kKvGSHNv3Fzo2niKq3/SpQJc0Y+7JJ5CqyQJOvIcmjDYpiwAUPyjg/zVuO88qBNz71Tyi CR+5mkhnMaWFiRPk/pOtQvvBCZrngk/HXYnCIBCYzuvFMNG33nNrPof3WriY+tf4+u6jaryWc JCazfch2NB1QvsyJU0A2BwyzwIrYRKJsAYsy2p/Ekq4OoSsk7c8Vacx6WyypDpRDPlpyujRaC H0ex8gacCkT4is3lInfCik9x+bRquaSEWSfFpU9R5JDooDNYGqgEJ7d3s19O76LNdBG2rIBpQ scEkmTiKIasbjo61/85FziwK8wD8n3PnrSJPuAKl5XlbkMXd2Jhjxry4XN51+lBCKdoUA2NMm Qlg6I98vmQGea8shlWcx1brFqWZlbDSGI/RbAAdu+o3AXBdov4yhUabVbJgrY7K9c+/kgvTLQ mT2m1OSN+wRZAZVieMwRVIqln7xMbwV8OHE/5DikiMStp0Mi1lKMQg7fMhfD5xO2Rhj1Ml4yK DJR8UDUElxFxK1d7WEnQDvgBbHClQeoslMd51RYHDboB69+XHafzipU4H9Vo+KarM4CTwR8hW rVsRIhojMzMga21rpf8LFpRB9Nf9E0qzc6RaOhRc3jkdyPfv7o= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> Can a passed null pointer really work in this function? >> >> https://elixir.bootlin.com/linux/v4.16-rc2/source/include/crypto/hash.h#L684 >> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/crypto/hash.h?id=0f9da844d87796ac31b04e81ee95e155e9043132#n751 >> >> static inline struct crypto_tfm *crypto_shash_tfm(struct crypto_shash *tfm) >> { >> return &tfm->base; >> } > > Yes. It's not a dereference, Do any processors treat the zero address still special there? > it's just doing pointer math to get the address. Can eventually happen anything unexpected? Can it be nicer to avoid such a software behaviour concern generally just by adjusting a few jump labels (as I proposed it)? Regards, Markus