Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4773473pxk; Wed, 30 Sep 2020 11:16:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx57fTXvW1OidhzWH9lBDuHXZdNsZgpRkVcr/l8UwC5jpG/hswbyrfdOBuXtkupMnX8ocTw X-Received: by 2002:a17:907:213b:: with SMTP id qo27mr3998447ejb.441.1601489805322; Wed, 30 Sep 2020 11:16:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601489805; cv=none; d=google.com; s=arc-20160816; b=J979iK+yiqA+Rc3Kz8mYf2QhxXJgNaoecw/xyihe7aZk0qcNH0S3DwQrfudar1184C l+hA2ZbqRwPWL7PJig+q5SgGusgzDrj8/uV93P9J0J76+hDi8TCmub4YfkyspWP2o6yn ROMHN7iYpaUD1j8IyBy1dk+wkn4IHQT1kskDGbTjnQ7qOxB59F0BCf5zIMz1pDpuDmCV bv2+PQ2yUdQDB1dyOU4G5pmIBkHgw2tK8RQnEhsQ6NgX/T2QXaRpY1bHDksakJ+d+KFM H8pQyi6NxOgJoVWEGUq44sy8jnrISFNFLwcRBXw5OpVJBg5UiHGGdnX/7wkF1+uZZ8+E G7cA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:mime-version :dkim-signature; bh=neVvJjs8c8bnzQTfnKBgO53z26IPreK1g9kdkYUUonU=; b=P8otLvYz1Ll5xXf0OMwC6IR9fH47zJRuZUSnu2ZmQZ5pv3z8/UVf7bSzEc3Z/V7Luk G8OLq2rqHirXDjnurWsq8fj34hYcSDyx3bNXDT89DOX0mtQVUJyhVlo/NIcEJ5+duz+R QTKtmyDs4JoVcs8U7WVRFKVIJwoZEwx1EXzGpdvEubzF+Bi7JsjAEN57zfJMqd+/akZ4 R3tSqB9RrTUiMImIwJPWOgxk+eOihPYyRARvHZ5GctheC4EixP0z4OKO4BFKjz9crrFt oeTe7mo7VHT43DVbT6qrEPYagq3WomS922fagnJDlN9o1TNIR2Ksr6ZkUmCMryvv2rg4 6OGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hDKBPjhN; 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 f5si1649009edt.158.2020.09.30.11.16.21; Wed, 30 Sep 2020 11:16:45 -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=hDKBPjhN; 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 S1726476AbgI3SNN (ORCPT + 99 others); Wed, 30 Sep 2020 14:13:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725355AbgI3SNN (ORCPT ); Wed, 30 Sep 2020 14:13:13 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BBC1C061755; Wed, 30 Sep 2020 11:13:13 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id b19so2395403lji.11; Wed, 30 Sep 2020 11:13:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=neVvJjs8c8bnzQTfnKBgO53z26IPreK1g9kdkYUUonU=; b=hDKBPjhNVCdON2TvhwIhpW/zP6mHde6niZ1Kj3AsnP6TQpdT1uBFTGrX/CTagSk1PQ x7LMhMvr/7bt9SN3VroDNeikyHNZcuznuV6vowNu4BWrr6kgf1jYswasF3Xd6NSYFNqF aCxbg82Za5Kb9QqeCbxgg+4lPaJM9CQ5RY9wP/ZlJz3l810He+6jev63s6NW4VynZwqk tJ6RVcdNWhh7KErMZj2lR8NolmdKbCZOAFFItTwI4p0Du0LpE7Jw9cJGCd6Q5FlgjeJq Sk4lU2jZETyOQsKBk2Ny7BtO/iyg9jFK/pkZOsd5Lc5qGOvQ6DfNOixGTMt0v0wdOiCm x9NQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=neVvJjs8c8bnzQTfnKBgO53z26IPreK1g9kdkYUUonU=; b=DFg6z9nPLV+BEmLXHXNq70+3UzXx+4ybt9CPQVjLBG8/4I8jr6amFj0ImTa4N9RpAr uJMvPX+8UvGA16letDDD+hYZRMb4kzCFsjPeKbavxNeooSDwNOYxOxmaKm3A7Z04XHYX kXKUsz9OkSMK+Ydu6KxFQM6dHYuezgFpdFd8rHQuufBm3/iGQW50JH/9agMwN+FLCli4 HibZa+UJxmf44ZnMt72qO02qH2hxPU1MEOP/6JsnBS9Q/ldalfdJIIzOpB2lbwksy/ll jI6LH9NlgIihTRqvLaJAKkLvWIeLO/v7pcrYqhhtop01tlQh+80EurDlGPI8sA0bfwPY B6xg== X-Gm-Message-State: AOAM5307+rH7E93+l4bCWKhYggOn9c2yfuzFDKEr++JjcGYF+cIqY8Vr VNKLaxiFlgZOLsyn8aMfKl7q4oby+ae+I4Tr0hqkcyX7i9c= X-Received: by 2002:a05:651c:cb:: with SMTP id 11mr1282761ljr.2.1601489590202; Wed, 30 Sep 2020 11:13:10 -0700 (PDT) MIME-Version: 1.0 From: Alexei Starovoitov Date: Wed, 30 Sep 2020 11:12:58 -0700 Message-ID: Subject: mb2q experience and couple issues To: Thomas Gleixner , Daniel Borkmann , bpf , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Thomas, For the last couple years we've been using mb2q tool to normalize patches and it worked wonderfully. Recently we've hit few bugs: curl -s https://patchwork.kernel.org/patch/11807443/mbox/ > /tmp/mbox.i; ~/bin/mb2q --mboxout mbox.o /tmp/mbox.i Drop Message w/o Message-ID: No subject No patches found in mbox I've tried to debug it, but couldn't figure out what's going on. The subject and message-id fields are parsed correctly, but later something happens. Could you please take a look? Another issue we've hit was that some mailers split message-id into few lines like this: curl -s https://patchwork.kernel.org/patch/11809399/mbox/|grep -2 Message-Id: Subject: [PATCH bpf-next v4 1/6] bpf: add classid helper only based on skb->sk Date: Wed, 30 Sep 2020 17:18:15 +0200 Message-Id: X-Mailer: git-send-email 2.21.0 That was an easy fix: - mid = pmsg.msgid.lstrip('<').rstrip('>') + mid = pmsg.msgid.lstrip('\n').lstrip(' ').lstrip('<').rstrip('>') The tglx/quilttools.git doesn't have this fix, so I'm guessing you haven't seen it yet. Thanks!