Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3358013rwb; Sun, 9 Oct 2022 03:51:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7PC3lbphootL9EjNk5Cqc4+t07ggnIPwXBdluY6k/hiv3h/99SBwlH63hf5r0MTJAB3SoI X-Received: by 2002:aa7:c751:0:b0:459:b0e1:4ad7 with SMTP id c17-20020aa7c751000000b00459b0e14ad7mr12731943eds.193.1665312679565; Sun, 09 Oct 2022 03:51:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665312679; cv=none; d=google.com; s=arc-20160816; b=J0Hx75IIcGR+TSn23J1qj5PE/XJmvvPoeidBDCXnn3vYR++loT3O1f+PfnUFcuhsVy e1fwe4yE76oEd7JPPevFN/yxwsXOR/1fhaKflCYpEDan9Q6VXlxc1GkxXWV5l+OrRKek pYraWbzsgqRffnHdVffvMBTOTNpN11yE5vsspPc815d0zlS8ll/DmKOGKKi0K6/UqklB I7owr4xev/M0SLdTk0hsThmjUXDviQjA7FCMvHFcC+fGZBh+C+27pLVlVTRtlvRVUdmH /OQbErNe5OP0ao3QNJvV0NXZ0zX76x8zTDeXwLBcdLKNqtGPeZaNqQatf82smi20wFHZ m7QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:reply-to:in-reply-to:references:mime-version :dkim-signature; bh=nWvhnVzPYFvs5pSg57txecq8CLlBbSop8yXnsSTys3A=; b=aKJ1FG7D+vDM/+5peh/8Ohk04wBQcLHqaK9+5QFrhaarfmaF6kXicW1dAa6urzTXSx VXzaPi/ut7+GHHMTcg08aiNAc+UeSceeOeh5i6cb046JSJRnjPcyR5Uon189FBzfaF8Y BLmuy4uF3Gw6hUwo53ZUJVBM8f1p4UfC+Z/0q7EuzLpbxcYZ3DjG9eYW3mUuRwQgtVcj q0a4ABBmS5vjQrMa5QzREHPLexakraWx1SjX+MWnxXtKk8qvQFCzRVIx4TmPteECaNbH L6jYJDoUN8fEx3nadOWyLFXHZpfsG4POV4YlGu5NaNTPYebY/IDuMPtljG1z0V8Q/Jrh Dpaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZC2PllSs; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id eb13-20020a0564020d0d00b0044f8511f3e5si8944798edb.582.2022.10.09.03.50.53; Sun, 09 Oct 2022 03:51:19 -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=@gmail.com header.s=20210112 header.b=ZC2PllSs; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230023AbiJIKie (ORCPT + 99 others); Sun, 9 Oct 2022 06:38:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229711AbiJIKib (ORCPT ); Sun, 9 Oct 2022 06:38:31 -0400 Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 301F3B36; Sun, 9 Oct 2022 03:38:31 -0700 (PDT) Received: by mail-oi1-x22d.google.com with SMTP id g130so10110170oia.13; Sun, 09 Oct 2022 03:38:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=nWvhnVzPYFvs5pSg57txecq8CLlBbSop8yXnsSTys3A=; b=ZC2PllSsRBAEa7KzF+tHhQsTHPlV7cJsXuqY/c3gleLpbTXesyWSVHnQKwCGnL9+xj +8cEodhhpQ+6og0w7xtcM9Qv3SXllRSaPRaTkO6UackfVw9uB9I8qVtAl5zCBmDrJY74 NEy6qd7sEtPvfjJ+oPLBU1KFeZvAYiJIxFamPUikCdkHVuTGdanxMfM0efVneere5NRD snCymbzEZ0jqP4ONGOXOC0KBdAaKnlmiUCfh+vwcEMVEmlugLuYHGguew5YuB8EQGD9X QmRQJiyE5nBJQEQjUuiSFNF2yRomy+Q/8yf2xPdMT3H5zbHBvcPwdzfDhoP0NPlRy39t aUuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=nWvhnVzPYFvs5pSg57txecq8CLlBbSop8yXnsSTys3A=; b=JkkQ5+SXBP5xsYwDO5GO0lvrTMI9sD/SPs3CQUt+2gONamz7WEA53r14J6CvxOKCR+ zx6osdgwgbKelVJhNe7M+z11uJWObehmsZpch3NEAU9+dkj6zzaVExEFf3iWm2/rJ0hv TRpoXe2ollsgm3sDst02jsBQ/7AoYP+r4LCwKm6Oi6uSuwFSgp9wD8FcyWwyA44APR42 7J3TEEWzujB+UmycgMIyAxBiM33lSGlDnrwS8kESxLS9HBdExtrcKpELyc02qeucKcLq oLQaPo89+6fBoUfAO+AeZ6RdEVORQDGgHrOIdgRonbphdqXEP0OlvyV/anZwtJRPXiXD epLA== X-Gm-Message-State: ACrzQf1Bkql5VHAwTOld8tfCnAkVdE1YB5DumIw9abH+iP5LM3+E7Rvy v5lPdQ6bcF1ZrYXh7SbE9dP7XNxcEMVSPXLoDq8= X-Received: by 2002:a05:6808:e8e:b0:34d:7829:135 with SMTP id k14-20020a0568080e8e00b0034d78290135mr6499786oil.252.1665311910417; Sun, 09 Oct 2022 03:38:30 -0700 (PDT) MIME-Version: 1.0 References: <7714.1664794108@jrobl> <4011.1664837894@jrobl> In-Reply-To: Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Sun, 9 Oct 2022 12:37:54 +0200 Message-ID: Subject: Re: [PATCH][CFT] [coredump] don't use __kernel_write() on kmap_local_page() To: Linus Torvalds Cc: Al Viro , "J. R. Okajima" , Ira Weiny , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Geert Uytterhoeven , Ren Zhijie Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 On Tue, Oct 4, 2022 at 8:18 AM Sedat Dilek wrote: > > On Tue, Oct 4, 2022 at 2:51 AM Linus Torvalds > wrote: > > > > On Mon, Oct 3, 2022 at 4:37 PM Al Viro wrote: > > > > > > One variant would be to revert the original patch, put its > > > (hopefully) fixed variant into -next and let it sit there for > > > a while. Another is to put this incremental into -next and > > > merge it into mainline once it gets a sane amount of testing. > > > > Just do the incremental fix. It looks obvious enough ("oops, we need > > to get the pos _after_ we've done any skip-lseeks on the core file") > > that I think it would be just harder to follow a "revert and follow up > > with a fix". > > > > I don't think it needs a ton of extra testing, with Okajima having > > already confirmed it fixes his problem case.. > > > > Linus > > [ CC Geert ] > > There was another patch from Geert concerning the same coredump changes: > > [PATCH] coredump: Move dump_emit_page() to kill unused warning > > If CONFIG_ELF_CORE is not set: > > fs/coredump.c:835:12: error: =E2=80=98dump_emit_page=E2=80=99 defined= but not used > [-Werror=3Dunused-function] > 835 | static int dump_emit_page(struct coredump_params *cprm, > struct page *page) > | ^~~~~~~~~~~~~~ > > Fix this by moving dump_emit_page() inside the existing section > protected by #ifdef CONFIG_ELF_CORE. > > Fixes: 06bbaa6dc53cb720 ("[coredump] don't use __kernel_write() on > kmap_local_page()") > Signed-off-by: Geert Uytterhoeven > > Please, check yourself! > > Best regards, > -Sedat- > > [1] https://lore.kernel.org/all/20221003090657.2053236-1-geert@linux-m68k= .org/ [ CC Ren Zhijie ] Looks like the same patch as of Geert. -Sedat- [1] https://lore.kernel.org/all/20221009092420.32850-1-renzhijie2@huawei.co= m/