Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1851625pxa; Sun, 23 Aug 2020 19:33:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwygkHYKW+qPiVBc76carfrtkmxlwDLIr5k+K/OreFYxlp5Yz5CH1TJZq4+5QnwPlfD31FK X-Received: by 2002:a17:906:f905:: with SMTP id lc5mr3453370ejb.340.1598236419998; Sun, 23 Aug 2020 19:33:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598236419; cv=none; d=google.com; s=arc-20160816; b=ASY5yZFE7E85qI4pbWPlvK9Ab56ORpnQ+k7Pw23SvRda+JsqTSuLsh5VK3ClDzoIH/ E1WLlx0sohy0pPfPIJJAZDUsOECs1JSYoKPcMhb5pahyk8mvfa6Z9FwRtebdpjRGG/vI 9ux6YS4qNhSybaHu4RwAcAQbi+fSD03WhN9iyu7O6/n7LpTr5XvYRgrfPLbHP5Lbzjjf 3HcH1NKDb378sJHOS2/8ooE5muBHdKbH6cQjaUS8UfS2+HcuHhfBlwAXV1pCissQFY43 Y22IgVH9L3J2GVDUeHpJjlPP19dJ/Zs9XqWg5lhXjSoG1AUtygM2krFDZu+UIr0i+Hpk Fg5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=/EPwsOjNAOJnCAlukSWZN+FIBKRBbYip6lL2WUYmrb4=; b=EB7hcfIvK4UOLUABnCU7aJ8T8pqfe+Um6vORJ42lb8iN1mQFM07Ty9w8WWQBSKvOZo KVn/jA/o0KZlSqS72UXCfqlbizIRFs7VeM7Z8sNzKn4LSbLhw8+EbapjV60BZX9MMO3e k5WMtR2BsGhloGD1gFd4a9cw8q171i6sbmEvo5c0DzNAjkSaQBPIGtf5kdeEV3I5OBJ+ vxRJR6TsIPXdVZN//od/K4jWhQyt+XcfwgQrwemPVAaw1f01Csa+IU9P8sWB9JizD2Gl S91nBd1IioweNNKu8PIxVizqLRXqOHPMwtSoOdY3EEdd7B3pwGawkK0TrQUzQt36qB1h TgJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=X4fLhJpu; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g14si1964557ejr.420.2020.08.23.19.33.16; Sun, 23 Aug 2020 19:33:39 -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=@gmail.com header.s=20161025 header.b=X4fLhJpu; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727906AbgHXCBL (ORCPT + 99 others); Sun, 23 Aug 2020 22:01:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727882AbgHXCBL (ORCPT ); Sun, 23 Aug 2020 22:01:11 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F5BAC061573 for ; Sun, 23 Aug 2020 19:01:10 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id d22so4019363pfn.5 for ; Sun, 23 Aug 2020 19:01:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=/EPwsOjNAOJnCAlukSWZN+FIBKRBbYip6lL2WUYmrb4=; b=X4fLhJpuYLT9HBTn0MCHAO23k+DOxUoepGCYCLJcNCdkw+2uo7fXEY2BA340MEwfCB d7ehL2aAhL9p7UzcVSCa/KI+OtxPiIGcHErN1yKPlmoLaZ6JHwHpQv2vcsZ+PkhRQTpI QAvDmyLsOe56m9Oi9rNodzo3h6xmKIWMx76q4O7F47NpfdMRMvgxZqwTlgWceDZALmEq Pwk9ImMaYtalMkB9TCaYwDXh947gnkugHtsHtH5OFaiXi/nqm7TvgzBU9OEhbldHvpoG ABJ70gaXptcBtQYXwkH4Cc8dj8kSy0DBXjfEp/4dNUcGYanJ/nqJeUBNCxyrJgCG8Nxj Ma/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=/EPwsOjNAOJnCAlukSWZN+FIBKRBbYip6lL2WUYmrb4=; b=OBW1Ph4lSn7c9xXe+jiUMxKZNfF+jcCWPYdsw+ES0XAo2N/intqEfODpVDc7ClLZmo /QzY8rlNtd54iZe0pWaGOPrjHZMlG5ERyNHz1il/TklIcsn7x6zyC1I1uYfFYCH9ARot zHnmStZ4k4zzbJMsUDWpSYtiWtMvgJmBJb7f4ALuKTtWCxOlPK4bvYdcXZk9ZASL3NpO ORi0F2rqr0wN1+vnscWBAJt2poVtZzrZKk0O2Oz3s0JyT50SQVUP8awjtG4LmdRFjsN4 cWZ9eZ72TvrQibSgT8nQOs7mokM/7RAFhs0bVCD7w1kf5F7ecprD6jEVPrEV7Diypogy NSlQ== X-Gm-Message-State: AOAM530INAupJjg8vSOEzMRXoh6/oV5+oLz0hpD4PmZqNavB6ZUtewyC 0CEnJrOgWSBW5xnvrMXC8lA= X-Received: by 2002:a63:6a47:: with SMTP id f68mr2052164pgc.170.1598234469821; Sun, 23 Aug 2020 19:01:09 -0700 (PDT) Received: from thinkpad (104.36.148.139.aurocloud.com. [104.36.148.139]) by smtp.gmail.com with ESMTPSA id y72sm9584176pfg.58.2020.08.23.19.01.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Aug 2020 19:01:09 -0700 (PDT) Date: Sun, 23 Aug 2020 19:01:46 -0700 From: Rustam Kovhaev To: Anton Altaparmakov Cc: "linux-ntfs-dev@lists.sourceforge.net" , LKML , "gregkh@linuxfoundation.org" Subject: Re: [PATCH] ntfs: add check for mft record size in superblock Message-ID: <20200824020146.GA209078@thinkpad> References: <20200823152147.55766-1-rkovhaev@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 24, 2020 at 01:44:06AM +0000, Anton Altaparmakov wrote: > Hi Rustam, > > Thank you for the patch but it introduces an endianness bug - you have to us le32_to_cpu(m->bytes_allocated) both when doing the comparison and then printing the message. > > Also, please drop the square brackets. Wherever the driver prints such things it never uses brackets around the numbers and it would be better to have this consistent throughout. > > Can you please resend with the above issues addressed? You can then also add to the commit message: > > Acked-by: Anton Altaparmakov > > Thanks! > > Best regards, > > Anton > hi Anton, thank you for the review, my bad, i'll get it fixed and i'll resend the patch