Skip to content

Miscellaneous kdbus fixes and code removal

David Herrmann lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6kdbus/selftests: fix CAP translation teststools/testing/selftests/kdbus/test-metadata-ns.c+3 -60 replies
2/6kdbus: drop redundant KDBUS_MSG_MAX_ITEMSipc/kdbus/limits.h ipc/kdbus/message.c+0 -62 replies
3/6kdbus: drop unused 'bloom_generation' fieldipc/kdbus/message.h+0 -20 replies
4/6kdbus: drop support for required attach-flags on busesDocumentation/kdbus/kdbus.bus.xml Documentation/kdbus/kdbus.connection.xml ipc/kdbus/bus.c +6 more+9 -690 replies
5/6kdbus: pin namespaces on HELLOipc/kdbus/bus.c ipc/kdbus/connection.c ipc/kdbus/connection.h +3 more+44 -282 replies
6/6kdbus: fix NULL-deref in activator cleanupipc/kdbus/names.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] Miscellaneous kdbus fixes and code removal

Hi Greg

A set of 6 patches to drop unused code and fix some bugs:

#1: simple fix for test-cases
#2: drop redundant internal accounting
#3: drop unused structure member
#4: drop support for an HELLO-ioctl item that was never used. If this breaks
some user-space we're not aware of, we will have to revert it. But I haven't seen anything using this so far. This does *not* break ABI, but only cause the ioctl to fail if you pass that item.
#5: pin namespaces on kdbus-connections to simplify namespace handling, further
described in the commit-msg
#6: fix a NULL-deref

Thanks
David

David Herrmann (6):
kdbus/selftests: fix CAP translation tests
kdbus: drop redundant KDBUS_MSG_MAX_ITEMS
kdbus: drop unused 'bloom_generation' field
kdbus: drop support for required attach-flags on buses
kdbus: pin namespaces on HELLO
kdbus: fix NULL-deref in activator cleanup

 Documentation/kdbus/kdbus.bus.xml                | 15 -------
 Documentation/kdbus/kdbus.connection.xml         |  8 +---
 ipc/kdbus/bus.c                                  | 12 +-----
 ipc/kdbus/bus.h                                  |  2 -
 ipc/kdbus/connection.c                           | 18 +++-----
 ipc/kdbus/connection.h                           |  6 +++
 ipc/kdbus/limits.h                               |  3 --
 ipc/kdbus/message.c                              |  3 --
 ipc/kdbus/message.h                              |  2 -
 ipc/kdbus/metadata.c                             | 54 ++++++++++++------------
 ipc/kdbus/metadata.h                             |  1 +
 ipc/kdbus/names.c                                |  2 +-
 ipc/kdbus/queue.c                                |  1 +
 tools/testing/selftests/kdbus/kdbus-test.c       |  1 -
 tools/testing/selftests/kdbus/kdbus-util.c       | 20 +++------
 tools/testing/selftests/kdbus/kdbus-util.h       |  3 +-
 tools/testing/selftests/kdbus/test-connection.c  |  9 ----
 tools/testing/selftests/kdbus/test-metadata-ns.c |  9 ++--
 18 files changed, 57 insertions(+), 112 deletions(-)
Signature · 1 line
2.4.5