Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3225341ybt; Mon, 22 Jun 2020 19:02:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+VZT7yydDIxTvItRZlH2OAi/tIics7JsXuW5jTc8hCXSpZQwIoPGcwXlrSJI/Rktnaqc8 X-Received: by 2002:a17:906:29d8:: with SMTP id y24mr857464eje.212.1592877779143; Mon, 22 Jun 2020 19:02:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592877779; cv=none; d=google.com; s=arc-20160816; b=hKGEH498JEJpekBfainwriOn7bJHpX1sWlsq9cUqCsHzEeY7AWVhRAiMtmDDbj+QP6 ueb/SXwt9iHXAdkwKOxUED+MQOF8MaIPtEzSoNiW71RjH+jc/idsd9NNByKttkv+lnLI zIrnBB+Ue7WfUlJnUTTmHIw+NNEw+vEQWUt/3tD/AzL5xJpOT1JQh3w/KXZwfuZFmhC0 47yHm2688hJ5yLyPNDlWpmd3u91IimAMHwwdPNXP0VA1BtPBHHPPrzD2wEFGb/e26B9X HHUM5c1IW/Gs0XqNsGfHCN2BhAUTelVxkel/mWqGP20xK164ixnVNmXZiEBFL6uYZ4PK xTEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:dlp-filter:cms-type :content-language:content-transfer-encoding:in-reply-to:mime-version :user-agent:date:message-id:from:cc:to:subject:dkim-signature :dkim-filter; bh=YExroDqc6XzESFm8WunT73Vwegt7O2NMI3eTkUs4C38=; b=Pdd5/RytDWK1Z1KfPRgSlQ3BpIyQjWqwZcY11uj3X76T4ChuU+7dzK7Rs00aDJFvDj n0tcEPDA2Y2TU6cmMQdCmGXs07Fod0DaKJrqeeqnABhfiYNCtybzVdgzfFOMYhjgWLml sHpCzirlsMqjKgQxV3yZ+tXiuoY4rLv35FjFIEygjH38qI7Kt4w0ScojIF2Kq9Q8viFg UXGBlXQAz95frckEmH3krDXSEtL3riuFX85lEBmcQUhPzY+izPJAw7P3QLJQjDsSMI5D 26ghAypudF4B+SaRckKBX8KHBfC73yG4G4cSXt/xsu8TdNVhAMF54tlbHOzoXvxDJUb5 OlxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=k+JgZuET; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f6si9506486ejr.283.2020.06.22.19.02.36; Mon, 22 Jun 2020 19:02:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=k+JgZuET; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731329AbgFVX7s (ORCPT + 99 others); Mon, 22 Jun 2020 19:59:48 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:41949 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731175AbgFVX7s (ORCPT ); Mon, 22 Jun 2020 19:59:48 -0400 Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20200622235945epoutp0457e51f9835ed392d2b132afc2c3195fa~bAy0SpBWa2094420944epoutp04Q for ; Mon, 22 Jun 2020 23:59:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20200622235945epoutp0457e51f9835ed392d2b132afc2c3195fa~bAy0SpBWa2094420944epoutp04Q DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1592870385; bh=YExroDqc6XzESFm8WunT73Vwegt7O2NMI3eTkUs4C38=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=k+JgZuETmQ9o+0EMIw4bTkiG5QYFyXbfSMNJn21ke5BDVOf6AzWIPpL9n71mzHEo4 Qov3tNO4QxhxI6dbqRlWHrW4RrajJ3i9Fv7JkSxVeYnkvXe7UDBlVFD02H/291Fhdx ni5p0bw4NEpyyUwNB++hfu5lrv1R9ShSuBwfU2S8= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20200622235944epcas1p1d7b823d4a1887b71eccd67af654f27fe~bAyzmnqUJ1886118861epcas1p11; Mon, 22 Jun 2020 23:59:44 +0000 (GMT) Received: from epsmges1p4.samsung.com (unknown [182.195.40.166]) by epsnrtp3.localdomain (Postfix) with ESMTP id 49rRGl41M6zMqYkk; Mon, 22 Jun 2020 23:59:43 +0000 (GMT) Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p4.samsung.com (Symantec Messaging Gateway) with SMTP id 73.54.28581.FE541FE5; Tue, 23 Jun 2020 08:59:43 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p3.samsung.com (KnoxPortal) with ESMTPA id 20200622235942epcas1p3cda4faa2bf5ad932189cbe1a87b0b0fd~bAyyBP-sU2815928159epcas1p38; Mon, 22 Jun 2020 23:59:42 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20200622235942epsmtrp13d82fa0db9948bc0dac8fdbe90844315~bAyyAg5232670726707epsmtrp1d; Mon, 22 Jun 2020 23:59:42 +0000 (GMT) X-AuditID: b6c32a38-2e3ff70000006fa5-fa-5ef145efa0c5 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 10.F1.08303.EE541FE5; Tue, 23 Jun 2020 08:59:42 +0900 (KST) Received: from [10.253.105.155] (unknown [10.253.105.155]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20200622235942epsmtip16d13b33e18f9c69da82d677090e641a9~bAyxdYJnb0379503795epsmtip1G; Mon, 22 Jun 2020 23:59:42 +0000 (GMT) Subject: Re: New mode DM-Verity error handling To: Milan Broz , Mike Snitzer , Sami Tolvanen Cc: dm-devel@redhat.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, agk@redhat.com, corbet@lwn.net From: JeongHyeon Lee Message-ID: <250156a6-a2d6-dbfd-daa3-be9c36f0cf36@samsung.com> Date: Tue, 23 Jun 2020 08:53:32 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Transfer-Encoding: 7bit Content-Language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprDJsWRmVeSWpSXmKPExsWy7bCmnu57149xBr1P5SzWnzrGbPHkQDuj xd53s1ktju2fxW6xsG0Ji8XlXXPYLJaueMtq0bbxK6MDh8fOWXfZPRZsKvVY3DeZ1eP9vqts Hp83yQWwRuXYZKQmpqQWKaTmJeenZOal2yp5B8c7x5uaGRjqGlpamCsp5CXmptoqufgE6Lpl 5gCdoqRQlphTChQKSCwuVtK3synKLy1JVcjILy6xVUotSMkpMDQo0CtOzC0uzUvXS87PtTI0 MDAyBapMyMmYdnEha8EW/op1K3gbGKfwdDFyckgImEhce/+TsYuRi0NIYAejxL/bd5ghnE+M El+ezYbKfGaUuH96KhtMy4dXz5kgErsYJQ6uOwPlvGeU+Ll6EwtIlbCAnsTHzq+sILaIQJHE tAVNYHFmILv381uwOJuAtsTtlk3sIDavgJ3E338XmUBsFgFVid27l4LViwpESNw/toEVokZQ 4uTMJ2BxTgFbiY3rjjJBz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FJTGyYzwKSYBPQlrjdsgmsmVfATuLvv4tgy1gEVCV2714KViMqECFx 5v0KFogaQYmTM5+A2ZwCthIb1x1lglhgJjFv80NmCFteYvvbOVC2uMStJ/OZJjAKzULSPgtJ yywkLbOQtCxgZFnFKJlaUJybnltsWGCUl1quV5yYW1yal66XnJ+7iREcPVpaOxj3rPqgd4iR iYPxEKMEB7OSCO/rgHdxQrwpiZVVqUX58UWlOanFhxilOViUxHm/zloYJySQnliSmp2aWpBa BJNl4uCUamCSZ/lyeI3ItBfuVxRWSWzKj3ZplDt7NIht6UaVnSkNjV+jH3u91N9lYt9u+O3W 3hdrVynffuzzfIv8ta0X9j16+y28Kz79/bo1TRxbVuQ8tFqvf+yir6Hp94KWstPZkcWxO2y/ MTNefRdy8WdUWYXsesa2vPMms1MvcbIrtfrKXlj4ek3oldvcqjOTtq0W9+dRELZJD1ZMPvO7 1+x1rudJP20u/uKP575qLzTxNb+gI3vj0I+Vn65WqB68q1xjFWk7W3pa288HM2L4c7ovZU2y /LIy4qzhjLSs3dq7FwVIG30x921pnqRzjONiZFHJJl62w6yOHYsjqjY0b54b2Zd42TWdb33z /eQf0rb3612UWIozEg21mIuKEwGDjIQCDQMAAA== X-CMS-MailID: 20200622235942epcas1p3cda4faa2bf5ad932189cbe1a87b0b0fd X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20200618070250epcas1p409eb2ddd19ecc5d55c219ac3dc884f25 References: <98eac3fc-c399-625d-5730-29853b3a0771@samsung.com> <20200618154444.GB18007@redhat.com> <20200618165006.GA103290@google.com> <20200618170952.GA18057@redhat.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear Milan Broz. Thank for your reply. I didn't understand well, could you explain it in more detail? For what reason isn't panic better? Is it because there is a place to use other device-mapper? Or other things? I just wonder. I would like to hear various explanations and information. I just wanted user to use what they wanted through the options(flags). Yes, If adding a new feature, modify user-space to support. Oh, I'm sorry :( If when i suggested new patch, i will send you a patch that increased minor version. Thank you for all your detailed information. Thanks. JeongHyeon Lee On 22/06/2020 16:58, Milan Broz wrote: > On 18/06/2020 19:09, Mike Snitzer wrote: >> On Thu, Jun 18 2020 at 12:50pm -0400, >> Sami Tolvanen wrote: >> >>> On Thu, Jun 18, 2020 at 11:44:45AM -0400, Mike Snitzer wrote: >>>> I do not accept that panicing the system because of verity failure is >>>> reasonable. >>>> >>>> In fact, even rebooting (via DM_VERITY_MODE_RESTART) looks very wrong. >>>> >>>> The device should be put in a failed state and left for admin recovery. >>> That's exactly how the restart mode works on some Android devices. The >>> bootloader sees the verification error and puts the device in recovery >>> mode. Using the restart mode on systems without firmware support won't >>> make sense, obviously. >> OK, so I need further justification from Samsung why they are asking for >> this panic mode. > I think when we have reboot already, panic is not much better :-) > > Just please note that dm-verity is used not only in Android world (with own tooling) > but in normal Linux distributions, and I need to modify userspace (veritysetup) to support > and recognize this flag. > > Please *always* increase minor dm-verity target version when adding a new feature > - we can then provide some better hint if it is not supported. > > Thanks, > Milan > >