From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E1665C34056 for ; Wed, 19 Feb 2020 19:30:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AA92C208E4 for ; Wed, 19 Feb 2020 19:30:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726645AbgBSTal convert rfc822-to-8bit (ORCPT ); Wed, 19 Feb 2020 14:30:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:46998 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726634AbgBSTal (ORCPT ); Wed, 19 Feb 2020 14:30:41 -0500 From: bugzilla-daemon@bugzilla.kernel.org To: linux-ext4@vger.kernel.org Subject: [Bug 206443] general protection fault in ext4 during simultaneous online resize and write operations Date: Wed, 19 Feb 2020 19:30:40 +0000 X-Bugzilla-Reason: None X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: AssignedTo fs_ext4@kernel-bugs.osdl.org X-Bugzilla-Product: File System X-Bugzilla-Component: ext4 X-Bugzilla-Version: 2.5 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: surajjs@amazon.com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: fs_ext4@kernel-bugs.osdl.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Bugzilla-URL: https://bugzilla.kernel.org/ Auto-Submitted: auto-generated MIME-Version: 1.0 Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org https://bugzilla.kernel.org/show_bug.cgi?id=206443 --- Comment #13 from Suraj (surajjs@amazon.com) --- Your approach using call_rcu is very similar to something I was also exploring so that looks good to me. Apologies, I didn't realise that patches attached to the BZ had to be mailing list ready. There is also the same issue present with the resizing of the s_group_info and s_flex_groups arrays which are addressed in the following patches which I have posted to the EXT4 mailing list: [1/3] ext4: introduce macro sbi_array_rcu_deref() to access rcu protected fields [1] [2/3] ext4: fix potential race between s_group_info online resizing and access [2] [3/3] ext4: fix potential race between s_flex_groups online resizing and access [3] [1] http://patchwork.ozlabs.org/patch/1240507/ [2] http://patchwork.ozlabs.org/patch/1240506/ [3] http://patchwork.ozlabs.org/patch/1240509/ -- You are receiving this mail because: You are watching the assignee of the bug.