Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp19628752rwd; Wed, 28 Jun 2023 11:51:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6Mc7zI66a3c0xTez7bXbtJkxB9TrURlC5QhxpMZ2DeawGJgIDFqIdDZ5UrnteEqs5IMJhg X-Received: by 2002:a17:907:26c2:b0:982:1936:ad27 with SMTP id bp2-20020a17090726c200b009821936ad27mr29898325ejc.11.1687978270952; Wed, 28 Jun 2023 11:51:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687978270; cv=none; d=google.com; s=arc-20160816; b=Ks5h06NIWDviBznUH+I+HacZ2yu3awB0wlAHM9TEwTMW4QrUD50Z/MnOfByI6Uvv+T k836l/WNlhTc+oUqEfnehZ/jBInTWpAyt7F4zH9x4G2HxIoBjWbxF9gXEa3AfH1Hna3h LEewPibZ1ngJN7is4wncp0id14gYi1KbRba6t+dja/w23u39ByMbiPViwAVtTnnDOSy1 SVBdh4RRNINebK1LNfPAIMJimylwSnsHNKbXTbKQoMpheQmXyMN0c3R+GfsVELaMG1PH Qv5DnHsmQCWwZEjq4iX8gjY/8Epo4dPEp8+p8Y34HHl8PI35SBVMXpp/lduCETHsgBW9 4I3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=MnnDEXrg/gkS/C7srVAqIZGcztE6wO7dbfqWYSxKCy4=; fh=9XqmeWgwo9KNn75sVlgOvZVJMo1+e3DcR3vJWOWQfWY=; b=MnYjIynusCwaXw8haOFJMQ2Tw8h+S/XYv8tMobLKmefCwyAblNBfFLMakI/Fqh4E6U YGXYRCyu+JOB/prtZqHTjN7R6AdqFlVaQSMifVENlZYoYhNyfxk5EpJBPUdrArlbeCkR tIHN/zhBY+L0dC+JjFFrUK/QDtR9Q+/2n9Ex46b2ZsjDGAl+sj+TBkBHm5s0VRwxu/hm sdI796dWc+55tNiYG/a1bLCby7kEP1Pt4A7mrK4+FVNeB8PXSyhBPFDMdUlSadYdIsMx qQMFcEJEC2q61JOvdw7fKelwWe99FZ113ltGjh5aegJ/BWXhvvytnUD0cU0eiy+mNR1A kxnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=6PAR7Npi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lm15-20020a170906980f00b00991ece4c961si3186605ejb.267.2023.06.28.11.50.44; Wed, 28 Jun 2023 11:51:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=6PAR7Npi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230280AbjF1SsZ (ORCPT + 99 others); Wed, 28 Jun 2023 14:48:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230262AbjF1SsY (ORCPT ); Wed, 28 Jun 2023 14:48:24 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3CBE1FE8 for ; Wed, 28 Jun 2023 11:48:22 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id 3f1490d57ef6-c38a4d22b39so57415276.0 for ; Wed, 28 Jun 2023 11:48:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1687978102; x=1690570102; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=MnnDEXrg/gkS/C7srVAqIZGcztE6wO7dbfqWYSxKCy4=; b=6PAR7Npi8ERaYChyaM+1wl8PfqDVMWaRkcCtpbbS/XEKjfr05+Ro0K9USuAb+eufOr h/ro1Q/tP9CLLoTUmmxV82f/liy3cZ8icxTWd8VGrVlLveNRXYIAU5OJUYVxyLnr0gUW Y7Z4iD2RQxrpBUuHeLTIjq81we4+waGdJq22oRpgLgIFNaF/9M6mDK4Ina4I4pW5Hlbs WzGX7hJ0qxX4xionOv44NTJgbFmWU1NLe9t2hnUr+yVLrdnIc0/P5Fvctariw9dj2Y1V iQdGh8OWi02JgJkSM0Brhi5vSoesDVRTmcjISQf8bxjhPgYvpJqyhUGW6F+e6l3CMznh 1TSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687978102; x=1690570102; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=MnnDEXrg/gkS/C7srVAqIZGcztE6wO7dbfqWYSxKCy4=; b=guR35paUTbZ/rAY2xpP/l9drEWio3DhQk2T3xl20jMdI+OqaL/E3+JNPdIMH2srfGJ GShgcz98r+2QH9f+cjNbSWCzdK9Df2n+lPWt9BouOltdPNS63I+39AMk2ishgYxSmTeW Oqf7ZhnrCROO19iL2QBwsFgdBD76m48eRHJ2yiEB1oUGsG9rNmadBn8eavqVKmcV5c91 5IW9/ZdwM+iaN58/KSuvdNW5+2O1/lPWnFq+95LOkiewbE9XaVEOqRI+7Pmtqyea1DGh CbR0HDiFTmjoa7FL/ttTjQdRvXbodHsGYs8pg2/B62NNccRs/E2CP/ByhM6pzIvIjsSW 0nBw== X-Gm-Message-State: ABy/qLZHe85hcc2H+caSPEXeCiUP7y+2zFTIeD9ChjA11ZADmD3CdG7Q 1VbXXcgQIPlRSPidY3/1jl1TiNkij441ZmXBIw== X-Received: from yuxiao.svl.corp.google.com ([2620:15c:2a3:200:ee8e:ae51:26:66dc]) (user=yuxiaozhang job=sendgmr) by 2002:a25:781:0:b0:c39:d6f6:481f with SMTP id 123-20020a250781000000b00c39d6f6481fmr7552ybh.10.1687978101888; Wed, 28 Jun 2023 11:48:21 -0700 (PDT) Date: Wed, 28 Jun 2023 11:48:20 -0700 In-Reply-To: Mime-Version: 1.0 References: X-Mailer: git-send-email 2.41.0.162.gfafddb0af9-goog Message-ID: <20230628184820.1375994-1-yuxiaozhang@google.com> Subject: Re: [PATCH] pstore: ramoops: support pmsg size larger than kmalloc limitation From: Yuxiao Zhang To: Kees Cook , "'Guilherme G . Piccoli'" Cc: Tony Luck , Greg KH , linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org, wak@google.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED, USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks for the review Kees. >And yes, Greg's questions are all good -- fixing syntax and adding size details in the commit log would be appreciated. Sure, will send another patch to address this. Hi Guilherme, thanks for testing this patch. >But when I tried to increase the record size in ramoops, I got this error: https://termbin.com/b12e What record type are you testing? I should have mention that this patch is only for pmsg use case on ramoops (I mentioned it in the original thread but need to start a new one due to format issue). >Also - Kees certainly knows that way better, but - are we 100% sure that the region for pstore can be non-contiguous? For some reason, I always thought this was a requirement Right, that is why this patch only touches the pstore ram path, I am not sure how things will go if it is block device backed. Thanks, -Yuxiao Zhang