tree: https://github.com/ammarfaizi2/linux-block dhowells/linux-fs/rxrpc-ringless-5 head: 1f5e9c52a8b3bfe1640d577aa4c14f14899570a5 commit: 247ad56098d3f1fab59699d9b00a5ae3ad01061d [73/77] rxrpc: Remove call->state_lock config: hexagon-randconfig-r045-20221102 compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/ammarfaizi2/linux-block/commit/247ad56098d3f1fab59699d9b00a5ae3ad01061d git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block dhowells/linux-fs/rxrpc-ringless-5 git checkout 247ad56098d3f1fab59699d9b00a5ae3ad01061d # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash net/rxrpc/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All error/warnings (new ones prefixed by >>): In file included from net/rxrpc/input.c:10: In file included from net/rxrpc/ar-internal.h:11: In file included from include/net/net_namespace.h:43: In file included from include/linux/skbuff.h:17: In file included from include/linux/bvec.h:10: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) ^ In file included from net/rxrpc/input.c:10: In file included from net/rxrpc/ar-internal.h:11: In file included from include/net/net_namespace.h:43: In file included from include/linux/skbuff.h:17: In file included from include/linux/bvec.h:10: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) ^ In file included from net/rxrpc/input.c:10: In file included from net/rxrpc/ar-internal.h:11: In file included from include/net/net_namespace.h:43: In file included from include/linux/skbuff.h:17: In file included from include/linux/bvec.h:10: In file included from include/linux/highmem.h:12: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ >> net/rxrpc/input.c:598:3: error: expected expression unsigned long timo = READ_ONCE(call->next_req_timo); ^ >> net/rxrpc/input.c:601:7: error: use of undeclared identifier 'timo' if (timo) { ^ >> net/rxrpc/input.c:601:7: error: use of undeclared identifier 'timo' >> net/rxrpc/input.c:601:7: error: use of undeclared identifier 'timo' net/rxrpc/input.c:603:26: error: use of undeclared identifier 'timo' expect_req_by = now + timo; ^ >> net/rxrpc/input.c:599:17: warning: mixing declarations and code is incompatible with standards before C99 [-Wdeclaration-after-statement] unsigned long now, expect_req_by; ^ 7 warnings and 5 errors generated. vim +598 net/rxrpc/input.c dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 551 dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 552 /* dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 553 * Process a DATA packet, adding the packet to the Rx ring. The caller's dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 554 * packet ref must be passed on or discarded. dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 555 */ dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 556 static void rxrpc_input_data(struct rxrpc_call *call, struct sk_buff *skb) dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 557 { dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 558 struct rxrpc_skb_priv *sp = rxrpc_skb(skb); dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 559 rxrpc_serial_t serial = sp->hdr.serial; dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 560 rxrpc_seq_t seq0 = sp->hdr.seq; dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 561 66c2028fcc0588 net/rxrpc/input.c David Howells 2022-10-17 562 _enter("{%x,%x,%x},{%u,%x}", 66c2028fcc0588 net/rxrpc/input.c David Howells 2022-10-17 563 call->ackr_window, call->ackr_wtop, call->rx_highest_seq, 2b366779efdc9a net/rxrpc/input.c David Howells 2022-08-27 564 skb->len, seq0); dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 565 247ad56098d3f1 net/rxrpc/input.c David Howells 2022-10-27 566 if (__rxrpc_call_is_complete(call)) dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 567 goto out; dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 568 dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 569 /* Unshare the packet so that it can be modified for in-place dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 570 * decryption. dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 571 */ dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 572 if (sp->hdr.securityIndex != 0) { 585fd9d44ff5e8 net/rxrpc/input.c David Howells 2020-01-23 573 struct sk_buff *nskb = skb_unshare(skb, GFP_NOFS); dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 574 if (!nskb) { e824e37ddd9a13 net/rxrpc/input.c David Howells 2022-10-21 575 rxrpc_eaten_skb(skb, rxrpc_skb_eaten_by_unshare_nomem); dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 576 return; dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 577 } dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 578 dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 579 if (nskb != skb) { e824e37ddd9a13 net/rxrpc/input.c David Howells 2022-10-21 580 rxrpc_eaten_skb(skb, rxrpc_skb_eaten_by_unshare); dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 581 skb = nskb; e824e37ddd9a13 net/rxrpc/input.c David Howells 2022-10-21 582 rxrpc_new_skb(skb, rxrpc_skb_new_unshared); dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 583 sp = rxrpc_skb(skb); dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 584 } dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 585 } dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 586 247ad56098d3f1 net/rxrpc/input.c David Howells 2022-10-27 587 switch (__rxrpc_call_state(call)) { 247ad56098d3f1 net/rxrpc/input.c David Howells 2022-10-27 588 case RXRPC_CALL_CLIENT_SEND_REQUEST: 247ad56098d3f1 net/rxrpc/input.c David Howells 2022-10-27 589 case RXRPC_CALL_CLIENT_AWAIT_REPLY: 247ad56098d3f1 net/rxrpc/input.c David Howells 2022-10-27 590 /* Received data implicitly ACKs all of the request 247ad56098d3f1 net/rxrpc/input.c David Howells 2022-10-27 591 * packets we sent when we're acting as a client. 247ad56098d3f1 net/rxrpc/input.c David Howells 2022-10-27 592 */ 247ad56098d3f1 net/rxrpc/input.c David Howells 2022-10-27 593 if (!rxrpc_receiving_reply(call)) 247ad56098d3f1 net/rxrpc/input.c David Howells 2022-10-27 594 goto out; 247ad56098d3f1 net/rxrpc/input.c David Howells 2022-10-27 595 break; 247ad56098d3f1 net/rxrpc/input.c David Howells 2022-10-27 596 247ad56098d3f1 net/rxrpc/input.c David Howells 2022-10-27 597 case RXRPC_CALL_SERVER_RECV_REQUEST: dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 @598 unsigned long timo = READ_ONCE(call->next_req_timo); dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 @599 unsigned long now, expect_req_by; dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 600 dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 @601 if (timo) { dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 602 now = jiffies; dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 603 expect_req_by = now + timo; dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 604 WRITE_ONCE(call->expect_req_by, expect_req_by); dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 605 rxrpc_reduce_call_timer(call, expect_req_by, now, dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 606 rxrpc_timer_set_for_idle); dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 607 } 247ad56098d3f1 net/rxrpc/input.c David Howells 2022-10-27 608 break; dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 609 247ad56098d3f1 net/rxrpc/input.c David Howells 2022-10-27 610 default: 247ad56098d3f1 net/rxrpc/input.c David Howells 2022-10-27 611 break; 247ad56098d3f1 net/rxrpc/input.c David Howells 2022-10-27 612 } dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 613 dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 614 if (!rxrpc_input_split_jumbo(call, skb)) { 25a7bdba5e0132 net/rxrpc/input.c David Howells 2022-10-06 615 rxrpc_proto_abort(call, sp->hdr.seq, rxrpc_badmsg_bad_jumbo); dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 616 goto out; dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 617 } dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 618 skb = NULL; dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 619 dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 620 out: dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 621 trace_rxrpc_notify_socket(call->debug_id, serial); dad511288b6109 net/rxrpc/input.c David Howells 2022-10-07 622 rxrpc_notify_socket(call); 17926a79320afa net/rxrpc/ar-input.c David Howells 2007-04-26 623 } 17926a79320afa net/rxrpc/ar-input.c David Howells 2007-04-26 624 :::::: The code at line 598 was first introduced by commit :::::: dad511288b61094b347de3baa13077e648a40dec rxrpc: Clone received jumbo subpackets and queue separately :::::: TO: David Howells :::::: CC: David Howells -- 0-DAY CI Kernel Test Service https://01.org/lkp